Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1399921
| From | John Keeping <john@metanate.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 5/9] ASoC: es8328: Use more suitable definition for mic bias |
| Date | 2016-05-12 13:10 +0200 |
| Message-ID | <rxWFb-4nU-9@gated-at.bofh.it> (permalink) |
| References | <rwRxT-4vq-3@gated-at.bofh.it> <rwRxU-4vq-31@gated-at.bofh.it> <rxk6S-7xI-17@gated-at.bofh.it> |
| Organization | Metanate Ltd |
On Tue, 10 May 2016 18:53:35 +0100, Mark Brown wrote:
> On Mon, May 09, 2016 at 12:24:33PM +0100, John Keeping wrote:
>
> > - SND_SOC_DAPM_SUPPLY("Mic Bias", ES8328_ADCPOWER,
> > - ES8328_ADCPOWER_MIC_BIAS_OFF, 1, NULL, 0),
> > + SND_SOC_DAPM_MICBIAS("Mic Bias", ES8328_ADCPOWER,
> > + ES8328_ADCPOWER_MIC_BIAS_OFF, 1),
>
> No, this is broken. The specialist MICBIAS widget is legacy and should
> not be used.
OK, this can be dropped. Would you consider doing something like the
patch below?
The only reference I can find to MICBIAS being legacy is in commit
086d7f804e26 ("ASoC: Convert WM8962 MICBIAS to a supply widget",
2011-09-23) and some following commits, there don't seem to be any
comments in the documentation indicating that it's not to be used.
-- >8 --
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index 97069466c38d..3101d53468aa 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -100,6 +100,7 @@ struct device;
{ .id = snd_soc_dapm_mixer_named_ctl, .name = wname, \
SND_SOC_DAPM_INIT_REG_VAL(wreg, wshift, winvert), \
.kcontrol_news = wcontrols, .num_kcontrols = wncontrols}
+/* DEPRECATED: use SND_SOC_DAPM_SUPPLY */
#define SND_SOC_DAPM_MICBIAS(wname, wreg, wshift, winvert) \
{ .id = snd_soc_dapm_micbias, .name = wname, \
SND_SOC_DAPM_INIT_REG_VAL(wreg, wshift, winvert), \
@@ -473,7 +474,7 @@ enum snd_soc_dapm_type {
snd_soc_dapm_out_drv, /* output driver */
snd_soc_dapm_adc, /* analog to digital converter */
snd_soc_dapm_dac, /* digital to analog converter */
- snd_soc_dapm_micbias, /* microphone bias (power) */
+ snd_soc_dapm_micbias, /* microphone bias (power) - DEPRECATED: use snd_soc_dapm_supply */
snd_soc_dapm_mic, /* microphone */
snd_soc_dapm_hp, /* headphones */
snd_soc_dapm_spk, /* speaker */
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/9] ASoC: es8328 codec improvements John Keeping <john@metanate.com> - 2016-05-09 13:30 +0200
[PATCH 6/9] ASoC: es8328: Move sample size setup to hw_params John Keeping <john@metanate.com> - 2016-05-09 13:30 +0200
Applied "ASoC: es8328: Move sample size setup to hw_params" to the asoc tree Mark Brown <broonie@kernel.org> - 2016-05-10 21:00 +0200
[PATCH 5/9] ASoC: es8328: Use more suitable definition for mic bias John Keeping <john@metanate.com> - 2016-05-09 13:30 +0200
Re: [PATCH 5/9] ASoC: es8328: Use more suitable definition for mic bias Mark Brown <broonie@kernel.org> - 2016-05-10 20:00 +0200
Re: [PATCH 5/9] ASoC: es8328: Use more suitable definition for mic bias John Keeping <john@metanate.com> - 2016-05-12 13:10 +0200
Re: [PATCH 5/9] ASoC: es8328: Use more suitable definition for mic bias Mark Brown <broonie@kernel.org> - 2016-05-12 13:20 +0200
[PATCH] ASoC: dapm: deprecate MICBIAS widget type John Keeping <john@metanate.com> - 2016-05-12 15:00 +0200
Applied "ASoC: dapm: deprecate MICBIAS widget type" to the asoc tree Mark Brown <broonie@kernel.org> - 2016-05-13 10:00 +0200
csiph-web