ASoC: omap-mcbsp: Remove unused FRAME dma_op_mode
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 15 Mar 2012 10:29:49 +0000 (12:29 +0200)
committerLiam Girdwood <lrg@ti.com>
Tue, 22 May 2012 16:33:19 +0000 (17:33 +0100)
The frame dma_op_mode has never been used, and it is just creating
confusion for users/developers.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Liam Girdwood <lrg@ti.com>
sound/soc/omap/mcbsp.c
sound/soc/omap/mcbsp.h
sound/soc/omap/omap-mcbsp.c

index e5f44440d1b948fda1de18196bd1190b5aa707a4..ec6832cc296db658b9a0c537baf899a8b7def4b0 100644 (file)
@@ -754,7 +754,7 @@ THRESHOLD_PROP_BUILDER(max_tx_thres);
 THRESHOLD_PROP_BUILDER(max_rx_thres);
 
 static const char *dma_op_modes[] = {
-       "element", "threshold", "frame",
+       "element", "threshold",
 };
 
 static ssize_t dma_op_mode_show(struct device *dev,
index a944fcc9073c619f82667c7c5a2bd0a8861f4f3f..179a822c7238fd58e02fd76fea8f4979e15a013d 100644 (file)
@@ -217,7 +217,6 @@ enum {
 /********************** McBSP DMA operating modes **************************/
 #define MCBSP_DMA_MODE_ELEMENT         0
 #define MCBSP_DMA_MODE_THRESHOLD       1
-#define MCBSP_DMA_MODE_FRAME           2
 
 /********************** McBSP WAKEUPEN bit definitions *********************/
 #define RSYNCERREN             BIT(0)
index 418dc3cebdeca59720b69cd88b6ae14fd77f93a6..27144a67e5ec217540496739967763de4b1ee31b 100644 (file)
@@ -245,7 +245,6 @@ static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream,
        }
        if (mcbsp->pdata->buffer_size) {
                dma_data->set_threshold = omap_mcbsp_set_threshold;
-               /* TODO: Currently, MODE_ELEMENT == MODE_FRAME */
                if (mcbsp->dma_op_mode == MCBSP_DMA_MODE_THRESHOLD) {
                        int period_words, max_thrsh;