Path: blob/master/sound/soc/samsung/ln2440sbc_alc650.c
10817 views
/*1* SoC audio for ln2440sbc2*3* Copyright 2007 KonekTel, a.s.4* Author: Ivan Kuten5* [email protected]6*7* Heavily based on smdk2443_wm9710.c8* Copyright 2007 Wolfson Microelectronics PLC.9* Author: Graeme Gregory10* [email protected] or [email protected]11*12* This program is free software; you can redistribute it and/or modify13* it under the terms of the GNU General Public License version 2 as14* published by the Free Software Foundation.15*16*/1718#include <sound/soc.h>1920static struct snd_soc_card ln2440sbc;2122static struct snd_soc_dai_link ln2440sbc_dai[] = {23{24.name = "AC97",25.stream_name = "AC97 HiFi",26.cpu_dai_name = "samsung-ac97",27.codec_dai_name = "ac97-hifi",28.codec_name = "ac97-codec",29.platform_name = "samsung-audio",30},31};3233static struct snd_soc_card ln2440sbc = {34.name = "LN2440SBC",35.dai_link = ln2440sbc_dai,36.num_links = ARRAY_SIZE(ln2440sbc_dai),37};3839static struct platform_device *ln2440sbc_snd_ac97_device;4041static int __init ln2440sbc_init(void)42{43int ret;4445ln2440sbc_snd_ac97_device = platform_device_alloc("soc-audio", -1);46if (!ln2440sbc_snd_ac97_device)47return -ENOMEM;4849platform_set_drvdata(ln2440sbc_snd_ac97_device, &ln2440sbc);50ret = platform_device_add(ln2440sbc_snd_ac97_device);5152if (ret)53platform_device_put(ln2440sbc_snd_ac97_device);5455return ret;56}5758static void __exit ln2440sbc_exit(void)59{60platform_device_unregister(ln2440sbc_snd_ac97_device);61}6263module_init(ln2440sbc_init);64module_exit(ln2440sbc_exit);6566/* Module information */67MODULE_AUTHOR("Ivan Kuten");68MODULE_DESCRIPTION("ALSA SoC ALC650 LN2440SBC");69MODULE_LICENSE("GPL");707172