summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/twl6040.h
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@ti.com>2012-01-11 12:43:24 +0000
committerLiam Girdwood <lrg@ti.com>2012-01-11 12:43:24 +0000
commite48b46ba169181dc88ea48e31dcb4afcf8778397 (patch)
tree48aea71559fec05f3cfab43602657aaa60cf8627 /sound/soc/codecs/twl6040.h
parentf75a8ff67d161b5166a2c2360bb2ffaefd5eb853 (diff)
downloadblackbird-op-linux-e48b46ba169181dc88ea48e31dcb4afcf8778397.tar.gz
blackbird-op-linux-e48b46ba169181dc88ea48e31dcb4afcf8778397.zip
ASoC: twl6040 - Add method to query optimum PDM_DL1 gain
The DL1 PDM interface adds a little gain depending on the output device. Add a method to retrieve the gain value for machine driver usage. Signed-off-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/codecs/twl6040.h')
-rw-r--r--sound/soc/codecs/twl6040.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/twl6040.h b/sound/soc/codecs/twl6040.h
index a83277bdb851..ef273f1fac2f 100644
--- a/sound/soc/codecs/twl6040.h
+++ b/sound/soc/codecs/twl6040.h
@@ -34,6 +34,7 @@ enum twl6040_trim {
#define TWL6040_HSF_TRIM_LEFT(x) (x & 0x0f)
#define TWL6040_HSF_TRIM_RIGHT(x) ((x >> 4) & 0x0f)
+int twl6040_get_dl1_gain(struct snd_soc_codec *codec);
void twl6040_hs_jack_detect(struct snd_soc_codec *codec,
struct snd_soc_jack *jack, int report);
int twl6040_get_clk_id(struct snd_soc_codec *codec);
OpenPOWER on IntegriCloud