Lines Matching refs:component

79 	struct snd_soc_component *component;  member
1545 static int wm2200_probe(struct snd_soc_component *component) in wm2200_probe() argument
1547 struct wm2200_priv *wm2200 = snd_soc_component_get_drvdata(component); in wm2200_probe()
1549 wm2200->component = component; in wm2200_probe()
1556 struct snd_soc_component *component = dai->component; in wm2200_set_fmt() local
1570 dev_err(component->dev, "Unsupported DAI format %d\n", in wm2200_set_fmt()
1589 dev_err(component->dev, "Unsupported master mode %d\n", in wm2200_set_fmt()
1611 snd_soc_component_update_bits(component, WM2200_AUDIO_IF_1_1, WM2200_AIF1_BCLK_MSTR | in wm2200_set_fmt()
1613 snd_soc_component_update_bits(component, WM2200_AUDIO_IF_1_2, in wm2200_set_fmt()
1616 snd_soc_component_update_bits(component, WM2200_AUDIO_IF_1_3, in wm2200_set_fmt()
1619 snd_soc_component_update_bits(component, WM2200_AUDIO_IF_1_5, in wm2200_set_fmt()
1688 struct snd_soc_component *component = dai->component; in wm2200_hw_params() local
1689 struct wm2200_priv *wm2200 = snd_soc_component_get_drvdata(component); in wm2200_hw_params()
1701 dev_dbg(component->dev, "Word length %d bits, frame length %d bits\n", in wm2200_hw_params()
1710 dev_err(component->dev, "SYSCLK has no rate set\n"); in wm2200_hw_params()
1718 dev_err(component->dev, "Unsupported sample rate: %dHz\n", in wm2200_hw_params()
1724 dev_dbg(component->dev, "Target BCLK is %dHz, using %dHz SYSCLK\n", in wm2200_hw_params()
1736 dev_err(component->dev, in wm2200_hw_params()
1743 dev_dbg(component->dev, "Setting %dHz BCLK\n", bclk_rates[bclk]); in wm2200_hw_params()
1744 snd_soc_component_update_bits(component, WM2200_AUDIO_IF_1_1, in wm2200_hw_params()
1748 dev_dbg(component->dev, "Setting %dHz LRCLK\n", bclk_rates[bclk] / lrclk); in wm2200_hw_params()
1751 snd_soc_component_update_bits(component, WM2200_AUDIO_IF_1_7, in wm2200_hw_params()
1754 snd_soc_component_update_bits(component, WM2200_AUDIO_IF_1_6, in wm2200_hw_params()
1759 snd_soc_component_update_bits(component, WM2200_AUDIO_IF_1_9, in wm2200_hw_params()
1763 snd_soc_component_update_bits(component, WM2200_AUDIO_IF_1_8, in wm2200_hw_params()
1767 snd_soc_component_update_bits(component, WM2200_CLOCKING_4, in wm2200_hw_params()
1773 static int wm2200_set_sysclk(struct snd_soc_component *component, int clk_id, in wm2200_set_sysclk() argument
1776 struct wm2200_priv *wm2200 = snd_soc_component_get_drvdata(component); in wm2200_set_sysclk()
1784 dev_err(component->dev, "Unknown clock %d\n", clk_id); in wm2200_set_sysclk()
1795 dev_err(component->dev, "Invalid source %d\n", source); in wm2200_set_sysclk()
1805 dev_err(component->dev, "Invalid clock rate: %d\n", freq); in wm2200_set_sysclk()
1813 snd_soc_component_update_bits(component, WM2200_CLOCKING_3, WM2200_SYSCLK_FREQ_MASK | in wm2200_set_sysclk()
1921 static int wm2200_set_fll(struct snd_soc_component *component, int fll_id, int source, in wm2200_set_fll() argument
1924 struct i2c_client *i2c = to_i2c_client(component->dev); in wm2200_set_fll()
1925 struct wm2200_priv *wm2200 = snd_soc_component_get_drvdata(component); in wm2200_set_fll()
1931 dev_dbg(component->dev, "FLL disabled"); in wm2200_set_fll()
1934 pm_runtime_put(component->dev); in wm2200_set_fll()
1937 snd_soc_component_update_bits(component, WM2200_FLL_CONTROL_1, in wm2200_set_fll()
1948 dev_err(component->dev, "Invalid FLL source %d\n", source); in wm2200_set_fll()
1957 snd_soc_component_update_bits(component, WM2200_FLL_CONTROL_1, WM2200_FLL_ENA, 0); in wm2200_set_fll()
1959 snd_soc_component_update_bits(component, WM2200_FLL_CONTROL_2, in wm2200_set_fll()
1964 snd_soc_component_update_bits(component, WM2200_FLL_CONTROL_3, in wm2200_set_fll()
1967 snd_soc_component_update_bits(component, WM2200_FLL_EFS_2, in wm2200_set_fll()
1971 snd_soc_component_update_bits(component, WM2200_FLL_CONTROL_3, in wm2200_set_fll()
1973 snd_soc_component_update_bits(component, WM2200_FLL_EFS_2, in wm2200_set_fll()
1977 snd_soc_component_update_bits(component, WM2200_FLL_CONTROL_4, WM2200_FLL_THETA_MASK, in wm2200_set_fll()
1979 snd_soc_component_update_bits(component, WM2200_FLL_CONTROL_6, WM2200_FLL_N_MASK, in wm2200_set_fll()
1981 snd_soc_component_update_bits(component, WM2200_FLL_CONTROL_7, in wm2200_set_fll()
1986 snd_soc_component_update_bits(component, WM2200_FLL_EFS_1, in wm2200_set_fll()
1992 pm_runtime_get_sync(component->dev); in wm2200_set_fll()
1994 snd_soc_component_update_bits(component, WM2200_FLL_CONTROL_1, in wm2200_set_fll()
2002 snd_soc_component_update_bits(component, WM2200_CLOCKING_3, WM2200_SYSCLK_ENA, in wm2200_set_fll()
2017 ret = snd_soc_component_read(component, in wm2200_set_fll()
2020 dev_err(component->dev, in wm2200_set_fll()
2029 dev_err(component->dev, "FLL lock timed out\n"); in wm2200_set_fll()
2030 pm_runtime_put(component->dev); in wm2200_set_fll()
2038 dev_dbg(component->dev, "FLL running %dHz->%dHz\n", Fref, Fout); in wm2200_set_fll()
2045 struct snd_soc_component *component = dai->component; in wm2200_dai_probe() local
2046 struct wm2200_priv *wm2200 = snd_soc_component_get_drvdata(component); in wm2200_dai_probe()
2050 ret = snd_soc_component_read(component, WM2200_GPIO_CTRL_1); in wm2200_dai_probe()
2057 dev_err(component->dev, "Failed to read GPIO 1 config: %d\n", ret); in wm2200_dai_probe()
2060 snd_soc_component_update_bits(component, WM2200_AUDIO_IF_1_2, in wm2200_dai_probe()