projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74dc890
)
ALSA: hda - Apply mario fixup only once
author
Takashi Iwai
<tiwai@suse.de>
Thu, 13 Jan 2011 13:36:37 +0000
(14:36 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 13 Jan 2011 13:37:14 +0000
(14:37 +0100)
The amp-override is necessary only once at initialization time.
Also fixed a coding style issue.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/patch_realtek.c
b/sound/pci/hda/patch_realtek.c
index 738d5d8962d016b4209a77326afb534d43c436f1..f13920e53847b7d02c25583c5770adb414f4021d 100644
(file)
--- a/
sound/pci/hda/patch_realtek.c
+++ b/
sound/pci/hda/patch_realtek.c
@@
-19366,7
+19366,10
@@
static void alc662_auto_init(struct hda_codec *codec)
}
static void alc272_fixup_mario(struct hda_codec *codec,
- const struct alc_fixup *fix, int pre_init) {
+ const struct alc_fixup *fix, int pre_init)
+{
+ if (!pre_init)
+ return;
if (snd_hda_override_amp_caps(codec, 0x2, HDA_OUTPUT,
(0x3b << AC_AMPCAP_OFFSET_SHIFT) |
(0x3b << AC_AMPCAP_NUM_STEPS_SHIFT) |