ALSA: intelhdmi - add channel mapping for typical configurations
authorWu Fengguang <fengguang.wu@intel.com>
Fri, 11 Dec 2009 04:28:36 +0000 (12:28 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 11 Dec 2009 06:56:18 +0000 (07:56 +0100)
commitb14224bb74e19072c34617c501bceab94ebf579f
tree75334c097978cab0d6fdee1eb0aca42b486930df
parent1ffc69a6e86aa9458046d1719957e091c8e95f7a
ALSA: intelhdmi - add channel mapping for typical configurations

IbexPeak is the first Intel HDMI audio codec to support channel mapping.

Currently the outstanding problem is, the HDMI channel order do not
agree with that of ALSA.  This patch presents workaround for some
typical use cases. It gives priority to the typical ALSA surround
configurations, and defines channel mapping for them.

We may need better kernel+userspace interactive channel mapping scheme.
For example, in current scheme if user plays with the surround50 device,
the kernel is unaware of this and will still select the surround41
channel allocation and channel mapping..

Thanks to Marcin for offering good tips!

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_intelhdmi.c