Date: | 2012-01-29 20:29:04 (11 years 7 months ago) |
---|---|
Author: | Lars C. |
Commit: | db41fa007dd617807c7f5316b402596fab625f08 |
Message: | ASoC: jz4740-pcm: Fix snd_pcm_hw_constraint_integer error check snd_pcm_hw_constraint_integer return either 0 or 1 on success, so only treat negative values as errors. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> |
Files: |
sound/soc/jz4740/jz4740-pcm.c (1 diff) |
Change Details
sound/soc/jz4740/jz4740-pcm.c | ||
---|---|---|
213 | 213 | if (prtd == NULL) |
214 | 214 | return -ENOMEM; |
215 | 215 | |
216 | snd_soc_set_runtime_hwparams(substream, &jz4740_pcm_hardware); | |
217 | ||
216 | 218 | ret = snd_pcm_hw_constraint_integer(runtime, |
217 | 219 | SNDRV_PCM_HW_PARAM_PERIODS); |
218 | if (ret) { | |
220 | if (ret < 0) { | |
219 | 221 | kfree(prtd); |
220 | 222 | return ret; |
221 | 223 | } |
222 | 224 | |
223 | snd_soc_set_runtime_hwparams(substream, &jz4740_pcm_hardware); | |
224 | ||
225 | 225 | runtime->private_data = prtd; |
226 | 226 | |
227 | 227 | return 0; |
Branches:
ben-wpan
ben-wpan-stefan
5396a9238205f20f811ea57898980d3ca82df0b6
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9