From patchwork Thu Jan 15 01:20:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yang, Libin" X-Patchwork-Id: 5635961 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3DF7BC058D for ; Thu, 15 Jan 2015 01:26:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6F877201B9 for ; Thu, 15 Jan 2015 01:26:02 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 8CE692012E for ; Thu, 15 Jan 2015 01:26:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1E9586E003; Wed, 14 Jan 2015 17:26:01 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTP id 3985C6E003 for ; Wed, 14 Jan 2015 17:26:00 -0800 (PST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 14 Jan 2015 17:22:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="440700278" Received: from younglee-grantley.sh.intel.com ([10.239.159.29]) by FMSMGA003.fm.intel.com with ESMTP; 14 Jan 2015 17:13:03 -0800 From: libin.yang@intel.com To: intel-gfx@lists.freedesktop.org Date: Thu, 15 Jan 2015 09:20:47 +0800 Message-Id: <1421284847-83726-1-git-send-email-libin.yang@intel.com> X-Mailer: git-send-email 1.9.1 Cc: libin.yang@intel.com Subject: [Intel-gfx] [PATCH] tools/intel_audio_dump: add details dump for Cherryview X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Libin Yang This patch adds the details dump for audio registers of Cherryview. Signed-off-by: Libin Yang --- tools/intel_audio_dump.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c index b673288..945b136 100644 --- a/tools/intel_audio_dump.c +++ b/tools/intel_audio_dump.c @@ -2349,6 +2349,56 @@ static void dump_braswell(void) dump_aud_reg(AUD_TCC_M_CTS, "Audio M CTS Read Back Transcoder C"); printf("\n"); + + printf("\nDetails:\n\n"); + + dump_aud_vendor_device_id(); + dump_aud_revision_id(); + + dump_hdmi_port_ctrl(PORT_B); + dump_hdmi_port_ctrl(PORT_C); + if (!IS_VALLEYVIEW(devid)) + dump_hdmi_port_ctrl(PORT_D); + + dump_dp_port_ctrl(PORT_B); + dump_dp_port_ctrl(PORT_C); + if (!IS_VALLEYVIEW(devid)) + dump_dp_port_ctrl(PORT_D); + + dump_aud_config(PIPE_A); + dump_aud_config(PIPE_B); + + dump_aud_m_cts_enable(PIPE_A); + dump_aud_m_cts_enable(PIPE_B); + + dump_aud_misc_control(PIPE_A); + dump_aud_misc_control(PIPE_B); + + dump_aud_power_state(); + dump_aud_port_en_hd_cfg(); + + dump_aud_dig_cnvt(PIPE_A); + dump_aud_dig_cnvt(PIPE_B); + + dump_aud_out_ch_str(); + + dump_aud_str_desc(PIPE_A); + dump_aud_str_desc(PIPE_B); + + dump_aud_connect_list(); + dump_aud_connect_select(); + + dump_aud_ctrl_state(PIPE_A); + dump_aud_ctrl_state(PIPE_B); + dump_aud_ctrl_state2(); + + dump_aud_hdmi_status(); + + dump_aud_edid_data(PIPE_A); + dump_aud_edid_data(PIPE_B); + + dump_aud_infoframe(PIPE_A); + dump_aud_infoframe(PIPE_B); } int main(int argc, char **argv)