diff options
author | Mengdong Lin <mengdong.lin@intel.com> | 2014-03-13 16:38:02 -0400 |
---|---|---|
committer | Ben Widawsky <benjamin.widawsky@intel.com> | 2014-03-14 23:07:07 -0700 |
commit | 8fe0c50871b0af87c5f41a6b6d3b31b9bffe9f25 (patch) | |
tree | 11345650553f9ab441ed845cc4c18d9c06b3c045 /tools | |
parent | 374290e4300768190fee5ad742f1f1beb036de4e (diff) |
intel_audio_dump: fix CTS/M value index
This patch fixes the reversed CTS/M value index when dumping the
'audio M/CTS programing enable' register.
Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
Reviewed-by: Haihao Xiang <haihao.xiang@intel.com>
Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/intel_audio_dump.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c index 46eebdb7..3ed29180 100644 --- a/tools/intel_audio_dump.c +++ b/tools/intel_audio_dump.c @@ -97,6 +97,11 @@ static int get_num_pipes(void) return num_pipes; } +static const char * const cts_m_value_index[] = { + [0] = "CTS", + [1] = "M", +}; + static const char * const pixel_clock[] = { [0] = "25.2 / 1.001 MHz", [1] = "25.2 MHz", @@ -1408,7 +1413,8 @@ static void dump_aud_m_cts_enable(int index) printf("%s CTS_programming\t\t\t%#lx\n", prefix, BITS(dword, 19, 0)); printf("%s Enable_CTS_or_M_programming\t%lu\n", prefix, BIT(dword, 20)); - printf("%s CTS_M value Index\t\t\t%s\n", prefix, BIT(dword, 21) ? "CTS" : "M"); + printf("%s CTS_M value Index\t\t\t[0x%lx] %s\n",prefix, BIT(dword, 21), + OPNAME(cts_m_value_index, BIT(dword, 21))); } static void dump_aud_power_state(void) |