Lines Matching +full:pvdd +full:- +full:supply
1 // SPDX-License-Identifier: GPL-2.0-only
41 unsigned int mfs = priv->mclk / rate; in es7134_check_mclk()
44 for (i = 0; i < priv->chip->mode_num; i++) { in es7134_check_mclk()
45 const struct es7134_clock_mode *mode = &priv->chip->modes[i]; in es7134_check_mclk()
47 if (rate < mode->rate_min || rate > mode->rate_max) in es7134_check_mclk()
50 for (j = 0; j < mode->mclk_fs_num; j++) { in es7134_check_mclk()
51 if (mode->mclk_fs[j] == mfs) in es7134_check_mclk()
55 dev_err(dai->dev, "unsupported mclk_fs %u for rate %u\n", in es7134_check_mclk()
57 return -EINVAL; in es7134_check_mclk()
61 dev_err(dai->dev, "unsupported rate: %u\n", rate); in es7134_check_mclk()
62 return -EINVAL; in es7134_check_mclk()
72 if (!priv->mclk) in es7134_hw_params()
84 priv->mclk = freq; in es7134_set_sysclk()
88 return -ENOTSUPP; in es7134_set_sysclk()
98 dev_err(codec_dai->dev, "Invalid DAI format\n"); in es7134_set_fmt()
99 return -EINVAL; in es7134_set_fmt()
109 const struct es7134_chip *chip = priv->chip; in es7134_component_probe()
112 if (chip->extra_widget_num) { in es7134_component_probe()
113 ret = snd_soc_dapm_new_controls(dapm, chip->extra_widgets, in es7134_component_probe()
114 chip->extra_widget_num); in es7134_component_probe()
116 dev_err(c->dev, "failed to add extra widgets\n"); in es7134_component_probe()
121 if (chip->extra_route_num) { in es7134_component_probe()
122 ret = snd_soc_dapm_add_routes(dapm, chip->extra_routes, in es7134_component_probe()
123 chip->extra_route_num); in es7134_component_probe()
125 dev_err(c->dev, "failed to add extra routes\n"); in es7134_component_probe()
140 .name = "es7134-hifi",
219 .name = "es7154-hifi",
254 /* Es7154 has a separate supply for digital I/O */
256 SND_SOC_DAPM_REGULATOR_SUPPLY("PVDD", 0, 0),
260 { "Playback", NULL, "PVDD", }
275 struct device *dev = &pdev->dev; in es7134_probe()
280 return -ENOMEM; in es7134_probe()
283 priv->chip = of_device_get_match_data(dev); in es7134_probe()
284 if (!priv->chip) { in es7134_probe()
286 return -ENODEV; in es7134_probe()
289 return devm_snd_soc_register_component(&pdev->dev, in es7134_probe()
291 priv->chip->dai_drv, 1); in es7134_probe()