aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/omap-mcbsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/omap/omap-mcbsp.c')
-rw-r--r--sound/soc/omap/omap-mcbsp.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c
index 4314647e735e..017371913ec3 100644
--- a/sound/soc/omap/omap-mcbsp.c
+++ b/sound/soc/omap/omap-mcbsp.c
@@ -258,7 +258,7 @@ static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream,
258 default: 258 default:
259 return -EINVAL; 259 return -EINVAL;
260 } 260 }
261 if (cpu_is_omap34xx()) { 261 if (cpu_is_omap34xx() || cpu_is_omap44xx()) {
262 dma_data->set_threshold = omap_mcbsp_set_threshold; 262 dma_data->set_threshold = omap_mcbsp_set_threshold;
263 /* TODO: Currently, MODE_ELEMENT == MODE_FRAME */ 263 /* TODO: Currently, MODE_ELEMENT == MODE_FRAME */
264 if (omap_mcbsp_get_dma_op_mode(bus_id) == 264 if (omap_mcbsp_get_dma_op_mode(bus_id) ==
@@ -599,7 +599,7 @@ static int omap_mcbsp_dai_set_dai_sysclk(struct snd_soc_dai *cpu_dai,
599 return err; 599 return err;
600} 600}
601 601
602static struct snd_soc_dai_ops mcbsp_dai_ops = { 602static const struct snd_soc_dai_ops mcbsp_dai_ops = {
603 .startup = omap_mcbsp_dai_startup, 603 .startup = omap_mcbsp_dai_startup,
604 .shutdown = omap_mcbsp_dai_shutdown, 604 .shutdown = omap_mcbsp_dai_shutdown,
605 .trigger = omap_mcbsp_dai_trigger, 605 .trigger = omap_mcbsp_dai_trigger,
@@ -785,17 +785,7 @@ static struct platform_driver asoc_mcbsp_driver = {
785 .remove = __devexit_p(asoc_mcbsp_remove), 785 .remove = __devexit_p(asoc_mcbsp_remove),
786}; 786};
787 787
788static int __init snd_omap_mcbsp_init(void) 788module_platform_driver(asoc_mcbsp_driver);
789{
790 return platform_driver_register(&asoc_mcbsp_driver);
791}
792module_init(snd_omap_mcbsp_init);
793
794static void __exit snd_omap_mcbsp_exit(void)
795{
796 platform_driver_unregister(&asoc_mcbsp_driver);
797}
798module_exit(snd_omap_mcbsp_exit);
799 789
800MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@bitmer.com>"); 790MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@bitmer.com>");
801MODULE_DESCRIPTION("OMAP I2S SoC Interface"); 791MODULE_DESCRIPTION("OMAP I2S SoC Interface");