Lines Matching refs:rm
170 static void set_dsp_scale(struct regmap *rm, int offset, int vol) in set_dsp_scale() argument
181 regmap_bulk_write(rm, offset, v, ARRAY_SIZE(v)); in set_dsp_scale()
188 struct regmap *rm = tas5805m->regmap; in tas5805m_refresh() local
193 regmap_write(rm, REG_PAGE, 0x00); in tas5805m_refresh()
194 regmap_write(rm, REG_BOOK, 0x8c); in tas5805m_refresh()
195 regmap_write(rm, REG_PAGE, 0x2a); in tas5805m_refresh()
201 set_dsp_scale(rm, 0x24, tas5805m->vol[0]); in tas5805m_refresh()
202 set_dsp_scale(rm, 0x28, tas5805m->vol[1]); in tas5805m_refresh()
205 regmap_write(rm, REG_DEVICE_CTRL_2, in tas5805m_refresh()
278 static void send_cfg(struct regmap *rm, in send_cfg() argument
284 regmap_write(rm, s[i], s[i + 1]); in send_cfg()
297 struct regmap *rm = tas5805m->regmap; in tas5805m_trigger() local
312 send_cfg(rm, dsp_cfg_preboot, in tas5805m_trigger()
315 send_cfg(rm, tas5805m->dsp_cfg_data, in tas5805m_trigger()
329 regmap_write(rm, REG_PAGE, 0x00); in tas5805m_trigger()
330 regmap_write(rm, REG_BOOK, 0x00); in tas5805m_trigger()
332 regmap_read(rm, REG_CHAN_FAULT, &chan); in tas5805m_trigger()
333 regmap_read(rm, REG_GLOBAL_FAULT1, &global1); in tas5805m_trigger()
334 regmap_read(rm, REG_GLOBAL_FAULT2, &global2); in tas5805m_trigger()
340 regmap_write(rm, REG_DEVICE_CTRL_2, DCTRL2_MODE_HIZ); in tas5805m_trigger()