]> Git Repo - linux.git/commitdiff
ASoC: omap-mcbsp: Remove restrictive checks for cpu type
authorSanjeev Premi <[email protected]>
Wed, 11 May 2011 13:55:35 +0000 (19:25 +0530)
committerLiam Girdwood <[email protected]>
Fri, 13 May 2011 11:00:15 +0000 (12:00 +0100)
Current checks for cpu type were too restrictive leading
to failures for other silicons in same family.

The problem was found while testing audio playback on
AM37x and AM35x processors. But should exist on OMAP36xx
as well.

Signed-off-by: Sanjeev Premi <[email protected]>
cc: Mark Brown <[email protected]>
cc: Liam Girdwood <[email protected]>
cc: Jarkko Nikula <[email protected]>
Acked-by: Jarkko Nikula <[email protected]>
Acked-by: Peter Ujfalusi <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Liam Girdwood <[email protected]>
sound/soc/omap/omap-mcbsp.c

index afbc7be803dd95aa260a3fad3357bd5766096458..07b77235724473691262d59130f897f6ead979d7 100644 (file)
@@ -146,7 +146,7 @@ static int omap_mcbsp_dai_startup(struct snd_pcm_substream *substream,
         * 2 channels (stereo): size is 128 / 2 = 64 frames (2 * 64 words)
         * 4 channels: size is 128 / 4 = 32 frames (4 * 32 words)
         */
-       if (cpu_is_omap343x() || cpu_is_omap44xx()) {
+       if (cpu_is_omap34xx() || cpu_is_omap44xx()) {
                /*
                * Rule for the buffer size. We should not allow
                * smaller buffer than the FIFO size to avoid underruns
@@ -258,7 +258,7 @@ static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream,
        default:
                return -EINVAL;
        }
-       if (cpu_is_omap343x()) {
+       if (cpu_is_omap34xx()) {
                dma_data->set_threshold = omap_mcbsp_set_threshold;
                /* TODO: Currently, MODE_ELEMENT == MODE_FRAME */
                if (omap_mcbsp_get_dma_op_mode(bus_id) ==
This page took 0.0469 seconds and 4 git commands to generate.