Path: blob/master/sound/soc/samsung/smdk2443_wm9710.c
10817 views
/*1* smdk2443_wm9710.c -- SoC audio for smdk24432*3* Copyright 2007 Wolfson Microelectronics PLC.4* Author: Graeme Gregory5* [email protected] or [email protected]6*7* This program is free software; you can redistribute it and/or modify it8* under the terms of the GNU General Public License as published by the9* Free Software Foundation; either version 2 of the License, or (at your10* option) any later version.11*12*/1314#include <sound/soc.h>1516static struct snd_soc_card smdk2443;1718static struct snd_soc_dai_link smdk2443_dai[] = {19{20.name = "AC97",21.stream_name = "AC97 HiFi",22.cpu_dai_name = "samsung-ac97",23.codec_dai_name = "ac97-hifi",24.codec_name = "ac97-codec",25.platform_name = "samsung-audio",26},27};2829static struct snd_soc_card smdk2443 = {30.name = "SMDK2443",31.dai_link = smdk2443_dai,32.num_links = ARRAY_SIZE(smdk2443_dai),33};3435static struct platform_device *smdk2443_snd_ac97_device;3637static int __init smdk2443_init(void)38{39int ret;4041smdk2443_snd_ac97_device = platform_device_alloc("soc-audio", -1);42if (!smdk2443_snd_ac97_device)43return -ENOMEM;4445platform_set_drvdata(smdk2443_snd_ac97_device, &smdk2443);46ret = platform_device_add(smdk2443_snd_ac97_device);4748if (ret)49platform_device_put(smdk2443_snd_ac97_device);5051return ret;52}5354static void __exit smdk2443_exit(void)55{56platform_device_unregister(smdk2443_snd_ac97_device);57}5859module_init(smdk2443_init);60module_exit(smdk2443_exit);6162/* Module information */63MODULE_AUTHOR("Graeme Gregory, [email protected], www.wolfsonmicro.com");64MODULE_DESCRIPTION("ALSA SoC WM9710 SMDK2443");65MODULE_LICENSE("GPL");666768