summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/fsl/fsl_ssi.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
index fa862af25c1a..085855f9b08d 100644
--- a/sound/soc/fsl/fsl_ssi.c
+++ b/sound/soc/fsl/fsl_ssi.c
@@ -799,15 +799,6 @@ static int fsl_ssi_hw_params(struct snd_pcm_substream *substream,
799 u32 wl = SSI_SxCCR_WL(sample_size); 799 u32 wl = SSI_SxCCR_WL(sample_size);
800 int ret; 800 int ret;
801 801
802 /*
803 * SSI is properly configured if it is enabled and running in
804 * the synchronous mode; Note that AC97 mode is an exception
805 * that should set separate configurations for STCCR and SRCCR
806 * despite running in the synchronous mode.
807 */
808 if (ssi->streams && ssi->synchronous)
809 return 0;
810
811 if (fsl_ssi_is_i2s_master(ssi)) { 802 if (fsl_ssi_is_i2s_master(ssi)) {
812 ret = fsl_ssi_set_bclk(substream, dai, hw_params); 803 ret = fsl_ssi_set_bclk(substream, dai, hw_params);
813 if (ret) 804 if (ret)
@@ -823,6 +814,15 @@ static int fsl_ssi_hw_params(struct snd_pcm_substream *substream,
823 } 814 }
824 } 815 }
825 816
817 /*
818 * SSI is properly configured if it is enabled and running in
819 * the synchronous mode; Note that AC97 mode is an exception
820 * that should set separate configurations for STCCR and SRCCR
821 * despite running in the synchronous mode.
822 */
823 if (ssi->streams && ssi->synchronous)
824 return 0;
825
826 if (!fsl_ssi_is_ac97(ssi)) { 826 if (!fsl_ssi_is_ac97(ssi)) {
827 /* 827 /*
828 * Keep the ssi->i2s_net intact while having a local variable 828 * Keep the ssi->i2s_net intact while having a local variable