]> 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)
commita0cc6817ae459718720a877ff0d33ba6e89e30cb
treed381d723e9237955fe8b016fac5e44c508cd0514
parent515521f6488c3e7e2d3ef8ee929e8e367577e503
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