Searched refs:scodec (Results 1 – 3 of 3) sorted by relevance
/sound/soc/sunxi/ |
D | sun4i-codec.c | 250 static void sun4i_codec_start_playback(struct sun4i_codec *scodec) in sun4i_codec_start_playback() argument 253 regmap_update_bits(scodec->regmap, SUN4I_CODEC_DAC_FIFOC, in sun4i_codec_start_playback() 258 regmap_update_bits(scodec->regmap, SUN4I_CODEC_DAC_FIFOC, in sun4i_codec_start_playback() 263 static void sun4i_codec_stop_playback(struct sun4i_codec *scodec) in sun4i_codec_stop_playback() argument 266 regmap_update_bits(scodec->regmap, SUN4I_CODEC_DAC_FIFOC, in sun4i_codec_stop_playback() 271 static void sun4i_codec_start_capture(struct sun4i_codec *scodec) in sun4i_codec_start_capture() argument 274 regmap_field_update_bits(scodec->reg_adc_fifoc, in sun4i_codec_start_capture() 279 static void sun4i_codec_stop_capture(struct sun4i_codec *scodec) in sun4i_codec_stop_capture() argument 282 regmap_field_update_bits(scodec->reg_adc_fifoc, in sun4i_codec_stop_capture() 290 struct sun4i_codec *scodec = snd_soc_card_get_drvdata(rtd->card); in sun4i_codec_trigger() local [all …]
|
D | sun8i-codec.c | 178 struct sun8i_codec *scodec = dev_get_drvdata(dev); in sun8i_codec_runtime_resume() local 181 regcache_cache_only(scodec->regmap, false); in sun8i_codec_runtime_resume() 183 ret = regcache_sync(scodec->regmap); in sun8i_codec_runtime_resume() 194 struct sun8i_codec *scodec = dev_get_drvdata(dev); in sun8i_codec_runtime_suspend() local 196 regcache_cache_only(scodec->regmap, true); in sun8i_codec_runtime_suspend() 197 regcache_mark_dirty(scodec->regmap); in sun8i_codec_runtime_suspend() 237 static int sun8i_codec_update_sample_rate(struct sun8i_codec *scodec) in sun8i_codec_update_sample_rate() argument 243 struct sun8i_codec_aif *aif = &scodec->aifs[i]; in sun8i_codec_update_sample_rate() 257 regmap_update_bits(scodec->regmap, SUN8I_SYS_SR_CTRL, in sun8i_codec_update_sample_rate() 266 struct sun8i_codec *scodec = snd_soc_dai_get_drvdata(dai); in sun8i_codec_set_fmt() local [all …]
|
/sound/pci/hda/ |
D | patch_cs8409.c | 176 static int cs8409_i2c_set_page(struct sub_codec *scodec, unsigned int i2c_reg) in cs8409_i2c_set_page() argument 178 struct hda_codec *codec = scodec->codec; in cs8409_i2c_set_page() 180 if (scodec->paged && (scodec->last_page != (i2c_reg >> 8))) { in cs8409_i2c_set_page() 184 scodec->last_page = i2c_reg >> 8; in cs8409_i2c_set_page() 197 static int cs8409_i2c_read(struct sub_codec *scodec, unsigned int addr) in cs8409_i2c_read() argument 199 struct hda_codec *codec = scodec->codec; in cs8409_i2c_read() 204 if (scodec->suspended) in cs8409_i2c_read() 209 cs8409_set_i2c_dev_addr(codec, scodec->addr); in cs8409_i2c_read() 211 if (cs8409_i2c_set_page(scodec, addr)) in cs8409_i2c_read() 228 codec_err(codec, "%s() Failed 0x%02x : 0x%04x\n", __func__, scodec->addr, addr); in cs8409_i2c_read() [all …]
|