da7219 33 sound/soc/codecs/da7219-aad.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 35 sound/soc/codecs/da7219-aad.c da7219->aad->jack = jack; da7219 36 sound/soc/codecs/da7219-aad.c da7219->aad->jack_inserted = false; da7219 58 sound/soc/codecs/da7219-aad.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 86 sound/soc/codecs/da7219-aad.c da7219->micbias_on_event = true; da7219 114 sound/soc/codecs/da7219-aad.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 122 sound/soc/codecs/da7219-aad.c mutex_lock(&da7219->ctrl_lock); da7219 123 sound/soc/codecs/da7219-aad.c mutex_lock(&da7219->pll_lock); da7219 126 sound/soc/codecs/da7219-aad.c if (da7219->mclk) { da7219 127 sound/soc/codecs/da7219-aad.c ret = clk_prepare_enable(da7219->mclk); da7219 130 sound/soc/codecs/da7219-aad.c mutex_unlock(&da7219->pll_lock); da7219 131 sound/soc/codecs/da7219-aad.c mutex_unlock(&da7219->ctrl_lock); da7219 161 sound/soc/codecs/da7219-aad.c regcache_cache_bypass(da7219->regmap, true); da7219 240 sound/soc/codecs/da7219-aad.c regmap_raw_write(da7219->regmap, DA7219_TONE_GEN_FREQ1_L, da7219 263 sound/soc/codecs/da7219-aad.c regcache_mark_dirty(da7219->regmap); da7219 264 sound/soc/codecs/da7219-aad.c regcache_sync_region(da7219->regmap, DA7219_HP_L_CTRL, da7219 267 sound/soc/codecs/da7219-aad.c regcache_sync_region(da7219->regmap, DA7219_MIXOUT_L_CTRL, da7219 269 sound/soc/codecs/da7219-aad.c regcache_sync_region(da7219->regmap, DA7219_DROUTING_ST_OUTFILT_1L, da7219 271 sound/soc/codecs/da7219-aad.c regcache_sync_region(da7219->regmap, DA7219_MIXOUT_L_SELECT, da7219 273 sound/soc/codecs/da7219-aad.c regcache_sync_region(da7219->regmap, DA7219_DAC_L_CTRL, da7219 275 sound/soc/codecs/da7219-aad.c regcache_sync_region(da7219->regmap, DA7219_DIG_ROUTING_DAC, da7219 277 sound/soc/codecs/da7219-aad.c regcache_sync_region(da7219->regmap, DA7219_CP_CTRL, DA7219_CP_CTRL); da7219 278 sound/soc/codecs/da7219-aad.c regcache_sync_region(da7219->regmap, DA7219_DAC_FILTERS5, da7219 280 sound/soc/codecs/da7219-aad.c regcache_sync_region(da7219->regmap, DA7219_DAC_FILTERS4, da7219 282 sound/soc/codecs/da7219-aad.c regcache_sync_region(da7219->regmap, DA7219_HP_L_GAIN, da7219 284 sound/soc/codecs/da7219-aad.c regcache_sync_region(da7219->regmap, DA7219_DAC_L_GAIN, da7219 286 sound/soc/codecs/da7219-aad.c regcache_sync_region(da7219->regmap, DA7219_TONE_GEN_ON_PER, da7219 288 sound/soc/codecs/da7219-aad.c regcache_sync_region(da7219->regmap, DA7219_TONE_GEN_FREQ1_L, da7219 290 sound/soc/codecs/da7219-aad.c regcache_sync_region(da7219->regmap, DA7219_TONE_GEN_CFG1, da7219 293 sound/soc/codecs/da7219-aad.c regcache_cache_bypass(da7219->regmap, false); da7219 321 sound/soc/codecs/da7219-aad.c if (da7219->mclk) da7219 322 sound/soc/codecs/da7219-aad.c clk_disable_unprepare(da7219->mclk); da7219 324 sound/soc/codecs/da7219-aad.c mutex_unlock(&da7219->pll_lock); da7219 325 sound/soc/codecs/da7219-aad.c mutex_unlock(&da7219->ctrl_lock); da7219 347 sound/soc/codecs/da7219-aad.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 353 sound/soc/codecs/da7219-aad.c regmap_bulk_read(da7219->regmap, DA7219_ACCDET_IRQ_EVENT_A, da7219 363 sound/soc/codecs/da7219-aad.c regmap_bulk_write(da7219->regmap, DA7219_ACCDET_IRQ_EVENT_A, da7219 441 sound/soc/codecs/da7219-aad.c da7219->micbias_on_event = false; da7219 710 sound/soc/codecs/da7219-aad.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 711 sound/soc/codecs/da7219-aad.c struct da7219_aad_priv *da7219_aad = da7219->aad; da7219 712 sound/soc/codecs/da7219-aad.c struct da7219_pdata *pdata = da7219->pdata; da7219 833 sound/soc/codecs/da7219-aad.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 834 sound/soc/codecs/da7219-aad.c struct da7219_aad_priv *da7219_aad = da7219->aad; da7219 862 sound/soc/codecs/da7219-aad.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 863 sound/soc/codecs/da7219-aad.c struct da7219_aad_priv *da7219_aad = da7219->aad; da7219 889 sound/soc/codecs/da7219-aad.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 898 sound/soc/codecs/da7219-aad.c da7219->aad = da7219_aad; da7219 902 sound/soc/codecs/da7219-aad.c if (da7219->pdata && !da7219->pdata->aad_pdata) da7219 903 sound/soc/codecs/da7219-aad.c da7219->pdata->aad_pdata = da7219_aad_fw_to_pdata(component); da7219 925 sound/soc/codecs/da7219-aad.c regmap_bulk_write(da7219->regmap, DA7219_ACCDET_IRQ_MASK_A, da7219 934 sound/soc/codecs/da7219-aad.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 935 sound/soc/codecs/da7219-aad.c struct da7219_aad_priv *da7219_aad = da7219->aad; da7219 940 sound/soc/codecs/da7219-aad.c regmap_bulk_write(da7219->regmap, DA7219_ACCDET_IRQ_MASK_A, da7219 258 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 261 sound/soc/codecs/da7219.c mutex_lock(&da7219->ctrl_lock); da7219 263 sound/soc/codecs/da7219.c mutex_unlock(&da7219->ctrl_lock); da7219 272 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 275 sound/soc/codecs/da7219.c mutex_lock(&da7219->ctrl_lock); da7219 277 sound/soc/codecs/da7219.c mutex_unlock(&da7219->ctrl_lock); da7219 286 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 289 sound/soc/codecs/da7219.c mutex_lock(&da7219->ctrl_lock); da7219 291 sound/soc/codecs/da7219.c mutex_unlock(&da7219->ctrl_lock); da7219 300 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 303 sound/soc/codecs/da7219.c mutex_lock(&da7219->ctrl_lock); da7219 305 sound/soc/codecs/da7219.c mutex_unlock(&da7219->ctrl_lock); da7219 380 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 389 sound/soc/codecs/da7219.c if ((ret == 1) && (da7219->alc_en)) da7219 399 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 403 sound/soc/codecs/da7219.c if ((ucontrol->value.integer.value[0]) && (!da7219->alc_en)) { da7219 405 sound/soc/codecs/da7219.c da7219->alc_en = true; da7219 407 sound/soc/codecs/da7219.c da7219->alc_en = false; da7219 418 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 425 sound/soc/codecs/da7219.c mutex_lock(&da7219->ctrl_lock); da7219 426 sound/soc/codecs/da7219.c ret = regmap_raw_read(da7219->regmap, reg, &val, sizeof(val)); da7219 427 sound/soc/codecs/da7219.c mutex_unlock(&da7219->ctrl_lock); da7219 445 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 459 sound/soc/codecs/da7219.c mutex_lock(&da7219->ctrl_lock); da7219 460 sound/soc/codecs/da7219.c ret = regmap_raw_write(da7219->regmap, reg, &val, sizeof(val)); da7219 461 sound/soc/codecs/da7219.c mutex_unlock(&da7219->ctrl_lock); da7219 771 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 775 sound/soc/codecs/da7219.c if (da7219->micbias_on_event) { da7219 780 sound/soc/codecs/da7219.c da7219->micbias_on_event = false; da7219 781 sound/soc/codecs/da7219.c msleep(da7219->mic_pga_delay); da7219 795 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 796 sound/soc/codecs/da7219.c struct clk *bclk = da7219->dai_clks[DA7219_DAI_BCLK_IDX]; da7219 803 sound/soc/codecs/da7219.c if (da7219->master) { da7219 851 sound/soc/codecs/da7219.c if (da7219->master) { da7219 924 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 930 sound/soc/codecs/da7219.c da7219->gain_ramp_ctrl = da7219 939 sound/soc/codecs/da7219.c da7219->gain_ramp_ctrl); da7219 1161 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 1164 sound/soc/codecs/da7219.c if ((da7219->clk_src == clk_id) && (da7219->mclk_rate == freq)) da7219 1173 sound/soc/codecs/da7219.c mutex_lock(&da7219->pll_lock); da7219 1187 sound/soc/codecs/da7219.c mutex_unlock(&da7219->pll_lock); da7219 1191 sound/soc/codecs/da7219.c da7219->clk_src = clk_id; da7219 1193 sound/soc/codecs/da7219.c if (da7219->mclk) { da7219 1194 sound/soc/codecs/da7219.c freq = clk_round_rate(da7219->mclk, freq); da7219 1195 sound/soc/codecs/da7219.c ret = clk_set_rate(da7219->mclk, freq); da7219 1199 sound/soc/codecs/da7219.c mutex_unlock(&da7219->pll_lock); da7219 1204 sound/soc/codecs/da7219.c da7219->mclk_rate = freq; da7219 1206 sound/soc/codecs/da7219.c mutex_unlock(&da7219->pll_lock); da7219 1213 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 1221 sound/soc/codecs/da7219.c if (da7219->mclk_rate < 2000000) { da7219 1223 sound/soc/codecs/da7219.c da7219->mclk_rate); da7219 1225 sound/soc/codecs/da7219.c } else if (da7219->mclk_rate <= 4500000) { da7219 1228 sound/soc/codecs/da7219.c } else if (da7219->mclk_rate <= 9000000) { da7219 1231 sound/soc/codecs/da7219.c } else if (da7219->mclk_rate <= 18000000) { da7219 1234 sound/soc/codecs/da7219.c } else if (da7219->mclk_rate <= 36000000) { da7219 1237 sound/soc/codecs/da7219.c } else if (da7219->mclk_rate <= 54000000) { da7219 1242 sound/soc/codecs/da7219.c da7219->mclk_rate); da7219 1245 sound/soc/codecs/da7219.c freq_ref = (da7219->mclk_rate / indiv); da7219 1289 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 1292 sound/soc/codecs/da7219.c mutex_lock(&da7219->pll_lock); da7219 1294 sound/soc/codecs/da7219.c mutex_unlock(&da7219->pll_lock); da7219 1302 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 1307 sound/soc/codecs/da7219.c da7219->master = true; da7219 1310 sound/soc/codecs/da7219.c da7219->master = false; da7219 1419 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 1420 sound/soc/codecs/da7219.c struct clk *wclk = da7219->dai_clks[DA7219_DAI_WCLK_IDX]; da7219 1421 sound/soc/codecs/da7219.c struct clk *bclk = da7219->dai_clks[DA7219_DAI_BCLK_IDX]; da7219 1435 sound/soc/codecs/da7219.c da7219->tdm_en = false; da7219 1463 sound/soc/codecs/da7219.c if (da7219->master) { da7219 1488 sound/soc/codecs/da7219.c regmap_bulk_write(da7219->regmap, DA7219_DAI_OFFSET_LOWER, da7219 1497 sound/soc/codecs/da7219.c da7219->tdm_en = true; da7219 1555 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 1556 sound/soc/codecs/da7219.c struct clk *wclk = da7219->dai_clks[DA7219_DAI_WCLK_IDX]; da7219 1557 sound/soc/codecs/da7219.c struct clk *bclk = da7219->dai_clks[DA7219_DAI_BCLK_IDX]; da7219 1591 sound/soc/codecs/da7219.c if (da7219->master && wclk) { da7219 1612 sound/soc/codecs/da7219.c if (da7219->master && !da7219->tdm_en) { da7219 1797 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 1806 sound/soc/codecs/da7219.c if (da7219->mclk) { da7219 1807 sound/soc/codecs/da7219.c ret = clk_prepare_enable(da7219->mclk); da7219 1826 sound/soc/codecs/da7219.c if (da7219->mclk) da7219 1827 sound/soc/codecs/da7219.c clk_disable_unprepare(da7219->mclk); da7219 1832 sound/soc/codecs/da7219.c if (!da7219->wakeup_source) da7219 1850 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 1857 sound/soc/codecs/da7219.c da7219->supplies[i].supply = da7219_supply_names[i]; da7219 1860 sound/soc/codecs/da7219.c da7219->supplies); da7219 1867 sound/soc/codecs/da7219.c vddio = da7219->supplies[DA7219_SUPPLY_VDDIO].consumer; da7219 1875 sound/soc/codecs/da7219.c ret = regulator_bulk_enable(DA7219_NUM_SUPPLIES, da7219->supplies); da7219 1893 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = da7219 1896 sound/soc/codecs/da7219.c struct snd_soc_component *component = da7219->component; da7219 1898 sound/soc/codecs/da7219.c if (!da7219->master) da7219 1910 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = da7219 1913 sound/soc/codecs/da7219.c struct snd_soc_component *component = da7219->component; da7219 1915 sound/soc/codecs/da7219.c if (!da7219->master) da7219 1924 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = da7219 1927 sound/soc/codecs/da7219.c struct snd_soc_component *component = da7219->component; da7219 1930 sound/soc/codecs/da7219.c if (!da7219->master) da7219 1941 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = da7219 1944 sound/soc/codecs/da7219.c struct snd_soc_component *component = da7219->component; da7219 1978 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = da7219 1982 sound/soc/codecs/da7219.c if (!da7219->master) da7219 2012 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = da7219 2015 sound/soc/codecs/da7219.c struct snd_soc_component *component = da7219->component; da7219 2017 sound/soc/codecs/da7219.c if (!da7219->master) da7219 2026 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = da7219 2029 sound/soc/codecs/da7219.c struct snd_soc_component *component = da7219->component; da7219 2066 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = da7219 2071 sound/soc/codecs/da7219.c if (!*parent_rate || !da7219->master) da7219 2089 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = da7219 2092 sound/soc/codecs/da7219.c struct snd_soc_component *component = da7219->component; da7219 2095 sound/soc/codecs/da7219.c if (!da7219->master) da7219 2122 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 2123 sound/soc/codecs/da7219.c struct da7219_pdata *pdata = da7219->pdata; da7219 2131 sound/soc/codecs/da7219.c struct clk_hw *dai_clk_hw = &da7219->dai_clks_hw[i]; da7219 2139 sound/soc/codecs/da7219.c if (da7219->mclk) { da7219 2140 sound/soc/codecs/da7219.c parent_name = __clk_get_name(da7219->mclk); da7219 2150 sound/soc/codecs/da7219.c parent_name = __clk_get_name(da7219->dai_clks[DA7219_DAI_WCLK_IDX]); da7219 2172 sound/soc/codecs/da7219.c da7219->dai_clks[i] = dai_clk; da7219 2185 sound/soc/codecs/da7219.c da7219->dai_clks_lookup[i] = dai_clk_lookup; da7219 2194 sound/soc/codecs/da7219.c if (da7219->dai_clks_lookup[i]) da7219 2195 sound/soc/codecs/da7219.c clkdev_drop(da7219->dai_clks_lookup[i]); da7219 2209 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 2210 sound/soc/codecs/da7219.c struct da7219_pdata *pdata = da7219->pdata; da7219 2215 sound/soc/codecs/da7219.c da7219->wakeup_source = pdata->wakeup_source; da7219 2236 sound/soc/codecs/da7219.c da7219->mic_pga_delay = DA7219_MIC_PGA_BASE_DELAY + da7219 2258 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 2262 sound/soc/codecs/da7219.c da7219->component = component; da7219 2263 sound/soc/codecs/da7219.c mutex_init(&da7219->ctrl_lock); da7219 2264 sound/soc/codecs/da7219.c mutex_init(&da7219->pll_lock); da7219 2271 sound/soc/codecs/da7219.c ret = regmap_read(da7219->regmap, DA7219_CHIP_REVISION, &rev); da7219 2279 sound/soc/codecs/da7219.c ret = regmap_register_patch(da7219->regmap, da7219_rev_aa_patch, da7219 2292 sound/soc/codecs/da7219.c da7219->pdata = dev_get_platdata(component->dev); da7219 2293 sound/soc/codecs/da7219.c if (!da7219->pdata) da7219 2294 sound/soc/codecs/da7219.c da7219->pdata = da7219_fw_to_pdata(component); da7219 2299 sound/soc/codecs/da7219.c da7219->mclk = devm_clk_get(component->dev, "mclk"); da7219 2300 sound/soc/codecs/da7219.c if (IS_ERR(da7219->mclk)) { da7219 2301 sound/soc/codecs/da7219.c if (PTR_ERR(da7219->mclk) != -ENOENT) { da7219 2302 sound/soc/codecs/da7219.c ret = PTR_ERR(da7219->mclk); da7219 2305 sound/soc/codecs/da7219.c da7219->mclk = NULL; da7219 2354 sound/soc/codecs/da7219.c regulator_bulk_disable(DA7219_NUM_SUPPLIES, da7219->supplies); da7219 2361 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 2370 sound/soc/codecs/da7219.c if (da7219->dai_clks_lookup[i]) da7219 2371 sound/soc/codecs/da7219.c clkdev_drop(da7219->dai_clks_lookup[i]); da7219 2376 sound/soc/codecs/da7219.c regulator_bulk_disable(DA7219_NUM_SUPPLIES, da7219->supplies); da7219 2382 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 2385 sound/soc/codecs/da7219.c if (!da7219->wakeup_source) da7219 2395 sound/soc/codecs/da7219.c struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); da7219 2400 sound/soc/codecs/da7219.c if (!da7219->wakeup_source) da7219 2572 sound/soc/codecs/da7219.c struct da7219_priv *da7219; da7219 2576 sound/soc/codecs/da7219.c da7219 = devm_kzalloc(&i2c->dev, sizeof(struct da7219_priv), da7219 2578 sound/soc/codecs/da7219.c if (!da7219) da7219 2581 sound/soc/codecs/da7219.c i2c_set_clientdata(i2c, da7219); da7219 2583 sound/soc/codecs/da7219.c da7219->regmap = devm_regmap_init_i2c(i2c, &da7219_regmap_config); da7219 2584 sound/soc/codecs/da7219.c if (IS_ERR(da7219->regmap)) { da7219 2585 sound/soc/codecs/da7219.c ret = PTR_ERR(da7219->regmap); da7219 2590 sound/soc/codecs/da7219.c regcache_cache_bypass(da7219->regmap, true); da7219 2593 sound/soc/codecs/da7219.c regmap_read(da7219->regmap, DA7219_SYSTEM_ACTIVE, &system_active); da7219 2595 sound/soc/codecs/da7219.c regmap_write(da7219->regmap, DA7219_GAIN_RAMP_CTRL, da7219 2597 sound/soc/codecs/da7219.c regmap_write(da7219->regmap, DA7219_SYSTEM_MODES_INPUT, 0x00); da7219 2598 sound/soc/codecs/da7219.c regmap_write(da7219->regmap, DA7219_SYSTEM_MODES_OUTPUT, 0x01); da7219 2601 sound/soc/codecs/da7219.c regmap_read(da7219->regmap, DA7219_SYSTEM_STATUS, da7219 2611 sound/soc/codecs/da7219.c regmap_write_bits(da7219->regmap, DA7219_ACCDET_CONFIG_1, da7219 2613 sound/soc/codecs/da7219.c regmap_write_bits(da7219->regmap, DA7219_CIF_CTRL, da7219 2616 sound/soc/codecs/da7219.c regmap_write_bits(da7219->regmap, DA7219_SYSTEM_ACTIVE, da7219 2619 sound/soc/codecs/da7219.c regcache_cache_bypass(da7219->regmap, false); da7219 261 sound/soc/rockchip/rk3399_gru_sound.c SND_SOC_DAILINK_DEFS(da7219, da7219 302 sound/soc/rockchip/rk3399_gru_sound.c SND_SOC_DAILINK_REG(da7219),