Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static struct snd_soc_dai_driver dfmcs320_dai = {
- .name = "dfbmcs320-pcm",
- .playback = {
- .channels_min = 1,
- .channels_max = 1,
- .rates = SNDRV_PCM_RATE_8000,
- .formats = SNDRV_PCM_FMTBIT_S16_LE,
- },
- .capture = {
- .channels_min = 1,
- .channels_max = 1,
- .rates = SNDRV_PCM_RATE_8000,
- .formats = SNDRV_PCM_FMTBIT_S16_LE,
- },
- };
- static struct snd_soc_codec_driver soc_codec_dev_dfmcs320;
- static int __devinit dfmcs320_dai_probe(struct dfmcs320_device *pdev)
- {
- return snd_soc_register_codec(&pdev->dev, &soc_codec_dev_dfmcs320,
- pdata->dais, pdata->num_dais);
- }
- static int __devexit dfmcs320_dai_remove(struct dfmcs320_device *pdev)
- {
- snd_soc_unregister_codec(&pdev->dev);
- return 0;
- }
- static struct dfmcs320_driver dfmcs320_dai_driver = {
- .driver = {
- .name = "dfmcs320-dai",
- .owner = THIS_MODULE,
- },
- .probe = dfmcs320_dai_probe,
- .remove = __devexit_p(dfmcs320_dai_remove),
- };
- static int __init dfmcs320_dai_init(void)
- {
- return dfmcs320_driver_register(&dfmcs320_dai_driver);
- }
- module_init(dfmcs320_dai_init);
- static void __exit dfmcs320_dai_exit(void)
- {
- dfmcs320_driver_unregister(&dfmcs320_dai_driver);
- }
- module_exit(dfmcs320_dai_exit);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement