[alsa-devel] [PATCH v4 12/12] ALSA: line6: Add hwdep interface to access the POD control messages

Takashi Iwai tiwai at suse.de
Mon Sep 19 23:06:07 CEST 2016


On Sun, 18 Sep 2016 20:59:32 +0200,
Andrej Krutak wrote:
> @@ -156,6 +166,15 @@ struct usb_line6 {
>  	/* Length of message to be processed, generated from MIDI layer  */
>  	int message_length;
>  
> +	/* Circular buffer for non-MIDI control messages */
> +	struct {
> +		struct mutex read_lock;
> +		wait_queue_head_t wait_queue;
> +		int active:1;

This should be unsigned int.  Otherwise 1 bit int is handled as -1.


Takashi


More information about the Alsa-devel mailing list