mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 21:50:53 +07:00
ASoC: Register platform DAIs
Register all platform DAIs with the core. In line with current behaviour this is done at module probe time rather than when the devices are probed (since currently that only happens as the entire ASoC card is registered except for those drivers that currently implement some kind of hotplug). Since the core currently ignores DAI registration this has no practical effect. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
9115171a6b
commit
3f4b783cfd
@ -772,6 +772,17 @@ struct snd_soc_dai atmel_ssc_dai[NUM_SSC_DEVICES] = {
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(atmel_ssc_dai);
|
||||
|
||||
static int __devinit atmel_ssc_modinit(void)
|
||||
{
|
||||
return snd_soc_register_dais(atmel_ssc_dai, ARRAY_SIZE(atmel_ssc_dai));
|
||||
}
|
||||
module_init(snd_soc_init);
|
||||
|
||||
static void __exit snd_soc_exit(void)
|
||||
{
|
||||
snd_soc_unregister_dais(atmel_ssc_dai, ARRAY_SIZE(atmel_ssc_dai));
|
||||
}
|
||||
|
||||
/* Module information */
|
||||
MODULE_AUTHOR("Sedji Gaouaou, sedji.gaouaou@atmel.com, www.atmel.com");
|
||||
MODULE_DESCRIPTION("ATMEL SSC ASoC Interface");
|
||||
|
@ -371,11 +371,12 @@ EXPORT_SYMBOL_GPL(au1xpsc_ac97_dai);
|
||||
static int __init au1xpsc_ac97_init(void)
|
||||
{
|
||||
au1xpsc_ac97_workdata = NULL;
|
||||
return 0;
|
||||
return snd_soc_register_dai(&au1xpsc_ac97_dai);
|
||||
}
|
||||
|
||||
static void __exit au1xpsc_ac97_exit(void)
|
||||
{
|
||||
snd_soc_unregister_dai(&au1xpsc_ac97_dai);
|
||||
}
|
||||
|
||||
module_init(au1xpsc_ac97_init);
|
||||
|
@ -396,11 +396,12 @@ EXPORT_SYMBOL(au1xpsc_i2s_dai);
|
||||
static int __init au1xpsc_i2s_init(void)
|
||||
{
|
||||
au1xpsc_i2s_workdata = NULL;
|
||||
return 0;
|
||||
return snd_soc_register_dai(&au1xpsc_i2s_dai);
|
||||
}
|
||||
|
||||
static void __exit au1xpsc_i2s_exit(void)
|
||||
{
|
||||
snd_soc_unregister_dai(&au1xpsc_i2s_dai);
|
||||
}
|
||||
|
||||
module_init(au1xpsc_i2s_init);
|
||||
|
@ -431,6 +431,18 @@ struct snd_soc_dai bfin_ac97_dai = {
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(bfin_ac97_dai);
|
||||
|
||||
static int __devinit bfin_ac97_init(void)
|
||||
{
|
||||
return snd_soc_register_dai(&bfin_ac97_dai);
|
||||
}
|
||||
module_init(bfin_ac97_init);
|
||||
|
||||
static void __exit bfin_ac97_exit(void)
|
||||
{
|
||||
snd_soc_unregister_dai(&bfin_ac97_dai);
|
||||
}
|
||||
module_exit(bfin_ac97_exit);
|
||||
|
||||
MODULE_AUTHOR("Roy Huang");
|
||||
MODULE_DESCRIPTION("AC97 driver for ADI Blackfin");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -313,6 +313,18 @@ struct snd_soc_dai bf5xx_i2s_dai = {
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(bf5xx_i2s_dai);
|
||||
|
||||
static int __devinit bfin_i2s_init(void)
|
||||
{
|
||||
return snd_soc_register_dai(&bfin_i2s_dai);
|
||||
}
|
||||
module_init(bfin_i2s_init);
|
||||
|
||||
static void __exit bfin_i2s_exit(void)
|
||||
{
|
||||
snd_soc_unregister_dai(&bfin_i2s_dai);
|
||||
}
|
||||
module_exit(bfin_i2s_exit);
|
||||
|
||||
/* Module information */
|
||||
MODULE_AUTHOR("Cliff Cai");
|
||||
MODULE_DESCRIPTION("I2S driver for ADI Blackfin");
|
||||
|
@ -481,6 +481,18 @@ struct snd_soc_dai davinci_i2s_dai = {
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(davinci_i2s_dai);
|
||||
|
||||
static int __devinit davinci_i2s_init(void)
|
||||
{
|
||||
return snd_soc_register_dai(&davinci_i2s_dai);
|
||||
}
|
||||
module_init(davinci_i2s_init);
|
||||
|
||||
static void __exit davinci_i2s_exit(void)
|
||||
{
|
||||
snd_soc_unregister_dai(&davinci_i2s_dai);
|
||||
}
|
||||
module_exit(davinci_i2s_exit);
|
||||
|
||||
MODULE_AUTHOR("Vladimir Barinov");
|
||||
MODULE_DESCRIPTION("TI DAVINCI I2S (McBSP) SoC Interface");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -673,6 +673,14 @@ struct snd_soc_dai *fsl_ssi_create_dai(struct fsl_ssi_info *ssi_info)
|
||||
fsl_ssi_dai->private_data = ssi_private;
|
||||
fsl_ssi_dai->name = ssi_private->name;
|
||||
fsl_ssi_dai->id = ssi_info->id;
|
||||
fsl_ssi_dai->dev = ssi_info->dev;
|
||||
|
||||
ret = snd_soc_register_dai(fsl_ssi_dai);
|
||||
if (ret != 0) {
|
||||
dev_err(ssi_info->dev, "failed to register DAI: %d\n", ret);
|
||||
kfree(fsl_ssi_dai);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return fsl_ssi_dai;
|
||||
}
|
||||
@ -690,6 +698,8 @@ void fsl_ssi_destroy_dai(struct snd_soc_dai *fsl_ssi_dai)
|
||||
|
||||
device_remove_file(ssi_private->dev, &ssi_private->dev_attr);
|
||||
|
||||
snd_soc_unregister_dai(&ssi_private->cpu_dai);
|
||||
|
||||
kfree(ssi_private);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(fsl_ssi_destroy_dai);
|
||||
|
@ -499,6 +499,19 @@ struct snd_soc_dai omap_mcbsp_dai[] = {
|
||||
|
||||
EXPORT_SYMBOL_GPL(omap_mcbsp_dai);
|
||||
|
||||
static int __devinit omap_mcbsp_init(void)
|
||||
{
|
||||
return snd_soc_register_dais(omap_mcbsp_dai,
|
||||
ARRAY_SIZE(omap_mcbsp_dai));
|
||||
}
|
||||
module_init(omap_mcbsp_init);
|
||||
|
||||
static void __exit omap_mcbsp_exit(void)
|
||||
{
|
||||
snd_soc_unregister_dais(omap_mcbsp_dai, ARRAY_SIZE(omap_mcbsp_dai));
|
||||
}
|
||||
module_exit(omap_mcbsp_exit);
|
||||
|
||||
MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@nokia.com>");
|
||||
MODULE_DESCRIPTION("OMAP I2S SoC Interface");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -913,6 +913,18 @@ struct snd_soc_dai pxa_ssp_dai[] = {
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(pxa_ssp_dai);
|
||||
|
||||
static int __devinit pxa_ssp_init(void)
|
||||
{
|
||||
return snd_soc_register_dais(pxa_ssp_dai, ARRAY_SIZE(pxa_ssp_dai));
|
||||
}
|
||||
module_init(pxa_ssp_init);
|
||||
|
||||
static void __exit pxa_ssp_exit(void)
|
||||
{
|
||||
snd_soc_unregister_dais(pxa_ssp_dai, ARRAY_SIZE(pxa_ssp_dai));
|
||||
}
|
||||
module_exit(pxa_ssp_exit);
|
||||
|
||||
/* Module information */
|
||||
MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");
|
||||
MODULE_DESCRIPTION("PXA SSP/PCM SoC Interface");
|
||||
|
@ -228,6 +228,18 @@ struct snd_soc_dai pxa_ac97_dai[] = {
|
||||
EXPORT_SYMBOL_GPL(pxa_ac97_dai);
|
||||
EXPORT_SYMBOL_GPL(soc_ac97_ops);
|
||||
|
||||
static int __devinit pxa_ac97_init(void)
|
||||
{
|
||||
return snd_soc_register_dais(pxa_ac97_dai, ARRAY_SIZE(pxa_ac97_dai));
|
||||
}
|
||||
module_init(pxa_ac97_init);
|
||||
|
||||
static void __exit pxa_ac97_exit(void)
|
||||
{
|
||||
snd_soc_unregister_dais(pxa_ac97_dai, ARRAY_SIZE(pxa_ac97_dai));
|
||||
}
|
||||
module_exit(pxa_ac97_exit);
|
||||
|
||||
MODULE_AUTHOR("Nicolas Pitre");
|
||||
MODULE_DESCRIPTION("AC97 driver for the Intel PXA2xx chip");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -364,12 +364,23 @@ EXPORT_SYMBOL_GPL(pxa_i2s_dai);
|
||||
|
||||
static int pxa2xx_i2s_probe(struct platform_device *dev)
|
||||
{
|
||||
int ret;
|
||||
|
||||
clk_i2s = clk_get(&dev->dev, "I2SCLK");
|
||||
return IS_ERR(clk_i2s) ? PTR_ERR(clk_i2s) : 0;
|
||||
if (IS_ERR(clk_i2s))
|
||||
return PTR_ERR(clk_i2s);
|
||||
|
||||
pxa_i2s_dai.dev = &dev->dev;
|
||||
ret = snd_soc_register_dai(&pxa_i2s_dai);
|
||||
if (ret != 0)
|
||||
clk_put(clk_i2s);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit pxa2xx_i2s_remove(struct platform_device *dev)
|
||||
{
|
||||
snd_soc_unregister_dai(&pxa_i2s_dai);
|
||||
clk_put(clk_i2s);
|
||||
clk_i2s = ERR_PTR(-ENOENT);
|
||||
return 0;
|
||||
|
@ -736,6 +736,19 @@ struct snd_soc_dai s3c2412_i2s_dai = {
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(s3c2412_i2s_dai);
|
||||
|
||||
static int __devinit s3c2412_i2s_init(void)
|
||||
{
|
||||
return snd_soc_register_dai(&s3c2412_i2s_dai);
|
||||
}
|
||||
module_init(s3c2412_i2s_init);
|
||||
|
||||
static void __exit s3c2412_i2s_exit(void)
|
||||
{
|
||||
snd_soc_unregister_dai(&s3c2412_i2s_dai);
|
||||
}
|
||||
module_exit(s3c2412_i2s_exit);
|
||||
|
||||
|
||||
/* Module information */
|
||||
MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>");
|
||||
MODULE_DESCRIPTION("S3C2412 I2S SoC Interface");
|
||||
|
@ -396,6 +396,19 @@ struct snd_soc_dai s3c2443_ac97_dai[] = {
|
||||
EXPORT_SYMBOL_GPL(s3c2443_ac97_dai);
|
||||
EXPORT_SYMBOL_GPL(soc_ac97_ops);
|
||||
|
||||
static int __devinit s3c2443_ac97_init(void)
|
||||
{
|
||||
return snd_soc_register_dai(&s3c2443_ac97_dai);
|
||||
}
|
||||
module_init(s3c2443_ac97_init);
|
||||
|
||||
static void __exit s3c2443_ac97_exit(void)
|
||||
{
|
||||
snd_soc_unregister_dai(&s3c2443_ac97_dai);
|
||||
}
|
||||
module_exit(s3c2443_ac97_exit);
|
||||
|
||||
|
||||
MODULE_AUTHOR("Graeme Gregory");
|
||||
MODULE_DESCRIPTION("AC97 driver for the Samsung s3c2443 chip");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -482,6 +482,18 @@ struct snd_soc_dai s3c24xx_i2s_dai = {
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(s3c24xx_i2s_dai);
|
||||
|
||||
static int __devinit s3c24xx_i2s_init(void)
|
||||
{
|
||||
return snd_soc_register_dai(&s3c24xx_i2s_dai);
|
||||
}
|
||||
module_init(s3c24xx_i2s_init);
|
||||
|
||||
static void __exit s3c24xx_i2s_exit(void)
|
||||
{
|
||||
snd_soc_unregister_dai(&s3c24xx_i2s_dai);
|
||||
}
|
||||
module_exit(s3c24xx_i2s_exit);
|
||||
|
||||
/* Module information */
|
||||
MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>");
|
||||
MODULE_DESCRIPTION("s3c24xx I2S SoC Interface");
|
||||
|
@ -314,6 +314,18 @@ struct snd_soc_dai sh4_hac_dai[] = {
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(sh4_hac_dai);
|
||||
|
||||
static int __devinit sh4_hac_init(void)
|
||||
{
|
||||
return snd_soc_register_dais(sh4_hac_dai, ARRAY_SIZE(sh4_hac_dai));
|
||||
}
|
||||
module_init(sh4_hac_init);
|
||||
|
||||
static void __exit sh4_hac_exit(void)
|
||||
{
|
||||
snd_soc_unregister_dais(sh4_hac_dai, ARRAY_SIZE(sh4_hac_dai));
|
||||
}
|
||||
module_exit(sh4_hac_exit);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_DESCRIPTION("SuperH onchip HAC (AC97) audio driver");
|
||||
MODULE_AUTHOR("Manuel Lauss <mano@roarinelk.homelinux.net>");
|
||||
|
@ -392,6 +392,18 @@ struct snd_soc_dai sh4_ssi_dai[] = {
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(sh4_ssi_dai);
|
||||
|
||||
static int __devinit sh4_ssi_init(void)
|
||||
{
|
||||
return snd_soc_register_dais(sh4_ssi_dai, ARRAY_SIZE(sh4_ssi_dai));
|
||||
}
|
||||
module_init(sh4_ssi_init);
|
||||
|
||||
static void __exit sh4_ssi_exit(void)
|
||||
{
|
||||
snd_soc_unregister_dais(sh4_ssi_dai, ARRAY_SIZE(sh4_ssi_dai));
|
||||
}
|
||||
module_exit(sh4_ssi_exit);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_DESCRIPTION("SuperH onchip SSI (I2S) audio driver");
|
||||
MODULE_AUTHOR("Manuel Lauss <mano@roarinelk.homelinux.net>");
|
||||
|
Loading…
Reference in New Issue
Block a user