Lines Matching +full:codec +full:- +full:analog +full:- +full:controls
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * stac9766.c -- ALSA SoC STAC9766 codec support
8 * Features:-
10 * o Support for AC97 Codec, S/PDIF
84 static const char *stac9766_record_all_mux[] = {"All analog",
85 "Analog plus DAC"};
110 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(master_tlv, -4650, 150, 0);
112 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(beep_tlv, -4500, 300, 0);
113 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(mix_tlv, -3450, 150, 0);
167 struct snd_soc_component *component = dai->component; in ac97_analog_prepare()
168 struct snd_pcm_runtime *runtime = substream->runtime; in ac97_analog_prepare()
174 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in ac97_analog_prepare()
179 return snd_soc_component_write(component, reg, runtime->rate); in ac97_analog_prepare()
185 struct snd_soc_component *component = dai->component; in ac97_digital_prepare()
186 struct snd_pcm_runtime *runtime = substream->runtime; in ac97_digital_prepare()
196 return snd_soc_component_write(component, reg, runtime->rate); in ac97_digital_prepare()
234 .name = "stac9766-hifi-analog",
238 .stream_name = "stac9766 analog",
245 .stream_name = "stac9766 analog",
255 .name = "stac9766-hifi-IEC958",
306 .controls = stac9766_snd_ac97_controls,
320 return devm_snd_soc_register_component(&pdev->dev, in stac9766_probe()
326 .name = "stac9766-codec",