ALSA: hda - report selected CA index for Audio InfoFrame
Print some CA selecting info, which could be valuable for debugging when something goes wrong. Signed-off-by: Wu Fengguang <wfg@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
b83923a393
commit
cc02b83c90
|
@ -444,14 +444,16 @@ static int hdmi_setup_channel_allocation(struct hda_codec *codec,
|
||||||
(spk_mask & channel_allocations[i].spk_mask) ==
|
(spk_mask & channel_allocations[i].spk_mask) ==
|
||||||
channel_allocations[i].spk_mask) {
|
channel_allocations[i].spk_mask) {
|
||||||
ai->CA = channel_allocations[i].ca_index;
|
ai->CA = channel_allocations[i].ca_index;
|
||||||
return 0;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
snd_print_channel_allocation(eld->spk_alloc, buf, sizeof(buf));
|
snd_print_channel_allocation(eld->spk_alloc, buf, sizeof(buf));
|
||||||
snd_printd(KERN_INFO "failed to setup channel allocation: %d of %s\n",
|
snd_printdd(KERN_INFO
|
||||||
channels, buf);
|
"HDMI: select CA 0x%x for %d-channel allocation: %s\n",
|
||||||
return -1;
|
ai->CA, channels, buf);
|
||||||
|
|
||||||
|
return ai->CA;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hdmi_setup_channel_mapping(struct hda_codec *codec,
|
static void hdmi_setup_channel_mapping(struct hda_codec *codec,
|
||||||
|
|
Loading…
Reference in New Issue