Skip to content

Commit

Permalink
ASoC: omap-hdmi-audio: Set buffer bytes step constraint to 128
Browse files Browse the repository at this point in the history
Set buffer bytes step constraint to 128. A matching constraint has
already been set to period size. This helps PCM setup to tolerate ALSA
clients that set the PCM hw params in unusual order.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Jyri Sarha authored and Mark Brown committed Aug 26, 2015
1 parent 5aec892 commit 7d40acc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion sound/soc/omap/omap-hdmi-audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,15 @@ static int hdmi_dai_startup(struct snd_pcm_substream *substream,
ret = snd_pcm_hw_constraint_step(substream->runtime, 0,
SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 128);
if (ret < 0) {
dev_err(dai->dev, "could not apply constraint\n");
dev_err(dai->dev, "Could not apply period constraint: %d\n",
ret);
return ret;
}
ret = snd_pcm_hw_constraint_step(substream->runtime, 0,
SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 128);
if (ret < 0) {
dev_err(dai->dev, "Could not apply buffer constraint: %d\n",
ret);
return ret;
}

Expand Down

0 comments on commit 7d40acc

Please sign in to comment.