Re: [PATCH 1/2] [media] sound: simplify au0828 quirk table

2014-10-30 Thread Mauro Carvalho Chehab
Em Thu, 30 Oct 2014 12:09:07 +0100
Takashi Iwai  escreveu:

> At Thu, 30 Oct 2014 08:53:04 -0200,
> Mauro Carvalho Chehab wrote:
> > 
> > From: Mauro Carvalho Chehab 
> > 
> > Add a macro to simplify au0828 quirk table. That makes easier
> > to check it against the USB IDs at drivers/media/usb/au0828-card.c
> > 
> > Cc: sta...@vger.kernel.org
> > Signed-off-by: Mauro Carvalho Chehab 
> > Signed-off-by: Mauro Carvalho Chehab 
> 
> Which sign-off should I take?  Judging from the author line, the
> former one?

Gah, that's the problem with rebased patches ;) 

I started using mche...@osg.samsung.com for upstream submission
a few months ago.

Both emails are valid, but I prefer if you use this one:
Signed-off-by: Mauro Carvalho Chehab 

> The second patch had only s-o-b from @samsung.com.

Yeah, I remembered to remove the extra SOB on the second patch,
but didn't notice it on the first one.

> 
> 
> thanks,
> 
> Takashi
> 
> > 
> > diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h
> > index c657752a420c..5ae1d02d17a3 100644
> > --- a/sound/usb/quirks-table.h
> > +++ b/sound/usb/quirks-table.h
> > @@ -2804,133 +2804,37 @@ YAMAHA_DEVICE(0x7010, "UB99"),
> > }
> >  },
> >  
> > -/* Hauppauge HVR-950Q and HVR-850 */
> > -{
> > -   USB_DEVICE_VENDOR_SPEC(0x2040, 0x7200),
> > -   .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> > -  USB_DEVICE_ID_MATCH_INT_CLASS |
> > -  USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> > -   .bInterfaceClass = USB_CLASS_AUDIO,
> > -   .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
> > -   .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
> > -   .vendor_name = "Hauppauge",
> > -   .product_name = "HVR-950Q",
> > -   .ifnum = QUIRK_ANY_INTERFACE,
> > -   .type = QUIRK_AUDIO_ALIGN_TRANSFER,
> > -   }
> > -},
> > -{
> > -   USB_DEVICE_VENDOR_SPEC(0x2040, 0x7210),
> > -   .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> > -  USB_DEVICE_ID_MATCH_INT_CLASS |
> > -  USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> > -   .bInterfaceClass = USB_CLASS_AUDIO,
> > -   .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
> > -   .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
> > -   .vendor_name = "Hauppauge",
> > -   .product_name = "HVR-950Q",
> > -   .ifnum = QUIRK_ANY_INTERFACE,
> > -   .type = QUIRK_AUDIO_ALIGN_TRANSFER,
> > -   }
> > -},
> > -{
> > -   USB_DEVICE_VENDOR_SPEC(0x2040, 0x7217),
> > -   .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> > -  USB_DEVICE_ID_MATCH_INT_CLASS |
> > -  USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> > -   .bInterfaceClass = USB_CLASS_AUDIO,
> > -   .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
> > -   .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
> > -   .vendor_name = "Hauppauge",
> > -   .product_name = "HVR-950Q",
> > -   .ifnum = QUIRK_ANY_INTERFACE,
> > -   .type = QUIRK_AUDIO_ALIGN_TRANSFER,
> > -   }
> > -},
> > -{
> > -   USB_DEVICE_VENDOR_SPEC(0x2040, 0x721b),
> > -   .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> > -  USB_DEVICE_ID_MATCH_INT_CLASS |
> > -  USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> > -   .bInterfaceClass = USB_CLASS_AUDIO,
> > -   .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
> > -   .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
> > -   .vendor_name = "Hauppauge",
> > -   .product_name = "HVR-950Q",
> > -   .ifnum = QUIRK_ANY_INTERFACE,
> > -   .type = QUIRK_AUDIO_ALIGN_TRANSFER,
> > -   }
> > -},
> > -{
> > -   USB_DEVICE_VENDOR_SPEC(0x2040, 0x721e),
> > -   .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> > -  USB_DEVICE_ID_MATCH_INT_CLASS |
> > -  USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> > -   .bInterfaceClass = USB_CLASS_AUDIO,
> > -   .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
> > -   .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
> > -   .vendor_name = "Hauppauge",
> > -   .product_name = "HVR-950Q",
> > -   .ifnum = QUIRK_ANY_INTERFACE,
> > -   .type = QUIRK_AUDIO_ALIGN_TRANSFER,
> > -   }
> > -},
> > -{
> > -   USB_DEVICE_VENDOR_SPEC(0x2040, 0x721f),
> > -   .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> > -  USB_DEVICE_ID_MATCH_INT_CLASS |
> > -  USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> > -   .bInterfaceClass = USB_CLASS_AUDIO,
> > -   .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
> > -   .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
> > -   .vendor_name = "Hauppauge",
> > -   .product_name = "HVR-950Q",
> > -   .ifnum = QUIRK_ANY_INTERFACE,
> > -   .type = QUIRK_AUDIO_ALIGN_TRANSFER,
> > -   }
> > -},
> > -{
> > -   USB_DEVICE_VENDOR_SPEC(0x2040, 0x7240),
> > -   .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> > -  USB_DEVICE_ID_MA

Re: [PATCH 1/2] [media] sound: simplify au0828 quirk table

2014-10-30 Thread Takashi Iwai
At Thu, 30 Oct 2014 08:53:04 -0200,
Mauro Carvalho Chehab wrote:
> 
> From: Mauro Carvalho Chehab 
> 
> Add a macro to simplify au0828 quirk table. That makes easier
> to check it against the USB IDs at drivers/media/usb/au0828-card.c
> 
> Cc: sta...@vger.kernel.org
> Signed-off-by: Mauro Carvalho Chehab 
> Signed-off-by: Mauro Carvalho Chehab 

Which sign-off should I take?  Judging from the author line, the
former one?  The second patch had only s-o-b from @samsung.com.


thanks,

Takashi

> 
> diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h
> index c657752a420c..5ae1d02d17a3 100644
> --- a/sound/usb/quirks-table.h
> +++ b/sound/usb/quirks-table.h
> @@ -2804,133 +2804,37 @@ YAMAHA_DEVICE(0x7010, "UB99"),
>   }
>  },
>  
> -/* Hauppauge HVR-950Q and HVR-850 */
> -{
> - USB_DEVICE_VENDOR_SPEC(0x2040, 0x7200),
> - .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> -USB_DEVICE_ID_MATCH_INT_CLASS |
> -USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> - .bInterfaceClass = USB_CLASS_AUDIO,
> - .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
> - .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
> - .vendor_name = "Hauppauge",
> - .product_name = "HVR-950Q",
> - .ifnum = QUIRK_ANY_INTERFACE,
> - .type = QUIRK_AUDIO_ALIGN_TRANSFER,
> - }
> -},
> -{
> - USB_DEVICE_VENDOR_SPEC(0x2040, 0x7210),
> - .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> -USB_DEVICE_ID_MATCH_INT_CLASS |
> -USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> - .bInterfaceClass = USB_CLASS_AUDIO,
> - .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
> - .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
> - .vendor_name = "Hauppauge",
> - .product_name = "HVR-950Q",
> - .ifnum = QUIRK_ANY_INTERFACE,
> - .type = QUIRK_AUDIO_ALIGN_TRANSFER,
> - }
> -},
> -{
> - USB_DEVICE_VENDOR_SPEC(0x2040, 0x7217),
> - .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> -USB_DEVICE_ID_MATCH_INT_CLASS |
> -USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> - .bInterfaceClass = USB_CLASS_AUDIO,
> - .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
> - .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
> - .vendor_name = "Hauppauge",
> - .product_name = "HVR-950Q",
> - .ifnum = QUIRK_ANY_INTERFACE,
> - .type = QUIRK_AUDIO_ALIGN_TRANSFER,
> - }
> -},
> -{
> - USB_DEVICE_VENDOR_SPEC(0x2040, 0x721b),
> - .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> -USB_DEVICE_ID_MATCH_INT_CLASS |
> -USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> - .bInterfaceClass = USB_CLASS_AUDIO,
> - .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
> - .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
> - .vendor_name = "Hauppauge",
> - .product_name = "HVR-950Q",
> - .ifnum = QUIRK_ANY_INTERFACE,
> - .type = QUIRK_AUDIO_ALIGN_TRANSFER,
> - }
> -},
> -{
> - USB_DEVICE_VENDOR_SPEC(0x2040, 0x721e),
> - .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> -USB_DEVICE_ID_MATCH_INT_CLASS |
> -USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> - .bInterfaceClass = USB_CLASS_AUDIO,
> - .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
> - .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
> - .vendor_name = "Hauppauge",
> - .product_name = "HVR-950Q",
> - .ifnum = QUIRK_ANY_INTERFACE,
> - .type = QUIRK_AUDIO_ALIGN_TRANSFER,
> - }
> -},
> -{
> - USB_DEVICE_VENDOR_SPEC(0x2040, 0x721f),
> - .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> -USB_DEVICE_ID_MATCH_INT_CLASS |
> -USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> - .bInterfaceClass = USB_CLASS_AUDIO,
> - .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
> - .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
> - .vendor_name = "Hauppauge",
> - .product_name = "HVR-950Q",
> - .ifnum = QUIRK_ANY_INTERFACE,
> - .type = QUIRK_AUDIO_ALIGN_TRANSFER,
> - }
> -},
> -{
> - USB_DEVICE_VENDOR_SPEC(0x2040, 0x7240),
> - .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> -USB_DEVICE_ID_MATCH_INT_CLASS |
> -USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> - .bInterfaceClass = USB_CLASS_AUDIO,
> - .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
> - .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
> - .vendor_name = "Hauppauge",
> - .product_name = "HVR-850",
> - .ifnum = QUIRK_ANY_INTERFACE,
> - .type = QUIRK_AUDIO_ALIGN_TRANSFER,
> - }
> -},
> -{
> - USB_DEVICE_VEND