Searched refs:rt5651 (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/sound/soc/codecs/
H A Drt5651.c2 * rt5651.c -- RT5651 ALSA SoC audio codec driver
30 #include "rt5651.h"
379 struct rt5651_priv *rt5651 = snd_soc_codec_get_drvdata(codec); set_dmic_clk() local
382 rate = rt5651->sysclk / rl6231_get_pre_div(rt5651->regmap, set_dmic_clk()
736 struct rt5651_priv *rt5651 = snd_soc_codec_get_drvdata(codec); rt5651_amp_power_event() local
741 regmap_update_bits(rt5651->regmap, RT5651_PR_BASE + rt5651_amp_power_event()
743 regmap_update_bits(rt5651->regmap, RT5651_DEPOP_M2, rt5651_amp_power_event()
745 regmap_update_bits(rt5651->regmap, RT5651_DEPOP_M1, rt5651_amp_power_event()
749 regmap_write(rt5651->regmap, RT5651_PR_BASE + rt5651_amp_power_event()
752 regmap_update_bits(rt5651->regmap, RT5651_PWR_ANLG1, rt5651_amp_power_event()
754 regmap_update_bits(rt5651->regmap, RT5651_PWR_ANLG1, rt5651_amp_power_event()
758 regmap_update_bits(rt5651->regmap, RT5651_PWR_ANLG1, rt5651_amp_power_event()
774 struct rt5651_priv *rt5651 = snd_soc_codec_get_drvdata(codec); rt5651_hp_event() local
779 regmap_update_bits(rt5651->regmap, RT5651_DEPOP_M2, rt5651_hp_event()
782 regmap_update_bits(rt5651->regmap, RT5651_CHARGE_PUMP, rt5651_hp_event()
785 regmap_update_bits(rt5651->regmap, RT5651_DEPOP_M3, rt5651_hp_event()
792 regmap_write(rt5651->regmap, RT5651_PR_BASE + rt5651_hp_event()
794 regmap_update_bits(rt5651->regmap, RT5651_DEPOP_M1, rt5651_hp_event()
797 regmap_update_bits(rt5651->regmap, RT5651_PR_BASE + rt5651_hp_event()
799 rt5651->hp_mute = 0; rt5651_hp_event()
803 rt5651->hp_mute = 1; rt5651_hp_event()
819 struct rt5651_priv *rt5651 = snd_soc_codec_get_drvdata(codec); rt5651_hp_post_event() local
823 if (!rt5651->hp_mute) rt5651_hp_post_event()
1347 struct rt5651_priv *rt5651 = snd_soc_codec_get_drvdata(codec); rt5651_hw_params() local
1351 rt5651->lrck[dai->id] = params_rate(params); rt5651_hw_params()
1352 pre_div = rl6231_get_clk_info(rt5651->sysclk, rt5651->lrck[dai->id]); rt5651_hw_params()
1364 rt5651->bclk[dai->id] = rt5651->lrck[dai->id] * (32 << bclk_ms); rt5651_hw_params()
1367 rt5651->bclk[dai->id], rt5651->lrck[dai->id]); rt5651_hw_params()
1413 struct rt5651_priv *rt5651 = snd_soc_codec_get_drvdata(codec); rt5651_set_dai_fmt() local
1418 rt5651->master[dai->id] = 1; rt5651_set_dai_fmt()
1422 rt5651->master[dai->id] = 0; rt5651_set_dai_fmt()
1476 struct rt5651_priv *rt5651 = snd_soc_codec_get_drvdata(codec); rt5651_set_dai_sysclk() local
1479 if (freq == rt5651->sysclk && clk_id == rt5651->sysclk_src) rt5651_set_dai_sysclk()
1498 rt5651->sysclk = freq; rt5651_set_dai_sysclk()
1499 rt5651->sysclk_src = clk_id; rt5651_set_dai_sysclk()
1510 struct rt5651_priv *rt5651 = snd_soc_codec_get_drvdata(codec); rt5651_set_dai_pll() local
1514 if (source == rt5651->pll_src && freq_in == rt5651->pll_in && rt5651_set_dai_pll()
1515 freq_out == rt5651->pll_out) rt5651_set_dai_pll()
1521 rt5651->pll_in = 0; rt5651_set_dai_pll()
1522 rt5651->pll_out = 0; rt5651_set_dai_pll()
1562 rt5651->pll_in = freq_in; rt5651_set_dai_pll()
1563 rt5651->pll_out = freq_out; rt5651_set_dai_pll()
1564 rt5651->pll_src = source; rt5651_set_dai_pll()
1613 struct rt5651_priv *rt5651 = snd_soc_codec_get_drvdata(codec); rt5651_probe() local
1615 rt5651->codec = codec; rt5651_probe()
1635 struct rt5651_priv *rt5651 = snd_soc_codec_get_drvdata(codec); rt5651_suspend() local
1637 regcache_cache_only(rt5651->regmap, true); rt5651_suspend()
1638 regcache_mark_dirty(rt5651->regmap); rt5651_suspend()
1644 struct rt5651_priv *rt5651 = snd_soc_codec_get_drvdata(codec); rt5651_resume() local
1646 regcache_cache_only(rt5651->regmap, false); rt5651_resume()
1669 .name = "rt5651-aif1",
1688 .name = "rt5651-aif2",
1739 { "rt5651", 0 },
1748 struct rt5651_priv *rt5651; rt5651_i2c_probe() local
1751 rt5651 = devm_kzalloc(&i2c->dev, sizeof(*rt5651), rt5651_i2c_probe()
1753 if (NULL == rt5651) rt5651_i2c_probe()
1756 i2c_set_clientdata(i2c, rt5651); rt5651_i2c_probe()
1759 rt5651->pdata = *pdata; rt5651_i2c_probe()
1761 rt5651->regmap = devm_regmap_init_i2c(i2c, &rt5651_regmap); rt5651_i2c_probe()
1762 if (IS_ERR(rt5651->regmap)) { rt5651_i2c_probe()
1763 ret = PTR_ERR(rt5651->regmap); rt5651_i2c_probe()
1769 regmap_read(rt5651->regmap, RT5651_DEVICE_ID, &ret); rt5651_i2c_probe()
1772 "Device with ID register %#x is not rt5651\n", ret); rt5651_i2c_probe()
1776 regmap_write(rt5651->regmap, RT5651_RESET, 0); rt5651_i2c_probe()
1778 ret = regmap_register_patch(rt5651->regmap, init_list, rt5651_i2c_probe()
1783 if (rt5651->pdata.in2_diff) rt5651_i2c_probe()
1784 regmap_update_bits(rt5651->regmap, RT5651_IN1_IN2, rt5651_i2c_probe()
1787 if (rt5651->pdata.dmic_en) rt5651_i2c_probe()
1788 regmap_update_bits(rt5651->regmap, RT5651_GPIO_CTRL1, rt5651_i2c_probe()
1791 rt5651->hp_mute = 1; rt5651_i2c_probe()
1808 .name = "rt5651",
H A DMakefile91 snd-soc-rt5651-objs := rt5651.o
286 obj-$(CONFIG_SND_SOC_RT5651) += snd-soc-rt5651.o
H A Drt5651.h2 * rt5651.h -- RT5651 ALSA SoC audio driver
15 #include <sound/rt5651.h>

Completed in 191 milliseconds