All of lore.kernel.org
 help / color / mirror / Atom feed
* roland synth sh-201
@ 2007-06-28  7:36 carlo beccaria
  2007-06-30 16:20 ` carlo beccaria
  0 siblings, 1 reply; 5+ messages in thread
From: carlo beccaria @ 2007-06-28  7:36 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2971 bytes --]



hi all, 
with this change in usbquirks.h , i can use my synth roland sh-201

{
   /* Roland SH-201 */
   USB_DEVICE(0x0582, 0x00ad),
   .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
     .vendor_name = "Roland",
     .product_name = "SH-201",
     .ifnum = QUIRK_ANY_INTERFACE,
     .type = QUIRK_COMPOSITE,
     .data = (const struct snd_usb_audio_quirk[]) {
       {
         .ifnum = 0,
         .type = QUIRK_AUDIO_FIXED_ENDPOINT,
         .data = & (const struct audioformat) {
           .format = SNDRV_PCM_FORMAT_S24_3LE,
           .channels = 2,
           .iface = 0,
           .altsetting = 1,
           .altset_idx = 1,
           .attributes = 0,
           .endpoint = 0x01,
           .ep_attr = 0x01,
           .rates = SNDRV_PCM_RATE_CONTINUOUS,
           .rate_min = 44100,
           .rate_max = 44100,
         }
       },
       {
         .ifnum = 1,
         .type = QUIRK_AUDIO_FIXED_ENDPOINT,
         .data = & (const struct audioformat) {
           .format = SNDRV_PCM_FORMAT_S24_3LE,
           .channels = 2,
           .iface = 1,
           .altsetting = 1,
           .altset_idx = 1,
           .attributes = 0,
           .endpoint = 0x81,
           .ep_attr = 0x01,
           .rates = SNDRV_PCM_RATE_CONTINUOUS,
           .rate_min = 44100,
           .rate_max = 44100,
         }
       },
       {
         .ifnum = 2,
         .type = QUIRK_MIDI_FIXED_ENDPOINT,
         .data = & (const struct snd_usb_midi_endpoint_info) {
           .out_cables = 0x0007,
           .in_cables  = 0x0007
         }
       },
       {
         .ifnum = -1
       }
     }
   }
},


my kernel is 2.6.21.5-rt17, (plus preempt patch) and i use debian testing
the hardware seem to be very similar to Roland SC-D70 (windows .inf file 
are very similar)

this is the device id
Bus 001 Device 003: ID 0582:00ad Roland Corp.

in attach you can see the lsusb (verbose) output

becks@vaix:~$ amidi -l
Dir Device    Name
IO  hw:1,0,0  SH-201 MIDI 1
IO  hw:1,0,1  SH-201 MIDI 2
IO  hw:1,0,2  SH-201 MIDI 3

muse works fine with jack and midi output

becks@vaix:~$ aseqdump -p 20:0
Waiting for data. Press Ctrl+C to end.
Source_ Event_________________ Ch _Data__
  20:0   Note on                 1  52  17
  20:0   Note off                1  52  55

also midi-in works

becks@vaix:~$ cat /proc/asound/cards
  0 [A5451          ]: ALI5451 - ALI 5451
                       ALI 5451 at 0x8400, irq 9
  1 [SH201          ]: USB-Audio - SH-201
                       Roland SH-201 at usb-0000:00:0c.0-1, full speed

when i use my synth like a sound card, it don't work, i don't know exactly why
(if is a patch problem, or rate/format)

becks@vaix:~$ aplay  -D hw:1,0 /usr/share/sounds/KDE_Window_UnSticky.wav
Playing WAVE '/usr/share/sounds/KDE_Window_UnSticky.wav' : Signed 16 bit Little 
Endian, Rate 22050 Hz, Mono
aplay: set_params:904: Sample format non available

let me know if you need more info
thanks

--
carlo beccaria

[-- Attachment #2: Type: TEXT/plain, Size: 5661 bytes --]

Bus 001 Device 003: ID 0582:00ad Roland Corp. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0 
  bDeviceProtocol       255 
  bMaxPacketSize0         8
  idVendor           0x0582 Roland Corp.
  idProduct          0x00ad 
  bcdDevice            1.00
  iManufacturer           1 Roland
  iProduct                2 SH-201
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          161
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2 
      bInterfaceProtocol      2 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2 
      bInterfaceProtocol      2 
      iInterface              0 
      Class specific interface descriptor for class 255 is unsupported
      Class specific interface descriptor for class 255 is unsupported
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            9
          Transfer Type            Isochronous
          Synch Type               Adaptive
          Usage Type               Data
        wMaxPacketSize     0x0120  1x 288 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2 
      bInterfaceProtocol      1 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2 
      bInterfaceProtocol      1 
      iInterface              0 
      Class specific interface descriptor for class 255 is unsupported
      Class specific interface descriptor for class 255 is unsupported
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0120  1x 288 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      3 
      bInterfaceProtocol      0 
      iInterface              0 
      Class specific interface descriptor for class 255 is unsupported
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      3 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               1
Device Status:     0x0000
  (Bus Powered)


[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: roland synth sh-201
  2007-06-28  7:36 roland synth sh-201 carlo beccaria
@ 2007-06-30 16:20 ` carlo beccaria
  2007-07-02  7:34   ` Clemens Ladisch
  0 siblings, 1 reply; 5+ messages in thread
From: carlo beccaria @ 2007-06-30 16:20 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 274 bytes --]

On Thu, 28 Jun 2007, carlo beccaria wrote:

> hi all, with this change in usbquirks.h , i can use my synth roland sh-201

i have a new patch for this device (in attach)
with this patch, also the audio works (with jackd)

let me know if you need more info

--
carlo beccaria

[-- Attachment #2: Type: TEXT/PLAIN, Size: 1005 bytes --]

--- usbquirks.h	2007-07-02 01:42:55.000000000 +0200
+++ usbquirks-sh201.h	2007-07-02 01:42:52.000000000 +0200
@@ -1042,6 +1042,40 @@
 		.type = QUIRK_MIDI_STANDARD_INTERFACE
 	}
 },
+
+{
+  /* Roland SH-201 */
+	USB_DEVICE(0x0582, 0x00ad),
+	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
+		.vendor_name = "Roland",
+		.product_name = "SH-201",
+		.ifnum = QUIRK_ANY_INTERFACE,
+		.type = QUIRK_COMPOSITE,
+		.data = (const struct snd_usb_audio_quirk[]) {
+			{
+				.ifnum = 0,
+				.type = QUIRK_AUDIO_STANDARD_INTERFACE
+			},
+			{
+				.ifnum = 1,
+				.type = QUIRK_AUDIO_STANDARD_INTERFACE
+			},
+			{
+				.ifnum = 2,
+				.type = QUIRK_MIDI_FIXED_ENDPOINT,
+				.data = & (const struct snd_usb_midi_endpoint_info) {
+					.out_cables = 0x0001,
+					.in_cables  = 0x0001
+				}
+			},
+			{
+				.ifnum = -1
+			}
+		}
+	}
+},
+
+
 	/* TODO: add Roland EXR support */
 {
 	/* has ID 0x0067 when not in "Advanced Driver" mode */

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: roland synth sh-201
  2007-06-30 16:20 ` carlo beccaria
@ 2007-07-02  7:34   ` Clemens Ladisch
  2007-07-02  7:43     ` carlo beccaria
  0 siblings, 1 reply; 5+ messages in thread
From: Clemens Ladisch @ 2007-07-02  7:34 UTC (permalink / raw)
  To: carlo beccaria, alsa-devel

carlo beccaria wrote:
> On Thu, 28 Jun 2007, carlo beccaria wrote:
> > hi all, with this change in usbquirks.h , i can use my synth roland sh-201
> 
> i have a new patch for this device (in attach)
> with this patch, also the audio works (with jackd)

Thank you.
Please provide a Signed-off-by: line.


Clemens

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

* Re: roland synth sh-201
  2007-07-02  7:34   ` Clemens Ladisch
@ 2007-07-02  7:43     ` carlo beccaria
  2007-07-03  6:23       ` Clemens Ladisch
  0 siblings, 1 reply; 5+ messages in thread
From: carlo beccaria @ 2007-07-02  7:43 UTC (permalink / raw)
  To: alsa-devel

On Mon, 2 Jul 2007, Clemens Ladisch wrote:

> carlo beccaria wrote:
>> On Thu, 28 Jun 2007, carlo beccaria wrote:
>>> hi all, with this change in usbquirks.h , i can use my synth roland sh-201
>>
>> i have a new patch for this device (in attach)
>> with this patch, also the audio works (with jackd)
>
> Thank you.
> Please provide a Signed-off-by: line.

Signed-off-by: Carlo Beccaria <carlo@beccaria.org>

Thank you

--
cb

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

* Re: roland synth sh-201
  2007-07-02  7:43     ` carlo beccaria
@ 2007-07-03  6:23       ` Clemens Ladisch
  0 siblings, 0 replies; 5+ messages in thread
From: Clemens Ladisch @ 2007-07-03  6:23 UTC (permalink / raw)
  To: carlo beccaria, alsa-devel

> > carlo beccaria wrote:
> >> On Thu, 28 Jun 2007, carlo beccaria wrote:
> >>> hi all, with this change in usbquirks.h , i can use my synth roland sh-201
> >>
> >> i have a new patch for this device (in attach)
> >> with this patch, also the audio works (with jackd)

Applied.


Regards,
Clemens

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

end of thread, other threads:[~2007-07-03  6:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-28  7:36 roland synth sh-201 carlo beccaria
2007-06-30 16:20 ` carlo beccaria
2007-07-02  7:34   ` Clemens Ladisch
2007-07-02  7:43     ` carlo beccaria
2007-07-03  6:23       ` Clemens Ladisch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.