Home
last modified time | relevance | path

Searched refs:scodec (Results 1 – 4 of 4) sorted by relevance

/sound/soc/sunxi/
Dsun4i-codec.c250 static void sun4i_codec_start_playback(struct sun4i_codec *scodec) in sun4i_codec_start_playback() argument
253 regmap_set_bits(scodec->regmap, SUN4I_CODEC_DAC_FIFOC, in sun4i_codec_start_playback()
257 regmap_set_bits(scodec->regmap, SUN4I_CODEC_DAC_FIFOC, in sun4i_codec_start_playback()
261 static void sun4i_codec_stop_playback(struct sun4i_codec *scodec) in sun4i_codec_stop_playback() argument
264 regmap_clear_bits(scodec->regmap, SUN4I_CODEC_DAC_FIFOC, in sun4i_codec_stop_playback()
268 static void sun4i_codec_start_capture(struct sun4i_codec *scodec) in sun4i_codec_start_capture() argument
271 regmap_field_set_bits(scodec->reg_adc_fifoc, in sun4i_codec_start_capture()
275 static void sun4i_codec_stop_capture(struct sun4i_codec *scodec) in sun4i_codec_stop_capture() argument
278 regmap_field_clear_bits(scodec->reg_adc_fifoc, in sun4i_codec_stop_capture()
286 struct sun4i_codec *scodec = snd_soc_card_get_drvdata(rtd->card); in sun4i_codec_trigger() local
[all …]
Dsun8i-codec.c197 struct sun8i_codec *scodec = dev_get_drvdata(dev); in sun8i_codec_runtime_resume() local
200 regcache_cache_only(scodec->regmap, false); in sun8i_codec_runtime_resume()
202 ret = regcache_sync(scodec->regmap); in sun8i_codec_runtime_resume()
213 struct sun8i_codec *scodec = dev_get_drvdata(dev); in sun8i_codec_runtime_suspend() local
215 regcache_cache_only(scodec->regmap, true); in sun8i_codec_runtime_suspend()
216 regcache_mark_dirty(scodec->regmap); in sun8i_codec_runtime_suspend()
256 static int sun8i_codec_update_sample_rate(struct sun8i_codec *scodec) in sun8i_codec_update_sample_rate() argument
262 struct sun8i_codec_aif *aif = &scodec->aifs[i]; in sun8i_codec_update_sample_rate()
276 regmap_update_bits(scodec->regmap, SUN8I_SYS_SR_CTRL, in sun8i_codec_update_sample_rate()
285 struct sun8i_codec *scodec = snd_soc_dai_get_drvdata(dai); in sun8i_codec_set_fmt() local
[all …]
/sound/pci/hda/
Dpatch_cs8409.c176 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 …]
DMakefile31 snd-hda-scodec-cs35l41-objs := cs35l41_hda.o
32 snd-hda-scodec-cs35l41-i2c-objs := cs35l41_hda_i2c.o
33 snd-hda-scodec-cs35l41-spi-objs := cs35l41_hda_spi.o
55 obj-$(CONFIG_SND_HDA_SCODEC_CS35L41) += snd-hda-scodec-cs35l41.o
56 obj-$(CONFIG_SND_HDA_SCODEC_CS35L41_I2C) += snd-hda-scodec-cs35l41-i2c.o
57 obj-$(CONFIG_SND_HDA_SCODEC_CS35L41_SPI) += snd-hda-scodec-cs35l41-spi.o