From f3ba57f1c78e162c4b6a92048d2354e138060b5b Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Mon, 6 Feb 2012 19:19:13 +0000 Subject: [PATCH] --- yaml --- r: 293308 b: refs/heads/master c: 6035bbcfc0849450da9fb2389cf946303b41fa08 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/sound/soc/codecs/tlv320aic3x.c | 24 ------------------------ 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/[refs] b/[refs] index a5aea5956dc0..cda6dd121e4a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 87092e3ca4ff7b2c2d7723b3402fe2f74b249bc4 +refs/heads/master: 6035bbcfc0849450da9fb2389cf946303b41fa08 diff --git a/trunk/sound/soc/codecs/tlv320aic3x.c b/trunk/sound/soc/codecs/tlv320aic3x.c index 07efbedda1e9..8d20f6ec20f3 100644 --- a/trunk/sound/soc/codecs/tlv320aic3x.c +++ b/trunk/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, \