projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aec892
)
ASoC: omap-hdmi-audio: Set buffer bytes step constraint to 128
author
Jyri Sarha
<
[email protected]
>
Wed, 26 Aug 2015 13:11:40 +0000
(16:11 +0300)
committer
Mark Brown
<
[email protected]
>
Wed, 26 Aug 2015 17:54:04 +0000
(18:54 +0100)
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 <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/omap/omap-hdmi-audio.c
patch
|
blob
|
history
diff --git
a/sound/soc/omap/omap-hdmi-audio.c
b/sound/soc/omap/omap-hdmi-audio.c
index aeef25c0cb3d9fe18256955745b5d2dc4af81e81..584b2372339ef4e7f985ca0c11a77d300eb84888 100644
(file)
--- 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,
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;
}