aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-13 09:25:25 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-14 12:54:23 -0400
commit308f4b044efbfbb2b7d0d076e9dcb7f961f6171b (patch)
treea5020981ad77468e7e753edf8d931164b5d6f225 /sound
parentf43f2db7c6eddacb218a2524e1a8463b6397d80f (diff)
ASoC: tlv320aic3x: Remove unused, non-standard headset detection
aic3x_set_headset_detection() isn't made available outside the driver or referenced within the driver which sparse notices and complains about. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/tlv320aic3x.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
index bde2d1ade0c6..64d2a4fa34b2 100644
--- a/sound/soc/codecs/tlv320aic3x.c
+++ b/sound/soc/codecs/tlv320aic3x.c
@@ -1160,24 +1160,6 @@ static int aic3x_set_bias_level(struct snd_soc_codec *codec,
1160 return 0; 1160 return 0;
1161} 1161}
1162 1162
1163void aic3x_set_headset_detection(struct snd_soc_codec *codec, int detect,
1164 int headset_debounce, int button_debounce)
1165{
1166 u8 val;
1167
1168 val = ((detect & AIC3X_HEADSET_DETECT_MASK)
1169 << AIC3X_HEADSET_DETECT_SHIFT) |
1170 ((headset_debounce & AIC3X_HEADSET_DEBOUNCE_MASK)
1171 << AIC3X_HEADSET_DEBOUNCE_SHIFT) |
1172 ((button_debounce & AIC3X_BUTTON_DEBOUNCE_MASK)
1173 << AIC3X_BUTTON_DEBOUNCE_SHIFT);
1174
1175 if (detect & AIC3X_HEADSET_DETECT_MASK)
1176 val |= AIC3X_HEADSET_DETECT_ENABLED;
1177
1178 snd_soc_write(codec, AIC3X_HEADSET_DETECT_CTRL_A, val);
1179}
1180
1181#define AIC3X_RATES SNDRV_PCM_RATE_8000_96000 1163#define AIC3X_RATES SNDRV_PCM_RATE_8000_96000
1182#define AIC3X_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \ 1164#define AIC3X_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \
1183 SNDRV_PCM_FMTBIT_S24_3LE | SNDRV_PCM_FMTBIT_S32_LE) 1165 SNDRV_PCM_FMTBIT_S24_3LE | SNDRV_PCM_FMTBIT_S32_LE)