Lines Matching +full:de +full:- +full:emphasis
1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright 2009-2011 Analog Devices Inc.
38 * AD1836 volume/mute/de-emphasis etc. controls
99 /* ADC high-pass filter */
103 /* DAC de-emphasis */
141 return -EINVAL; in ad1836_set_dai_fmt()
148 return -EINVAL; in ad1836_set_dai_fmt()
156 return -EINVAL; in ad1836_set_dai_fmt()
166 struct ad1836_priv *ad1836 = snd_soc_component_get_drvdata(dai->component); in ad1836_hw_params()
182 return -EINVAL; in ad1836_hw_params()
185 regmap_update_bits(ad1836->regmap, AD1836_DAC_CTRL1, in ad1836_hw_params()
189 regmap_update_bits(ad1836->regmap, AD1836_ADC_CTRL2, in ad1836_hw_params()
203 .name = _name "-hifi", \
234 return regmap_update_bits(ad1836->regmap, AD1836_ADC_CTRL2, in ad1836_suspend()
242 return regmap_update_bits(ad1836->regmap, AD1836_ADC_CTRL2, in ad1836_resume()
258 num_dacs = ad183x_dais[ad1836->type].playback.channels_max / 2; in ad1836_probe()
259 num_adcs = ad183x_dais[ad1836->type].capture.channels_max / 2; in ad1836_probe()
262 /* de-emphasis: 48kHz, power-on dac */ in ad1836_probe()
263 regmap_write(ad1836->regmap, AD1836_DAC_CTRL1, 0x300); in ad1836_probe()
265 regmap_write(ad1836->regmap, AD1836_DAC_CTRL2, 0x0); in ad1836_probe()
266 /* high-pass filter enable, power-on adc */ in ad1836_probe()
267 regmap_write(ad1836->regmap, AD1836_ADC_CTRL1, 0x100); in ad1836_probe()
269 regmap_write(ad1836->regmap, AD1836_ADC_CTRL2, 0x180); in ad1836_probe()
272 regmap_write(ad1836->regmap, AD1836_DAC_L_VOL(i), 0x3FF); in ad1836_probe()
273 regmap_write(ad1836->regmap, AD1836_DAC_R_VOL(i), 0x3FF); in ad1836_probe()
276 if (ad1836->type == AD1836) { in ad1836_probe()
278 regmap_write(ad1836->regmap, AD1836_ADC_CTRL3, 0x3A); in ad1836_probe()
284 regmap_write(ad1836->regmap, AD1836_ADC_CTRL3, 0x00); in ad1836_probe()
317 regmap_update_bits(ad1836->regmap, AD1836_ADC_CTRL2, in ad1836_remove()
369 ad1836 = devm_kzalloc(&spi->dev, sizeof(struct ad1836_priv), in ad1836_spi_probe()
372 return -ENOMEM; in ad1836_spi_probe()
374 ad1836->regmap = devm_regmap_init_spi(spi, &ad1836_regmap_config); in ad1836_spi_probe()
375 if (IS_ERR(ad1836->regmap)) in ad1836_spi_probe()
376 return PTR_ERR(ad1836->regmap); in ad1836_spi_probe()
378 ad1836->type = spi_get_device_id(spi)->driver_data; in ad1836_spi_probe()
382 ret = devm_snd_soc_register_component(&spi->dev, in ad1836_spi_probe()
383 &soc_component_dev_ad1836, &ad183x_dais[ad1836->type], 1); in ad1836_spi_probe()