projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9eb70e6
)
[ALSA] SOC: fix tests in cs4270_hw_params()
author
Roel Kluin
<12o3l@tiscali.nl>
Thu, 17 Apr 2008 16:58:34 +0000
(18:58 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 24 Apr 2008 10:00:39 +0000
(12:00 +0200)
cs4270_hw_params does several times:
ret = snd_soc_write()
if (ret < 0)
...
This only works when ret is signed.
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/codecs/cs4270.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/cs4270.c
b/sound/soc/codecs/cs4270.c
index bf2ab72d49bf21488032258350b926b75ea000eb..e73fcfd9f5cd41638acbc8d3ad5e30f532fe829f 100644
(file)
--- a/
sound/soc/codecs/cs4270.c
+++ b/
sound/soc/codecs/cs4270.c
@@
-372,7
+372,7
@@
static int cs4270_hw_params(struct snd_pcm_substream *substream,
struct snd_soc_device *socdev = rtd->socdev;
struct snd_soc_codec *codec = socdev->codec;
struct cs4270_private *cs4270 = codec->private_data;
-
unsigned int ret = 0
;
+
int ret
;
unsigned int i;
unsigned int rate;
unsigned int ratio;