diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2013-08-01 11:52:12 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-08-02 09:20:12 +1000 |
commit | acfd307f76ea2933ee855c60dc1621fbefcf9cdb (patch) | |
tree | b895234748b6473d067c84dfa7534ffc51a33f09 | |
parent | 254d9ba2b6d1bec8d654c3e9dba240c2a683fcc3 (diff) |
avivotool: dump DCE4/5 specific audio registers conditionally
They don't exist on DCE6+
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | avivotool.c | 18 |
1 files 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); |