Commit f7467452291f7c9e5e1271e8c8e45b77f34b1257

Authored by Tim Blechmann
Committed by Takashi Iwai
1 parent bb617ee3f8

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
... ... @@ -60,7 +60,7 @@
60 60 snd_pcm_uframes_t frame_pos;
61 61 enum lx_stream_status status; /* free, open, running, draining
62 62 * pause */
63   - int is_capture:1;
  63 + unsigned int is_capture:1;
64 64 };
65 65  
66 66  
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