Home
last modified time | relevance | path

Searched refs:rt298 (Results 1 – 2 of 2) sorted by relevance

/linux-4.4.14/sound/soc/codecs/
Drt298.c198 struct rt298_priv *rt298 = snd_soc_codec_get_drvdata(codec); in rt298_index_sync() local
202 snd_soc_write(codec, rt298->index_cache[i].reg, in rt298_index_sync()
203 rt298->index_cache[i].def); in rt298_index_sync()
221 static int rt298_jack_detect(struct rt298_priv *rt298, bool *hp, bool *mic) in rt298_jack_detect() argument
229 if (!rt298->codec) in rt298_jack_detect()
232 dapm = snd_soc_codec_get_dapm(rt298->codec); in rt298_jack_detect()
234 if (rt298->pdata.cbj_en) { in rt298_jack_detect()
235 regmap_read(rt298->regmap, RT298_GET_HP_SENSE, &buf); in rt298_jack_detect()
237 if (*hp == rt298->is_hp_in) in rt298_jack_detect()
239 rt298->is_hp_in = *hp; in rt298_jack_detect()
[all …]
DMakefile87 snd-soc-rt298-objs := rt298.o
282 obj-$(CONFIG_SND_SOC_RT298) += snd-soc-rt298.o