]>
Commit | Line | Data |
---|---|---|
82094b55 AF |
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; |