projects
/
wrapfs-3.14.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0bc6b7
)
ALSA: bebob: Fix prototype of helper function to return negative value
author
Takashi Sakamoto
<o-takashi@sakamocchi.jp>
Sat, 26 Oct 2019 03:06:20 +0000
(12:06 +0900)
committer
Ben Hutchings
<ben@decadent.org.uk>
Thu, 19 Dec 2019 15:58:45 +0000
(15:58 +0000)
commit
f2bbdbcb075f3977a53da3bdcb7cd460bc8ae5f2
upstream.
A helper function of ALSA bebob driver returns negative value in a
function which has a prototype to return unsigned value.
This commit fixes it by changing the prototype.
Fixes: eb7b3a056cd8 ("ALSA: bebob: Add commands and connections/streams management")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link:
https://lore.kernel.org/r/20191026030620.12077-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/firewire/bebob/bebob_stream.c
patch
|
blob
|
history
diff --git
a/sound/firewire/bebob/bebob_stream.c
b/sound/firewire/bebob/bebob_stream.c
index c05b0f6c1bc2b9399ab77ba65de9d571b195614e..2ea26980f5aa6edb472e6ce6278fe7a5b7295941 100644
(file)
--- a/
sound/firewire/bebob/bebob_stream.c
+++ b/
sound/firewire/bebob/bebob_stream.c
@@
-196,8
+196,7
@@
end:
return err;
}
-static unsigned int
-map_data_channels(struct snd_bebob *bebob, struct amdtp_stream *s)
+static int map_data_channels(struct snd_bebob *bebob, struct amdtp_stream *s)
{
unsigned int sec, sections, ch, channels;
unsigned int pcm, midi, location;