diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2011-12-23 12:27:45 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-01-03 15:27:03 +0000 |
commit | ca06600afdc8b8b28a1c06edb74dc59e1cad76aa (patch) | |
tree | 373b9fb82ebafeed416930db8ab0e41fbfafca67 | |
parent | 1e2863cbd861b86be7864e945cfc1a10885eaaa4 (diff) |
avivotool: dump current audio state on Evergreen
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | avivotool.c | 5 | ||||
-rw-r--r-- | radeon_reg.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/avivotool.c b/avivotool.c index b8e3c5e..f853090 100644 --- a/avivotool.c +++ b/avivotool.c @@ -1094,6 +1094,11 @@ void eg_cmd_regs(const char *type) 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); } } diff --git a/radeon_reg.h b/radeon_reg.h index f564714..84c0f0b 100644 --- a/radeon_reg.h +++ b/radeon_reg.h @@ -3083,6 +3083,10 @@ #define EVERGREEN_AUDIO_ENABLE 0x5e78 #define EVERGREEN_AUDIO_VENDOR_ID 0x5ec0 +#define EVERGREEN_AUDIO_RATE_BPS_CHANNEL 0x5f00 +#define EVERGREEN_AUDIO_PLAYING 0x5f04 +#define EVERGREEN_AUDIO_CAT_STATUS 0x5f18 + /* GRPH blocks at 0x6800, 0x7400, 0x10000, 0x10c00, 0x11800, 0x12400 */ #define EVERGREEN_GRPH_ENABLE 0x6800 #define EVERGREEN_GRPH_CONTROL 0x6804 |