ad1836 166 sound/soc/codecs/ad1836.c struct ad1836_priv *ad1836 = snd_soc_component_get_drvdata(dai->component); ad1836 185 sound/soc/codecs/ad1836.c regmap_update_bits(ad1836->regmap, AD1836_DAC_CTRL1, ad1836 189 sound/soc/codecs/ad1836.c regmap_update_bits(ad1836->regmap, AD1836_ADC_CTRL2, ad1836 232 sound/soc/codecs/ad1836.c struct ad1836_priv *ad1836 = snd_soc_component_get_drvdata(component); ad1836 234 sound/soc/codecs/ad1836.c return regmap_update_bits(ad1836->regmap, AD1836_ADC_CTRL2, ad1836 240 sound/soc/codecs/ad1836.c struct ad1836_priv *ad1836 = snd_soc_component_get_drvdata(component); ad1836 242 sound/soc/codecs/ad1836.c return regmap_update_bits(ad1836->regmap, AD1836_ADC_CTRL2, ad1836 252 sound/soc/codecs/ad1836.c struct ad1836_priv *ad1836 = snd_soc_component_get_drvdata(component); ad1836 258 sound/soc/codecs/ad1836.c num_dacs = ad183x_dais[ad1836->type].playback.channels_max / 2; ad1836 259 sound/soc/codecs/ad1836.c num_adcs = ad183x_dais[ad1836->type].capture.channels_max / 2; ad1836 263 sound/soc/codecs/ad1836.c regmap_write(ad1836->regmap, AD1836_DAC_CTRL1, 0x300); ad1836 265 sound/soc/codecs/ad1836.c regmap_write(ad1836->regmap, AD1836_DAC_CTRL2, 0x0); ad1836 267 sound/soc/codecs/ad1836.c regmap_write(ad1836->regmap, AD1836_ADC_CTRL1, 0x100); ad1836 269 sound/soc/codecs/ad1836.c regmap_write(ad1836->regmap, AD1836_ADC_CTRL2, 0x180); ad1836 272 sound/soc/codecs/ad1836.c regmap_write(ad1836->regmap, AD1836_DAC_L_VOL(i), 0x3FF); ad1836 273 sound/soc/codecs/ad1836.c regmap_write(ad1836->regmap, AD1836_DAC_R_VOL(i), 0x3FF); ad1836 276 sound/soc/codecs/ad1836.c if (ad1836->type == AD1836) { ad1836 278 sound/soc/codecs/ad1836.c regmap_write(ad1836->regmap, AD1836_ADC_CTRL3, 0x3A); ad1836 284 sound/soc/codecs/ad1836.c regmap_write(ad1836->regmap, AD1836_ADC_CTRL3, 0x00); ad1836 317 sound/soc/codecs/ad1836.c struct ad1836_priv *ad1836 = snd_soc_component_get_drvdata(component); ad1836 319 sound/soc/codecs/ad1836.c regmap_update_bits(ad1836->regmap, AD1836_ADC_CTRL2, ad1836 369 sound/soc/codecs/ad1836.c struct ad1836_priv *ad1836; ad1836 372 sound/soc/codecs/ad1836.c ad1836 = devm_kzalloc(&spi->dev, sizeof(struct ad1836_priv), ad1836 374 sound/soc/codecs/ad1836.c if (ad1836 == NULL) ad1836 377 sound/soc/codecs/ad1836.c ad1836->regmap = devm_regmap_init_spi(spi, &ad1836_regmap_config); ad1836 378 sound/soc/codecs/ad1836.c if (IS_ERR(ad1836->regmap)) ad1836 379 sound/soc/codecs/ad1836.c return PTR_ERR(ad1836->regmap); ad1836 381 sound/soc/codecs/ad1836.c ad1836->type = spi_get_device_id(spi)->driver_data; ad1836 383 sound/soc/codecs/ad1836.c spi_set_drvdata(spi, ad1836); ad1836 386 sound/soc/codecs/ad1836.c &soc_component_dev_ad1836, &ad183x_dais[ad1836->type], 1);