diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_intelhdmi.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sound/pci/hda/patch_intelhdmi.c b/sound/pci/hda/patch_intelhdmi.c index e10fa1e3dc9b..4a48011ae35b 100644 --- a/sound/pci/hda/patch_intelhdmi.c +++ b/sound/pci/hda/patch_intelhdmi.c | |||
@@ -444,14 +444,16 @@ static int hdmi_setup_channel_allocation(struct hda_codec *codec, | |||
444 | (spk_mask & channel_allocations[i].spk_mask) == | 444 | (spk_mask & channel_allocations[i].spk_mask) == |
445 | channel_allocations[i].spk_mask) { | 445 | channel_allocations[i].spk_mask) { |
446 | ai->CA = channel_allocations[i].ca_index; | 446 | ai->CA = channel_allocations[i].ca_index; |
447 | return 0; | 447 | break; |
448 | } | 448 | } |
449 | } | 449 | } |
450 | 450 | ||
451 | snd_print_channel_allocation(eld->spk_alloc, buf, sizeof(buf)); | 451 | snd_print_channel_allocation(eld->spk_alloc, buf, sizeof(buf)); |
452 | snd_printd(KERN_INFO "failed to setup channel allocation: %d of %s\n", | 452 | snd_printdd(KERN_INFO |
453 | channels, buf); | 453 | "HDMI: select CA 0x%x for %d-channel allocation: %s\n", |
454 | return -1; | 454 | ai->CA, channels, buf); |
455 | |||
456 | return ai->CA; | ||
455 | } | 457 | } |
456 | 458 | ||
457 | static void hdmi_setup_channel_mapping(struct hda_codec *codec, | 459 | static void hdmi_setup_channel_mapping(struct hda_codec *codec, |