Lines Matching +full:- +full:12000000
1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8711.c -- WM8711 ALSA SoC Audio driver
60 static const DECLARE_TLV_DB_SCALE(out_tlv, -12100, 100, 1);
114 {12000000, 48000, 250, 0x0, 0x0, 0x1},
119 {12000000, 32000, 375, 0x6, 0x0, 0x1},
126 {12000000, 8000, 1500, 0x3, 0x0, 0x1},
131 {12000000, 96000, 125, 0x7, 0x0, 0x1},
136 {12000000, 44100, 272, 0x8, 0x1, 0x1},
141 {12000000, 88200, 136, 0xf, 0x1, 0x1},
159 struct snd_soc_component *component = dai->component; in wm8711_hw_params()
162 int i = get_coeff(wm8711->sysclk, params_rate(params)); in wm8711_hw_params()
187 struct snd_soc_component *component = dai->component; in wm8711_pcm_prepare()
198 struct snd_soc_component *component = dai->component; in wm8711_shutdown()
209 struct snd_soc_component *component = dai->component; in wm8711_mute()
223 struct snd_soc_component *component = codec_dai->component; in wm8711_set_dai_sysclk()
228 case 12000000: in wm8711_set_dai_sysclk()
232 wm8711->sysclk = freq; in wm8711_set_dai_sysclk()
235 return -EINVAL; in wm8711_set_dai_sysclk()
241 struct snd_soc_component *component = codec_dai->component; in wm8711_set_dai_fmt()
252 return -EINVAL; in wm8711_set_dai_fmt()
272 return -EINVAL; in wm8711_set_dai_fmt()
289 return -EINVAL; in wm8711_set_dai_fmt()
311 regcache_sync(wm8711->regmap); in wm8711_set_bias_level()
339 .name = "wm8711-hifi",
356 dev_err(component->dev, "Failed to issue reset\n"); in wm8711_probe()
407 wm8711 = devm_kzalloc(&spi->dev, sizeof(struct wm8711_priv), in wm8711_spi_probe()
410 return -ENOMEM; in wm8711_spi_probe()
412 wm8711->regmap = devm_regmap_init_spi(spi, &wm8711_regmap); in wm8711_spi_probe()
413 if (IS_ERR(wm8711->regmap)) in wm8711_spi_probe()
414 return PTR_ERR(wm8711->regmap); in wm8711_spi_probe()
418 ret = devm_snd_soc_register_component(&spi->dev, in wm8711_spi_probe()
439 wm8711 = devm_kzalloc(&client->dev, sizeof(struct wm8711_priv), in wm8711_i2c_probe()
442 return -ENOMEM; in wm8711_i2c_probe()
444 wm8711->regmap = devm_regmap_init_i2c(client, &wm8711_regmap); in wm8711_i2c_probe()
445 if (IS_ERR(wm8711->regmap)) in wm8711_i2c_probe()
446 return PTR_ERR(wm8711->regmap); in wm8711_i2c_probe()
450 ret = devm_snd_soc_register_component(&client->dev, in wm8711_i2c_probe()