提交 f7467452 编写于 作者: T Tim Blechmann 提交者: Takashi Iwai

ALSA: lx6464es - make 1 bit signed bitfield unsigned

converts a 1 bit signed bitfield to an unsigned.
Reported-by: NDr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: NTim Blechmann <tim@klingt.org>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 bb617ee3
...@@ -425,7 +425,7 @@ static int lx_pcm_hw_free(struct snd_pcm_substream *substream) ...@@ -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) static void lx_trigger_start(struct lx6464es *chip, struct lx_stream *lx_stream)
{ {
struct snd_pcm_substream *substream = lx_stream->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; int err;
...@@ -473,7 +473,7 @@ static void lx_trigger_start(struct lx6464es *chip, struct lx_stream *lx_stream) ...@@ -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) 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; int err;
snd_printd(LXP "stopping: stopping stream\n"); snd_printd(LXP "stopping: stopping stream\n");
......
...@@ -60,7 +60,7 @@ struct lx_stream { ...@@ -60,7 +60,7 @@ struct lx_stream {
snd_pcm_uframes_t frame_pos; snd_pcm_uframes_t frame_pos;
enum lx_stream_status status; /* free, open, running, draining enum lx_stream_status status; /* free, open, running, draining
* pause */ * pause */
int is_capture:1; unsigned int is_capture:1;
}; };
......
...@@ -1152,7 +1152,7 @@ static int lx_interrupt_request_new_buffer(struct lx6464es *chip, ...@@ -1152,7 +1152,7 @@ static int lx_interrupt_request_new_buffer(struct lx6464es *chip,
struct lx_stream *lx_stream) struct lx_stream *lx_stream)
{ {
struct snd_pcm_substream *substream = lx_stream->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; int err;
unsigned long flags; unsigned long flags;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册