]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Simplify the multi-io assignment with multi speakers
authorTakashi Iwai <tiwai@suse.de>
Fri, 4 Jan 2013 13:50:04 +0000 (14:50 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:43:33 +0000 (08:43 +0100)
commit47466d13bda2219cc01e3dc33c4f540cf38d5076
tree189b5ce62c3b8e783acbed513e64a4bea8d86ac9
parent360f0f12d22eae75eab136c7fa7d685f9c6288c5
ALSA: hda - Simplify the multi-io assignment with multi speakers

When speakers are chosen as the the primary output during evaluation,
we did some tricks to assign the possible multi-io jacks with a
certain offset value to multi_out dacs.  This was a workaround for the
case with multiple speakers like Acer Aspire.  But this is quite ugly
at the same time and the resultant code is hard to understand.  More
badly, it works wrongly for 2.1 speakers like Apple iMac91.

In this patch, instead of fiddling with the offset to multi_out dacs,
simply add a certain badness number if headphone(s) + multi-ios are
possible.  This simplify the code a bit, and it's more robust.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c