Lines Matching +full:auto +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 = devm_clk_get(component->dev, "da7219-dai-wclk"); in cz_da7219_init()
80 da7219_dai_bclk = devm_clk_get(component->dev, "da7219-dai-bclk"); in cz_da7219_init()
90 dev_err(card->dev, "HP jack creation failed %d\n", ret); in cz_da7219_init()
119 dev_err(rtd->dev, "can't enable master clock %d\n", ret); in da7219_clk_enable()
153 struct snd_pcm_runtime *runtime = substream->runtime; in cz_da7219_play_startup()
155 struct snd_soc_card *card = rtd->card; in cz_da7219_play_startup()
162 runtime->hw.channels_max = DUAL_CHANNEL; in cz_da7219_play_startup()
168 machine->play_i2s_instance = I2S_SP_INSTANCE; in cz_da7219_play_startup()
174 struct snd_pcm_runtime *runtime = substream->runtime; in cz_da7219_cap_startup()
176 struct snd_soc_card *card = rtd->card; in cz_da7219_cap_startup()
183 runtime->hw.channels_max = DUAL_CHANNEL; in cz_da7219_cap_startup()
189 machine->cap_i2s_instance = I2S_SP_INSTANCE; in cz_da7219_cap_startup()
190 machine->capture_channel = CAP_CHANNEL1; in cz_da7219_cap_startup()
196 struct snd_pcm_runtime *runtime = substream->runtime; in cz_max_startup()
198 struct snd_soc_card *card = rtd->card; in cz_max_startup()
205 runtime->hw.channels_max = DUAL_CHANNEL; in cz_max_startup()
211 machine->play_i2s_instance = I2S_BT_INSTANCE; in cz_max_startup()
217 struct snd_pcm_runtime *runtime = substream->runtime; in cz_dmic0_startup()
219 struct snd_soc_card *card = rtd->card; in cz_dmic0_startup()
226 runtime->hw.channels_max = DUAL_CHANNEL; in cz_dmic0_startup()
232 machine->cap_i2s_instance = I2S_BT_INSTANCE; in cz_dmic0_startup()
238 struct snd_pcm_runtime *runtime = substream->runtime; in cz_dmic1_startup()
240 struct snd_soc_card *card = rtd->card; in cz_dmic1_startup()
247 runtime->hw.channels_max = DUAL_CHANNEL; in cz_dmic1_startup()
253 machine->cap_i2s_instance = I2S_SP_INSTANCE; in cz_dmic1_startup()
254 machine->capture_channel = CAP_CHANNEL0; in cz_dmic1_startup()
289 DAILINK_COMP_ARRAY(COMP_CPU("designware-i2s.1.auto")));
291 DAILINK_COMP_ARRAY(COMP_CPU("designware-i2s.2.auto")));
293 DAILINK_COMP_ARRAY(COMP_CPU("designware-i2s.3.auto")));
296 DAILINK_COMP_ARRAY(COMP_CODEC("i2c-DLGS7219:00", "da7219-hifi")));
300 DAILINK_COMP_ARRAY(COMP_CODEC("ADAU7002:00", "adau7002-hifi")));
303 DAILINK_COMP_ARRAY(COMP_PLATFORM("acp_audio_dma.0.auto")));
307 .name = "amd-da7219-play",
317 .name = "amd-da7219-cap",
326 .name = "amd-max98357-play",
392 REGULATOR_SUPPLY("VDD", "i2c-DLGS7219:00"),
393 REGULATOR_SUPPLY("VDDMIC", "i2c-DLGS7219:00"),
394 REGULATOR_SUPPLY("VDDIO", "i2c-DLGS7219:00"),
414 .name = "reg-fixed-1.8V",
429 acp_da7219_cfg.dev = &pdev->dev; in cz_probe()
430 rdev = devm_regulator_register(&pdev->dev, &acp_da7219_desc, in cz_probe()
433 dev_err(&pdev->dev, "Failed to register regulator: %d\n", in cz_probe()
435 return -EINVAL; in cz_probe()
438 machine = devm_kzalloc(&pdev->dev, sizeof(struct acp_platform_info), in cz_probe()
441 return -ENOMEM; in cz_probe()
443 cz_card.dev = &pdev->dev; in cz_probe()
446 ret = devm_snd_soc_register_card(&pdev->dev, &cz_card); in cz_probe()
448 dev_err(&pdev->dev, in cz_probe()
453 bt_uart_enable = !device_property_read_bool(&pdev->dev, in cz_probe()
454 "bt-pad-enable"); in cz_probe()
468 .name = "cz-da7219-max98357a",