Skip to content

Commit

Permalink
ASoC: S3C24XX : Align the peroid size to the buffer size
Browse files Browse the repository at this point in the history
> Then it's a driver bug.  If unaligned period size is allowed, it means
> that the irq is really generated in that period, not at the buffer
> boundary.  Otherwise, it must have a proper hw-constraint to align the
> period size to the buffer size.

This patch will fix the bug metioned in the above mail. Force the peroid
size to be aligned with the buffer size.

Based and tested on linux-2.6.31-rc6.

Signed-off-by: Shine Liu <shinel@foxmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Shine Liu authored and Mark Brown committed Aug 20, 2009
1 parent f8bae4c commit f61c890
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/s3c24xx/s3c24xx-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ static int s3c24xx_pcm_open(struct snd_pcm_substream *substream)

pr_debug("Entered %s\n", __func__);

snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
snd_soc_set_runtime_hwparams(substream, &s3c24xx_pcm_hardware);

prtd = kzalloc(sizeof(struct s3c24xx_runtime_data), GFP_KERNEL);
Expand Down

0 comments on commit f61c890

Please sign in to comment.