ALSA: hda - Add amp initialization for realtek auto mode
authorTakashi Iwai <tiwai@suse.de>
Wed, 22 Apr 2009 14:31:35 +0000 (16:31 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 27 Apr 2009 16:00:30 +0000 (18:00 +0200)
commit4a79ba34cada6a5a4ee86ed53aa8a73ba1e6fc51
tree868cafef688fb7a2d3969f648416667a990021b6
parent3b1db01990f0e533d1ed548dc1796eb84beddc20
ALSA: hda - Add amp initialization for realtek auto mode

In the realtek auto-probing mode, the initialization of amp with
some magic COEF or EAPD verbs is applied only when the codec SSID
has valid values to satisfy the realtek's definition.
However, many devices don't provide in that way, thus the device
doesn't work as is.

This patch allows the same initialization code even if the SSID
doesn't pass the bit test.  Also, alc_subsystem_id() is changed
just to check and define the type, so that it's called in the
parser, instead of the initializer.

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