Lines Matching +full:designware +full:- +full:i2c
30 #include <sound/soc-dapm.h>
37 #include <linux/i2c.h>
43 #include "../codecs/da7219-aad.h"
56 struct snd_soc_card *card = rtd->card; in cz_da7219_init()
58 struct snd_soc_component *component = codec_dai->component; in cz_da7219_init()
60 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in cz_da7219_init()
65 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret); in cz_da7219_init()
72 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); in cz_da7219_init()
76 da7219_dai_wclk = clk_get(component->dev, "da7219-dai-wclk"); in cz_da7219_init()
77 da7219_dai_bclk = clk_get(component->dev, "da7219-dai-bclk"); in cz_da7219_init()
85 dev_err(card->dev, "HP jack creation failed %d\n", ret); in cz_da7219_init()
114 dev_err(rtd->dev, "can't enable master clock %d\n", ret); in da7219_clk_enable()
148 struct snd_pcm_runtime *runtime = substream->runtime; in cz_da7219_play_startup()
150 struct snd_soc_card *card = rtd->card; in cz_da7219_play_startup()
157 runtime->hw.channels_max = DUAL_CHANNEL; in cz_da7219_play_startup()
163 machine->play_i2s_instance = I2S_SP_INSTANCE; in cz_da7219_play_startup()
169 struct snd_pcm_runtime *runtime = substream->runtime; in cz_da7219_cap_startup()
171 struct snd_soc_card *card = rtd->card; in cz_da7219_cap_startup()
178 runtime->hw.channels_max = DUAL_CHANNEL; in cz_da7219_cap_startup()
184 machine->cap_i2s_instance = I2S_SP_INSTANCE; in cz_da7219_cap_startup()
185 machine->capture_channel = CAP_CHANNEL1; in cz_da7219_cap_startup()
191 struct snd_pcm_runtime *runtime = substream->runtime; in cz_max_startup()
193 struct snd_soc_card *card = rtd->card; in cz_max_startup()
200 runtime->hw.channels_max = DUAL_CHANNEL; in cz_max_startup()
206 machine->play_i2s_instance = I2S_BT_INSTANCE; in cz_max_startup()
212 struct snd_pcm_runtime *runtime = substream->runtime; in cz_dmic0_startup()
214 struct snd_soc_card *card = rtd->card; in cz_dmic0_startup()
221 runtime->hw.channels_max = DUAL_CHANNEL; in cz_dmic0_startup()
227 machine->cap_i2s_instance = I2S_BT_INSTANCE; in cz_dmic0_startup()
233 struct snd_pcm_runtime *runtime = substream->runtime; in cz_dmic1_startup()
235 struct snd_soc_card *card = rtd->card; in cz_dmic1_startup()
242 runtime->hw.channels_max = DUAL_CHANNEL; in cz_dmic1_startup()
248 machine->cap_i2s_instance = I2S_SP_INSTANCE; in cz_dmic1_startup()
249 machine->capture_channel = CAP_CHANNEL0; in cz_dmic1_startup()
284 DAILINK_COMP_ARRAY(COMP_CPU("designware-i2s.1.auto")));
286 DAILINK_COMP_ARRAY(COMP_CPU("designware-i2s.2.auto")));
288 DAILINK_COMP_ARRAY(COMP_CPU("designware-i2s.3.auto")));
291 DAILINK_COMP_ARRAY(COMP_CODEC("i2c-DLGS7219:00", "da7219-hifi")));
295 DAILINK_COMP_ARRAY(COMP_CODEC("ADAU7002:00", "adau7002-hifi")));
302 .name = "amd-da7219-play",
312 .name = "amd-da7219-cap",
321 .name = "amd-max98357-play",
387 REGULATOR_SUPPLY("VDD", "i2c-DLGS7219:00"),
388 REGULATOR_SUPPLY("VDDMIC", "i2c-DLGS7219:00"),
389 REGULATOR_SUPPLY("VDDIO", "i2c-DLGS7219:00"),
409 .name = "reg-fixed-1.8V",
424 acp_da7219_cfg.dev = &pdev->dev; in cz_probe()
425 rdev = devm_regulator_register(&pdev->dev, &acp_da7219_desc, in cz_probe()
428 dev_err(&pdev->dev, "Failed to register regulator: %d\n", in cz_probe()
430 return -EINVAL; in cz_probe()
433 machine = devm_kzalloc(&pdev->dev, sizeof(struct acp_platform_info), in cz_probe()
436 return -ENOMEM; in cz_probe()
438 cz_card.dev = &pdev->dev; in cz_probe()
441 ret = devm_snd_soc_register_card(&pdev->dev, &cz_card); in cz_probe()
443 dev_err(&pdev->dev, in cz_probe()
448 bt_uart_enable = !device_property_read_bool(&pdev->dev, in cz_probe()
449 "bt-pad-enable"); in cz_probe()
463 .name = "cz-da7219-max98357a",