• Home
  • Raw
  • Download

Lines Matching +full:at91sam9g20 +full:- +full:i2c

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * sam9g20_wm8731 -- SoC audio for AT91SAM9G20-based
26 #include <linux/i2c.h>
29 #include <linux/atmel-ssc.h>
37 #include "atmel-pcm.h"
100 struct device *dev = rtd->dev; in at91sam9g20ek_wm8731_init()
113 snd_soc_dapm_nc_pin(&rtd->card->dapm, "Int Mic"); in at91sam9g20ek_wm8731_init()
121 DAILINK_COMP_ARRAY(COMP_CODEC("wm8731.0-001b", "wm8731-hifi")),
134 .name = "AT91SAMG20-EK",
149 struct device_node *np = pdev->dev.of_node; in at91sam9g20ek_audio_probe()
156 return -ENODEV; in at91sam9g20ek_audio_probe()
161 dev_err(&pdev->dev, "ssc channel is not valid\n"); in at91sam9g20ek_audio_probe()
162 return -EINVAL; in at91sam9g20ek_audio_probe()
166 * Codec MCLK is supplied by PCK0 - set it up. in at91sam9g20ek_audio_probe()
170 dev_err(&pdev->dev, "Failed to get MCLK\n"); in at91sam9g20ek_audio_probe()
177 dev_err(&pdev->dev, "Failed to get PLLB\n"); in at91sam9g20ek_audio_probe()
184 dev_err(&pdev->dev, "Failed to set MCLK parent\n"); in at91sam9g20ek_audio_probe()
190 card->dev = &pdev->dev; in at91sam9g20ek_audio_probe()
198 "atmel,audio-routing"); in at91sam9g20ek_audio_probe()
203 at91sam9g20ek_dai.codecs->name = NULL; in at91sam9g20ek_audio_probe()
204 codec_np = of_parse_phandle(np, "atmel,audio-codec", 0); in at91sam9g20ek_audio_probe()
206 dev_err(&pdev->dev, "codec info missing\n"); in at91sam9g20ek_audio_probe()
207 return -EINVAL; in at91sam9g20ek_audio_probe()
209 at91sam9g20ek_dai.codecs->of_node = codec_np; in at91sam9g20ek_audio_probe()
212 at91sam9g20ek_dai.cpus->dai_name = NULL; in at91sam9g20ek_audio_probe()
213 at91sam9g20ek_dai.platforms->name = NULL; in at91sam9g20ek_audio_probe()
214 cpu_np = of_parse_phandle(np, "atmel,ssc-controller", 0); in at91sam9g20ek_audio_probe()
216 dev_err(&pdev->dev, "dai and pcm info missing\n"); in at91sam9g20ek_audio_probe()
218 return -EINVAL; in at91sam9g20ek_audio_probe()
220 at91sam9g20ek_dai.cpus->of_node = cpu_np; in at91sam9g20ek_audio_probe()
221 at91sam9g20ek_dai.platforms->of_node = cpu_np; in at91sam9g20ek_audio_probe()
228 dev_err(&pdev->dev, "snd_soc_register_card() failed\n"); in at91sam9g20ek_audio_probe()
255 { .compatible = "atmel,at91sam9g20ek-wm8731-audio", },
263 .name = "at91sam9g20ek-audio",
275 MODULE_ALIAS("platform:at91sam9g20ek-audio");