Commit f7467452291f7c9e5e1271e8c8e45b77f34b1257
Committed by
Takashi Iwai
1 parent
bb617ee3f8
Exists in
master
and in
7 other branches
ALSA: lx6464es - make 1 bit signed bitfield unsigned
converts a 1 bit signed bitfield to an unsigned. Reported-by: Dr. David Alan Gilbert <linux@treblig.org> Signed-off-by: Tim Blechmann <tim@klingt.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Showing 3 changed files with 4 additions and 4 deletions Side-by-side Diff
sound/pci/lx6464es/lx6464es.c
... | ... | @@ -425,7 +425,7 @@ |
425 | 425 | static void lx_trigger_start(struct lx6464es *chip, struct lx_stream *lx_stream) |
426 | 426 | { |
427 | 427 | struct snd_pcm_substream *substream = lx_stream->stream; |
428 | - const int is_capture = lx_stream->is_capture; | |
428 | + const unsigned int is_capture = lx_stream->is_capture; | |
429 | 429 | |
430 | 430 | int err; |
431 | 431 | |
... | ... | @@ -473,7 +473,7 @@ |
473 | 473 | |
474 | 474 | static void lx_trigger_stop(struct lx6464es *chip, struct lx_stream *lx_stream) |
475 | 475 | { |
476 | - const int is_capture = lx_stream->is_capture; | |
476 | + const unsigned int is_capture = lx_stream->is_capture; | |
477 | 477 | int err; |
478 | 478 | |
479 | 479 | snd_printd(LXP "stopping: stopping stream\n"); |
sound/pci/lx6464es/lx6464es.h
sound/pci/lx6464es/lx_core.c
... | ... | @@ -1152,7 +1152,7 @@ |
1152 | 1152 | struct lx_stream *lx_stream) |
1153 | 1153 | { |
1154 | 1154 | struct snd_pcm_substream *substream = lx_stream->stream; |
1155 | - int is_capture = lx_stream->is_capture; | |
1155 | + const unsigned int is_capture = lx_stream->is_capture; | |
1156 | 1156 | int err; |
1157 | 1157 | unsigned long flags; |
1158 | 1158 |