public inbox for linux-sound@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [snd-usb-audio] Add match for JMTek USB sound card
@ 2009-10-10 11:15 Lubomir Rintel
  2009-10-12  6:32 ` [alsa-devel] " Takashi Iwai
  2009-10-12  6:46 ` [PATCH] [snd-usb-audio] " Clemens Ladisch
  0 siblings, 2 replies; 10+ messages in thread
From: Lubomir Rintel @ 2009-10-10 11:15 UTC (permalink / raw)
  To: alsa-devel, linux-sound, linux-kernel, tiwai; +Cc: Lubomir Rintel

Entry for JMTek LLC., SSS USB Headphone Set in the quirk table.
---
 sound/usb/usbquirks.h |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/sound/usb/usbquirks.h b/sound/usb/usbquirks.h
index f6f201e..e98ff4c 100644
--- a/sound/usb/usbquirks.h
+++ b/sound/usb/usbquirks.h
@@ -80,6 +80,19 @@
 	.bInterfaceClass = USB_CLASS_AUDIO,
 },
 
+/* JMTek, LLC. SSS USB Headphone Set */
+{
+	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
+		       USB_DEVICE_ID_MATCH_DEV_CLASS |
+		       USB_DEVICE_ID_MATCH_INT_CLASS |
+		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
+	.idVendor = 0x0c76,
+	.idProduct = 0x1605,
+	.bDeviceClass = USB_CLASS_PER_INTERFACE,
+	.bInterfaceClass = USB_CLASS_AUDIO,
+	.bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
+},
+
 /*
  * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
  * class matches do not take effect without an explicit ID match.
-- 
1.6.5.rc2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [alsa-devel] [PATCH] [snd-usb-audio] Add match for JMTek USB sound card
  2009-10-10 11:15 [PATCH] [snd-usb-audio] Add match for JMTek USB sound card Lubomir Rintel
@ 2009-10-12  6:32 ` Takashi Iwai
  2009-10-12  6:42   ` [PATCH] " Lubomir Rintel
  2009-10-12  6:46 ` [PATCH] [snd-usb-audio] " Clemens Ladisch
  1 sibling, 1 reply; 10+ messages in thread
From: Takashi Iwai @ 2009-10-12  6:32 UTC (permalink / raw)
  To: Lubomir Rintel; +Cc: alsa-devel, linux-sound, linux-kernel

At Sat, 10 Oct 2009 13:15:29 +0200,
Lubomir Rintel wrote:
> 
> Entry for JMTek LLC., SSS USB Headphone Set in the quirk table.

The change look OK (suppose it was tested :)

Could you give your sign-off to merge to the upstream?


thanks,

Takashi

> ---
>  sound/usb/usbquirks.h |   13 +++++++++++++
>  1 files changed, 13 insertions(+), 0 deletions(-)
> 
> diff --git a/sound/usb/usbquirks.h b/sound/usb/usbquirks.h
> index f6f201e..e98ff4c 100644
> --- a/sound/usb/usbquirks.h
> +++ b/sound/usb/usbquirks.h
> @@ -80,6 +80,19 @@
>  	.bInterfaceClass = USB_CLASS_AUDIO,
>  },
>  
> +/* JMTek, LLC. SSS USB Headphone Set */
> +{
> +	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> +		       USB_DEVICE_ID_MATCH_DEV_CLASS |
> +		       USB_DEVICE_ID_MATCH_INT_CLASS |
> +		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> +	.idVendor = 0x0c76,
> +	.idProduct = 0x1605,
> +	.bDeviceClass = USB_CLASS_PER_INTERFACE,
> +	.bInterfaceClass = USB_CLASS_AUDIO,
> +	.bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
> +},
> +
>  /*
>   * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
>   * class matches do not take effect without an explicit ID match.
> -- 
> 1.6.5.rc2
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] Add match for JMTek USB sound card
  2009-10-12  6:32 ` [alsa-devel] " Takashi Iwai
@ 2009-10-12  6:42   ` Lubomir Rintel
  2009-10-12  6:46     ` Takashi Iwai
  0 siblings, 1 reply; 10+ messages in thread
From: Lubomir Rintel @ 2009-10-12  6:42 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, linux-sound, linux-kernel, Lubomir Rintel

Entry for JMTek LLC., SSS USB Headphone Set in the quirk table.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
---
 sound/usb/usbquirks.h |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/sound/usb/usbquirks.h b/sound/usb/usbquirks.h
index f6f201e..e98ff4c 100644
--- a/sound/usb/usbquirks.h
+++ b/sound/usb/usbquirks.h
@@ -80,6 +80,19 @@
 	.bInterfaceClass = USB_CLASS_AUDIO,
 },
 
+/* JMTek, LLC. SSS USB Headphone Set */
+{
+	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
+		       USB_DEVICE_ID_MATCH_DEV_CLASS |
+		       USB_DEVICE_ID_MATCH_INT_CLASS |
+		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
+	.idVendor = 0x0c76,
+	.idProduct = 0x1605,
+	.bDeviceClass = USB_CLASS_PER_INTERFACE,
+	.bInterfaceClass = USB_CLASS_AUDIO,
+	.bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
+},
+
 /*
  * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
  * class matches do not take effect without an explicit ID match.
-- 
1.6.2.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] Add match for JMTek USB sound card
  2009-10-12  6:42   ` [PATCH] " Lubomir Rintel
@ 2009-10-12  6:46     ` Takashi Iwai
  0 siblings, 0 replies; 10+ messages in thread
From: Takashi Iwai @ 2009-10-12  6:46 UTC (permalink / raw)
  To: Lubomir Rintel; +Cc: alsa-devel, linux-sound, linux-kernel

At Mon, 12 Oct 2009 08:42:40 +0200,
Lubomir Rintel wrote:
> 
> Entry for JMTek LLC., SSS USB Headphone Set in the quirk table.
> 
> Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>

Thanks, applied now.


Takashi

> ---
>  sound/usb/usbquirks.h |   13 +++++++++++++
>  1 files changed, 13 insertions(+), 0 deletions(-)
> 
> diff --git a/sound/usb/usbquirks.h b/sound/usb/usbquirks.h
> index f6f201e..e98ff4c 100644
> --- a/sound/usb/usbquirks.h
> +++ b/sound/usb/usbquirks.h
> @@ -80,6 +80,19 @@
>  	.bInterfaceClass = USB_CLASS_AUDIO,
>  },
>  
> +/* JMTek, LLC. SSS USB Headphone Set */
> +{
> +	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> +		       USB_DEVICE_ID_MATCH_DEV_CLASS |
> +		       USB_DEVICE_ID_MATCH_INT_CLASS |
> +		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> +	.idVendor = 0x0c76,
> +	.idProduct = 0x1605,
> +	.bDeviceClass = USB_CLASS_PER_INTERFACE,
> +	.bInterfaceClass = USB_CLASS_AUDIO,
> +	.bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
> +},
> +
>  /*
>   * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
>   * class matches do not take effect without an explicit ID match.
> -- 
> 1.6.2.5
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] [snd-usb-audio] Add match for JMTek USB sound card
  2009-10-10 11:15 [PATCH] [snd-usb-audio] Add match for JMTek USB sound card Lubomir Rintel
  2009-10-12  6:32 ` [alsa-devel] " Takashi Iwai
@ 2009-10-12  6:46 ` Clemens Ladisch
  2009-10-12  7:18   ` Takashi Iwai
  1 sibling, 1 reply; 10+ messages in thread
From: Clemens Ladisch @ 2009-10-12  6:46 UTC (permalink / raw)
  To: Lubomir Rintel; +Cc: alsa-devel, linux-sound, linux-kernel, tiwai

Lubomir Rintel wrote:
> Entry for JMTek LLC., SSS USB Headphone Set in the quirk table.

Please add an explaination why this entry is needed.  At first glance,
this entry seems to describe a class-compliant device that should not
need a quirk.

> +/* JMTek, LLC. SSS USB Headphone Set */
> +{
> +	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> +		       USB_DEVICE_ID_MATCH_DEV_CLASS |
> +		       USB_DEVICE_ID_MATCH_INT_CLASS |
> +		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> +	.idVendor = 0x0c76,
> +	.idProduct = 0x1605,
> +	.bDeviceClass = USB_CLASS_PER_INTERFACE,
> +	.bInterfaceClass = USB_CLASS_AUDIO,
> +	.bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
> +},


Best regards,
Clemens

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] [snd-usb-audio] Add match for JMTek USB sound card
  2009-10-12  6:46 ` [PATCH] [snd-usb-audio] " Clemens Ladisch
@ 2009-10-12  7:18   ` Takashi Iwai
  2009-10-12  8:03     ` Lubomir Rintel
  0 siblings, 1 reply; 10+ messages in thread
From: Takashi Iwai @ 2009-10-12  7:18 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: Lubomir Rintel, alsa-devel, linux-sound, linux-kernel

At Mon, 12 Oct 2009 08:46:26 +0200,
Clemens Ladisch wrote:
> 
> Lubomir Rintel wrote:
> > Entry for JMTek LLC., SSS USB Headphone Set in the quirk table.
> 
> Please add an explaination why this entry is needed.  At first glance,
> this entry seems to describe a class-compliant device that should not
> need a quirk.

Ah right.  It'd really helpful if Lubomir can give more details...


Takashi

> 
> > +/* JMTek, LLC. SSS USB Headphone Set */
> > +{
> > +	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
> > +		       USB_DEVICE_ID_MATCH_DEV_CLASS |
> > +		       USB_DEVICE_ID_MATCH_INT_CLASS |
> > +		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
> > +	.idVendor = 0x0c76,
> > +	.idProduct = 0x1605,
> > +	.bDeviceClass = USB_CLASS_PER_INTERFACE,
> > +	.bInterfaceClass = USB_CLASS_AUDIO,
> > +	.bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
> > +},
> 
> 
> Best regards,
> Clemens
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] [snd-usb-audio] Add match for JMTek USB sound card
  2009-10-12  7:18   ` Takashi Iwai
@ 2009-10-12  8:03     ` Lubomir Rintel
  2009-10-12  8:08       ` Takashi Iwai
  0 siblings, 1 reply; 10+ messages in thread
From: Lubomir Rintel @ 2009-10-12  8:03 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Clemens Ladisch, alsa-devel, linux-sound, linux-kernel

On Mon, 2009-10-12 at 09:18 +0200, Takashi Iwai wrote:
> At Mon, 12 Oct 2009 08:46:26 +0200,
> Clemens Ladisch wrote:
> > 
> > Lubomir Rintel wrote:
> > > Entry for JMTek LLC., SSS USB Headphone Set in the quirk table.
> > 
> > Please add an explaination why this entry is needed.  At first glance,
> > this entry seems to describe a class-compliant device that should not
> > need a quirk.
> 
> Ah right.  It'd really helpful if Lubomir can give more details...

A 2.6.31.1-based kernel on my Fedora 12 workstation at hone seemed to
require that, only the input driver attached to the device when plugged
in, the snd-usb-audio didn't seem to load and did not care about the
device when loaded manually. I did not have an idea why, since "alias:
usb:v*p*d*dc*dsc*dp*ic01isc01ip*" really seemed to match my device.
Nevertheless, after finding out that adding an entry to the quirk table
solves my problem I concluded that my understanding (or lack of thereof)
was wrong and that alias is really not meant to match my device.

Now I plugged the adapter into my work lappy with 2.6.30.8-based Fedora
11 and the audio interfaces on my adapter got instantly recognized and
claimed by snd-usb-audio (and the input interface by the input
subsystem), without modifying anything.

Any clues what could have gone wrong then?

-- 
Flash is the Web2.0 version of blink and animated gifs.
                                     -- Stephen Smoogen


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] [snd-usb-audio] Add match for JMTek USB sound card
  2009-10-12  8:03     ` Lubomir Rintel
@ 2009-10-12  8:08       ` Takashi Iwai
  2009-10-18 16:37         ` Lubomir Rintel
  0 siblings, 1 reply; 10+ messages in thread
From: Takashi Iwai @ 2009-10-12  8:08 UTC (permalink / raw)
  To: Lubomir Rintel; +Cc: Clemens Ladisch, alsa-devel, linux-sound, linux-kernel

At Mon, 12 Oct 2009 10:03:53 +0200,
Lubomir Rintel wrote:
> 
> On Mon, 2009-10-12 at 09:18 +0200, Takashi Iwai wrote:
> > At Mon, 12 Oct 2009 08:46:26 +0200,
> > Clemens Ladisch wrote:
> > > 
> > > Lubomir Rintel wrote:
> > > > Entry for JMTek LLC., SSS USB Headphone Set in the quirk table.
> > > 
> > > Please add an explaination why this entry is needed.  At first glance,
> > > this entry seems to describe a class-compliant device that should not
> > > need a quirk.
> > 
> > Ah right.  It'd really helpful if Lubomir can give more details...
> 
> A 2.6.31.1-based kernel on my Fedora 12 workstation at hone seemed to
> require that, only the input driver attached to the device when plugged
> in, the snd-usb-audio didn't seem to load and did not care about the
> device when loaded manually. I did not have an idea why, since "alias:
> usb:v*p*d*dc*dsc*dp*ic01isc01ip*" really seemed to match my device.
> Nevertheless, after finding out that adding an entry to the quirk table
> solves my problem I concluded that my understanding (or lack of thereof)
> was wrong and that alias is really not meant to match my device.
> 
> Now I plugged the adapter into my work lappy with 2.6.30.8-based Fedora
> 11 and the audio interfaces on my adapter got instantly recognized and
> claimed by snd-usb-audio (and the input interface by the input
> subsystem), without modifying anything.
> 
> Any clues what could have gone wrong then?

Hm, I don't see any affecting changes between 2.6.30 and 31.
Just as a test, could you copy sound/usb/*.[ch] from 2.6.30 tree to
2.6.31 or 32-rc and check whether the same problem appears?


Takashi

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] [snd-usb-audio] Add match for JMTek USB sound card
  2009-10-12  8:08       ` Takashi Iwai
@ 2009-10-18 16:37         ` Lubomir Rintel
  2009-10-30 10:29           ` Takashi Iwai
  0 siblings, 1 reply; 10+ messages in thread
From: Lubomir Rintel @ 2009-10-18 16:37 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Clemens Ladisch, alsa-devel, linux-sound, linux-kernel

On Mon, 2009-10-12 at 10:08 +0200, Takashi Iwai wrote:
> At Mon, 12 Oct 2009 10:03:53 +0200,
> Lubomir Rintel wrote:
> > 
> > On Mon, 2009-10-12 at 09:18 +0200, Takashi Iwai wrote:
> > > At Mon, 12 Oct 2009 08:46:26 +0200,
> > > Clemens Ladisch wrote:
> > > > 
> > > > Lubomir Rintel wrote:
> > > > > Entry for JMTek LLC., SSS USB Headphone Set in the quirk table.
> > > > 
> > > > Please add an explaination why this entry is needed.  At first glance,
> > > > this entry seems to describe a class-compliant device that should not
> > > > need a quirk.
> > > 
> > > Ah right.  It'd really helpful if Lubomir can give more details...
> > 
> > A 2.6.31.1-based kernel on my Fedora 12 workstation at hone seemed to
> > require that, only the input driver attached to the device when plugged
> > in, the snd-usb-audio didn't seem to load and did not care about the
> > device when loaded manually. I did not have an idea why, since "alias:
> > usb:v*p*d*dc*dsc*dp*ic01isc01ip*" really seemed to match my device.
> > Nevertheless, after finding out that adding an entry to the quirk table
> > solves my problem I concluded that my understanding (or lack of thereof)
> > was wrong and that alias is really not meant to match my device.
> > 
> > Now I plugged the adapter into my work lappy with 2.6.30.8-based Fedora
> > 11 and the audio interfaces on my adapter got instantly recognized and
> > claimed by snd-usb-audio (and the input interface by the input
> > subsystem), without modifying anything.
> > 
> > Any clues what could have gone wrong then?
> 
> Hm, I don't see any affecting changes between 2.6.30 and 31.
> Just as a test, could you copy sound/usb/*.[ch] from 2.6.30 tree to
> 2.6.31 or 32-rc and check whether the same problem appears?

I did not try that, but updated to a newer snapshot and it works as it
used to again, so I don't thing there's much point in finding out what
went wrong now. I'm very sorry for the noise.

Regards,
Lubo

-- 
"Excuse all the blood" -- Dead


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] [snd-usb-audio] Add match for JMTek USB sound card
  2009-10-18 16:37         ` Lubomir Rintel
@ 2009-10-30 10:29           ` Takashi Iwai
  0 siblings, 0 replies; 10+ messages in thread
From: Takashi Iwai @ 2009-10-30 10:29 UTC (permalink / raw)
  To: Lubomir Rintel; +Cc: Clemens Ladisch, alsa-devel, linux-sound, linux-kernel

At Sun, 18 Oct 2009 18:37:28 +0200,
Lubomir Rintel wrote:
> 
> On Mon, 2009-10-12 at 10:08 +0200, Takashi Iwai wrote:
> > At Mon, 12 Oct 2009 10:03:53 +0200,
> > Lubomir Rintel wrote:
> > > 
> > > On Mon, 2009-10-12 at 09:18 +0200, Takashi Iwai wrote:
> > > > At Mon, 12 Oct 2009 08:46:26 +0200,
> > > > Clemens Ladisch wrote:
> > > > > 
> > > > > Lubomir Rintel wrote:
> > > > > > Entry for JMTek LLC., SSS USB Headphone Set in the quirk table.
> > > > > 
> > > > > Please add an explaination why this entry is needed.  At first glance,
> > > > > this entry seems to describe a class-compliant device that should not
> > > > > need a quirk.
> > > > 
> > > > Ah right.  It'd really helpful if Lubomir can give more details...
> > > 
> > > A 2.6.31.1-based kernel on my Fedora 12 workstation at hone seemed to
> > > require that, only the input driver attached to the device when plugged
> > > in, the snd-usb-audio didn't seem to load and did not care about the
> > > device when loaded manually. I did not have an idea why, since "alias:
> > > usb:v*p*d*dc*dsc*dp*ic01isc01ip*" really seemed to match my device.
> > > Nevertheless, after finding out that adding an entry to the quirk table
> > > solves my problem I concluded that my understanding (or lack of thereof)
> > > was wrong and that alias is really not meant to match my device.
> > > 
> > > Now I plugged the adapter into my work lappy with 2.6.30.8-based Fedora
> > > 11 and the audio interfaces on my adapter got instantly recognized and
> > > claimed by snd-usb-audio (and the input interface by the input
> > > subsystem), without modifying anything.
> > > 
> > > Any clues what could have gone wrong then?
> > 
> > Hm, I don't see any affecting changes between 2.6.30 and 31.
> > Just as a test, could you copy sound/usb/*.[ch] from 2.6.30 tree to
> > 2.6.31 or 32-rc and check whether the same problem appears?
> 
> I did not try that, but updated to a newer snapshot and it works as it
> used to again, so I don't thing there's much point in finding out what
> went wrong now. I'm very sorry for the noise.

OK, thanks for confirmation.


Takashi

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-10-30 10:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-10 11:15 [PATCH] [snd-usb-audio] Add match for JMTek USB sound card Lubomir Rintel
2009-10-12  6:32 ` [alsa-devel] " Takashi Iwai
2009-10-12  6:42   ` [PATCH] " Lubomir Rintel
2009-10-12  6:46     ` Takashi Iwai
2009-10-12  6:46 ` [PATCH] [snd-usb-audio] " Clemens Ladisch
2009-10-12  7:18   ` Takashi Iwai
2009-10-12  8:03     ` Lubomir Rintel
2009-10-12  8:08       ` Takashi Iwai
2009-10-18 16:37         ` Lubomir Rintel
2009-10-30 10:29           ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox