aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@ti.com>2011-07-24 15:59:47 -0400
committerPaolo Pisati <paolo.pisati@canonical.com>2012-08-17 04:18:27 -0400
commit36f70bff2bcd3dde236ac2c5595414bcd156cbdd (patch)
tree91cddd4ffa72c7e6054c3aafa1f88b72add82c07
parentcd575d24e2d09d81ee02685f7c3116626e00319c (diff)
Subject: [PATCH 084/104] ASoC: OMAP4 - set constraints for buffer size (fixme)
To be moved to DAI drivers. Signed-off-by: Liam Girdwood <lrg@ti.com>
-rw-r--r--sound/soc/omap/omap-pcm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c
index b2f5751edae..4e6fef29b51 100644
--- a/sound/soc/omap/omap-pcm.c
+++ b/sound/soc/omap/omap-pcm.c
@@ -280,6 +280,15 @@ static int omap_pcm_open(struct snd_pcm_substream *substream)
280 SNDRV_PCM_HW_PARAM_PERIODS); 280 SNDRV_PCM_HW_PARAM_PERIODS);
281 if (ret < 0) 281 if (ret < 0)
282 goto out; 282 goto out;
283 if (cpu_is_omap44xx()) {
284 /* ABE needs a step of 24 * 4 data bits, and HDMI 32 * 4
285 * Ensure buffer size satisfies both constraints.
286 */
287 ret = snd_pcm_hw_constraint_step(runtime, 0,
288 SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 384);
289 if (ret < 0)
290 goto out;
291 }
283 292
284 prtd = kzalloc(sizeof(*prtd), GFP_KERNEL); 293 prtd = kzalloc(sizeof(*prtd), GFP_KERNEL);
285 if (prtd == NULL) { 294 if (prtd == NULL) {