sta32x 272 sound/soc/codecs/sta32x.c struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); sta32x 278 sound/soc/codecs/sta32x.c mutex_lock(&sta32x->coeff_lock); sta32x 281 sound/soc/codecs/sta32x.c regmap_read(sta32x->regmap, STA32X_CFUD, &cfud); sta32x 287 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_CFUD, cfud); sta32x 289 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_CFADDR2, index); sta32x 291 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_CFUD, cfud | 0x04); sta32x 293 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_CFUD, cfud | 0x08); sta32x 300 sound/soc/codecs/sta32x.c regmap_read(sta32x->regmap, STA32X_B1CF1 + i, &val); sta32x 305 sound/soc/codecs/sta32x.c mutex_unlock(&sta32x->coeff_lock); sta32x 314 sound/soc/codecs/sta32x.c struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); sta32x 321 sound/soc/codecs/sta32x.c regmap_read(sta32x->regmap, STA32X_CFUD, &cfud); sta32x 327 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_CFUD, cfud); sta32x 329 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_CFADDR2, index); sta32x 331 sound/soc/codecs/sta32x.c sta32x->coef_shadow[index + i] = sta32x 336 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_B1CF1 + i, sta32x 339 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_CFUD, cfud | 0x01); sta32x 341 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_CFUD, cfud | 0x02); sta32x 350 sound/soc/codecs/sta32x.c struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); sta32x 355 sound/soc/codecs/sta32x.c regmap_read(sta32x->regmap, STA32X_CFUD, &cfud); sta32x 359 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_CFADDR2, i); sta32x 360 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_B1CF1, sta32x 361 sound/soc/codecs/sta32x.c (sta32x->coef_shadow[i] >> 16) & 0xff); sta32x 362 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_B1CF2, sta32x 363 sound/soc/codecs/sta32x.c (sta32x->coef_shadow[i] >> 8) & 0xff); sta32x 364 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_B1CF3, sta32x 365 sound/soc/codecs/sta32x.c (sta32x->coef_shadow[i]) & 0xff); sta32x 370 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_CFUD, cfud); sta32x 371 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_CFUD, cfud | 0x01); sta32x 378 sound/soc/codecs/sta32x.c struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); sta32x 383 sound/soc/codecs/sta32x.c regmap_read(sta32x->regmap, STA32X_MMUTE, &mute); sta32x 384 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_MMUTE, mute | STA32X_MMUTE_MMUTE); sta32x 386 sound/soc/codecs/sta32x.c rc = regcache_sync(sta32x->regmap); sta32x 387 sound/soc/codecs/sta32x.c regmap_write(sta32x->regmap, STA32X_MMUTE, mute); sta32x 394 sound/soc/codecs/sta32x.c struct sta32x_priv *sta32x = container_of(work, struct sta32x_priv, sta32x 396 sound/soc/codecs/sta32x.c struct snd_soc_component *component = sta32x->component; sta32x 401 sound/soc/codecs/sta32x.c regcache_cache_bypass(sta32x->regmap, true); sta32x 403 sound/soc/codecs/sta32x.c regcache_cache_bypass(sta32x->regmap, false); sta32x 405 sound/soc/codecs/sta32x.c regcache_mark_dirty(sta32x->regmap); sta32x 409 sound/soc/codecs/sta32x.c if (!sta32x->shutdown) sta32x 411 sound/soc/codecs/sta32x.c &sta32x->watchdog_work, sta32x 415 sound/soc/codecs/sta32x.c static void sta32x_watchdog_start(struct sta32x_priv *sta32x) sta32x 417 sound/soc/codecs/sta32x.c if (sta32x->pdata->needs_esd_watchdog) { sta32x 418 sound/soc/codecs/sta32x.c sta32x->shutdown = 0; sta32x 420 sound/soc/codecs/sta32x.c &sta32x->watchdog_work, sta32x 425 sound/soc/codecs/sta32x.c static void sta32x_watchdog_stop(struct sta32x_priv *sta32x) sta32x 427 sound/soc/codecs/sta32x.c if (sta32x->pdata->needs_esd_watchdog) { sta32x 428 sound/soc/codecs/sta32x.c sta32x->shutdown = 1; sta32x 429 sound/soc/codecs/sta32x.c cancel_delayed_work_sync(&sta32x->watchdog_work); sta32x 584 sound/soc/codecs/sta32x.c struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); sta32x 587 sound/soc/codecs/sta32x.c sta32x->mclk = freq; sta32x 604 sound/soc/codecs/sta32x.c struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); sta32x 618 sound/soc/codecs/sta32x.c sta32x->format = fmt & SND_SOC_DAIFMT_FORMAT_MASK; sta32x 635 sound/soc/codecs/sta32x.c return regmap_update_bits(sta32x->regmap, STA32X_CONFB, sta32x 653 sound/soc/codecs/sta32x.c struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); sta32x 659 sound/soc/codecs/sta32x.c if (!sta32x->mclk) { sta32x 666 sound/soc/codecs/sta32x.c ratio = sta32x->mclk / rate; sta32x 703 sound/soc/codecs/sta32x.c switch (sta32x->format) { sta32x 718 sound/soc/codecs/sta32x.c switch (sta32x->format) { sta32x 733 sound/soc/codecs/sta32x.c switch (sta32x->format) { sta32x 748 sound/soc/codecs/sta32x.c switch (sta32x->format) { sta32x 765 sound/soc/codecs/sta32x.c ret = regmap_update_bits(sta32x->regmap, STA32X_CONFA, sta32x 771 sound/soc/codecs/sta32x.c ret = regmap_update_bits(sta32x->regmap, STA32X_CONFB, sta32x 780 sound/soc/codecs/sta32x.c static int sta32x_startup_sequence(struct sta32x_priv *sta32x) sta32x 782 sound/soc/codecs/sta32x.c if (sta32x->gpiod_nreset) { sta32x 783 sound/soc/codecs/sta32x.c gpiod_set_value(sta32x->gpiod_nreset, 0); sta32x 785 sound/soc/codecs/sta32x.c gpiod_set_value(sta32x->gpiod_nreset, 1); sta32x 805 sound/soc/codecs/sta32x.c struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); sta32x 814 sound/soc/codecs/sta32x.c regmap_update_bits(sta32x->regmap, STA32X_CONFF, sta32x 821 sound/soc/codecs/sta32x.c ret = regulator_bulk_enable(ARRAY_SIZE(sta32x->supplies), sta32x 822 sound/soc/codecs/sta32x.c sta32x->supplies); sta32x 829 sound/soc/codecs/sta32x.c sta32x_startup_sequence(sta32x); sta32x 831 sound/soc/codecs/sta32x.c sta32x_watchdog_start(sta32x); sta32x 835 sound/soc/codecs/sta32x.c regmap_update_bits(sta32x->regmap, STA32X_CONFF, sta32x 843 sound/soc/codecs/sta32x.c regmap_update_bits(sta32x->regmap, STA32X_CONFF, sta32x 846 sound/soc/codecs/sta32x.c sta32x_watchdog_stop(sta32x); sta32x 848 sound/soc/codecs/sta32x.c gpiod_set_value(sta32x->gpiod_nreset, 0); sta32x 850 sound/soc/codecs/sta32x.c regulator_bulk_disable(ARRAY_SIZE(sta32x->supplies), sta32x 851 sound/soc/codecs/sta32x.c sta32x->supplies); sta32x 877 sound/soc/codecs/sta32x.c struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); sta32x 878 sound/soc/codecs/sta32x.c struct sta32x_platform_data *pdata = sta32x->pdata; sta32x 881 sound/soc/codecs/sta32x.c sta32x->component = component; sta32x 883 sound/soc/codecs/sta32x.c if (sta32x->xti_clk) { sta32x 884 sound/soc/codecs/sta32x.c ret = clk_prepare_enable(sta32x->xti_clk); sta32x 892 sound/soc/codecs/sta32x.c ret = regulator_bulk_enable(ARRAY_SIZE(sta32x->supplies), sta32x 893 sound/soc/codecs/sta32x.c sta32x->supplies); sta32x 899 sound/soc/codecs/sta32x.c ret = sta32x_startup_sequence(sta32x); sta32x 912 sound/soc/codecs/sta32x.c regmap_update_bits(sta32x->regmap, STA32X_CONFA, sta32x 918 sound/soc/codecs/sta32x.c regmap_update_bits(sta32x->regmap, STA32X_CONFC, sta32x 924 sound/soc/codecs/sta32x.c regmap_update_bits(sta32x->regmap, STA32X_CONFE, sta32x 928 sound/soc/codecs/sta32x.c regmap_update_bits(sta32x->regmap, STA32X_CONFE, sta32x 932 sound/soc/codecs/sta32x.c regmap_update_bits(sta32x->regmap, STA32X_CONFE, sta32x 936 sound/soc/codecs/sta32x.c regmap_update_bits(sta32x->regmap, STA32X_CONFE, sta32x 942 sound/soc/codecs/sta32x.c regmap_update_bits(sta32x->regmap, STA32X_CONFF, sta32x 948 sound/soc/codecs/sta32x.c regmap_update_bits(sta32x->regmap, STA32X_CONFF, sta32x 954 sound/soc/codecs/sta32x.c regmap_update_bits(sta32x->regmap, STA32X_C1CFG, sta32x 958 sound/soc/codecs/sta32x.c regmap_update_bits(sta32x->regmap, STA32X_C2CFG, sta32x 962 sound/soc/codecs/sta32x.c regmap_update_bits(sta32x->regmap, STA32X_C3CFG, sta32x 969 sound/soc/codecs/sta32x.c sta32x->coef_shadow[i] = 0x400000; sta32x 971 sound/soc/codecs/sta32x.c sta32x->coef_shadow[i] = 0x7fffff; sta32x 972 sound/soc/codecs/sta32x.c sta32x->coef_shadow[55] = 0x5a9df7; sta32x 973 sound/soc/codecs/sta32x.c sta32x->coef_shadow[56] = 0x7fffff; sta32x 974 sound/soc/codecs/sta32x.c sta32x->coef_shadow[59] = 0x7fffff; sta32x 975 sound/soc/codecs/sta32x.c sta32x->coef_shadow[60] = 0x400000; sta32x 976 sound/soc/codecs/sta32x.c sta32x->coef_shadow[61] = 0x400000; sta32x 978 sound/soc/codecs/sta32x.c if (sta32x->pdata->needs_esd_watchdog) sta32x 979 sound/soc/codecs/sta32x.c INIT_DELAYED_WORK(&sta32x->watchdog_work, sta32x_watchdog); sta32x 983 sound/soc/codecs/sta32x.c regulator_bulk_disable(ARRAY_SIZE(sta32x->supplies), sta32x->supplies); sta32x 990 sound/soc/codecs/sta32x.c struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); sta32x 992 sound/soc/codecs/sta32x.c sta32x_watchdog_stop(sta32x); sta32x 993 sound/soc/codecs/sta32x.c regulator_bulk_disable(ARRAY_SIZE(sta32x->supplies), sta32x->supplies); sta32x 995 sound/soc/codecs/sta32x.c if (sta32x->xti_clk) sta32x 996 sound/soc/codecs/sta32x.c clk_disable_unprepare(sta32x->xti_clk); sta32x 1035 sound/soc/codecs/sta32x.c static int sta32x_probe_dt(struct device *dev, struct sta32x_priv *sta32x) sta32x 1084 sound/soc/codecs/sta32x.c sta32x->pdata = pdata; sta32x 1094 sound/soc/codecs/sta32x.c struct sta32x_priv *sta32x; sta32x 1097 sound/soc/codecs/sta32x.c sta32x = devm_kzalloc(&i2c->dev, sizeof(struct sta32x_priv), sta32x 1099 sound/soc/codecs/sta32x.c if (!sta32x) sta32x 1102 sound/soc/codecs/sta32x.c mutex_init(&sta32x->coeff_lock); sta32x 1103 sound/soc/codecs/sta32x.c sta32x->pdata = dev_get_platdata(dev); sta32x 1107 sound/soc/codecs/sta32x.c ret = sta32x_probe_dt(dev, sta32x); sta32x 1114 sound/soc/codecs/sta32x.c sta32x->xti_clk = devm_clk_get(dev, "xti"); sta32x 1115 sound/soc/codecs/sta32x.c if (IS_ERR(sta32x->xti_clk)) { sta32x 1116 sound/soc/codecs/sta32x.c ret = PTR_ERR(sta32x->xti_clk); sta32x 1121 sound/soc/codecs/sta32x.c sta32x->xti_clk = NULL; sta32x 1125 sound/soc/codecs/sta32x.c sta32x->gpiod_nreset = devm_gpiod_get_optional(dev, "reset", sta32x 1127 sound/soc/codecs/sta32x.c if (IS_ERR(sta32x->gpiod_nreset)) sta32x 1128 sound/soc/codecs/sta32x.c return PTR_ERR(sta32x->gpiod_nreset); sta32x 1131 sound/soc/codecs/sta32x.c for (i = 0; i < ARRAY_SIZE(sta32x->supplies); i++) sta32x 1132 sound/soc/codecs/sta32x.c sta32x->supplies[i].supply = sta32x_supply_names[i]; sta32x 1134 sound/soc/codecs/sta32x.c ret = devm_regulator_bulk_get(&i2c->dev, ARRAY_SIZE(sta32x->supplies), sta32x 1135 sound/soc/codecs/sta32x.c sta32x->supplies); sta32x 1141 sound/soc/codecs/sta32x.c sta32x->regmap = devm_regmap_init_i2c(i2c, &sta32x_regmap); sta32x 1142 sound/soc/codecs/sta32x.c if (IS_ERR(sta32x->regmap)) { sta32x 1143 sound/soc/codecs/sta32x.c ret = PTR_ERR(sta32x->regmap); sta32x 1148 sound/soc/codecs/sta32x.c i2c_set_clientdata(i2c, sta32x);