Lines Matching +full:off +full:- +full:codec
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * ALSA Soc PCM3008 codec support
8 * Based on AC97 Soc codec, original copyright follow:
31 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in pcm3008_dac_ev()
32 struct pcm3008_setup_data *setup = component->dev->platform_data; in pcm3008_dac_ev()
34 gpio_set_value_cansleep(setup->pdda_pin, in pcm3008_dac_ev()
44 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in pcm3008_adc_ev()
45 struct pcm3008_setup_data *setup = component->dev->platform_data; in pcm3008_adc_ev()
47 gpio_set_value_cansleep(setup->pdad_pin, in pcm3008_adc_ev()
80 .name = "pcm3008-hifi",
110 struct pcm3008_setup_data *setup = pdev->dev.platform_data; in pcm3008_codec_probe()
114 return -EINVAL; in pcm3008_codec_probe()
116 /* DEM1 DEM0 DE-EMPHASIS_MODE in pcm3008_codec_probe()
117 * Low Low De-emphasis 44.1 kHz ON in pcm3008_codec_probe()
118 * Low High De-emphasis OFF in pcm3008_codec_probe()
119 * High Low De-emphasis 48 kHz ON in pcm3008_codec_probe()
120 * High High De-emphasis 32 kHz ON in pcm3008_codec_probe()
123 /* Configure DEM0 GPIO (turning OFF DAC De-emphasis). */ in pcm3008_codec_probe()
124 ret = devm_gpio_request_one(&pdev->dev, setup->dem0_pin, in pcm3008_codec_probe()
129 /* Configure DEM1 GPIO (turning OFF DAC De-emphasis). */ in pcm3008_codec_probe()
130 ret = devm_gpio_request_one(&pdev->dev, setup->dem1_pin, in pcm3008_codec_probe()
136 ret = devm_gpio_request_one(&pdev->dev, setup->pdad_pin, in pcm3008_codec_probe()
142 ret = devm_gpio_request_one(&pdev->dev, setup->pdda_pin, in pcm3008_codec_probe()
147 return devm_snd_soc_register_component(&pdev->dev, in pcm3008_codec_probe()
151 MODULE_ALIAS("platform:pcm3008-codec");
156 .name = "pcm3008-codec",