tscs42xx 143 sound/soc/codecs/tscs42xx.c struct tscs42xx *tscs42xx = snd_soc_component_get_drvdata(component); tscs42xx 168 sound/soc/codecs/tscs42xx.c ret = regmap_write(tscs42xx->regmap, R_DACCRADDR, addr); tscs42xx 175 sound/soc/codecs/tscs42xx.c ret = regmap_bulk_write(tscs42xx->regmap, R_DACCRWRL, tscs42xx 190 sound/soc/codecs/tscs42xx.c struct tscs42xx *tscs42xx = snd_soc_component_get_drvdata(component); tscs42xx 196 sound/soc/codecs/tscs42xx.c freq_out = sample_rate_to_pll_freq_out(tscs42xx->samplerate); tscs42xx 213 sound/soc/codecs/tscs42xx.c mutex_lock(&tscs42xx->pll_lock); tscs42xx 229 sound/soc/codecs/tscs42xx.c mutex_unlock(&tscs42xx->pll_lock); tscs42xx 236 sound/soc/codecs/tscs42xx.c struct tscs42xx *tscs42xx = snd_soc_component_get_drvdata(component); tscs42xx 239 sound/soc/codecs/tscs42xx.c mutex_lock(&tscs42xx->pll_lock); tscs42xx 258 sound/soc/codecs/tscs42xx.c mutex_unlock(&tscs42xx->pll_lock); tscs42xx 268 sound/soc/codecs/tscs42xx.c struct tscs42xx *tscs42xx = snd_soc_component_get_drvdata(component); tscs42xx 273 sound/soc/codecs/tscs42xx.c mutex_lock(&tscs42xx->coeff_ram_lock); tscs42xx 276 sound/soc/codecs/tscs42xx.c &tscs42xx->coeff_ram[ctl->addr * COEFF_SIZE], params->max); tscs42xx 278 sound/soc/codecs/tscs42xx.c mutex_unlock(&tscs42xx->coeff_ram_lock); tscs42xx 288 sound/soc/codecs/tscs42xx.c struct tscs42xx *tscs42xx = snd_soc_component_get_drvdata(component); tscs42xx 295 sound/soc/codecs/tscs42xx.c mutex_lock(&tscs42xx->coeff_ram_lock); tscs42xx 297 sound/soc/codecs/tscs42xx.c tscs42xx->coeff_ram_synced = false; tscs42xx 299 sound/soc/codecs/tscs42xx.c memcpy(&tscs42xx->coeff_ram[ctl->addr * COEFF_SIZE], tscs42xx 302 sound/soc/codecs/tscs42xx.c mutex_lock(&tscs42xx->pll_lock); tscs42xx 305 sound/soc/codecs/tscs42xx.c ret = write_coeff_ram(component, tscs42xx->coeff_ram, tscs42xx 312 sound/soc/codecs/tscs42xx.c tscs42xx->coeff_ram_synced = true; tscs42xx 317 sound/soc/codecs/tscs42xx.c mutex_unlock(&tscs42xx->pll_lock); tscs42xx 319 sound/soc/codecs/tscs42xx.c mutex_unlock(&tscs42xx->coeff_ram_lock); tscs42xx 387 sound/soc/codecs/tscs42xx.c struct tscs42xx *tscs42xx = snd_soc_component_get_drvdata(component); tscs42xx 390 sound/soc/codecs/tscs42xx.c mutex_lock(&tscs42xx->coeff_ram_lock); tscs42xx 392 sound/soc/codecs/tscs42xx.c if (!tscs42xx->coeff_ram_synced) { tscs42xx 393 sound/soc/codecs/tscs42xx.c ret = write_coeff_ram(component, tscs42xx->coeff_ram, 0x00, tscs42xx 397 sound/soc/codecs/tscs42xx.c tscs42xx->coeff_ram_synced = true; tscs42xx 402 sound/soc/codecs/tscs42xx.c mutex_unlock(&tscs42xx->coeff_ram_lock); tscs42xx 851 sound/soc/codecs/tscs42xx.c struct tscs42xx *tscs42xx = snd_soc_component_get_drvdata(component); tscs42xx 931 sound/soc/codecs/tscs42xx.c mutex_lock(&tscs42xx->audio_params_lock); tscs42xx 933 sound/soc/codecs/tscs42xx.c tscs42xx->samplerate = rate; tscs42xx 935 sound/soc/codecs/tscs42xx.c mutex_unlock(&tscs42xx->audio_params_lock); tscs42xx 1224 sound/soc/codecs/tscs42xx.c struct tscs42xx *tscs42xx = snd_soc_component_get_drvdata(component); tscs42xx 1258 sound/soc/codecs/tscs42xx.c mutex_lock(&tscs42xx->audio_params_lock); tscs42xx 1260 sound/soc/codecs/tscs42xx.c tscs42xx->bclk_ratio = ratio; tscs42xx 1262 sound/soc/codecs/tscs42xx.c mutex_unlock(&tscs42xx->audio_params_lock); tscs42xx 1274 sound/soc/codecs/tscs42xx.c static int part_is_valid(struct tscs42xx *tscs42xx) tscs42xx 1280 sound/soc/codecs/tscs42xx.c ret = regmap_read(tscs42xx->regmap, R_DEVIDH, ®); tscs42xx 1285 sound/soc/codecs/tscs42xx.c ret = regmap_read(tscs42xx->regmap, R_DEVIDL, ®); tscs42xx 1302 sound/soc/codecs/tscs42xx.c struct tscs42xx *tscs42xx = snd_soc_component_get_drvdata(component); tscs42xx 1306 sound/soc/codecs/tscs42xx.c switch (tscs42xx->sysclk_src_id) { tscs42xx 1334 sound/soc/codecs/tscs42xx.c freq = clk_get_rate(tscs42xx->sysclk); tscs42xx 1364 sound/soc/codecs/tscs42xx.c static inline void init_coeff_ram_cache(struct tscs42xx *tscs42xx) tscs42xx 1373 sound/soc/codecs/tscs42xx.c u8 *coeff_ram = tscs42xx->coeff_ram; tscs42xx 1415 sound/soc/codecs/tscs42xx.c struct tscs42xx *tscs42xx; tscs42xx 1419 sound/soc/codecs/tscs42xx.c tscs42xx = devm_kzalloc(&i2c->dev, sizeof(*tscs42xx), GFP_KERNEL); tscs42xx 1420 sound/soc/codecs/tscs42xx.c if (!tscs42xx) { tscs42xx 1426 sound/soc/codecs/tscs42xx.c i2c_set_clientdata(i2c, tscs42xx); tscs42xx 1429 sound/soc/codecs/tscs42xx.c tscs42xx->sysclk = devm_clk_get(&i2c->dev, src_names[src]); tscs42xx 1430 sound/soc/codecs/tscs42xx.c if (!IS_ERR(tscs42xx->sysclk)) { tscs42xx 1432 sound/soc/codecs/tscs42xx.c } else if (PTR_ERR(tscs42xx->sysclk) != -ENOENT) { tscs42xx 1433 sound/soc/codecs/tscs42xx.c ret = PTR_ERR(tscs42xx->sysclk); tscs42xx 1444 sound/soc/codecs/tscs42xx.c tscs42xx->sysclk_src_id = src; tscs42xx 1446 sound/soc/codecs/tscs42xx.c tscs42xx->regmap = devm_regmap_init_i2c(i2c, &tscs42xx_regmap); tscs42xx 1447 sound/soc/codecs/tscs42xx.c if (IS_ERR(tscs42xx->regmap)) { tscs42xx 1448 sound/soc/codecs/tscs42xx.c ret = PTR_ERR(tscs42xx->regmap); tscs42xx 1453 sound/soc/codecs/tscs42xx.c init_coeff_ram_cache(tscs42xx); tscs42xx 1455 sound/soc/codecs/tscs42xx.c ret = part_is_valid(tscs42xx); tscs42xx 1462 sound/soc/codecs/tscs42xx.c ret = regmap_write(tscs42xx->regmap, R_RESET, RV_RESET_ENABLE); tscs42xx 1468 sound/soc/codecs/tscs42xx.c ret = regmap_register_patch(tscs42xx->regmap, tscs42xx_patch, tscs42xx 1475 sound/soc/codecs/tscs42xx.c mutex_init(&tscs42xx->audio_params_lock); tscs42xx 1476 sound/soc/codecs/tscs42xx.c mutex_init(&tscs42xx->coeff_ram_lock); tscs42xx 1477 sound/soc/codecs/tscs42xx.c mutex_init(&tscs42xx->pll_lock);