From acfd307f76ea2933ee855c60dc1621fbefcf9cdb Mon Sep 17 00:00:00 2001 From: Rafał Miłecki Date: Thu, 1 Aug 2013 11:52:12 +0200 Subject: avivotool: dump DCE4/5 specific audio registers conditionally MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They don't exist on DCE6+ Signed-off-by: Rafał Miłecki Signed-off-by: Dave Airlie --- avivotool.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/avivotool.c b/avivotool.c index 8564c75..2651576 100644 --- a/avivotool.c +++ b/avivotool.c @@ -1096,16 +1096,18 @@ void eg_cmd_regs(const char *type) SHOW_REG(DCE4_DCCG_AUDIO_DTO1_LOAD); SHOW_REG(DCE4_DCCG_AUDIO_DTO1_CNTL); - printf("\nAudio general:\n"); - SHOW_REG(DCE4_AZ_HOT_PLUG_CONTROL); + if (IS_DISPLAY_DCE4(card_info) || IS_DISPLAY_DCE5(card_info)) { + printf("\nAudio general:\n"); + SHOW_REG(DCE4_AZ_HOT_PLUG_CONTROL); - printf("\nAudio params:\n"); - SHOW_REG(EVERGREEN_AUDIO_VENDOR_ID); + printf("\nAudio params:\n"); + SHOW_REG(EVERGREEN_AUDIO_VENDOR_ID); - printf("\nAudio verbs:\n"); - SHOW_REG(EVERGREEN_AUDIO_RATE_BPS_CHANNEL); - SHOW_REG(EVERGREEN_AUDIO_PLAYING); - SHOW_REG(EVERGREEN_AUDIO_CAT_STATUS); + printf("\nAudio verbs:\n"); + SHOW_REG(EVERGREEN_AUDIO_RATE_BPS_CHANNEL); + SHOW_REG(EVERGREEN_AUDIO_PLAYING); + SHOW_REG(EVERGREEN_AUDIO_CAT_STATUS); + } for (i = 0; i < EG_NUM_OFFSETS; i++) { tmp = EG_GET_MODE_REG(i, EVERGREEN_DIG_CNTL); -- cgit v1.2.3