]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ALSA] mpc8610: Add mmap support
authorTimur Tabi <timur@freescale.com>
Thu, 17 Jan 2008 16:44:49 +0000 (17:44 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 Jan 2008 16:30:04 +0000 (17:30 +0100)
Enable mmap support in the MPC8610 ASoC driver.  The driver can use ALSA's
default mmap functionality, it was just not enabled previously.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/soc/fsl/fsl_dma.c

index 2173203b29abb7e7d2db85a43d5a242c0476c680..652514fc814206066dbd79c733d77791559241d2 100644 (file)
@@ -136,7 +136,9 @@ struct fsl_dma_private {
  */
 static const struct snd_pcm_hardware fsl_dma_hardware = {
 
-       .info                   = SNDRV_PCM_INFO_INTERLEAVED,
+       .info                   = SNDRV_PCM_INFO_INTERLEAVED |
+                                 SNDRV_PCM_INFO_MMAP |
+                                 SNDRV_PCM_INFO_MMAP_VALID,
        .formats                = FSLDMA_PCM_FORMATS,
        .rates                  = FSLDMA_PCM_RATES,
        .rate_min               = 5512,