From: Takashi Iwai Subject: Re: [RFC] Channel mapping API (take 2) Date: Wed, 05 Sep 2012 12:34:18 +0200 Message-ID: References: <50470E18.5000404@canonical.com> 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 B747E26533E for ; Wed, 5 Sep 2012 12:34:18 +0200 (CEST) In-Reply-To: <50470E18.5000404@canonical.com> 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: David Henningsson Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 05 Sep 2012 10:32:24 +0200, David Henningsson wrote: > > On 09/04/2012 05:47 PM, Takashi Iwai wrote: > > The phase inverted channel has this bit: > > #define SNDRV_CHMAP_PHASE_INVERSE (0x01 << 16) > > Hmm. On second thought, as mics are plugged in and unplugged during > recording, the channel map will change. (E g, changing a digital mic > with phase inverse, to a stereo line in) > > Will we also need a notify callback in alsa-lib to know changes in the > channel map? It's possible to implement (just a call of snd_ctl_notify()), but I don't know whether this is expected by the user-space. Obviously the configuration isn't expected to be changed dynamically without hw_params change. So basically ditto for the channel map. I guess the phase inverse thing makes sense once after we implement separate PCM streams for d-mic. Other than that, dynamic switching the channel map doesn't sound like a helpful scenario. Takashi