]> git.ipfire.org Git - thirdparty/linux.git/commit - sound/pci/hda/patch_realtek.c
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)
commit1c4a54b4513c175ba1a56d0aba8d9cf8f231d407
treed381d723e9237955fe8b016fac5e44c508cd0514
parent140547ef4ee9ad5f9ee9e6546f6027e8737c4149
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