summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5645.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2015-08-30 16:52:12 +0200
committerMark Brown <broonie@kernel.org>2015-08-30 16:52:12 +0200
commitcb42e0f709a73caf4d631be32189bb1ca513ad25 (patch)
tree16a45cd33a8edf58967cd56cc74f51dbc3d91e5c /sound/soc/codecs/rt5645.h
parentMerge remote-tracking branch 'asoc/topic/pcm1681' into asoc-next (diff)
parentASoC: rt5645: Prevent the pop sound of the headphone while rebooting or shutd... (diff)
downloadlinux-cb42e0f709a73caf4d631be32189bb1ca513ad25.tar.xz
linux-cb42e0f709a73caf4d631be32189bb1ca513ad25.zip
Merge remote-tracking branch 'asoc/topic/rt5645' into asoc-next
Diffstat (limited to 'sound/soc/codecs/rt5645.h')
-rw-r--r--sound/soc/codecs/rt5645.h27
1 files changed, 1 insertions, 26 deletions
diff --git a/sound/soc/codecs/rt5645.h b/sound/soc/codecs/rt5645.h
index 278bb9f464c4..0e4cfc6ac649 100644
--- a/sound/soc/codecs/rt5645.h
+++ b/sound/soc/codecs/rt5645.h
@@ -2115,6 +2115,7 @@ enum {
#define RT5645_JD_PSV_MODE (0x1 << 12)
#define RT5645_IRQ_CLK_GATE_CTRL (0x1 << 11)
#define RT5645_MICINDET_MANU (0x1 << 7)
+#define RT5645_RING2_SLEEVE_GND (0x1 << 5)
/* Vendor ID (0xfd) */
#define RT5645_VER_C 0x2
@@ -2181,32 +2182,6 @@ enum {
int rt5645_sel_asrc_clk_src(struct snd_soc_codec *codec,
unsigned int filter_mask, unsigned int clk_src);
-struct rt5645_priv {
- struct snd_soc_codec *codec;
- struct rt5645_platform_data pdata;
- struct regmap *regmap;
- struct i2c_client *i2c;
- struct gpio_desc *gpiod_hp_det;
- struct snd_soc_jack *hp_jack;
- struct snd_soc_jack *mic_jack;
- struct snd_soc_jack *btn_jack;
- struct delayed_work jack_detect_work;
-
- int codec_type;
- int sysclk;
- int sysclk_src;
- int lrck[RT5645_AIFS];
- int bclk[RT5645_AIFS];
- int master[RT5645_AIFS];
-
- int pll_src;
- int pll_in;
- int pll_out;
-
- int jack_type;
- bool en_button_func;
-};
-
int rt5645_set_jack_detect(struct snd_soc_codec *codec,
struct snd_soc_jack *hp_jack, struct snd_soc_jack *mic_jack,
struct snd_soc_jack *btn_jack);