projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1682c81
)
ALSA: hda - Fix initialization of spec->automute_lines in patch_realtek.c
author
Takashi Iwai
<tiwai@suse.de>
Tue, 17 May 2011 08:04:08 +0000
(10:04 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 17 May 2011 08:04:08 +0000
(10:04 +0200)
spec->automute_lines shouldn't be set unless the line-detection is
available.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c
patch
|
blob
|
history
diff --git
a/sound/pci/hda/patch_realtek.c
b/sound/pci/hda/patch_realtek.c
index 473ddc72b5cd1e2e9f1c3dc7f072c869e3ee1512..1f00cdbf23415d78059b6d54bfff70e51ce5e9a6 100644
(file)
--- a/
sound/pci/hda/patch_realtek.c
+++ b/
sound/pci/hda/patch_realtek.c
@@
-1584,7
+1584,7
@@
static void alc_init_auto_hp(struct hda_codec *codec)
AC_USRSP_EN | ALC880_FRONT_EVENT);
spec->detect_line = 1;
}
- spec->automute_lines =
1
;
+ spec->automute_lines =
spec->detect_line
;
}
if (spec->automute) {