diff options
author | Wu Fengguang <wfg@linux.intel.com> | 2008-11-19 02:14:01 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-11-19 03:42:21 -0500 |
commit | 06f69d17a90ced7d74ff12ce69b7b101aed4ffd9 (patch) | |
tree | 35d1d83b7ab4559842fab31a4173a661dfad7845 /sound/pci/hda/hda_eld.c | |
parent | 5b87ebb7a79455358c1910f2896112ac0fa0d0fa (diff) |
ALSA: hda: minor output message cleanups
Some minor user visible message cleanups.
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 | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/sound/pci/hda/hda_eld.c b/sound/pci/hda/hda_eld.c index 1b3ec1e7f268..75e9a4014f4e 100644 --- a/sound/pci/hda/hda_eld.c +++ b/sound/pci/hda/hda_eld.c | |||
@@ -118,7 +118,7 @@ static char *cea_audio_coding_type_names[] = { | |||
118 | /* 6 */ "AAC-LC", | 118 | /* 6 */ "AAC-LC", |
119 | /* 7 */ "DTS", | 119 | /* 7 */ "DTS", |
120 | /* 8 */ "ATRAC", | 120 | /* 8 */ "ATRAC", |
121 | /* 9 */ "DSD (1-bit audio)", | 121 | /* 9 */ "DSD (One Bit Audio)", |
122 | /* 10 */ "E-AC-3/DD+ (Dolby Digital Plus)", | 122 | /* 10 */ "E-AC-3/DD+ (Dolby Digital Plus)", |
123 | /* 11 */ "DTS-HD", | 123 | /* 11 */ "DTS-HD", |
124 | /* 12 */ "MLP (Dolby TrueHD)", | 124 | /* 12 */ "MLP (Dolby TrueHD)", |
@@ -395,7 +395,7 @@ static void hdmi_show_short_audio_desc(struct cea_sad *a) | |||
395 | printk(KERN_INFO "channels: %d\n", a->channels); | 395 | printk(KERN_INFO "channels: %d\n", a->channels); |
396 | 396 | ||
397 | snd_print_pcm_rates(a->rates, buf, sizeof(buf)); | 397 | snd_print_pcm_rates(a->rates, buf, sizeof(buf)); |
398 | printk(KERN_INFO "sampling frequencies: %s\n", buf); | 398 | printk(KERN_INFO "sampling rates: %s\n", buf); |
399 | 399 | ||
400 | if (a->format == AUDIO_CODING_TYPE_LPCM) | 400 | if (a->format == AUDIO_CODING_TYPE_LPCM) |
401 | printk(KERN_INFO "sample bits: 0x%x\n", a->sample_bits); | 401 | printk(KERN_INFO "sample bits: 0x%x\n", a->sample_bits); |
@@ -413,11 +413,9 @@ void snd_print_channel_allocation(int spk_alloc, char *buf, int buflen) | |||
413 | 413 | ||
414 | for (i = 0, j = 0; i < ARRAY_SIZE(cea_speaker_allocation_names); i++) { | 414 | for (i = 0, j = 0; i < ARRAY_SIZE(cea_speaker_allocation_names); i++) { |
415 | if (spk_alloc & (1 << i)) | 415 | if (spk_alloc & (1 << i)) |
416 | j += snprintf(buf + j, buflen - j, "%s ", | 416 | j += snprintf(buf + j, buflen - j, " %s", |
417 | cea_speaker_allocation_names[i]); | 417 | cea_speaker_allocation_names[i]); |
418 | } | 418 | } |
419 | if (j) | ||
420 | j--; /* skip last space */ | ||
421 | buf[j] = '\0'; /* necessary when j == 0 */ | 419 | buf[j] = '\0'; /* necessary when j == 0 */ |
422 | } | 420 | } |
423 | 421 | ||
@@ -464,11 +462,10 @@ static void hdmi_print_sad_info(int i, struct cea_sad *a, | |||
464 | snd_iprintf(buffer, "sad%d_channels\t\t%d\n", i, a->channels); | 462 | snd_iprintf(buffer, "sad%d_channels\t\t%d\n", i, a->channels); |
465 | 463 | ||
466 | snd_print_pcm_rates(a->rates, buf, sizeof(buf)); | 464 | snd_print_pcm_rates(a->rates, buf, sizeof(buf)); |
467 | snd_iprintf(buffer, "sad%d_sampling_rates\t[0x%x] %s\n", | 465 | snd_iprintf(buffer, "sad%d_rates\t\t[0x%x]%s\n", i, a->rates, buf); |
468 | i, a->rates, buf); | ||
469 | 466 | ||
470 | if (a->format == AUDIO_CODING_TYPE_LPCM) | 467 | if (a->format == AUDIO_CODING_TYPE_LPCM) |
471 | snd_iprintf(buffer, "sad%d_sample_bits\t0x%x\n", | 468 | snd_iprintf(buffer, "sad%d_bits\t\t0x%x\n", |
472 | i, a->sample_bits); | 469 | i, a->sample_bits); |
473 | 470 | ||
474 | if (a->max_bitrate) | 471 | if (a->max_bitrate) |
@@ -501,7 +498,7 @@ static void hdmi_print_eld_info(struct snd_info_entry *entry, | |||
501 | snd_iprintf(buffer, "audio_sync_delay\t%d\n", e->aud_synch_delay); | 498 | snd_iprintf(buffer, "audio_sync_delay\t%d\n", e->aud_synch_delay); |
502 | 499 | ||
503 | snd_print_channel_allocation(e->spk_alloc, buf, sizeof(buf)); | 500 | snd_print_channel_allocation(e->spk_alloc, buf, sizeof(buf)); |
504 | snd_iprintf(buffer, "speakers\t\t[0x%x] %s\n", e->spk_alloc, buf); | 501 | snd_iprintf(buffer, "speakers\t\t[0x%x]%s\n", e->spk_alloc, buf); |
505 | 502 | ||
506 | snd_iprintf(buffer, "sad_count\t\t%d\n", e->sad_count); | 503 | snd_iprintf(buffer, "sad_count\t\t%d\n", e->sad_count); |
507 | 504 | ||