Skip to content

Commit

Permalink
ALSA: hda - Fix switching between dmic and mic using the same mux on …
Browse files Browse the repository at this point in the history
…IDT/STAC

Fix bug in switching between dmic and mic when both use the same mux.

Signed-off-by: Vitaliy Kulikov  <Vitaliy.Kulikov@idt.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Vitaliy Kulikov authored and Takashi Iwai committed Sep 25, 2010
1 parent fec88de commit f41cc2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -3481,8 +3481,10 @@ static int stac92xx_auto_create_dmic_input_ctls(struct hda_codec *codec,
return err;
}

if (snd_hda_get_bool_hint(codec, "separate_dmux") != 1)
if (snd_hda_get_bool_hint(codec, "separate_dmux") != 1) {
snd_hda_add_imux_item(imux, label, index, NULL);
spec->num_analog_muxes++;
}
}

return 0;
Expand Down

0 comments on commit f41cc2a

Please sign in to comment.