wm8995 397 sound/soc/codecs/wm8995.c struct wm8995_priv *wm8995 = container_of(nb, struct wm8995_priv, \ wm8995 400 sound/soc/codecs/wm8995.c regcache_mark_dirty(wm8995->regmap); \ wm8995 671 sound/soc/codecs/wm8995.c struct wm8995_priv *wm8995; wm8995 676 sound/soc/codecs/wm8995.c wm8995 = snd_soc_component_get_drvdata(component); wm8995 683 sound/soc/codecs/wm8995.c switch (wm8995->sysclk[aif]) { wm8995 685 sound/soc/codecs/wm8995.c rate = wm8995->mclk[0]; wm8995 689 sound/soc/codecs/wm8995.c rate = wm8995->mclk[1]; wm8995 693 sound/soc/codecs/wm8995.c rate = wm8995->fll[0].out; wm8995 697 sound/soc/codecs/wm8995.c rate = wm8995->fll[1].out; wm8995 711 sound/soc/codecs/wm8995.c wm8995->aifclk[aif] = rate; wm8995 722 sound/soc/codecs/wm8995.c struct wm8995_priv *wm8995; wm8995 725 sound/soc/codecs/wm8995.c wm8995 = snd_soc_component_get_drvdata(component); wm8995 739 sound/soc/codecs/wm8995.c if (wm8995->aifclk[0] == wm8995->aifclk[1]) wm8995 742 sound/soc/codecs/wm8995.c if (wm8995->aifclk[0] < wm8995->aifclk[1]) wm8995 1548 sound/soc/codecs/wm8995.c struct wm8995_priv *wm8995; wm8995 1559 sound/soc/codecs/wm8995.c wm8995 = snd_soc_component_get_drvdata(component); wm8995 1567 sound/soc/codecs/wm8995.c wm8995->lrclk_shared[0] */) { wm8995 1579 sound/soc/codecs/wm8995.c wm8995->lrclk_shared[1] */) { wm8995 1626 sound/soc/codecs/wm8995.c dai->id + 1, wm8995->aifclk[dai->id], bclk_rate); wm8995 1631 sound/soc/codecs/wm8995.c - wm8995->aifclk[dai->id]); wm8995 1634 sound/soc/codecs/wm8995.c - wm8995->aifclk[dai->id]); wm8995 1654 sound/soc/codecs/wm8995.c cur_val = (wm8995->aifclk[dai->id] * 10 / bclk_divs[i]) - bclk_rate; wm8995 1661 sound/soc/codecs/wm8995.c bclk_rate = wm8995->aifclk[dai->id] * 10 / bclk_divs[best]; wm8995 1799 sound/soc/codecs/wm8995.c struct wm8995_priv *wm8995; wm8995 1805 sound/soc/codecs/wm8995.c wm8995 = snd_soc_component_get_drvdata(component); wm8995 1842 sound/soc/codecs/wm8995.c if (wm8995->fll[id].src == src && wm8995 1843 sound/soc/codecs/wm8995.c wm8995->fll[id].in == freq_in && wm8995->fll[id].out == freq_out) wm8995 1853 sound/soc/codecs/wm8995.c ret = wm8995_get_fll_config(&fll, wm8995->fll[id].in, wm8995 1854 sound/soc/codecs/wm8995.c wm8995->fll[id].out); wm8995 1890 sound/soc/codecs/wm8995.c wm8995->fll[id].in = freq_in; wm8995 1891 sound/soc/codecs/wm8995.c wm8995->fll[id].out = freq_out; wm8995 1892 sound/soc/codecs/wm8995.c wm8995->fll[id].src = src; wm8995 1909 sound/soc/codecs/wm8995.c struct wm8995_priv *wm8995; wm8995 1912 sound/soc/codecs/wm8995.c wm8995 = snd_soc_component_get_drvdata(component); wm8995 1925 sound/soc/codecs/wm8995.c wm8995->sysclk[dai->id] = WM8995_SYSCLK_MCLK1; wm8995 1926 sound/soc/codecs/wm8995.c wm8995->mclk[0] = freq; wm8995 1931 sound/soc/codecs/wm8995.c wm8995->sysclk[dai->id] = WM8995_SYSCLK_MCLK2; wm8995 1932 sound/soc/codecs/wm8995.c wm8995->mclk[1] = freq; wm8995 1937 sound/soc/codecs/wm8995.c wm8995->sysclk[dai->id] = WM8995_SYSCLK_FLL1; wm8995 1941 sound/soc/codecs/wm8995.c wm8995->sysclk[dai->id] = WM8995_SYSCLK_FLL2; wm8995 1958 sound/soc/codecs/wm8995.c struct wm8995_priv *wm8995; wm8995 1961 sound/soc/codecs/wm8995.c wm8995 = snd_soc_component_get_drvdata(component); wm8995 1968 sound/soc/codecs/wm8995.c ret = regulator_bulk_enable(ARRAY_SIZE(wm8995->supplies), wm8995 1969 sound/soc/codecs/wm8995.c wm8995->supplies); wm8995 1973 sound/soc/codecs/wm8995.c ret = regcache_sync(wm8995->regmap); wm8995 1987 sound/soc/codecs/wm8995.c regulator_bulk_disable(ARRAY_SIZE(wm8995->supplies), wm8995 1988 sound/soc/codecs/wm8995.c wm8995->supplies); wm8995 1997 sound/soc/codecs/wm8995.c struct wm8995_priv *wm8995; wm8995 2001 sound/soc/codecs/wm8995.c wm8995 = snd_soc_component_get_drvdata(component); wm8995 2002 sound/soc/codecs/wm8995.c wm8995->component = component; wm8995 2004 sound/soc/codecs/wm8995.c for (i = 0; i < ARRAY_SIZE(wm8995->supplies); i++) wm8995 2005 sound/soc/codecs/wm8995.c wm8995->supplies[i].supply = wm8995_supply_names[i]; wm8995 2008 sound/soc/codecs/wm8995.c ARRAY_SIZE(wm8995->supplies), wm8995 2009 sound/soc/codecs/wm8995.c wm8995->supplies); wm8995 2015 sound/soc/codecs/wm8995.c wm8995->disable_nb[0].notifier_call = wm8995_regulator_event_0; wm8995 2016 sound/soc/codecs/wm8995.c wm8995->disable_nb[1].notifier_call = wm8995_regulator_event_1; wm8995 2017 sound/soc/codecs/wm8995.c wm8995->disable_nb[2].notifier_call = wm8995_regulator_event_2; wm8995 2018 sound/soc/codecs/wm8995.c wm8995->disable_nb[3].notifier_call = wm8995_regulator_event_3; wm8995 2019 sound/soc/codecs/wm8995.c wm8995->disable_nb[4].notifier_call = wm8995_regulator_event_4; wm8995 2020 sound/soc/codecs/wm8995.c wm8995->disable_nb[5].notifier_call = wm8995_regulator_event_5; wm8995 2021 sound/soc/codecs/wm8995.c wm8995->disable_nb[6].notifier_call = wm8995_regulator_event_6; wm8995 2022 sound/soc/codecs/wm8995.c wm8995->disable_nb[7].notifier_call = wm8995_regulator_event_7; wm8995 2025 sound/soc/codecs/wm8995.c for (i = 0; i < ARRAY_SIZE(wm8995->supplies); i++) { wm8995 2027 sound/soc/codecs/wm8995.c wm8995->supplies[i].consumer, wm8995 2028 sound/soc/codecs/wm8995.c &wm8995->disable_nb[i]); wm8995 2036 sound/soc/codecs/wm8995.c ret = regulator_bulk_enable(ARRAY_SIZE(wm8995->supplies), wm8995 2037 sound/soc/codecs/wm8995.c wm8995->supplies); wm8995 2086 sound/soc/codecs/wm8995.c regulator_bulk_disable(ARRAY_SIZE(wm8995->supplies), wm8995->supplies); wm8995 2201 sound/soc/codecs/wm8995.c struct wm8995_priv *wm8995; wm8995 2204 sound/soc/codecs/wm8995.c wm8995 = devm_kzalloc(&spi->dev, sizeof(*wm8995), GFP_KERNEL); wm8995 2205 sound/soc/codecs/wm8995.c if (!wm8995) wm8995 2208 sound/soc/codecs/wm8995.c spi_set_drvdata(spi, wm8995); wm8995 2210 sound/soc/codecs/wm8995.c wm8995->regmap = devm_regmap_init_spi(spi, &wm8995_regmap); wm8995 2211 sound/soc/codecs/wm8995.c if (IS_ERR(wm8995->regmap)) { wm8995 2212 sound/soc/codecs/wm8995.c ret = PTR_ERR(wm8995->regmap); wm8995 2235 sound/soc/codecs/wm8995.c struct wm8995_priv *wm8995; wm8995 2238 sound/soc/codecs/wm8995.c wm8995 = devm_kzalloc(&i2c->dev, sizeof(*wm8995), GFP_KERNEL); wm8995 2239 sound/soc/codecs/wm8995.c if (!wm8995) wm8995 2242 sound/soc/codecs/wm8995.c i2c_set_clientdata(i2c, wm8995); wm8995 2244 sound/soc/codecs/wm8995.c wm8995->regmap = devm_regmap_init_i2c(i2c, &wm8995_regmap); wm8995 2245 sound/soc/codecs/wm8995.c if (IS_ERR(wm8995->regmap)) { wm8995 2246 sound/soc/codecs/wm8995.c ret = PTR_ERR(wm8995->regmap);