* mic bias for tlv320aic3x? @ 2012-11-27 17:15 Peter Meerwald 2012-11-27 17:53 ` Mark Brown 0 siblings, 1 reply; 4+ messages in thread From: Peter Meerwald @ 2012-11-27 17:15 UTC (permalink / raw) To: alsa-devel Hello, I'd like to enable 2V mic bias on the tlv320aic3x (which offers 2V, 2.5V, AVDD, off) -- I'd have expected some control in alsamixer to so, but there is none what is the proper way to implement mic bias selection? thanks, regards, p. -- Peter Meerwald +43-664-2444418 (mobile) ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mic bias for tlv320aic3x? 2012-11-27 17:15 mic bias for tlv320aic3x? Peter Meerwald @ 2012-11-27 17:53 ` Mark Brown 2012-11-28 9:28 ` Peter Meerwald 0 siblings, 1 reply; 4+ messages in thread From: Mark Brown @ 2012-11-27 17:53 UTC (permalink / raw) To: Peter Meerwald; +Cc: alsa-devel On Tue, Nov 27, 2012 at 06:15:27PM +0100, Peter Meerwald wrote: > I'd like to enable 2V mic bias on the tlv320aic3x (which offers 2V, 2.5V, > AVDD, off) -- I'd have expected some control in alsamixer to so, but there > is none > what is the proper way to implement mic bias selection? As platform data or possibly via an API offered to the machine driver, we've yet to see any use case where it's something that should be varied directly from the application layer. Always CC maintainers... ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mic bias for tlv320aic3x? 2012-11-27 17:53 ` Mark Brown @ 2012-11-28 9:28 ` Peter Meerwald 2012-11-28 9:35 ` Mark Brown 0 siblings, 1 reply; 4+ messages in thread From: Peter Meerwald @ 2012-11-28 9:28 UTC (permalink / raw) To: Mark Brown; +Cc: alsa-devel Hello, > > I'd like to enable 2V mic bias on the tlv320aic3x (which offers 2V, 2.5V, > > AVDD, off) -- I'd have expected some control in alsamixer to so, but there > > is none > > what is the proper way to implement mic bias selection? > As platform data or possibly via an API offered to the machine driver, > we've yet to see any use case where it's something that should be varied > directly from the application layer. I can see the platform data way I'd be happy with an API to control from the machine driver -- is snd_soc_dapm_enable_pin() to be used for this + some SND_SOC_DAPM_MIC? I am missing the overall strategy how this is supposed to work is there a good reference driver? per default, Mic Bias is off there already are some mic bias definitions in tlv320aic3x: /* Mic Bias */ SND_SOC_DAPM_REG(snd_soc_dapm_micbias, "Mic Bias 2V", MICBIAS_CTRL, 6, 3, 1, 0), SND_SOC_DAPM_REG(snd_soc_dapm_micbias, "Mic Bias 2.5V", MICBIAS_CTRL, 6, 3, 2, 0), SND_SOC_DAPM_REG(snd_soc_dapm_micbias, "Mic Bias AVDD", MICBIAS_CTRL, 6, 3, 3, 0), however, those are not referenced anywhere and it is not clear how to access those from the machine driver as for the use case: user wants to connect either a microphone or line-in to a connector, hence mic bias selection is necessary -- this doesn't sound so unusual thanks, regards, p. -- Peter Meerwald +43-664-2444418 (mobile) ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mic bias for tlv320aic3x? 2012-11-28 9:28 ` Peter Meerwald @ 2012-11-28 9:35 ` Mark Brown 0 siblings, 0 replies; 4+ messages in thread From: Mark Brown @ 2012-11-28 9:35 UTC (permalink / raw) To: Peter Meerwald; +Cc: alsa-devel [-- Attachment #1.1: Type: text/plain, Size: 1308 bytes --] On Wed, Nov 28, 2012 at 10:28:53AM +0100, Peter Meerwald wrote: > I am missing the overall strategy how this is supposed to work > is there a good reference driver? Currently nobody is implementing this dynamically, it's always configured via platform data. > per default, Mic Bias is off Well, of course... it's just a normal thing in DAPM. > there already are some mic bias definitions in tlv320aic3x: > /* Mic Bias */ > SND_SOC_DAPM_REG(snd_soc_dapm_micbias, "Mic Bias 2V", > MICBIAS_CTRL, 6, 3, 1, 0), > SND_SOC_DAPM_REG(snd_soc_dapm_micbias, "Mic Bias 2.5V", > MICBIAS_CTRL, 6, 3, 2, 0), > SND_SOC_DAPM_REG(snd_soc_dapm_micbias, "Mic Bias AVDD", > MICBIAS_CTRL, 6, 3, 3, 0), > however, those are not referenced anywhere and it is not clear how to > access those from the machine driver I'm not clear what the above is intended to do but I think you're supposed to pick the MICBIAS you want to use in your board when you're hooking it up. > as for the use case: user wants to connect either a microphone or line-in > to a connector, hence mic bias selection is necessary -- this doesn't > sound so unusual Normally this sort of thing would be done automatically by the kernel detecting what's plugged in, not manually by an application. [-- Attachment #1.2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] [-- Attachment #2: Type: text/plain, Size: 0 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-28 9:35 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-11-27 17:15 mic bias for tlv320aic3x? Peter Meerwald 2012-11-27 17:53 ` Mark Brown 2012-11-28 9:28 ` Peter Meerwald 2012-11-28 9:35 ` Mark Brown
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.