Re: [Alsa-devel] [partialy fixed] Creamware Noah, snd-usb-audio capable?

2004-02-26 Thread Clemens Ladisch
Hartmut Geissbauer wrote:
 Clemens Ladisch wrote:
  Hartmut Geissbauer wrote:
 The only thing that's missing now are the two playback ports.
   
Please show the output of lsusb -v.
 
  The descriptors look OK.

But only at first sight.

Please try this patch.


HTH
Clemens

-- 

Index: alsa-kernel/usb/usbaudio.c
===
RCS file: /cvsroot/alsa/alsa-kernel/usb/usbaudio.c,v
retrieving revision 1.81
diff -u -r1.81 usbaudio.c
--- alsa-kernel/usb/usbaudio.c  24 Feb 2004 08:44:33 -  1.81
+++ alsa-kernel/usb/usbaudio.c  26 Feb 2004 10:21:55 -
@@ -2324,6 +2324,9 @@
}

csep = snd_usb_find_desc(alts-endpoint[0].extra, 
alts-endpoint[0].extralen, NULL, USB_DT_CS_ENDPOINT);
+   /* Creamware Noah has this descriptor after the 2nd endpoint */
+   if (!csep  altsd-bNumEndpoints = 2)
+   csep = snd_usb_find_desc(alts-endpoint[1].extra, 
alts-endpoint[1].extralen, NULL, USB_DT_CS_ENDPOINT);
if (!csep || csep[0]  7 || csep[2] != EP_GENERAL) {
snd_printk(KERN_ERR %d:%u:%d : no or invalid class specific 
endpoint descriptor\n,
   dev-devnum, iface_no, altno);




---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


Re: [Alsa-devel] [partialy fixed] Creamware Noah, snd-usb-audio capable?

2004-02-24 Thread Hartmut Geissbauer
Clemens Ladisch wrote:
 Hartmut Geissbauer wrote:
The only thing that's missing now are the two playback ports.
  
   Please show the output of lsusb -v.
 
bInterfaceNumber2
iInterface  4 Noah Audio Out
bAlternateSetting   1
  bFormatType 1 (FORMAT_TYPE_I)
  bNrChannels 2
  bBitResolution 16
  tSamFreq[ 0]44100
Transfer TypeIsochronous
Synch Type   Asynchronous
 
 The descriptors look OK.
 
 Are there any messages in the system log (dmesg) when the driver is
 loaded?  If not, please compile ALSA again after running configure
 with the --with-debug=detect parameter, and try again.
 
Please look at the messages attached. It seems, there's something odd with
the playback endpoint.

-
usb 1-2.4: new full speed USB device using address 5
usb 1-2.4: new device strings: Mfr=1, Product=2, SerialNumber=0
drivers/usb/core/message.c: USB device number 5 default language ID
0x409
usb 1-2.4: Product: CreamWare Noah Synthesizer
usb 1-2.4: Manufacturer: CreamWare GmbH
drivers/usb/core/usb.c: usb_hotplug
usb 1-2.4: registering 1-2.4:1.0 (config #1, interface 0)
drivers/usb/core/usb.c: usb_hotplug
usb 1-2.4: registering 1-2.4:1.1 (config #1, interface 1)
drivers/usb/core/usb.c: usb_hotplug
snd-usb-audio 1-2.4:1.1: usb_probe_interface
snd-usb-audio 1-2.4:1.1: usb_probe_interface - got id
ALSA sound/usb/usbaudio.c:2331: 5:2:1 : no or invalid class specific
endpoint descriptor
ALSA sound/usb/usbaudio.c:2392: 5:3:1: add audio endpoint 0x87
ALSA sound/usb/usbaudio.c:2392: 5:3:2: add audio endpoint 0x87
ALSA sound/usb/usbaudio.c:2392: 5:3:3: add audio endpoint 0x87
ALSA sound/usb/usbmidi.c:812: MIDIStreaming version 01.00
ALSA sound/usb/usbmidi.c:849: EP 81: 1 jack(s)
ALSA sound/usb/usbmidi.c:838: EP 02: 1 jack(s)
ALSA sound/usb/usbmidi.c:782: created 1 output and 1 input ports
usb 1-2.4: registering 1-2.4:1.2 (config #1, interface 2)
drivers/usb/core/usb.c: usb_hotplug
usb 1-2.4: registering 1-2.4:1.3 (config #1, interface 3)
drivers/usb/core/usb.c: usb_hotplug
usb 1-2.4: registering 1-2.4:1.4 (config #1, interface 4)
drivers/usb/core/usb.c: usb_hotplug


Driver version: alsa 1.0.2c
kernel 2.6.3 (unpatched)
 
Kindly regards, Hartmut
-- 
Hartmut Geissbauer [EMAIL PROTECTED]



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


Re: [Alsa-devel] [partialy fixed] Creamware Noah, snd-usb-audio capable?

2004-02-24 Thread Hartmut Geissbauer
Clemens Ladisch wrote:
 Hartmut Geissbauer wrote:
The only thing that's missing now are the two playback ports.
  
   Please show the output of lsusb -v.
 
bInterfaceNumber2
iInterface  4 Noah Audio Out
bAlternateSetting   1
  bFormatType 1 (FORMAT_TYPE_I)
  bNrChannels 2
  bBitResolution 16
  tSamFreq[ 0]44100
Transfer TypeIsochronous
Synch Type   Asynchronous
 
 The descriptors look OK.
 
 Are there any messages in the system log (dmesg) when the driver is
 loaded?  If not, please compile ALSA again after running configure
 with the --with-debug=detect parameter, and try again.
 
Please the the messages attached. It seems, there's something odd with
the playback endpoint.

-
usb 1-2.4: new full speed USB device using address 5
usb 1-2.4: new device strings: Mfr=1, Product=2, SerialNumber=0
drivers/usb/core/message.c: USB device number 5 default language ID
0x409
usb 1-2.4: Product: CreamWare Noah Synthesizer
usb 1-2.4: Manufacturer: CreamWare GmbH
drivers/usb/core/usb.c: usb_hotplug
usb 1-2.4: registering 1-2.4:1.0 (config #1, interface 0)
drivers/usb/core/usb.c: usb_hotplug
usb 1-2.4: registering 1-2.4:1.1 (config #1, interface 1)
drivers/usb/core/usb.c: usb_hotplug
snd-usb-audio 1-2.4:1.1: usb_probe_interface
snd-usb-audio 1-2.4:1.1: usb_probe_interface - got id
ALSA sound/usb/usbaudio.c:2331: 5:2:1 : no or invalid class specific
endpoint descriptor
ALSA sound/usb/usbaudio.c:2392: 5:3:1: add audio endpoint 0x87
ALSA sound/usb/usbaudio.c:2392: 5:3:2: add audio endpoint 0x87
ALSA sound/usb/usbaudio.c:2392: 5:3:3: add audio endpoint 0x87
ALSA sound/usb/usbmidi.c:812: MIDIStreaming version 01.00
ALSA sound/usb/usbmidi.c:849: EP 81: 1 jack(s)
ALSA sound/usb/usbmidi.c:838: EP 02: 1 jack(s)
ALSA sound/usb/usbmidi.c:782: created 1 output and 1 input ports
usb 1-2.4: registering 1-2.4:1.2 (config #1, interface 2)
drivers/usb/core/usb.c: usb_hotplug
usb 1-2.4: registering 1-2.4:1.3 (config #1, interface 3)
drivers/usb/core/usb.c: usb_hotplug
usb 1-2.4: registering 1-2.4:1.4 (config #1, interface 4)
drivers/usb/core/usb.c: usb_hotplug


Driver version: alsa 1.0.2c
kernel 2.6.3 (unpatched)
 
Kîndly regards, Hartmut
-- 
Hartmut Geissbauer [EMAIL PROTECTED]



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56alloc_id438op=click
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


Re: [Alsa-devel] [partialy fixed] Creamware Noah, snd-usb-audio capable?

2004-02-19 Thread Clemens Ladisch
Hartmut Geissbauer wrote:
 Clemens Ladisch wrote:
   Might the patch(the code in it) for usbaudio.c you posted before be
   helpfull for the program?
 
  No. Please remove the patch.

 Done, except of the entries in usbquirks.h. Is it still needed?

No.  The quirk entry causes the driver to be loaded even for the first
configuration, which isn't needed anymore.

 Now by playing around with the settings in the build-in menu of the
 synthesizer, I discovered an entry named USBCom, that isn't described in
 the (so far well done) manual. You can switch it between Windows and
 Mac/Linux. I rememberd that I updated the firmware. (Now: 1.4.23, if
 anyone else is interested) So this menu entry might belong to this
 update.

 OK, with this setting, it is _not_ necessary to switch the configuration
 with your small but excellent tool to 2. There's now only _one_
 configuration  available, which represents  the audio and midi devices.

It's nice to see a device with built-in Linux support.  :-)

Please make an entry on http://qbik.ch/usb/devices/ and describe to
change the USBCom entry.

 The only thing that's missing now are the two playback ports.

Please show the output of lsusb -v.


Regards,
Clemens




---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


Re: [Alsa-devel] [partialy fixed] Creamware Noah, snd-usb-audio capable?

2004-02-19 Thread Hartmut Geissbauer
Hi again,

Clemens Ladisch wrote:
   No. Please remove the patch.
 
  Done, except of the entries in usbquirks.h. Is it still needed?
 
 No.  The quirk entry causes the driver to be loaded even for the first
 configuration, which isn't needed anymore.
 
Ok, it is removed and the device is still working.

 It's nice to see a device with built-in Linux support.  :-)
 

I've been suprised as well.

 Please make an entry on http://qbik.ch/usb/devices/ and describe to
 change the USBCom entry.
 

I think, I'll wait until we have a definite result of the playback
devices.

  The only thing that's missing now are the two playback ports.
 
 Please show the output of lsusb -v.
 
---8--Start of lsusb-

Bus 001 Device 003: ID 1107:0102
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   1.00
  bDeviceClass0 Interface
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize064
  idVendor   0x1107
  idProduct  0x0102
  bcdDevice1.00
  iManufacturer   1 CreamWare GmbH
  iProduct2 CreamWare Noah Synthesizer
  iSerial 0
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength  381
bNumInterfaces  5
bConfigurationValue 1
iConfiguration  0
bmAttributes 0xc0
  Self Powered
MaxPower0mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   4
  bInterfaceClass   255 Vendor Specific Class
  bInterfaceSubClass  0
  bInterfaceProtocol  0
  iInterface  7 Noah Synth
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83  EP 3 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   none
wMaxPacketSize 32
bInterval   1
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04  EP 4 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   none
wMaxPacketSize 64
bInterval   1
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85  EP 5 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   none
wMaxPacketSize 64
bInterval   1
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x06  EP 6 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   none
wMaxPacketSize 16
bInterval   1
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber1
  bAlternateSetting   0
  bNumEndpoints   0
  bInterfaceClass 1 Audio
  bInterfaceSubClass  1 Control Device
  bInterfaceProtocol  0
  iInterface  3 Noah Audio
  AudioControl Interface Descriptor:
bLength11
bDescriptorType36
bDescriptorSubtype  1 (HEADER)
bcdADC   1.00
wTotalLength   53
bInCollection   3
baInterfaceNr( 0)   2
baInterfaceNr( 1)   3
baInterfaceNr( 2)   4
  AudioControl Interface Descriptor:
bLength12
bDescriptorType36
bDescriptorSubtype  2 (INPUT_TERMINAL)
bTerminalID17
wTerminalType  0x0101 USB Streaming
bAssocTerminal  0
bNrChannels 2
wChannelConfig 0x0003
  Left Front (L)
  Right Front (R)
iChannelNames   0
iTerminal   0
  AudioControl Interface Descriptor:
bLength 9
bDescriptorType36
bDescriptorSubtype  3 (OUTPUT_TERMINAL)
bTerminalID18
wTerminalType  0x0601 Analog Connector
bAssocTerminal  0
bSourceID  17
iTerminal   0
  AudioControl Interface Descriptor:
bLength 9
bDescriptorType36
bDescriptorSubtype  3 (OUTPUT_TERMINAL)
bTerminalID19
wTerminalType  0x0101 USB Streaming
bAssocTerminal  0
bSourceID  20

Re: [Alsa-devel] [partialy fixed] Creamware Noah, snd-usb-audio capable?

2004-02-18 Thread Hartmut Geissbauer
Hi Clemens,

Clemens Ladisch wrote:
  Might the patch(the code in it) for usbaudio.c you posted before be
  helpfull for the program?
 
 No. Please remove the patch.
 

Done, except of the entries in usbquirks.h. Is it still needed?
(OK, I fetched Kernel 2.6.3 today and made the entries there.)

 Then compile the attached program (it requires libusb), and run it by
 hand; after that, load snd-usb-audio.
 

That worked perfectly. The device is switching to config 2,
snd-usb-audio is been loaded by the kernel, and the midi devices
appeared in kaconect. Six capture ports are available as well.

I recorded a wav with arecord via capture one and two. And it sounded
good.

With Rosegarden I played a song via the Noah Midi Out. And the device is
playing. ;-)

Now by playing around with the settings in the build-in menu of the
synthesizer, I discovered an entry named USBCom, that isn't described in
the (so far well done) manual. You can switch it between Windows and
Mac/Linux. I rememberd that I updated the firmware. (Now: 1.4.23, if
anyone else is interested) So this menu entry might belong to this
update.

OK, with this setting, it is _not_ necessary to switch the configuration
with your small but excellent tool to 2. There's now only _one_
configuration  available, which represents  the audio and midi devices.
(Former configuration 2)

The only thing that's missing now are the two playback ports.

-- snip from /proc/asound/devices
128: [4- 0]: ctl
136: [4- 0]: raw midi
152: [4- 0]: digital audio capture
-end of snip

BTW: I removed all snd-usb-audio related entries from modprobe.conf.
First to avoid snd-usb-audio is loaded by the alsasound script.
Second, not to get empty cards in /proc/asound 
I only left the snd cards_limit=6 for the maximum number of my
soundcards at all.

emu10k1 (used as my primary sounddevice)
intel8x0 (onboard, used only for midi In and Out)
ice1712 (used for hard disk recording)
virmidi
noah
midisport


Thank you very much for your excellent help to getting to this state of
a working device.

Kindly regards, Hartmut

-- 
Hartmut Geissbauer [EMAIL PROTECTED]



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel