aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/aoa/soundbus/i2sbus/i2sbus-pcm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c b/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c
index c6b42f9bdbc9..a4b0e1acb11d 100644
--- a/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c
+++ b/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c
@@ -194,6 +194,12 @@ static int i2sbus_pcm_open(struct i2sbus_dev *i2sdev, int in)
194 hw->period_bytes_max = 16384; 194 hw->period_bytes_max = 16384;
195 hw->periods_min = 3; 195 hw->periods_min = 3;
196 hw->periods_max = MAX_DBDMA_COMMANDS; 196 hw->periods_max = MAX_DBDMA_COMMANDS;
197 err = snd_pcm_hw_constraint_integer(pi->substream->runtime,
198 SNDRV_PCM_HW_PARAM_PERIODS);
199 if (err < 0) {
200 result = err;
201 goto out_unlock;
202 }
197 list_for_each_entry(cii, &sdev->codec_list, list) { 203 list_for_each_entry(cii, &sdev->codec_list, list) {
198 if (cii->codec->open) { 204 if (cii->codec->open) {
199 err = cii->codec->open(cii, pi->substream); 205 err = cii->codec->open(cii, pi->substream);