]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.39/patches.drivers/alsa-post-ga-hda-stac9872-inputsrc-fix
Imported linux-2.6.27.39 suse/xen patches.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.drivers / alsa-post-ga-hda-stac9872-inputsrc-fix
1 From: Takashi Iwai <tiwai@suse.de>
2 Subject: ALSA: Fix Oops with STAC9872 codec
3 Patch-mainline:
4 References: bnc#535497
5
6 Fix Oops with STAC9872 codec due to the missing initialization of
7 spec->num_analog_muxes.
8
9 Signed-off-by: Takashi Iwai <tiwai@suse.de>
10
11 ---
12 sound/pci/hda/patch_sigmatel.c | 2 ++
13 1 file changed, 2 insertions(+)
14
15 --- a/sound/pci/hda/patch_sigmatel.c
16 +++ b/sound/pci/hda/patch_sigmatel.c
17 @@ -5925,6 +5925,7 @@
18 spec->adc_nids = vaio_adcs;
19 spec->num_pwrs = 0;
20 spec->input_mux = &vaio_mux;
21 + spec->num_analog_muxes = vaio_mux.num_items;
22 spec->mux_nids = vaio_mux_nids;
23 codec->patch_ops = stac9872_vaio_patch_ops;
24 break;
25 @@ -5940,6 +5941,7 @@
26 spec->num_pwrs = 0;
27 spec->adc_nids = vaio_adcs;
28 spec->input_mux = &vaio_mux;
29 + spec->num_analog_muxes = vaio_mux.num_items;
30 spec->mux_nids = vaio_mux_nids;
31 codec->patch_ops = stac9872_patch_ops;
32 break;