max98373 118 sound/soc/codecs/max98373.c struct max98373_priv *max98373 = snd_soc_component_get_drvdata(component); max98373 135 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 158 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 185 sound/soc/codecs/max98373.c struct max98373_priv *max98373 = snd_soc_component_get_drvdata(component); max98373 187 sound/soc/codecs/max98373.c int blr_clk_ratio = params_channels(params) * max98373->ch_size; max98373 190 sound/soc/codecs/max98373.c if (!max98373->tdm_mode) { max98373 199 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 212 sound/soc/codecs/max98373.c struct max98373_priv *max98373 = snd_soc_component_get_drvdata(component); max98373 233 sound/soc/codecs/max98373.c max98373->ch_size = snd_pcm_format_width(params_format(params)); max98373 235 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 284 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 288 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 294 sound/soc/codecs/max98373.c if (max98373->interleave_mode && max98373 296 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 301 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 316 sound/soc/codecs/max98373.c struct max98373_priv *max98373 = snd_soc_component_get_drvdata(component); max98373 323 sound/soc/codecs/max98373.c max98373->tdm_mode = false; max98373 325 sound/soc/codecs/max98373.c max98373->tdm_mode = true; max98373 335 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 357 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 367 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 371 sound/soc/codecs/max98373.c regmap_write(max98373->regmap, max98373 381 sound/soc/codecs/max98373.c regmap_write(max98373->regmap, max98373 384 sound/soc/codecs/max98373.c regmap_write(max98373->regmap, max98373 406 sound/soc/codecs/max98373.c struct max98373_priv *max98373 = snd_soc_component_get_drvdata(component); max98373 410 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 415 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 418 sound/soc/codecs/max98373.c max98373->tdm_mode = false; max98373 734 sound/soc/codecs/max98373.c static void max98373_reset(struct max98373_priv *max98373, struct device *dev) max98373 739 sound/soc/codecs/max98373.c ret = regmap_update_bits(max98373->regmap, max98373 750 sound/soc/codecs/max98373.c ret = regmap_read(max98373->regmap, max98373 763 sound/soc/codecs/max98373.c struct max98373_priv *max98373 = snd_soc_component_get_drvdata(component); max98373 766 sound/soc/codecs/max98373.c max98373_reset(max98373, component->dev); max98373 769 sound/soc/codecs/max98373.c regmap_write(max98373->regmap, max98373 772 sound/soc/codecs/max98373.c regmap_write(max98373->regmap, max98373 776 sound/soc/codecs/max98373.c regmap_write(max98373->regmap, max98373 779 sound/soc/codecs/max98373.c regmap_write(max98373->regmap, max98373 783 sound/soc/codecs/max98373.c regmap_write(max98373->regmap, max98373 786 sound/soc/codecs/max98373.c regmap_write(max98373->regmap, max98373 790 sound/soc/codecs/max98373.c regmap_write(max98373->regmap, max98373 794 sound/soc/codecs/max98373.c regmap_write(max98373->regmap, max98373 798 sound/soc/codecs/max98373.c regmap_write(max98373->regmap, max98373 800 sound/soc/codecs/max98373.c (max98373->i_slot << MAX98373_PCM_TX_CH_SRC_A_I_SHIFT | max98373 801 sound/soc/codecs/max98373.c max98373->v_slot) & 0xFF); max98373 802 sound/soc/codecs/max98373.c if (max98373->v_slot < 8) max98373 803 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 805 sound/soc/codecs/max98373.c 1 << max98373->v_slot, 0); max98373 807 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 809 sound/soc/codecs/max98373.c 1 << (max98373->v_slot - 8), 0); max98373 811 sound/soc/codecs/max98373.c if (max98373->i_slot < 8) max98373 812 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 814 sound/soc/codecs/max98373.c 1 << max98373->i_slot, 0); max98373 816 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 818 sound/soc/codecs/max98373.c 1 << (max98373->i_slot - 8), 0); max98373 821 sound/soc/codecs/max98373.c regmap_write(max98373->regmap, max98373 823 sound/soc/codecs/max98373.c max98373->spkfb_slot & 0xFF); max98373 826 sound/soc/codecs/max98373.c if (max98373->interleave_mode) max98373 827 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 833 sound/soc/codecs/max98373.c regmap_update_bits(max98373->regmap, max98373 843 sound/soc/codecs/max98373.c struct max98373_priv *max98373 = dev_get_drvdata(dev); max98373 845 sound/soc/codecs/max98373.c regcache_cache_only(max98373->regmap, true); max98373 846 sound/soc/codecs/max98373.c regcache_mark_dirty(max98373->regmap); max98373 851 sound/soc/codecs/max98373.c struct max98373_priv *max98373 = dev_get_drvdata(dev); max98373 853 sound/soc/codecs/max98373.c max98373_reset(max98373, dev); max98373 854 sound/soc/codecs/max98373.c regcache_cache_only(max98373->regmap, false); max98373 855 sound/soc/codecs/max98373.c regcache_sync(max98373->regmap); max98373 890 sound/soc/codecs/max98373.c struct max98373_priv *max98373) max98373 896 sound/soc/codecs/max98373.c max98373->v_slot = value & 0xF; max98373 898 sound/soc/codecs/max98373.c max98373->v_slot = 0; max98373 901 sound/soc/codecs/max98373.c max98373->i_slot = value & 0xF; max98373 903 sound/soc/codecs/max98373.c max98373->i_slot = 1; max98373 905 sound/soc/codecs/max98373.c max98373->reset_gpio = of_get_named_gpio(dev->of_node, max98373 907 sound/soc/codecs/max98373.c if (!gpio_is_valid(max98373->reset_gpio)) { max98373 910 sound/soc/codecs/max98373.c max98373->reset_gpio); max98373 913 sound/soc/codecs/max98373.c max98373->reset_gpio); max98373 917 sound/soc/codecs/max98373.c max98373->reset_gpio = -1; max98373 921 sound/soc/codecs/max98373.c max98373->spkfb_slot = value & 0xF; max98373 923 sound/soc/codecs/max98373.c max98373->spkfb_slot = 2; max98373 932 sound/soc/codecs/max98373.c struct max98373_priv *max98373 = NULL; max98373 934 sound/soc/codecs/max98373.c max98373 = devm_kzalloc(&i2c->dev, sizeof(*max98373), GFP_KERNEL); max98373 936 sound/soc/codecs/max98373.c if (!max98373) { max98373 940 sound/soc/codecs/max98373.c i2c_set_clientdata(i2c, max98373); max98373 944 sound/soc/codecs/max98373.c max98373->interleave_mode = true; max98373 946 sound/soc/codecs/max98373.c max98373->interleave_mode = false; max98373 949 sound/soc/codecs/max98373.c max98373->regmap max98373 951 sound/soc/codecs/max98373.c if (IS_ERR(max98373->regmap)) { max98373 952 sound/soc/codecs/max98373.c ret = PTR_ERR(max98373->regmap); max98373 959 sound/soc/codecs/max98373.c max98373_slot_config(i2c, max98373); max98373 962 sound/soc/codecs/max98373.c if (gpio_is_valid(max98373->reset_gpio)) { max98373 963 sound/soc/codecs/max98373.c ret = devm_gpio_request(&i2c->dev, max98373->reset_gpio, max98373 967 sound/soc/codecs/max98373.c __func__, max98373->reset_gpio); max98373 970 sound/soc/codecs/max98373.c gpio_direction_output(max98373->reset_gpio, 0); max98373 972 sound/soc/codecs/max98373.c gpio_direction_output(max98373->reset_gpio, 1); max98373 977 sound/soc/codecs/max98373.c ret = regmap_read(max98373->regmap,