[alsa-devel] [PATCH 04/20] ALSA: hda - Allow aamix as a capture source

Takashi Iwai tiwai at suse.de
Mon Feb 11 14:01:43 CET 2013


At Mon, 11 Feb 2013 20:53:13 +0800,
Raymond Yau wrote:
> 
> 2013/1/15 Takashi Iwai <tiwai at suse.de>:
> > Since some codecs can choose the aamix as a capture source, we should
> > support it as well.  When spec->add_stereo_mix_input flag is set, the
> > parser checks the availability of aamix as the input source, and adds
> > the paths automatically when possible.
> 
> > +       if (mixer && spec->add_stereo_mix_input) {
> > +               err = parse_capture_source(codec, mixer, num_adcs,
> > +                                          "Stereo Mix", 0);
> > +               if (err < 0)
> > +                       return err;
> >         }
> 
> 
> Can this feature enabled automatically if auto mic is not enabled ?
> 
> since this feature cannot be enabled when auto mic is enabled
> 
> -       if (mixer && spec->add_stereo_mix_input) {
> +       if (mixer && !spec->auto_mic) {

Yes, I thought of that, but currently it's a bit complicated because
the automic check is done after adding all imux items.  So I left it
as is for now.


Takashi


More information about the Alsa-devel mailing list