Lines Matching refs:codec
64 struct udevice *codec = priv->dev->parent; in rk817_reset() local
66 snd_soc_write(codec, RK817_CODEC_DTOP_LPT_SRST, 0x40); in rk817_reset()
67 snd_soc_write(codec, RK817_CODEC_DDAC_POPD_DACST, 0x02); in rk817_reset()
115 struct udevice *codec = rk817->dev->parent; in rk817_codec_power_up() local
124 snd_soc_update_bits(codec, RK817_CODEC_DTOP_DIGEN_CLKE, in rk817_codec_power_up()
127 snd_soc_write(codec, playback_power_up_list[i].reg, in rk817_codec_power_up()
137 struct udevice *codec = rk817->dev->parent; in rk817_codec_power_down() local
148 snd_soc_update_bits(codec, RK817_CODEC_DDAC_MUTE_MIXCTL, in rk817_codec_power_down()
154 snd_soc_write(codec, playback_power_down_list[i].reg, in rk817_codec_power_down()
157 snd_soc_update_bits(codec, RK817_CODEC_DTOP_DIGEN_CLKE, in rk817_codec_power_down()
163 snd_soc_write(codec, playback_power_down_list[i].reg, in rk817_codec_power_down()
166 snd_soc_write(codec, RK817_CODEC_DTOP_DIGEN_CLKE, 0x00); in rk817_codec_power_down()
167 snd_soc_write(codec, RK817_CODEC_APLL_CFG5, 0x01); in rk817_codec_power_down()
168 snd_soc_write(codec, RK817_CODEC_AREF_RTCFG1, 0x06); in rk817_codec_power_down()
176 struct udevice *codec = rk817->dev->parent; in rk817_playback_path_put() local
201 snd_soc_write(codec, RK817_CODEC_ADAC_CFG1, in rk817_playback_path_put()
205 snd_soc_write(codec, RK817_CODEC_DDAC_MUTE_MIXCTL, 0x10); in rk817_playback_path_put()
207 snd_soc_write(codec, RK817_CODEC_ACLASSD_CFG1, 0xa5); in rk817_playback_path_put()
209 snd_soc_write(codec, RK817_CODEC_ACLASSD_CFG2, 0xc4); in rk817_playback_path_put()
212 snd_soc_write(codec, RK817_CODEC_AHP_CP, 0x11); in rk817_playback_path_put()
214 snd_soc_write(codec, RK817_CODEC_AHP_CFG0, 0x80); in rk817_playback_path_put()
216 snd_soc_write(codec, RK817_CODEC_ADAC_CFG1, in rk817_playback_path_put()
219 snd_soc_update_bits(codec, RK817_CODEC_DDAC_MUTE_MIXCTL, in rk817_playback_path_put()
222 snd_soc_write(codec, RK817_CODEC_DDAC_VOLL, rk817->spk_volume); in rk817_playback_path_put()
223 snd_soc_write(codec, RK817_CODEC_DDAC_VOLR, rk817->spk_volume); in rk817_playback_path_put()
232 snd_soc_write(codec, RK817_CODEC_AHP_CP, 0x11); in rk817_playback_path_put()
234 snd_soc_write(codec, RK817_CODEC_AHP_CFG0, 0x80); in rk817_playback_path_put()
236 snd_soc_write(codec, RK817_CODEC_ADAC_CFG1, in rk817_playback_path_put()
239 snd_soc_update_bits(codec, RK817_CODEC_DDAC_MUTE_MIXCTL, in rk817_playback_path_put()
242 snd_soc_write(codec, RK817_CODEC_DDAC_VOLL, rk817->hp_volume); in rk817_playback_path_put()
243 snd_soc_write(codec, RK817_CODEC_DDAC_VOLR, rk817->hp_volume); in rk817_playback_path_put()
253 snd_soc_write(codec, RK817_CODEC_AHP_CP, 0x11); in rk817_playback_path_put()
255 snd_soc_write(codec, RK817_CODEC_AHP_CFG0, 0x80); in rk817_playback_path_put()
258 snd_soc_write(codec, RK817_CODEC_ADAC_CFG1, in rk817_playback_path_put()
264 snd_soc_write(codec, RK817_CODEC_DDAC_MUTE_MIXCTL, 0x10); in rk817_playback_path_put()
266 snd_soc_write(codec, RK817_CODEC_ACLASSD_CFG1, 0xa5); in rk817_playback_path_put()
268 snd_soc_write(codec, RK817_CODEC_ACLASSD_CFG2, 0xc4); in rk817_playback_path_put()
271 snd_soc_write(codec, RK817_CODEC_DDAC_VOLL, rk817->hp_volume); in rk817_playback_path_put()
272 snd_soc_write(codec, RK817_CODEC_DDAC_VOLR, rk817->hp_volume); in rk817_playback_path_put()
285 struct udevice *codec = rk817->dev->parent; in rk817_hw_params() local
287 snd_soc_update_bits(codec, RK817_CODEC_DI2S_CKM, in rk817_hw_params()
289 snd_soc_write(codec, RK817_CODEC_DI2S_RXCR2, VDW_RX_16BITS); in rk817_hw_params()
290 snd_soc_write(codec, RK817_CODEC_DI2S_TXCR2, VDW_TX_16BITS); in rk817_hw_params()
297 struct udevice *codec = rk817->dev->parent; in rk817_digital_mute() local
300 snd_soc_update_bits(codec, RK817_CODEC_DDAC_MUTE_MIXCTL, in rk817_digital_mute()
303 snd_soc_update_bits(codec, RK817_CODEC_DDAC_MUTE_MIXCTL, in rk817_digital_mute()
365 UCLASS_DRIVER(codec) = {