Skip to content

Commit

Permalink
ALSA: lx6464es - make 1 bit signed bitfield unsigned
Browse files Browse the repository at this point in the history
converts a 1 bit signed bitfield to an unsigned.

Reported-by: Dr. David Alan Gilbert <[email protected]>
Signed-off-by: Tim Blechmann <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
timblechmann authored and tiwai committed Nov 1, 2010
1 parent bb617ee commit f746745
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sound/pci/lx6464es/lx6464es.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ static int lx_pcm_hw_free(struct snd_pcm_substream *substream)
static void lx_trigger_start(struct lx6464es *chip, struct lx_stream *lx_stream)
{
struct snd_pcm_substream *substream = lx_stream->stream;
const int is_capture = lx_stream->is_capture;
const unsigned int is_capture = lx_stream->is_capture;

int err;

Expand Down Expand Up @@ -473,7 +473,7 @@ static void lx_trigger_start(struct lx6464es *chip, struct lx_stream *lx_stream)

static void lx_trigger_stop(struct lx6464es *chip, struct lx_stream *lx_stream)
{
const int is_capture = lx_stream->is_capture;
const unsigned int is_capture = lx_stream->is_capture;
int err;

snd_printd(LXP "stopping: stopping stream\n");
Expand Down
2 changes: 1 addition & 1 deletion sound/pci/lx6464es/lx6464es.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct lx_stream {
snd_pcm_uframes_t frame_pos;
enum lx_stream_status status; /* free, open, running, draining
* pause */
int is_capture:1;
unsigned int is_capture:1;
};


Expand Down
2 changes: 1 addition & 1 deletion sound/pci/lx6464es/lx_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ static int lx_interrupt_request_new_buffer(struct lx6464es *chip,
struct lx_stream *lx_stream)
{
struct snd_pcm_substream *substream = lx_stream->stream;
int is_capture = lx_stream->is_capture;
const unsigned int is_capture = lx_stream->is_capture;
int err;
unsigned long flags;

Expand Down

0 comments on commit f746745

Please sign in to comment.