• Home
  • Raw
  • Download

Lines Matching +full:clk +full:- +full:output +full:- +full:sel

1 // SPDX-License-Identifier: GPL-2.0
6 #include <linux/clk.h>
51 struct clk *pclk;
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);
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,
144 SND_SOC_DAPM_OUT_DRV("Right- Driver", BLOCK_EN, LORN_EN, 0,
148 SND_SOC_DAPM_OUT_DRV("Left- Driver", BLOCK_EN, LOLN_EN, 0,
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" },
169 { "Left- Driver", NULL, "Left DAC" },
171 { "LORN", NULL, "Right- Driver", },
173 { "LOLN", 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()
249 struct device *dev = &pdev->dev; in t9015_probe()
257 return -ENOMEM; in t9015_probe()
260 priv->pclk = devm_clk_get(dev, "pclk"); in t9015_probe()
261 if (IS_ERR(priv->pclk)) { in t9015_probe()
262 if (PTR_ERR(priv->pclk) != -EPROBE_DEFER) in t9015_probe()
264 return PTR_ERR(priv->pclk); in t9015_probe()
267 priv->avdd = devm_regulator_get(dev, "AVDD"); in t9015_probe()
268 if (IS_ERR(priv->avdd)) { in t9015_probe()
269 if (PTR_ERR(priv->avdd) != -EPROBE_DEFER) in t9015_probe()
271 return PTR_ERR(priv->avdd); in t9015_probe()
274 ret = clk_prepare_enable(priv->pclk); in t9015_probe()
282 priv->pclk); in t9015_probe()
305 * Initialize output polarity: in t9015_probe()
306 * ATM the output polarity is fixed but in the future it might useful in t9015_probe()
323 .name = "t9015-codec",