#include <linux/module.h>
#include <sound/soc.h>
#include <sound/soc-acpi.h>
#include <linux/acpi.h>
#include <linux/pci.h>
#include <sound/pcm_params.h>
static char codec_name[SND_ACPI_I2C_ID_LEN];
struct loongson_card_data { … };
static int loongson_card_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{ … }
static const struct snd_soc_ops loongson_ops = …;
SND_SOC_DAILINK_DEFS(…);
static struct snd_soc_dai_link loongson_dai_links[] = …;
static int loongson_card_parse_acpi(struct loongson_card_data *data)
{ … }
static int loongson_card_parse_of(struct loongson_card_data *data)
{ … }
static int loongson_asoc_card_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id loongson_asoc_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, loongson_asoc_dt_ids);
static struct platform_driver loongson_audio_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;