Lines Matching refs:wm8753
239 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_get_dai() local
241 ucontrol->value.integer.value[0] = wm8753->dai_func; in wm8753_get_dai()
249 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_set_dai() local
252 if (wm8753->dai_func == ucontrol->value.integer.value[0]) in wm8753_set_dai()
260 wm8753->dai_func = ucontrol->value.integer.value[0]; in wm8753_set_dai()
262 if (((ioctl >> 2) & 0x3) == wm8753->dai_func) in wm8753_set_dai()
265 ioctl = (ioctl & 0x1f3) | (wm8753->dai_func << 2); in wm8753_set_dai()
269 wm8753_hifi_write_dai_fmt(codec, wm8753->hifi_fmt); in wm8753_set_dai()
270 wm8753_voice_write_dai_fmt(codec, wm8753->voice_fmt); in wm8753_set_dai()
876 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_set_dai_sysclk() local
885 wm8753->sysclk = freq; in wm8753_set_dai_sysclk()
888 wm8753->pcmclk = freq; in wm8753_set_dai_sysclk()
936 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_pcm_hw_params() local
956 if (params_rate(params) * 384 == wm8753->pcmclk) in wm8753_pcm_hw_params()
1165 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_i2s_hw_params() local
1171 coeff = get_coeff(wm8753->sysclk, params_rate(params)); in wm8753_i2s_hw_params()
1245 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_hifi_write_dai_fmt() local
1248 switch (wm8753->dai_func) { in wm8753_hifi_write_dai_fmt()
1272 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_hifi_set_dai_fmt() local
1274 wm8753->hifi_fmt = fmt; in wm8753_hifi_set_dai_fmt()
1282 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_voice_write_dai_fmt() local
1285 if (wm8753->dai_func != 0) in wm8753_voice_write_dai_fmt()
1302 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_voice_set_dai_fmt() local
1304 wm8753->voice_fmt = fmt; in wm8753_voice_set_dai_fmt()
1313 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_mute() local
1317 if (mute && wm8753->dai_func == 1) { in wm8753_mute()
1332 struct wm8753_priv *wm8753 = in wm8753_charge_work() local
1336 regmap_update_bits(wm8753->regmap, WM8753_PWR1, 0x0180, 0x0100); in wm8753_charge_work()
1342 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_set_bias_level() local
1352 flush_delayed_work(&wm8753->charge_work); in wm8753_set_bias_level()
1358 schedule_delayed_work(&wm8753->charge_work, in wm8753_set_bias_level()
1366 cancel_delayed_work_sync(&wm8753->charge_work); in wm8753_set_bias_level()
1452 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_resume() local
1454 regcache_sync(wm8753->regmap); in wm8753_resume()
1461 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec); in wm8753_probe() local
1464 INIT_DELAYED_WORK(&wm8753->charge_work, wm8753_charge_work); in wm8753_probe()
1472 wm8753->dai_func = 0; in wm8753_probe()
1525 struct wm8753_priv *wm8753; in wm8753_spi_probe() local
1528 wm8753 = devm_kzalloc(&spi->dev, sizeof(struct wm8753_priv), in wm8753_spi_probe()
1530 if (wm8753 == NULL) in wm8753_spi_probe()
1533 spi_set_drvdata(spi, wm8753); in wm8753_spi_probe()
1535 wm8753->regmap = devm_regmap_init_spi(spi, &wm8753_regmap); in wm8753_spi_probe()
1536 if (IS_ERR(wm8753->regmap)) { in wm8753_spi_probe()
1537 ret = PTR_ERR(wm8753->regmap); in wm8753_spi_probe()
1572 struct wm8753_priv *wm8753; in wm8753_i2c_probe() local
1575 wm8753 = devm_kzalloc(&i2c->dev, sizeof(struct wm8753_priv), in wm8753_i2c_probe()
1577 if (wm8753 == NULL) in wm8753_i2c_probe()
1580 i2c_set_clientdata(i2c, wm8753); in wm8753_i2c_probe()
1582 wm8753->regmap = devm_regmap_init_i2c(i2c, &wm8753_regmap); in wm8753_i2c_probe()
1583 if (IS_ERR(wm8753->regmap)) { in wm8753_i2c_probe()
1584 ret = PTR_ERR(wm8753->regmap); in wm8753_i2c_probe()