]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.drivers/alsa-post-ga-hda-stac9872-inputsrc-fix
Fix oinkmaster patch.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.drivers / alsa-post-ga-hda-stac9872-inputsrc-fix
CommitLineData
82094b55
AF
1From: Takashi Iwai <tiwai@suse.de>
2Subject: ALSA: Fix Oops with STAC9872 codec
3Patch-mainline:
4References: bnc#535497
5
6Fix Oops with STAC9872 codec due to the missing initialization of
7spec->num_analog_muxes.
8
9Signed-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;