All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: tlv320aic3x: Remove even more unused code
@ 2012-02-06 19:23 Mark Brown
  2012-02-06 19:28 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2012-02-06 19:23 UTC (permalink / raw)
  To: Felipe Contreras, Liam Girdwood, Jarkko Nikula; +Cc: alsa-devel, Mark Brown

Now that we're not implement GPIO or microphone support there's no users
for the read() function any more.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 sound/soc/codecs/tlv320aic3x.c |   24 ------------------------
 1 files changed, 0 insertions(+), 24 deletions(-)

diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
index 07efbed..8d20f6e 100644
--- a/sound/soc/codecs/tlv320aic3x.c
+++ b/sound/soc/codecs/tlv320aic3x.c
@@ -121,30 +121,6 @@ static const u8 aic3x_reg[AIC3X_CACHEREGNUM] = {
 	0x00, 0x00, 0x02,	/* 100 */
 };
 
-/*
- * read from the aic3x register space. Only use for this function is if
- * wanting to read volatile bits from those registers that has both read-only
- * and read/write bits. All other cases should use snd_soc_read.
- */
-static int aic3x_read(struct snd_soc_codec *codec, unsigned int reg,
-		      u8 *value)
-{
-	u8 *cache = codec->reg_cache;
-
-	if (codec->cache_only)
-		return -EINVAL;
-	if (reg >= AIC3X_CACHEREGNUM)
-		return -1;
-
-	codec->cache_bypass = 1;
-	*value = snd_soc_read(codec, reg);
-	codec->cache_bypass = 0;
-
-	cache[reg] = *value;
-
-	return 0;
-}
-
 #define SOC_DAPM_SINGLE_AIC3X(xname, reg, shift, mask, invert) \
 {	.iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
 	.info = snd_soc_info_volsw, \
-- 
1.7.9.rc1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ASoC: tlv320aic3x: Remove even more unused code
  2012-02-06 19:23 [PATCH] ASoC: tlv320aic3x: Remove even more unused code Mark Brown
@ 2012-02-06 19:28 ` Mark Brown
  2012-02-06 20:48   ` Felipe Contreras
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2012-02-06 19:28 UTC (permalink / raw)
  To: Felipe Contreras, Liam Girdwood, Jarkko Nikula; +Cc: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 220 bytes --]

On Mon, Feb 06, 2012 at 07:23:13PM +0000, Mark Brown wrote:
> Now that we're not implement GPIO or microphone support there's no users
> for the read() function any more.

That's microphone detect, not plain microphone.

[-- 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

* Re: [PATCH] ASoC: tlv320aic3x: Remove even more unused code
  2012-02-06 19:28 ` Mark Brown
@ 2012-02-06 20:48   ` Felipe Contreras
  2012-02-07  7:00     ` Jarkko Nikula
  0 siblings, 1 reply; 4+ messages in thread
From: Felipe Contreras @ 2012-02-06 20:48 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, Liam Girdwood, Jarkko Nikula

On Mon, Feb 6, 2012 at 9:28 PM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
> On Mon, Feb 06, 2012 at 07:23:13PM +0000, Mark Brown wrote:
>> Now that we're not implement GPIO or microphone support there's no users
>> for the read() function any more.
>
> That's microphone detect, not plain microphone.

s/implement/implementing?

-- 
Felipe Contreras

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ASoC: tlv320aic3x: Remove even more unused code
  2012-02-06 20:48   ` Felipe Contreras
@ 2012-02-07  7:00     ` Jarkko Nikula
  0 siblings, 0 replies; 4+ messages in thread
From: Jarkko Nikula @ 2012-02-07  7:00 UTC (permalink / raw)
  To: Felipe Contreras; +Cc: alsa-devel, Mark Brown, Liam Girdwood

On 02/06/2012 10:48 PM, Felipe Contreras wrote:
> On Mon, Feb 6, 2012 at 9:28 PM, Mark Brown
> <broonie@opensource.wolfsonmicro.com> wrote:
>> On Mon, Feb 06, 2012 at 07:23:13PM +0000, Mark Brown wrote:
>>> Now that we're not implement GPIO or microphone support there's no users
>>> for the read() function any more.
>>
>> That's microphone detect, not plain microphone.
> 
> s/implement/implementing?
> 
You can have my ack here (I'd have acked Felipe's earlier cleanup too
but noticed them only now). Support for gpio and detection were added
almost 4 years ago according to log without seeing any users in mainline
since then.

Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-02-07  6:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-06 19:23 [PATCH] ASoC: tlv320aic3x: Remove even more unused code Mark Brown
2012-02-06 19:28 ` Mark Brown
2012-02-06 20:48   ` Felipe Contreras
2012-02-07  7:00     ` Jarkko Nikula

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.