aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2014-01-30 08:15:22 -0500
committerMark Brown <broonie@linaro.org>2014-01-31 10:51:20 -0500
commit662ffae9ed036bc82ff74c26dc731e2815431fcc (patch)
treef2a4819bae7bf16beb4b507a9362d57316d51c2d /sound
parent7552f34a790069a008bd3e2ab4c0954b30c2f63b (diff)
ASoC: davinci-mcasp: Harmonize the sub hw_params function names
Instead of davinci_hw_common_param - for common, I2S/DIT mode settings davinci_hw_dit_param - for DIT protocol configuration davinci_hw_param - for I2S (and compatible protocols) Use the following names: mcasp_common_hw_param, mcasp_dit_hw_param and mcasp_i2s_hw_param. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/davinci/davinci-mcasp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c
index b7858bfa0295..9ec456aaf80b 100644
--- a/sound/soc/davinci/davinci-mcasp.c
+++ b/sound/soc/davinci/davinci-mcasp.c
@@ -448,7 +448,7 @@ static int davinci_config_channel_size(struct davinci_mcasp *mcasp,
448 return 0; 448 return 0;
449} 449}
450 450
451static int davinci_hw_common_param(struct davinci_mcasp *mcasp, int stream, 451static int mcasp_common_hw_param(struct davinci_mcasp *mcasp, int stream,
452 int channels) 452 int channels)
453{ 453{
454 int i; 454 int i;
@@ -524,7 +524,7 @@ static int davinci_hw_common_param(struct davinci_mcasp *mcasp, int stream,
524 return 0; 524 return 0;
525} 525}
526 526
527static void davinci_hw_param(struct davinci_mcasp *mcasp, int stream) 527static void mcasp_i2s_hw_param(struct davinci_mcasp *mcasp, int stream)
528{ 528{
529 int i, active_slots; 529 int i, active_slots;
530 u32 mask = 0; 530 u32 mask = 0;
@@ -567,7 +567,7 @@ static void davinci_hw_param(struct davinci_mcasp *mcasp, int stream)
567} 567}
568 568
569/* S/PDIF */ 569/* S/PDIF */
570static void davinci_hw_dit_param(struct davinci_mcasp *mcasp) 570static void mcasp_dit_hw_param(struct davinci_mcasp *mcasp)
571{ 571{
572 /* Set the TX format : 24 bit right rotation, 32 bit slot, Pad 0 572 /* Set the TX format : 24 bit right rotation, 32 bit slot, Pad 0
573 and LSB first */ 573 and LSB first */
@@ -611,7 +611,7 @@ static int davinci_mcasp_hw_params(struct snd_pcm_substream *substream,
611 611
612 active_serializers = (channels + slots - 1) / slots; 612 active_serializers = (channels + slots - 1) / slots;
613 613
614 if (davinci_hw_common_param(mcasp, substream->stream, channels) == -EINVAL) 614 if (mcasp_common_hw_param(mcasp, substream->stream, channels) == -EINVAL)
615 return -EINVAL; 615 return -EINVAL;
616 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) 616 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
617 fifo_level = mcasp->txnumevt * active_serializers; 617 fifo_level = mcasp->txnumevt * active_serializers;
@@ -619,9 +619,9 @@ static int davinci_mcasp_hw_params(struct snd_pcm_substream *substream,
619 fifo_level = mcasp->rxnumevt * active_serializers; 619 fifo_level = mcasp->rxnumevt * active_serializers;
620 620
621 if (mcasp->op_mode == DAVINCI_MCASP_DIT_MODE) 621 if (mcasp->op_mode == DAVINCI_MCASP_DIT_MODE)
622 davinci_hw_dit_param(mcasp); 622 mcasp_dit_hw_param(mcasp);
623 else 623 else
624 davinci_hw_param(mcasp, substream->stream); 624 mcasp_i2s_hw_param(mcasp, substream->stream);
625 625
626 switch (params_format(params)) { 626 switch (params_format(params)) {
627 case SNDRV_PCM_FORMAT_U8: 627 case SNDRV_PCM_FORMAT_U8: