diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2019-10-26 05:06:20 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-10-26 09:06:20 +0200 |
commit | f2bbdbcb075f3977a53da3bdcb7cd460bc8ae5f2 (patch) | |
tree | 3f8c1593426e96fc7e84331259205541344efc90 /sound | |
parent | ALSA: hda/realtek - Fix 2 front mics of codec 0x623 (diff) | |
download | linux-f2bbdbcb075f3977a53da3bdcb7cd460bc8ae5f2.tar.xz linux-f2bbdbcb075f3977a53da3bdcb7cd460bc8ae5f2.zip |
ALSA: bebob: Fix prototype of helper function to return negative value
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")
Cc: <stable@vger.kernel.org> # v3.16+
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/firewire/bebob/bebob_stream.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/firewire/bebob/bebob_stream.c b/sound/firewire/bebob/bebob_stream.c index 73fee991bd75..6c1497d9f52b 100644 --- a/sound/firewire/bebob/bebob_stream.c +++ b/sound/firewire/bebob/bebob_stream.c @@ -252,8 +252,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; |