aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-01-13 14:40:43 +0100
committerTakashi Iwai <tiwai@suse.de>2011-01-13 14:44:37 +0100
commit9fb1ef25f4d31f07cdaf7c6075b40bbcb00c1f92 (patch)
tree1768a4e7c1576edf55420dd3a6f65f5f989b7152 /sound/pci
parent6fc398cb306b0441436c93d6ddead3109b99f884 (diff)
downloadkernel_samsung_smdk4412-9fb1ef25f4d31f07cdaf7c6075b40bbcb00c1f92.zip
kernel_samsung_smdk4412-9fb1ef25f4d31f07cdaf7c6075b40bbcb00c1f92.tar.gz
kernel_samsung_smdk4412-9fb1ef25f4d31f07cdaf7c6075b40bbcb00c1f92.tar.bz2
ALSA: hda - Apply Sony VAIO hweq fixup only once
This should be applied also only once as a part of the initialization. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/patch_realtek.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index f13920e..98b4b2e 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -14814,6 +14814,8 @@ static void alc269_fixup_hweq(struct hda_codec *codec,
{
int coef;
+ if (pre_init)
+ return;
coef = alc_read_coef_idx(codec, 0x1e);
alc_write_coef_idx(codec, 0x1e, coef | 0x80);
}