Lines Matching refs:wm8753
228 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_get_dai() local
230 ucontrol->value.enumerated.item[0] = wm8753->dai_func; in wm8753_get_dai()
238 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_set_dai() local
241 if (wm8753->dai_func == ucontrol->value.enumerated.item[0]) in wm8753_set_dai()
249 wm8753->dai_func = ucontrol->value.enumerated.item[0]; in wm8753_set_dai()
251 if (((ioctl >> 2) & 0x3) == wm8753->dai_func) in wm8753_set_dai()
254 ioctl = (ioctl & 0x1f3) | (wm8753->dai_func << 2); in wm8753_set_dai()
258 wm8753_hifi_write_dai_fmt(component, wm8753->hifi_fmt); in wm8753_set_dai()
259 wm8753_voice_write_dai_fmt(component, wm8753->voice_fmt); in wm8753_set_dai()
865 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_set_dai_sysclk() local
874 wm8753->sysclk = freq; in wm8753_set_dai_sysclk()
877 wm8753->pcmclk = freq; in wm8753_set_dai_sysclk()
925 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_pcm_hw_params() local
945 if (params_rate(params) * 384 == wm8753->pcmclk) in wm8753_pcm_hw_params()
1154 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_i2s_hw_params() local
1160 coeff = get_coeff(wm8753->sysclk, params_rate(params)); in wm8753_i2s_hw_params()
1234 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_hifi_write_dai_fmt() local
1237 switch (wm8753->dai_func) { in wm8753_hifi_write_dai_fmt()
1261 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_hifi_set_dai_fmt() local
1263 wm8753->hifi_fmt = fmt; in wm8753_hifi_set_dai_fmt()
1271 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_voice_write_dai_fmt() local
1274 if (wm8753->dai_func != 0) in wm8753_voice_write_dai_fmt()
1291 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_voice_set_dai_fmt() local
1293 wm8753->voice_fmt = fmt; in wm8753_voice_set_dai_fmt()
1302 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_mute() local
1306 if (mute && wm8753->dai_func == 1) { in wm8753_mute()
1321 struct wm8753_priv *wm8753 = in wm8753_charge_work() local
1325 regmap_update_bits(wm8753->regmap, WM8753_PWR1, 0x0180, 0x0100); in wm8753_charge_work()
1331 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_set_bias_level() local
1341 flush_delayed_work(&wm8753->charge_work); in wm8753_set_bias_level()
1347 schedule_delayed_work(&wm8753->charge_work, in wm8753_set_bias_level()
1355 cancel_delayed_work_sync(&wm8753->charge_work); in wm8753_set_bias_level()
1440 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_resume() local
1442 regcache_sync(wm8753->regmap); in wm8753_resume()
1449 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_probe() local
1452 INIT_DELAYED_WORK(&wm8753->charge_work, wm8753_charge_work); in wm8753_probe()
1460 wm8753->dai_func = 0; in wm8753_probe()
1515 struct wm8753_priv *wm8753; in wm8753_spi_probe() local
1518 wm8753 = devm_kzalloc(&spi->dev, sizeof(struct wm8753_priv), in wm8753_spi_probe()
1520 if (wm8753 == NULL) in wm8753_spi_probe()
1523 spi_set_drvdata(spi, wm8753); in wm8753_spi_probe()
1525 wm8753->regmap = devm_regmap_init_spi(spi, &wm8753_regmap); in wm8753_spi_probe()
1526 if (IS_ERR(wm8753->regmap)) { in wm8753_spi_probe()
1527 ret = PTR_ERR(wm8753->regmap); in wm8753_spi_probe()
1554 struct wm8753_priv *wm8753; in wm8753_i2c_probe() local
1557 wm8753 = devm_kzalloc(&i2c->dev, sizeof(struct wm8753_priv), in wm8753_i2c_probe()
1559 if (wm8753 == NULL) in wm8753_i2c_probe()
1562 i2c_set_clientdata(i2c, wm8753); in wm8753_i2c_probe()
1564 wm8753->regmap = devm_regmap_init_i2c(i2c, &wm8753_regmap); in wm8753_i2c_probe()
1565 if (IS_ERR(wm8753->regmap)) { in wm8753_i2c_probe()
1566 ret = PTR_ERR(wm8753->regmap); in wm8753_i2c_probe()