aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/davinci/davinci-mcasp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c
index 76156d18ed46..0b6b1b286201 100644
--- a/sound/soc/davinci/davinci-mcasp.c
+++ b/sound/soc/davinci/davinci-mcasp.c
@@ -1149,7 +1149,7 @@ static int davinci_mcasp_startup(struct snd_pcm_substream *substream,
1149 if (mcasp->serial_dir[i] == dir) 1149 if (mcasp->serial_dir[i] == dir)
1150 max_channels++; 1150 max_channels++;
1151 } 1151 }
1152 mcasp->ruledata[dir].serializers = max_channels; 1152 mcasp->ruledata[substream->stream].serializers = max_channels;
1153 max_channels *= mcasp->tdm_slots; 1153 max_channels *= mcasp->tdm_slots;
1154 /* 1154 /*
1155 * If the already active stream has less channels than the calculated 1155 * If the already active stream has less channels than the calculated
@@ -1172,7 +1172,7 @@ static int davinci_mcasp_startup(struct snd_pcm_substream *substream,
1172 if (mcasp->bclk_master && mcasp->bclk_div == 0 && mcasp->sysclk_freq) { 1172 if (mcasp->bclk_master && mcasp->bclk_div == 0 && mcasp->sysclk_freq) {
1173 int ret; 1173 int ret;
1174 1174
1175 mcasp->ruledata[dir].mcasp = mcasp; 1175 mcasp->ruledata[substream->stream].mcasp = mcasp;
1176 1176
1177 ret = snd_pcm_hw_rule_add(substream->runtime, 0, 1177 ret = snd_pcm_hw_rule_add(substream->runtime, 0,
1178 SNDRV_PCM_HW_PARAM_RATE, 1178 SNDRV_PCM_HW_PARAM_RATE,