Lines Matching +full:out +full:- +full:mono
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * stac9766.c -- ALSA SoC STAC9766 codec support
8 * Features:-
79 "Line", "Stereo Mix", "Mono Mix", "Phone"};
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);
121 SOC_SINGLE_TLV("Mono Out Volume", AC97_MASTER_MONO, 0, 31, 1,
123 SOC_SINGLE("Mono Out Switch", AC97_MASTER_MONO, 15, 1, 1),
160 SOC_ENUM("Mono Mux", stac9766_mono_enum),
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()
191 /* Enable VRA and SPDIF out */ in ac97_digital_prepare()
196 return snd_soc_component_write(component, reg, runtime->rate); in ac97_digital_prepare()
234 .name = "stac9766-hifi-analog",
255 .name = "stac9766-hifi-IEC958",
320 return devm_snd_soc_register_component(&pdev->dev, in stac9766_probe()
326 .name = "stac9766-codec",