Lines Matching +full:designware +full:- +full:i2s

1 // SPDX-License-Identifier: GPL-2.0+
12 #include <sound/soc-dapm.h>
65 codec = snd_soc_rtd_to_codec(rtd, 0)->component; in st_es8336_init()
66 card = rtd->card; in st_es8336_init()
72 dev_err(card->dev, "HP jack creation failed %d\n", ret); in st_es8336_init()
78 dev_err(rtd->dev, "Headset Jack call-back failed: %d\n", ret); in st_es8336_init()
113 runtime = substream->runtime; in st_es8336_codec_startup()
115 card = rtd->card; in st_es8336_codec_startup()
120 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret); in st_es8336_codec_startup()
123 runtime->hw.channels_max = DUAL_CHANNEL; in st_es8336_codec_startup()
129 machine->play_i2s_instance = I2S_MICSP_INSTANCE; in st_es8336_codec_startup()
130 machine->cap_i2s_instance = I2S_MICSP_INSTANCE; in st_es8336_codec_startup()
131 machine->capture_channel = CAP_CHANNEL0; in st_es8336_codec_startup()
140 DAILINK_COMP_ARRAY(COMP_CPU("designware-i2s.2.auto")));
142 DAILINK_COMP_ARRAY(COMP_CODEC("i2c-ESSX8336:00", "ES8316 HiFi")));
191 { "pa-enable-gpios", &pa_enable_gpio, 1 },
200 adev = acpi_dev_get_first_match_dev("ESSX8336", NULL, -1); in st_es8336_late_probe()
202 return -ENODEV; in st_es8336_late_probe()
207 dev_err(card->dev, "can not find codec dev\n"); in st_es8336_late_probe()
208 return -ENODEV; in st_es8336_late_probe()
213 dev_warn(card->dev, "Failed to add driver gpios\n"); in st_es8336_late_probe()
215 gpio_pa = gpiod_get_optional(codec_dev, "pa-enable", GPIOD_OUT_LOW); in st_es8336_late_probe()
217 ret = dev_err_probe(card->dev, PTR_ERR(gpio_pa), in st_es8336_late_probe()
218 "could not get pa-enable GPIO\n"); in st_es8336_late_probe()
276 machine = devm_kzalloc(&pdev->dev, sizeof(struct acp_platform_info), GFP_KERNEL); in st_es8336_probe()
278 return -ENOMEM; in st_es8336_probe()
284 st_card.dev = &pdev->dev; in st_es8336_probe()
287 return -ENODEV; in st_es8336_probe()
292 ret = devm_snd_soc_register_card(&pdev->dev, &st_card); in st_es8336_probe()
294 return dev_err_probe(&pdev->dev, ret, in st_es8336_probe()
296 card->name); in st_es8336_probe()
311 .name = "st-es8316",
321 MODULE_DESCRIPTION("st-es8316 audio support");