Lines Matching +full:left +full:- +full:right

1 // SPDX-License-Identifier: GPL-2.0
57 struct snd_soc_component *component = dai->component; in t9015_dai_set_fmt()
70 return -EINVAL; in t9015_dai_set_fmt()
77 return -EINVAL; in t9015_dai_set_fmt()
87 .name = "t9015-hifi",
101 static const DECLARE_TLV_DB_MINMAX_MUTE(dac_vol_tlv, -9525, 0);
107 static const char * const dacr_in_txt[] = { "Right", "Left" };
110 static const char * const dacl_in_txt[] = { "Left", "Right" };
131 SOC_DAPM_ENUM("Right DAC Source", dacr_in_enum);
133 SOC_DAPM_ENUM("Left DAC Source", dacl_in_enum);
136 SND_SOC_DAPM_AIF_IN("Right IN", NULL, 0, SND_SOC_NOPM, 0, 0),
137 SND_SOC_DAPM_AIF_IN("Left IN", NULL, 0, SND_SOC_NOPM, 0, 0),
138 SND_SOC_DAPM_MUX("Right DAC Sel", SND_SOC_NOPM, 0, 0,
140 SND_SOC_DAPM_MUX("Left DAC Sel", SND_SOC_NOPM, 0, 0,
142 SND_SOC_DAPM_DAC("Right DAC", NULL, BLOCK_EN, DACR_EN, 0),
143 SND_SOC_DAPM_DAC("Left DAC", NULL, BLOCK_EN, DACL_EN, 0),
144 SND_SOC_DAPM_OUT_DRV("Right- Driver", BLOCK_EN, LORN_EN, 0,
146 SND_SOC_DAPM_OUT_DRV("Right+ Driver", BLOCK_EN, LORP_EN, 0,
148 SND_SOC_DAPM_OUT_DRV("Left- Driver", BLOCK_EN, LOLN_EN, 0,
150 SND_SOC_DAPM_OUT_DRV("Left+ Driver", BLOCK_EN, LOLP_EN, 0,
159 { "Right IN", NULL, "Playback" },
160 { "Left IN", NULL, "Playback" },
161 { "Right DAC Sel", "Right", "Right IN" },
162 { "Right DAC Sel", "Left", "Left IN" },
163 { "Left DAC Sel", "Right", "Right IN" },
164 { "Left DAC Sel", "Left", "Left IN" },
165 { "Right DAC", NULL, "Right DAC Sel" },
166 { "Left DAC", NULL, "Left DAC Sel" },
167 { "Right- Driver", NULL, "Right DAC" },
168 { "Right+ Driver", NULL, "Right DAC" },
169 { "Left- Driver", NULL, "Left DAC" },
170 { "Left+ Driver", NULL, "Left DAC" },
171 { "LORN", NULL, "Right- Driver", },
172 { "LORP", NULL, "Right+ Driver", },
173 { "LOLN", NULL, "Left- Driver", },
174 { "LOLP", NULL, "Left+ Driver", },
197 ret = regulator_enable(priv->avdd); in t9015_set_bias_level()
199 dev_err(component->dev, "AVDD enable failed\n"); in t9015_set_bias_level()
220 regulator_disable(priv->avdd); in t9015_set_bias_level()
248 struct device *dev = &pdev->dev; in t9015_probe()
256 return -ENOMEM; in t9015_probe()
259 priv->pclk = devm_clk_get(dev, "pclk"); in t9015_probe()
260 if (IS_ERR(priv->pclk)) in t9015_probe()
261 return dev_err_probe(dev, PTR_ERR(priv->pclk), "failed to get core clock\n"); in t9015_probe()
263 priv->avdd = devm_regulator_get(dev, "AVDD"); in t9015_probe()
264 if (IS_ERR(priv->avdd)) in t9015_probe()
265 return dev_err_probe(dev, PTR_ERR(priv->avdd), "failed to AVDD\n"); in t9015_probe()
267 ret = clk_prepare_enable(priv->pclk); in t9015_probe()
275 priv->pclk); in t9015_probe()
316 .name = "t9015-codec",