[alsa-devel] [PATCH 1/4] ALSA: line6: Add toneport_has_source_select()

Chris Rorvick chris at rorvick.com
Fri Feb 6 16:07:40 CET 2015


On Fri, Feb 6, 2015 at 8:56 AM, Takashi Iwai <tiwai at suse.de> wrote:
> At Fri,  6 Feb 2015 08:51:09 -0600, Chris Rorvick wrote:
>> --- a/sound/usb/line6/toneport.c
>> +++ b/sound/usb/line6/toneport.c
>> @@ -343,6 +343,20 @@ static void toneport_remove_leds(struct usb_line6_toneport *toneport)
>>       }
>>  }
>>
>> +static bool toneport_has_source_select(struct usb_line6_toneport *toneport)
>> +{
>> +     switch (toneport->type) {
>> +     case LINE6_TONEPORT_UX1:
>> +     case LINE6_TONEPORT_UX2:
>> +     case LINE6_PODSTUDIO_UX1:
>> +     case LINE6_PODSTUDIO_UX2:
>> +             return 1;
>> +
>> +     default:
>> +             return 0;
>
> Please use true and false.

Thanks, I've fixed this up and will send in a v2.

Regards,

Chris


More information about the Alsa-devel mailing list