Lines Matching refs:wm8753

234 	struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec);  in wm8753_get_dai()  local
236 ucontrol->value.integer.value[0] = wm8753->dai_func; in wm8753_get_dai()
244 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_set_dai() local
247 if (wm8753->dai_func == ucontrol->value.integer.value[0]) in wm8753_set_dai()
255 wm8753->dai_func = ucontrol->value.integer.value[0]; in wm8753_set_dai()
257 if (((ioctl >> 2) & 0x3) == wm8753->dai_func) in wm8753_set_dai()
260 ioctl = (ioctl & 0x1f3) | (wm8753->dai_func << 2); in wm8753_set_dai()
264 wm8753_hifi_write_dai_fmt(codec, wm8753->hifi_fmt); in wm8753_set_dai()
265 wm8753_voice_write_dai_fmt(codec, wm8753->voice_fmt); in wm8753_set_dai()
870 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_set_dai_sysclk() local
879 wm8753->sysclk = freq; in wm8753_set_dai_sysclk()
882 wm8753->pcmclk = freq; in wm8753_set_dai_sysclk()
930 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_pcm_hw_params() local
950 if (params_rate(params) * 384 == wm8753->pcmclk) in wm8753_pcm_hw_params()
1159 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_i2s_hw_params() local
1165 coeff = get_coeff(wm8753->sysclk, params_rate(params)); in wm8753_i2s_hw_params()
1239 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_hifi_write_dai_fmt() local
1242 switch (wm8753->dai_func) { in wm8753_hifi_write_dai_fmt()
1266 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_hifi_set_dai_fmt() local
1268 wm8753->hifi_fmt = fmt; in wm8753_hifi_set_dai_fmt()
1276 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_voice_write_dai_fmt() local
1279 if (wm8753->dai_func != 0) in wm8753_voice_write_dai_fmt()
1296 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_voice_set_dai_fmt() local
1298 wm8753->voice_fmt = fmt; in wm8753_voice_set_dai_fmt()
1307 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_mute() local
1311 if (mute && wm8753->dai_func == 1) { in wm8753_mute()
1326 struct wm8753_priv *wm8753 = in wm8753_charge_work() local
1330 regmap_update_bits(wm8753->regmap, WM8753_PWR1, 0x0180, 0x0100); in wm8753_charge_work()
1336 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_set_bias_level() local
1346 flush_delayed_work(&wm8753->charge_work); in wm8753_set_bias_level()
1352 schedule_delayed_work(&wm8753->charge_work, in wm8753_set_bias_level()
1360 cancel_delayed_work_sync(&wm8753->charge_work); in wm8753_set_bias_level()
1445 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_resume() local
1447 regcache_sync(wm8753->regmap); in wm8753_resume()
1454 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_probe() local
1457 INIT_DELAYED_WORK(&wm8753->charge_work, wm8753_charge_work); in wm8753_probe()
1465 wm8753->dai_func = 0; in wm8753_probe()
1517 struct wm8753_priv *wm8753; in wm8753_spi_probe() local
1520 wm8753 = devm_kzalloc(&spi->dev, sizeof(struct wm8753_priv), in wm8753_spi_probe()
1522 if (wm8753 == NULL) in wm8753_spi_probe()
1525 spi_set_drvdata(spi, wm8753); in wm8753_spi_probe()
1527 wm8753->regmap = devm_regmap_init_spi(spi, &wm8753_regmap); in wm8753_spi_probe()
1528 if (IS_ERR(wm8753->regmap)) { in wm8753_spi_probe()
1529 ret = PTR_ERR(wm8753->regmap); in wm8753_spi_probe()
1563 struct wm8753_priv *wm8753; in wm8753_i2c_probe() local
1566 wm8753 = devm_kzalloc(&i2c->dev, sizeof(struct wm8753_priv), in wm8753_i2c_probe()
1568 if (wm8753 == NULL) in wm8753_i2c_probe()
1571 i2c_set_clientdata(i2c, wm8753); in wm8753_i2c_probe()
1573 wm8753->regmap = devm_regmap_init_i2c(i2c, &wm8753_regmap); in wm8753_i2c_probe()
1574 if (IS_ERR(wm8753->regmap)) { in wm8753_i2c_probe()
1575 ret = PTR_ERR(wm8753->regmap); in wm8753_i2c_probe()