projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6be7f53
)
ALSA: hda - Set codec->single_adc_amp flag for Realtek codecs
author
Takashi Iwai
<tiwai@suse.de>
Mon, 17 Dec 2012 19:03:15 +0000
(20:03 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 17 Dec 2012 19:03:15 +0000
(20:03 +0100)
It turned out that Realtek codecs (ALC260, etc) with input amps in
audio-input widgets don't handle the multiple individual input amps.
Thus we need to set codec->single_adc_amp flag for them in general.
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 7743775f6abb34b3babf5a1bf44c3b1f5ef308cc..16d210a7f158e250cdb88b40a3e5160b6478527f 100644
(file)
--- a/
sound/pci/hda/patch_realtek.c
+++ b/
sound/pci/hda/patch_realtek.c
@@
-4373,6
+4373,7
@@
static int alc_alloc_spec(struct hda_codec *codec, hda_nid_t mixer_nid)
if (!spec)
return -ENOMEM;
codec->spec = spec;
+ codec->single_adc_amp = 1;
spec->mixer_nid = mixer_nid;
snd_hda_gen_init(&spec->gen);
snd_array_init(&spec->kctls, sizeof(struct snd_kcontrol_new), 32);