From: Ramesh Babu K V <[email protected]> Earlier, audio capturing is always forced to AMIC for the first capture after power up. This patch fixes and captures audio as per input device selection made through alsa mixer.
Signed-off-by: Ramesh Babu K V <[email protected]> --- sound/pci/sst/intelmid_msic_control.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/sound/pci/sst/intelmid_msic_control.c b/sound/pci/sst/intelmid_msic_control.c index 912d260..95bc36c 100644 --- a/sound/pci/sst/intelmid_msic_control.c +++ b/sound/pci/sst/intelmid_msic_control.c @@ -664,6 +664,11 @@ static int msic_set_selected_input_dev(u8 value) int retval = 0; pr_debug("sst: msic_set_selected_input_dev:%d\n", value); + if (snd_msic_ops.card_status == SND_CARD_UN_INIT) { + retval = msic_init_card(); + if (retval) + return retval; + } snd_msic_ops.input_dev_id = value; switch (value) { case AMIC: -- 1.6.2.5 _______________________________________________ MeeGo-kernel mailing list [email protected] http://lists.meego.com/listinfo/meego-kernel
