tools/intel_audio_dump: add details dump for Cherryview
PATCH 1/1 tools/intel_audio_dump: add details dump for Cherryview
From: Libin Yang <[email protected]>
This patch adds the details dump for audio registers of Cherryview.
--- tools/intel_audio_dump.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+)
tools/intel_audio_dump.c +50 -0
@@ -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)
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Any comments?
Regards,
Libin
Quoted 79 lines
-----Original Message-----
From: Yang, Libin
Sent: Thursday, January 15, 2015 9:21 AM
To: [email protected]
Cc: Yang, Libin
Subject: [PATCH]tools/intel_audio_dump: add details dump for CherryviewFrom: Libin Yang <[email protected]>
This patch adds the details dump for audio registers of Cherryview.
Signed-off-by Libin Yang <[email protected]>--- tools/intel_audio_dump.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+)tools/intel_audio_dump.c +50
-0@@ -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 ); }
Quoted 3 lines
int
main(int argc, char **argv)
--
1.9.1
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 2 lines · Libin
Any comments?
Looks fine to me. Reviewed-by: Zhenyu Wang <[email protected]>
I will help to push this later.
Signature · 3 lines
Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx