Lines Matching refs:rt5631
187 struct rt5631_priv *rt5631 = snd_soc_component_get_drvdata(component); in rt5631_dmic_get() local
189 ucontrol->value.integer.value[0] = rt5631->dmic_used_flag; in rt5631_dmic_get()
198 struct rt5631_priv *rt5631 = snd_soc_component_get_drvdata(component); in rt5631_dmic_put() local
200 rt5631->dmic_used_flag = ucontrol->value.integer.value[0]; in rt5631_dmic_put()
296 struct rt5631_priv *rt5631 = snd_soc_component_get_drvdata(component); in check_dmic_used() local
297 return rt5631->dmic_used_flag; in check_dmic_used()
567 struct rt5631_priv *rt5631 = snd_soc_component_get_drvdata(component); in hp_event() local
571 if (rt5631->codec_version) { in hp_event()
581 if (rt5631->codec_version) { in hp_event()
601 struct rt5631_priv *rt5631 = snd_soc_component_get_drvdata(component); in set_dmic_params() local
603 switch (rt5631->rx_rate) { in set_dmic_params()
1356 struct rt5631_priv *rt5631 = snd_soc_component_get_drvdata(component); in rt5631_hifi_pcm_params() local
1362 rt5631->bclk_rate = snd_soc_params_to_bclk(params); in rt5631_hifi_pcm_params()
1363 if (rt5631->bclk_rate < 0) { in rt5631_hifi_pcm_params()
1365 return rt5631->bclk_rate; in rt5631_hifi_pcm_params()
1367 rt5631->rx_rate = params_rate(params); in rt5631_hifi_pcm_params()
1369 if (rt5631->master) in rt5631_hifi_pcm_params()
1370 coeff = get_coeff(rt5631->sysclk, rt5631->rx_rate, in rt5631_hifi_pcm_params()
1371 rt5631->bclk_rate / rt5631->rx_rate); in rt5631_hifi_pcm_params()
1373 coeff = get_coeff(rt5631->sysclk, rt5631->rx_rate, in rt5631_hifi_pcm_params()
1408 struct rt5631_priv *rt5631 = snd_soc_component_get_drvdata(component); in rt5631_hifi_codec_set_dai_fmt() local
1415 rt5631->master = 1; in rt5631_hifi_codec_set_dai_fmt()
1419 rt5631->master = 0; in rt5631_hifi_codec_set_dai_fmt()
1460 struct rt5631_priv *rt5631 = snd_soc_component_get_drvdata(component); in rt5631_hifi_codec_set_dai_sysclk() local
1465 rt5631->sysclk = freq; in rt5631_hifi_codec_set_dai_sysclk()
1476 struct rt5631_priv *rt5631 = snd_soc_component_get_drvdata(component); in rt5631_codec_set_dai_pll() local
1491 if (rt5631->master) { in rt5631_codec_set_dai_pll()
1537 struct rt5631_priv *rt5631 = snd_soc_component_get_drvdata(component); in rt5631_set_bias_level() local
1556 regcache_cache_only(rt5631->regmap, false); in rt5631_set_bias_level()
1557 regcache_sync(rt5631->regmap); in rt5631_set_bias_level()
1577 struct rt5631_priv *rt5631 = snd_soc_component_get_drvdata(component); in rt5631_probe() local
1582 rt5631->codec_version = 1; in rt5631_probe()
1584 rt5631->codec_version = 0; in rt5631_probe()
1596 if (rt5631->codec_version) in rt5631_probe()
1603 if (rt5631->dmic_used_flag) { in rt5631_probe()
1703 struct rt5631_priv *rt5631; in rt5631_i2c_probe() local
1706 rt5631 = devm_kzalloc(&i2c->dev, sizeof(struct rt5631_priv), in rt5631_i2c_probe()
1708 if (NULL == rt5631) in rt5631_i2c_probe()
1711 i2c_set_clientdata(i2c, rt5631); in rt5631_i2c_probe()
1713 rt5631->regmap = devm_regmap_init_i2c(i2c, &rt5631_regmap_config); in rt5631_i2c_probe()
1714 if (IS_ERR(rt5631->regmap)) in rt5631_i2c_probe()
1715 return PTR_ERR(rt5631->regmap); in rt5631_i2c_probe()