diff options
author | Wu Fengguang <wfg@linux.intel.com> | 2008-11-19 02:14:02 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-11-19 03:42:30 -0500 |
commit | d39b4352f2356bde9d4dae8591d4c8022360922f (patch) | |
tree | 366adb79cec9aad126037d113686948c0b7696ac /sound/pci/hda/hda_eld.c | |
parent | 06f69d17a90ced7d74ff12ce69b7b101aed4ffd9 (diff) |
ALSA: hda: make global snd_print_pcm_bits()
Introduce a global function snd_print_pcm_bits() and use it in the ELD code.
Signed-off-by: Wu Fengguang <wfg@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_eld.c')
-rw-r--r-- | sound/pci/hda/hda_eld.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_eld.c b/sound/pci/hda/hda_eld.c index 75e9a4014f4e..8e575bb56ff7 100644 --- a/sound/pci/hda/hda_eld.c +++ b/sound/pci/hda/hda_eld.c | |||
@@ -455,7 +455,7 @@ void snd_hdmi_show_eld(struct hdmi_eld *e) | |||
455 | static void hdmi_print_sad_info(int i, struct cea_sad *a, | 455 | static void hdmi_print_sad_info(int i, struct cea_sad *a, |
456 | struct snd_info_buffer *buffer) | 456 | struct snd_info_buffer *buffer) |
457 | { | 457 | { |
458 | char buf[80]; | 458 | char buf[SND_PRINT_RATES_ADVISED_BUFSIZE]; |
459 | 459 | ||
460 | snd_iprintf(buffer, "sad%d_coding_type\t[0x%x] %s\n", | 460 | snd_iprintf(buffer, "sad%d_coding_type\t[0x%x] %s\n", |
461 | i, a->format, cea_audio_coding_type_names[a->format]); | 461 | i, a->format, cea_audio_coding_type_names[a->format]); |
@@ -464,9 +464,11 @@ static void hdmi_print_sad_info(int i, struct cea_sad *a, | |||
464 | snd_print_pcm_rates(a->rates, buf, sizeof(buf)); | 464 | snd_print_pcm_rates(a->rates, buf, sizeof(buf)); |
465 | snd_iprintf(buffer, "sad%d_rates\t\t[0x%x]%s\n", i, a->rates, buf); | 465 | snd_iprintf(buffer, "sad%d_rates\t\t[0x%x]%s\n", i, a->rates, buf); |
466 | 466 | ||
467 | if (a->format == AUDIO_CODING_TYPE_LPCM) | 467 | if (a->format == AUDIO_CODING_TYPE_LPCM) { |
468 | snd_iprintf(buffer, "sad%d_bits\t\t0x%x\n", | 468 | snd_print_pcm_bits(a->sample_bits, buf, sizeof(buf)); |
469 | i, a->sample_bits); | 469 | snd_iprintf(buffer, "sad%d_bits\t\t[0x%x]%s\n", |
470 | i, a->sample_bits, buf); | ||
471 | } | ||
470 | 472 | ||
471 | if (a->max_bitrate) | 473 | if (a->max_bitrate) |
472 | snd_iprintf(buffer, "sad%d_max_bitrate\t%d\n", | 474 | snd_iprintf(buffer, "sad%d_max_bitrate\t%d\n", |