ALSA: HDA VIA: Rewrite via_independent_hp_put
authorLydia Wang <lydiawang@viatech.com.cn>
Sat, 10 Oct 2009 11:07:47 +0000 (19:07 +0800)
committerTakashi Iwai <tiwai@suse.de>
Sun, 11 Oct 2009 15:56:42 +0000 (17:56 +0200)
commitcdc1784d49258198df600fbc1d37c07d7eee5ed6
tree8cbcc339c174cb0ee1776e2aff45c1fedcfd522d
parent0713efebfa1a1878feeeb17cbadc3d2d2c9e9ed2
ALSA: HDA VIA: Rewrite via_independent_hp_put

Use hp_independent_mode_index to store hp index, and simplify function
via_independent_hp_put with it.

Signed-off-by: Lydia Wang <lydiawang@viatech.com.cn>
Signed-off-by: Logan Li <loganli@viatech.com.cn>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_via.c