Please Note This patchset has not been tested yet on any Hardware platform. i could only confirm there's no compile error. :) I test previous single patch on the Yamaha A/V receiver which works well, the test results was also confirmed by some guys from XBMC forum.
The idea of this patch comes from Anssi, Big credit to him at first!
Any comments are appreciated!
Changelog: * do not touch channel_allocation priority order, use new api to get correct channels number * use spdif->status to check audio type, pcm or non-pcm * create new non_pcm_mapping[] for non_pcm audio in seperate block * add non_pcm hdmi_spec_per_cvt to remember previous audio type, used to determine whether need a channel mapping update during the pcm/non-pcm stream switch with same channel number.
Wang Xingchao (3): ALSA: hdmi - fix channel_allocation array wrong order ALSA: HDMI - Enable HBR feature on Intel chips ALSA: HDMI - Setup channel mapping for non_pcm audio
sound/pci/hda/patch_hdmi.c | 56 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 51 insertions(+), 5 deletions(-)