From: Takashi Iwai Subject: Re: [PATCH 04/20] ALSA: hda - Allow aamix as a capture source Date: Mon, 11 Feb 2013 14:01:43 +0100 Message-ID: References: <1358247947-13992-1-git-send-email-tiwai@suse.de> <1358247947-13992-5-git-send-email-tiwai@suse.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 7D2622616DB for ; Mon, 11 Feb 2013 14:01:43 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Raymond Yau Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Mon, 11 Feb 2013 20:53:13 +0800, Raymond Yau wrote: > > 2013/1/15 Takashi Iwai : > > 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