Searched refs:rt711 (Results 1 – 7 of 7) sorted by relevance
/Linux-v6.1/sound/soc/codecs/ |
D | rt711-sdca.c | 28 static int rt711_sdca_index_write(struct rt711_sdca_priv *rt711, in rt711_sdca_index_write() argument 32 struct regmap *regmap = rt711->mbq_regmap; in rt711_sdca_index_write() 37 dev_err(&rt711->slave->dev, in rt711_sdca_index_write() 44 static int rt711_sdca_index_read(struct rt711_sdca_priv *rt711, in rt711_sdca_index_read() argument 48 struct regmap *regmap = rt711->mbq_regmap; in rt711_sdca_index_read() 53 dev_err(&rt711->slave->dev, in rt711_sdca_index_read() 60 static int rt711_sdca_index_update_bits(struct rt711_sdca_priv *rt711, in rt711_sdca_index_update_bits() argument 66 ret = rt711_sdca_index_read(rt711, nid, reg, &tmp); in rt711_sdca_index_update_bits() 71 return rt711_sdca_index_write(rt711, nid, reg, tmp); in rt711_sdca_index_update_bits() 74 static void rt711_sdca_reset(struct rt711_sdca_priv *rt711) in rt711_sdca_reset() argument [all …]
|
D | rt711.c | 84 static int rt711_calibration(struct rt711_priv *rt711) in rt711_calibration() argument 88 struct regmap *regmap = rt711->regmap; in rt711_calibration() 91 mutex_lock(&rt711->calibrate_mutex); in rt711_calibration() 92 regmap_write(rt711->regmap, in rt711_calibration() 128 regmap_write(rt711->regmap, in rt711_calibration() 130 mutex_unlock(&rt711->calibrate_mutex); in rt711_calibration() 136 static unsigned int rt711_button_detect(struct rt711_priv *rt711) in rt711_button_detect() argument 141 ret = rt711_index_read(rt711->regmap, RT711_VENDOR_REG, in rt711_button_detect() 145 ret = rt711_index_read(rt711->regmap, RT711_VENDOR_REG, in rt711_button_detect() 183 static int rt711_headset_detect(struct rt711_priv *rt711) in rt711_headset_detect() argument [all …]
|
D | rt711-sdw.c | 92 struct rt711_priv *rt711 = dev_get_drvdata(dev); in rt711_sdw_read() local 107 ret = regmap_write(rt711->sdw_regmap, reg, 0); in rt711_sdw_read() 112 ret = regmap_write(rt711->sdw_regmap, reg2, val2); in rt711_sdw_read() 117 ret = regmap_write(rt711->sdw_regmap, in rt711_sdw_read() 123 ret = regmap_write(rt711->sdw_regmap, reg4, (*val & 0xff)); in rt711_sdw_read() 128 ret = regmap_write(rt711->sdw_regmap, reg, *val); in rt711_sdw_read() 134 ret = regmap_write(rt711->sdw_regmap, in rt711_sdw_read() 140 ret = regmap_write(rt711->sdw_regmap, reg2, (*val & 0xff)); in rt711_sdw_read() 146 ret = regmap_write(rt711->sdw_regmap, in rt711_sdw_read() 150 ret = regmap_write(rt711->sdw_regmap, reg, (*val & 0xff)); in rt711_sdw_read() [all …]
|
D | rt711-sdca-sdw.c | 144 struct rt711_sdca_priv *rt711 = dev_get_drvdata(&slave->dev); in rt711_sdca_update_status() local 147 rt711->status = status; in rt711_sdca_update_status() 150 rt711->hw_init = false; in rt711_sdca_update_status() 153 if (rt711->hs_jack) { in rt711_sdca_update_status() 160 sdw_write_no_pm(rt711->slave, SDW_SCP_SDCA_INTMASK1, in rt711_sdca_update_status() 162 sdw_write_no_pm(rt711->slave, SDW_SCP_SDCA_INTMASK2, in rt711_sdca_update_status() 171 if (rt711->hw_init || rt711->status != SDW_SLAVE_ATTACHED) in rt711_sdca_update_status() 244 struct rt711_sdca_priv *rt711 = dev_get_drvdata(&slave->dev); in rt711_sdca_interrupt_callback() local 253 if (cancel_delayed_work_sync(&rt711->jack_detect_work)) { in rt711_sdca_interrupt_callback() 256 if (rt711->scp_sdca_stat2) in rt711_sdca_interrupt_callback() [all …]
|
D | rt711-sdca.h | 241 int rt711_sdca_jack_detect(struct rt711_sdca_priv *rt711, bool *hp, bool *mic);
|
D | rt711.h | 254 int rt711_jack_detect(struct rt711_priv *rt711, bool *hp, bool *mic);
|
D | Makefile | 222 snd-soc-rt711-objs := rt711.o rt711-sdw.o 223 snd-soc-rt711-sdca-objs := rt711-sdca.o rt711-sdca-sdw.o 578 obj-$(CONFIG_SND_SOC_RT711) += snd-soc-rt711.o 579 obj-$(CONFIG_SND_SOC_RT711_SDCA_SDW) += snd-soc-rt711-sdca.o
|