]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/realtek - Finer tuning of auto-parser with badness evaluation
authorTakashi Iwai <tiwai@suse.de>
Thu, 16 Feb 2012 15:45:59 +0000 (16:45 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 16 Feb 2012 17:08:39 +0000 (18:08 +0100)
commit33b1065a28feb46e4172a685aaba48493e7bf429
treed381d723e9237955fe8b016fac5e44c508cd0514
parent64c26b73b6b83e4aaf92746c8a45faa013472bc3
ALSA: hda/realtek - Finer tuning of auto-parser with badness evaluation

This patch improves the Realtek auto-parser for assigning the DACs and
mixers in more suitable ways by evaluating the assignment with "badness"
calculations.

When assigning a DAC hinders the assignment of individual DACs for
other pins, some badness point is given.  Similarly, when it blocks the
assignment of unique mixer controls, another badness point is added.
Also, if no DAC, even shared DAC, can be assigned, more badness is
pointed.  Finally, comparing the accumulated badness, the best route is
chosen among several trials.

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