diff options
author | Jyri Sarha <jsarha@ti.com> | 2015-08-26 09:11:40 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-08-26 13:54:04 -0400 |
commit | 7d40acc38be55abb095f517e4e3a634818bc5253 (patch) | |
tree | 2e86c6898972a30e66fe3e39f06a9f0c1f01456f | |
parent | 5aec892a6ebe5a3e2a006d969b5fab59e6c79f63 (diff) |
ASoC: omap-hdmi-audio: Set buffer bytes step constraint to 128
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>
-rw-r--r-- | sound/soc/omap/omap-hdmi-audio.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sound/soc/omap/omap-hdmi-audio.c b/sound/soc/omap/omap-hdmi-audio.c index aeef25c0cb3d..584b2372339e 100644 --- a/sound/soc/omap/omap-hdmi-audio.c +++ b/sound/soc/omap/omap-hdmi-audio.c | |||
@@ -81,7 +81,15 @@ static int hdmi_dai_startup(struct snd_pcm_substream *substream, | |||
81 | ret = snd_pcm_hw_constraint_step(substream->runtime, 0, | 81 | ret = snd_pcm_hw_constraint_step(substream->runtime, 0, |
82 | SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 128); | 82 | SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 128); |
83 | if (ret < 0) { | 83 | if (ret < 0) { |
84 | dev_err(dai->dev, "could not apply constraint\n"); | 84 | dev_err(dai->dev, "Could not apply period constraint: %d\n", |
85 | ret); | ||
86 | return ret; | ||
87 | } | ||
88 | ret = snd_pcm_hw_constraint_step(substream->runtime, 0, | ||
89 | SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 128); | ||
90 | if (ret < 0) { | ||
91 | dev_err(dai->dev, "Could not apply buffer constraint: %d\n", | ||
92 | ret); | ||
85 | return ret; | 93 | return ret; |
86 | } | 94 | } |
87 | 95 | ||