* No sound from usb on Motorola C350 cellphone
@ 2007-11-12 13:28 Giovanni Maruzzelli
2007-11-12 13:34 ` Giovanni Maruzzelli
0 siblings, 1 reply; 9+ messages in thread
From: Giovanni Maruzzelli @ 2007-11-12 13:28 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 2739 bytes --]
Hi list participants,
I am using cellphones connected to soundcards as cheap gsm gateways
(more complex than that, actually. You can see the whole GPL project
at www.celliax.org).
Maybe there is a way to not using soundcards, that would be *so* much
better: I found that Motorola c350 phones after receiving an AT+MODE=8
command via USB, make available an usb sound device.
That would be wonderful (less cables, more robustness, etc). Problem
is: the usb sound device do not plays or captures samples.
I suspect that the usb audio has to be activated, maybe by an AT or a
P2K command.
Or that a quirk has to be added to the alsa driver (snd_usb_audio).
Do you know anything about (maybe the quirk to be added to ALSA driver...)?
Do you have any hint?
I'm available to do all the research-testing-debugging that may be useful.
What happens is as follow:
1) attach the c350 to usb
2) is recognized as acm0
3) send at+mode=8 to c350 (via minicom, for eg)
4) it changes its usbid, disconnect from usb, reconnect, is recognized
as acm1, makes available a sound device
5) at commands work on the new acm1
6) trying to use the audio device directly (eg aplay -Dhw:1) do not
give errors on play (but no sound is head on the phone), gives error
pcm_read 1349 on record (eg arecord -Dhw:1)
7) trying to use the audiodevice through alsalib does not gives errors
at all (eg -Dplughw:1) but does not caputeres samples, and no sound is
heard on the phone
I'm attaching:
lusb_without -> result of lusb -vv with no device attached
lsusb_with_ACM0 -> result of lusb -vv with c350 just attached,
recognized as acm modem
lsusb_with_ACM1 -> result of lusb -vv with c350 after sending
at+mode=8 to him, he has disconnected and was recognized again, this
time as ACM1, with a lot of additional usb interfaces
dmesg-acm0 -> result of dmesg after first c350 attachment
dmesg-acm1 -> result of dmesg after at+mode=8 was sent to the c350
aplay-l -> result of aplay -l showing the c350 as an alsa device
stream0_pstop_cstop -> result of cat /proc/asound/C350/stream0 while not active
stream0_pstop_crun -> result of cat /proc/asound/C350/stream0 while
arecord -vv -Dplughw:1 -fS16_LE ciapa.raw (if using -Dhw:1 it fails
with error: "pcm_read:1349: read error: Input/output error"). arecord
does not gives errors, but do not write samples
stream0_prun_crun -> result of cat /proc/asound/C350/stream0 while
aplay and arecord -vv -Dplughw:1 -fS16_LE ciapa.raw (if using -Dhw:1
arecord fails with error: "pcm_read:1349: read error: Input/output
error", aplay works but no audio) arecord does not gives errors, but
do not write samples
aplay_play -> results of aplay
arecord_rec -> results of arecord
Thank you all in advance,
Giovanni Maruzzelli
[-- Attachment #2: aplay-l --]
[-- Type: application/octet-stream, Size: 120 bytes --]
card 1: C350 [Motorola Phone (C350)], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
[-- Attachment #3: aplay_play --]
[-- Type: application/octet-stream, Size: 1161 bytes --]
Plug PCM: Linear conversion PCM (S16_LE)
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : U8
subformat : STD
channels : 1
rate : 8000
exact rate : 8000 (8000/1)
msbits : 8
buffer_size : 4000
period_size : 1000
period_time : 125000
tick_time : 4000
tstamp_mode : NONE
period_step : 1
sleep_min : 0
avail_min : 1000
xfer_align : 1000
start_threshold : 4000
stop_threshold : 4000
silence_threshold: 0
silence_size : 0
boundary : 2097152000
Slave: Hardware PCM card 1 'Motorola Phone (C350)' device 0 subdevice 0
Its setup is:
stream : PLAYBACK
access : MMAP_INTERLEAVED
format : S16_LE
subformat : STD
channels : 1
rate : 8000
exact rate : 8000 (8000/1)
msbits : 16
buffer_size : 4000
period_size : 1000
period_time : 125000
tick_time : 4000
tstamp_mode : NONE
period_step : 1
sleep_min : 0
avail_min : 1000
xfer_align : 1000
start_threshold : 4000
stop_threshold : 4000
silence_threshold: 0
silence_size : 0
boundary : 2097152000
[-- Attachment #4: arecord_rec --]
[-- Type: application/octet-stream, Size: 1217 bytes --]
Recording WAVE 'ciapa.raw' : Unsigned 8 bit, Rate 8000 Hz, Mono
Plug PCM: Linear conversion PCM (S16_LE)
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : U8
subformat : STD
channels : 1
rate : 8000
exact rate : 8000 (8000/1)
msbits : 8
buffer_size : 4000
period_size : 1000
period_time : 125000
tick_time : 4000
tstamp_mode : NONE
period_step : 1
sleep_min : 0
avail_min : 1000
xfer_align : 1000
start_threshold : 1
stop_threshold : 4000
silence_threshold: 0
silence_size : 0
boundary : 2097152000
Slave: Hardware PCM card 1 'Motorola Phone (C350)' device 0 subdevice 0
Its setup is:
stream : CAPTURE
access : MMAP_INTERLEAVED
format : S16_LE
subformat : STD
channels : 1
rate : 8000
exact rate : 8000 (8000/1)
msbits : 16
buffer_size : 4000
period_size : 1000
period_time : 125000
tick_time : 4000
tstamp_mode : NONE
period_step : 1
sleep_min : 0
avail_min : 1000
xfer_align : 1000
start_threshold : 1
stop_threshold : 4000
silence_threshold: 0
silence_size : 0
boundary : 2097152000
[-- Attachment #5: dmesg-acm0 --]
[-- Type: application/octet-stream, Size: 659 bytes --]
[ 1390.440000] usb 2-2: new full speed USB device using uhci_hcd and address 2
[ 1390.564000] usb 2-2: device descriptor read/64, error -71
[ 1390.788000] usb 2-2: device descriptor read/64, error -71
[ 1391.004000] usb 2-2: new full speed USB device using uhci_hcd and address 3
[ 1398.336000] usb 2-2: new full speed USB device using uhci_hcd and address 4
[ 1398.532000] usb 2-2: configuration #1 chosen from 1 choice
[ 1398.716000] cdc_acm 2-2:1.0: ttyACM0: USB ACM device
[ 1398.724000] usbcore: registered new interface driver cdc_acm
[ 1398.724000] drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters
[-- Attachment #6: dmesg-acm1 --]
[-- Type: application/octet-stream, Size: 318 bytes --]
[ 1571.224000] usb 2-2: USB disconnect, address 4
[ 1574.156000] usb 2-2: new full speed USB device using uhci_hcd and address 5
[ 1574.400000] usb 2-2: configuration #1 chosen from 1 choice
[ 1574.408000] cdc_acm 2-2:1.0: ttyACM1: USB ACM device
[ 1575.008000] usbcore: registered new interface driver snd-usb-audio
[-- Attachment #7: lsusb_with_ACM0 --]
[-- Type: application/octet-stream, Size: 11452 bytes --]
Bus 004 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 1 Single TT
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.20-16-generic ehci_hcd
iProduct 2 EHCI Host Controller
iSerial 1 0000:00:1d.7
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 6
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
TT think time 8 FS bits
bPwrOn2PwrGood 10 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Port 3: 0000.0100 power
Port 4: 0000.0000
Port 5: 0000.0100 power
Port 6: 0000.0100 power
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled
Bus 003 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed hub
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.20-16-generic uhci_hcd
iProduct 2 UHCI Host Controller
iSerial 1 0000:00:1d.2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled
Bus 002 Device 004: ID 22b8:3802 Motorola PCS C330/A780 GSM Phone
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x22b8 Motorola PCS
idProduct 0x3802 C330/A780 GSM Phone
bcdDevice 0.01
iManufacturer 1 Motorola Inc.
iProduct 2 Motorola Phone (C350)
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 67
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 4 Motorola Communication Class
bmAttributes 0xc0
Self Powered
MaxPower 20mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
iInterface 5 Motorola Communication Interface
CDC Header:
bcdCDC 1.01
CDC Call Management:
bmCapabilities 0x03
call management
use DataInterface
bDataInterface 1
CDC Union:
bMasterInterface 0
bSlaveInterface 1
CDC ACM:
bmCapabilities 0x02
line coding and serial state
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x89 EP 9 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 10
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 16 Motorola Data Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 0
Device Status: 0x0001
Self Powered
Bus 002 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed hub
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.20-16-generic uhci_hcd
iProduct 2 UHCI Host Controller
iSerial 1 0000:00:1d.1
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0103 power enable connect
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled
Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed hub
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.20-16-generic uhci_hcd
iProduct 2 UHCI Host Controller
iSerial 1 0000:00:1d.0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled
[-- Attachment #8: lsusb_with_ACM1 --]
[-- Type: application/octet-stream, Size: 26764 bytes --]
Bus 004 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 1 Single TT
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.20-16-generic ehci_hcd
iProduct 2 EHCI Host Controller
iSerial 1 0000:00:1d.7
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 6
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
TT think time 8 FS bits
bPwrOn2PwrGood 10 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Port 3: 0000.0100 power
Port 4: 0000.0000
Port 5: 0000.0100 power
Port 6: 0000.0100 power
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled
Bus 003 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed hub
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.20-16-generic uhci_hcd
iProduct 2 UHCI Host Controller
iSerial 1 0000:00:1d.2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled
Bus 002 Device 005: ID 22b8:3801 Motorola PCS
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x22b8 Motorola PCS
idProduct 0x3801
bcdDevice 0.01
iManufacturer 1 Motorola Inc.
iProduct 2 Motorola Phone (C350)
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 442
bNumInterfaces 9
bConfigurationValue 1
iConfiguration 19 Motorola Full configuration
bmAttributes 0xc0
Self Powered
MaxPower 20mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
iInterface 5 Motorola Communication Interface
CDC Header:
bcdCDC 1.01
CDC Call Management:
bmCapabilities 0x03
call management
use DataInterface
bDataInterface 1
CDC Union:
bMasterInterface 0
bSlaveInterface 1
CDC ACM:
bmCapabilities 0x02
line coding and serial state
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x89 EP 9 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 10
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 16 Motorola Data Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 1 Control Device
bInterfaceProtocol 0
iInterface 6 Audio Control Interface
AudioControl Interface Descriptor:
bLength 10
bDescriptorType 36
bDescriptorSubtype 1 (HEADER)
bcdADC 1.00
wTotalLength 52
bInCollection 2
baInterfaceNr( 0) 3
baInterfaceNr( 1) 4
AudioControl Interface Descriptor:
bLength 12
bDescriptorType 36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 1
wTerminalType 0x0501 Phone line
bAssocTerminal 4
bNrChannels 1
wChannelConfig 0x0000
iChannelNames 0
iTerminal 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 2
wTerminalType 0x0101 USB Streaming
bAssocTerminal 0
bSourceID 1
iTerminal 0
AudioControl Interface Descriptor:
bLength 12
bDescriptorType 36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 3
wTerminalType 0x0101 USB Streaming
bAssocTerminal 0
bNrChannels 1
wChannelConfig 0x0000
iChannelNames 0
iTerminal 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 4
wTerminalType 0x0501 Phone line
bAssocTerminal 1
bSourceID 3
iTerminal 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 1
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 7 Linear Streaming Audio MiCrophone Interface
AudioStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 2
bDelay 0 frames
wFormatTag 1 PCM
AudioStreaming Interface Descriptor:
bLength 11
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 1
bSubframeSize 2
bBitResolution 16
bSamFreqType 1 Discrete
tSamFreq[ 0] 8000
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 13
Transfer Type Isochronous
Synch Type Synchronous
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 1
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x00
bLockDelayUnits 0 Undefined
wLockDelay 0 Undefined
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 2
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 8 Logarithmic Streaming Audio Microphone Interface
AudioStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 2
bDelay 0 frames
wFormatTag 4 ALAW
AudioStreaming Interface Descriptor:
bLength 11
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 1
bSubframeSize 2
bBitResolution 8
bSamFreqType 1 Discrete
tSamFreq[ 0] 8000
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 13
Transfer Type Isochronous
Synch Type Synchronous
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 1
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x00
bLockDelayUnits 0 Undefined
wLockDelay 0 Undefined
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 3
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 8 Logarithmic Streaming Audio Microphone Interface
AudioStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 2
bDelay 0 frames
wFormatTag 5 MULAW
AudioStreaming Interface Descriptor:
bLength 11
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 1
bSubframeSize 2
bBitResolution 8
bSamFreqType 1 Discrete
tSamFreq[ 0] 8000
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 13
Transfer Type Isochronous
Synch Type Synchronous
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 1
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x00
bLockDelayUnits 0 Undefined
wLockDelay 0 Undefined
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 4
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 4
bAlternateSetting 1
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 9 Linear Streaming Audio Speaker Interface?
AudioStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 3
bDelay 0 frames
wFormatTag 1 PCM
AudioStreaming Interface Descriptor:
bLength 11
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 1
bSubframeSize 2
bBitResolution 16
bSamFreqType 1 Discrete
tSamFreq[ 0] 8000
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
bmAttributes 13
Transfer Type Isochronous
Synch Type Synchronous
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 1
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x00
bLockDelayUnits 0 Undefined
wLockDelay 0 Undefined
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 4
bAlternateSetting 2
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 10 Logarithmic Streaming Audio Speaker Interface
AudioStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 3
bDelay 0 frames
wFormatTag 4 ALAW
AudioStreaming Interface Descriptor:
bLength 11
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 1
bSubframeSize 2
bBitResolution 8
bSamFreqType 1 Discrete
tSamFreq[ 0] 8000
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
bmAttributes 13
Transfer Type Isochronous
Synch Type Synchronous
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 1
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x00
bLockDelayUnits 0 Undefined
wLockDelay 0 Undefined
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 4
bAlternateSetting 3
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 10 Logarithmic Streaming Audio Speaker Interface
AudioStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 3
bDelay 0 frames
wFormatTag 5 MULAW
AudioStreaming Interface Descriptor:
bLength 11
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 1
bSubframeSize 2
bBitResolution 8
bSamFreqType 1 Discrete
tSamFreq[ 0] 8000
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
bmAttributes 13
Transfer Type Isochronous
Synch Type Synchronous
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 1
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x00
bLockDelayUnits 0 Undefined
wLockDelay 0 Undefined
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 5
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 1
bInterfaceProtocol 255
iInterface 11 Motorola Accessory
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 6
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 2
bInterfaceProtocol 255
iInterface 12 Motorola MCU Data Logger
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 7
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 2
bInterfaceProtocol 255
iInterface 14 Motorola DSP Logger
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x88 EP 8 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 8
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 3
bInterfaceProtocol 255
iInterface 13 Motorola Test Command
Device Status: 0x0001
Self Powered
Bus 002 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed hub
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.20-16-generic uhci_hcd
iProduct 2 UHCI Host Controller
iSerial 1 0000:00:1d.1
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0103 power enable connect
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled
Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed hub
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.20-16-generic uhci_hcd
iProduct 2 UHCI Host Controller
iSerial 1 0000:00:1d.0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled
[-- Attachment #9: lsusb_without --]
[-- Type: application/octet-stream, Size: 8263 bytes --]
Bus 004 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 1 Single TT
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.20-16-generic ehci_hcd
iProduct 2 EHCI Host Controller
iSerial 1 0000:00:1d.7
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 6
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
TT think time 8 FS bits
bPwrOn2PwrGood 10 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Port 3: 0000.0100 power
Port 4: 0000.0100 power
Port 5: 0000.0100 power
Port 6: 0000.0100 power
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled
Bus 003 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed hub
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.20-16-generic uhci_hcd
iProduct 2 UHCI Host Controller
iSerial 1 0000:00:1d.2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled
Bus 002 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed hub
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.20-16-generic uhci_hcd
iProduct 2 UHCI Host Controller
iSerial 1 0000:00:1d.1
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled
Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed hub
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.20-16-generic uhci_hcd
iProduct 2 UHCI Host Controller
iSerial 1 0000:00:1d.0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled
[-- Attachment #10: stream0_prun_crun --]
[-- Type: application/octet-stream, Size: 1006 bytes --]
Motorola Inc. Motorola Phone (C350) at usb-0000:00:1d.1-2, full speed : USB Audio
Playback:
Status: Running
Interface = 4
Altset = 1
URBs = 8 [ 8 8 8 8 8 8 8 8 ]
Packet Size = 16
Momentary freq = 8000 Hz (0x8.0000)
Interface 4
Altset 1
Format: 0x2
Channels: 1
Endpoint: 5 OUT (SYNC)
Rates: 8000
Interface 4
Altset 2
Format: 0x15
Channels: 1
Endpoint: 5 OUT (SYNC)
Rates: 8000
Interface 4
Altset 3
Format: 0x14
Channels: 1
Endpoint: 5 OUT (SYNC)
Rates: 8000
Capture:
Status: Running
Interface = 3
Altset = 1
URBs = 8 [ 1 1 1 1 1 1 1 1 ]
Packet Size = 16
Momentary freq = 8000 Hz (0x8.0000)
Interface 3
Altset 1
Format: 0x2
Channels: 1
Endpoint: 6 IN (SYNC)
Rates: 8000
Interface 3
Altset 2
Format: 0x15
Channels: 1
Endpoint: 6 IN (SYNC)
Rates: 8000
Interface 3
Altset 3
Format: 0x14
Channels: 1
Endpoint: 6 IN (SYNC)
Rates: 8000
[-- Attachment #11: stream0_pstop_crun --]
[-- Type: application/octet-stream, Size: 876 bytes --]
Motorola Inc. Motorola Phone (C350) at usb-0000:00:1d.1-2, full speed : USB Audio
Playback:
Status: Stop
Interface 4
Altset 1
Format: 0x2
Channels: 1
Endpoint: 5 OUT (SYNC)
Rates: 8000
Interface 4
Altset 2
Format: 0x15
Channels: 1
Endpoint: 5 OUT (SYNC)
Rates: 8000
Interface 4
Altset 3
Format: 0x14
Channels: 1
Endpoint: 5 OUT (SYNC)
Rates: 8000
Capture:
Status: Running
Interface = 3
Altset = 1
URBs = 8 [ 1 1 1 1 1 1 1 1 ]
Packet Size = 16
Momentary freq = 8000 Hz (0x8.0000)
Interface 3
Altset 1
Format: 0x2
Channels: 1
Endpoint: 6 IN (SYNC)
Rates: 8000
Interface 3
Altset 2
Format: 0x15
Channels: 1
Endpoint: 6 IN (SYNC)
Rates: 8000
Interface 3
Altset 3
Format: 0x14
Channels: 1
Endpoint: 6 IN (SYNC)
Rates: 8000
[-- Attachment #12: stream0_pstop_cstop --]
[-- Type: application/octet-stream, Size: 746 bytes --]
Motorola Inc. Motorola Phone (C350) at usb-0000:00:1d.1-2, full speed : USB Audio
Playback:
Status: Stop
Interface 4
Altset 1
Format: 0x2
Channels: 1
Endpoint: 5 OUT (SYNC)
Rates: 8000
Interface 4
Altset 2
Format: 0x15
Channels: 1
Endpoint: 5 OUT (SYNC)
Rates: 8000
Interface 4
Altset 3
Format: 0x14
Channels: 1
Endpoint: 5 OUT (SYNC)
Rates: 8000
Capture:
Status: Stop
Interface 3
Altset 1
Format: 0x2
Channels: 1
Endpoint: 6 IN (SYNC)
Rates: 8000
Interface 3
Altset 2
Format: 0x15
Channels: 1
Endpoint: 6 IN (SYNC)
Rates: 8000
Interface 3
Altset 3
Format: 0x14
Channels: 1
Endpoint: 6 IN (SYNC)
Rates: 8000
[-- Attachment #13: 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] 9+ messages in thread
* No sound from usb on Motorola C350 cellphone
2007-11-12 13:28 No sound from usb on Motorola C350 cellphone Giovanni Maruzzelli
@ 2007-11-12 13:34 ` Giovanni Maruzzelli
2007-11-12 13:44 ` Giovanni Maruzzelli
2007-11-12 13:50 ` Alexander E. Patrakov
0 siblings, 2 replies; 9+ messages in thread
From: Giovanni Maruzzelli @ 2007-11-12 13:34 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 2786 bytes --]
Hi list participants,
I am using cellphones connected to soundcards as cheap gsm gateways
(more complex than that, actually. You can see the whole GPL project
at www.celliax.org).
Maybe there is a way to not using soundcards, that would be *so* much
better: I found that Motorola c350 phones after receiving an AT+MODE=8
command via USB, make available an usb sound device.
That would be wonderful (less cables, more robustness, etc). Problem
is: the usb sound device do not plays or captures samples.
I suspect that the usb audio has to be activated, maybe by an AT or a
P2K command.
Or that a quirk has to be added to the alsa driver (snd_usb_audio).
Do you know anything about (maybe the quirk to be added to ALSA driver...)?
Do you have any hint?
I'm available to do all the research-testing-debugging that may be useful.
What happens is as follow:
1) attach the c350 to usb
2) is recognized as acm0
3) send at+mode=8 to c350 (via minicom, for eg)
4) it changes its usbid, disconnect from usb, reconnect, is recognized
as acm1, makes available a sound device
5) at commands work on the new acm1
6) trying to use the audio device directly (eg aplay -Dhw:1) do not
give errors on play (but no sound is head on the phone), gives error
pcm_read 1349 on record (eg arecord -Dhw:1)
7) trying to use the audiodevice through alsalib does not gives errors
at all (eg -Dplughw:1) but does not caputeres samples, and no sound is
heard on the phone
In the tgz archive attached you can find the following files:
lusb_without -> result of lusb -vv with no device attached
lsusb_with_ACM0 -> result of lusb -vv with c350 just attached,
recognized as acm modem
lsusb_with_ACM1 -> result of lusb -vv with c350 after sending
at+mode=8 to him, he has disconnected and was recognized again, this
time as ACM1, with a lot of additional usb interfaces
dmesg-acm0 -> result of dmesg after first c350 attachment
dmesg-acm1 -> result of dmesg after at+mode=8 was sent to the c350
aplay-l -> result of aplay -l showing the c350 as an alsa device
stream0_pstop_cstop -> result of cat /proc/asound/C350/stream0 while not active
stream0_pstop_crun -> result of cat /proc/asound/C350/stream0 while
arecord -vv -Dplughw:1 -fS16_LE ciapa.raw (if using -Dhw:1 it fails
with error: "pcm_read:1349: read error: Input/output error"). arecord
does not gives errors, but do not write samples
stream0_prun_crun -> result of cat /proc/asound/C350/stream0 while
aplay and arecord -vv -Dplughw:1 -fS16_LE ciapa.raw (if using -Dhw:1
arecord fails with error: "pcm_read:1349: read error: Input/output
error", aplay works but no audio) arecord does not gives errors, but
do not write samples
aplay_play -> results of aplay
arecord_rec -> results of arecord
Thank you all in advance,
Giovanni Maruzzelli
[-- Attachment #2: c350_usb_sound.tgz --]
[-- Type: application/x-gzip, Size: 4449 bytes --]
[-- 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] 9+ messages in thread
* Re: No sound from usb on Motorola C350 cellphone
2007-11-12 13:34 ` Giovanni Maruzzelli
@ 2007-11-12 13:44 ` Giovanni Maruzzelli
2007-11-12 13:50 ` Alexander E. Patrakov
1 sibling, 0 replies; 9+ messages in thread
From: Giovanni Maruzzelli @ 2007-11-12 13:44 UTC (permalink / raw)
To: alsa-devel
Seems that there is a problem in sending compressed attachments (and
non compressed is over the max limit size for list).
So, you can get the attachment with all the files at:
http://www.celliax.org/c350_usb_sound.tgz
Sorry for the mess,
Giovanni
On Nov 12, 2007 2:34 PM, Giovanni Maruzzelli <gmaruzz.lists@gmail.com> wrote:
>
> Hi list participants,
>
> I am using cellphones connected to soundcards as cheap gsm gateways
> (more complex than that, actually. You can see the whole GPL project
> at www.celliax.org).
>
> Maybe there is a way to not using soundcards, that would be *so* much
> better: I found that Motorola c350 phones after receiving an AT+MODE=8
> command via USB, make available an usb sound device.
>
> That would be wonderful (less cables, more robustness, etc). Problem
> is: the usb sound device do not plays or captures samples.
>
> I suspect that the usb audio has to be activated, maybe by an AT or a
> P2K command.
>
> Or that a quirk has to be added to the alsa driver (snd_usb_audio).
>
> Do you know anything about (maybe the quirk to be added to ALSA driver...)?
>
> Do you have any hint?
>
> I'm available to do all the research-testing-debugging that may be useful.
>
> What happens is as follow:
> 1) attach the c350 to usb
> 2) is recognized as acm0
> 3) send at+mode=8 to c350 (via minicom, for eg)
> 4) it changes its usbid, disconnect from usb, reconnect, is recognized
> as acm1, makes available a sound device
> 5) at commands work on the new acm1
> 6) trying to use the audio device directly (eg aplay -Dhw:1) do not
> give errors on play (but no sound is head on the phone), gives error
> pcm_read 1349 on record (eg arecord -Dhw:1)
> 7) trying to use the audiodevice through alsalib does not gives errors
> at all (eg -Dplughw:1) but does not caputeres samples, and no sound is
> heard on the phone
>
>
> In the tgz archive attached you can find the following files:
>
>
> lusb_without -> result of lusb -vv with no device attached
>
> lsusb_with_ACM0 -> result of lusb -vv with c350 just attached,
> recognized as acm modem
>
> lsusb_with_ACM1 -> result of lusb -vv with c350 after sending
> at+mode=8 to him, he has disconnected and was recognized again, this
> time as ACM1, with a lot of additional usb interfaces
>
> dmesg-acm0 -> result of dmesg after first c350 attachment
>
> dmesg-acm1 -> result of dmesg after at+mode=8 was sent to the c350
>
> aplay-l -> result of aplay -l showing the c350 as an alsa device
>
> stream0_pstop_cstop -> result of cat /proc/asound/C350/stream0 while not active
>
> stream0_pstop_crun -> result of cat /proc/asound/C350/stream0 while
> arecord -vv -Dplughw:1 -fS16_LE ciapa.raw (if using -Dhw:1 it fails
> with error: "pcm_read:1349: read error: Input/output error"). arecord
> does not gives errors, but do not write samples
>
> stream0_prun_crun -> result of cat /proc/asound/C350/stream0 while
> aplay and arecord -vv -Dplughw:1 -fS16_LE ciapa.raw (if using -Dhw:1
> arecord fails with error: "pcm_read:1349: read error: Input/output
> error", aplay works but no audio) arecord does not gives errors, but
> do not write samples
>
> aplay_play -> results of aplay
>
> arecord_rec -> results of arecord
>
> Thank you all in advance,
>
> Giovanni Maruzzelli
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No sound from usb on Motorola C350 cellphone
2007-11-12 13:34 ` Giovanni Maruzzelli
2007-11-12 13:44 ` Giovanni Maruzzelli
@ 2007-11-12 13:50 ` Alexander E. Patrakov
[not found] ` <7c5010d60711120555r28363e3ax8bb1efa33209cc8c@mail.gmail.com>
1 sibling, 1 reply; 9+ messages in thread
From: Alexander E. Patrakov @ 2007-11-12 13:50 UTC (permalink / raw)
To: Giovanni Maruzzelli; +Cc: alsa-devel
Giovanni Maruzzelli wrote:
> Maybe there is a way to not using soundcards, that would be *so* much
> better: I found that Motorola c350 phones after receiving an AT+MODE=8
> command via USB, make available an usb sound device.
Confirmed with my Motorola C350 cellphone. It appears to accept S16_LE, MU_LAW
and A_LAW formats, 8 kHz sample rate, but actually records no data and plays no
sounds (even if a cal is in progress).
One question: what playback and recording functionality is available on this
cellphone under Windows?
--
Alexander E. Patrakov
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No sound from usb on Motorola C350 cellphone
[not found] ` <7c5010d60711120555r28363e3ax8bb1efa33209cc8c@mail.gmail.com>
@ 2007-11-12 13:57 ` Giovanni Maruzzelli
2007-11-12 14:14 ` Alexander E. Patrakov
0 siblings, 1 reply; 9+ messages in thread
From: Giovanni Maruzzelli @ 2007-11-12 13:57 UTC (permalink / raw)
To: alsa-devel
With an old copy of motorola driver, the usb sound device was
recognized by windows XP, with mixer elements only for the playback. I
was not able to record from it, playing give no errors, but no sound
either
With the last copy of driver from motorola developer devsite, on XP a
whole new "Motorola Device" is created, with the audio interface
listed on it in the usb control panel, but no audio device is
available for normal usage.
Needs more info, tests?
On Nov 12, 2007 2:50 PM, Alexander E. Patrakov <patrakov@gmail.com> wrote:
> Giovanni Maruzzelli wrote:
> > Maybe there is a way to not using soundcards, that would be *so* much
> > better: I found that Motorola c350 phones after receiving an AT+MODE=8
> > command via USB, make available an usb sound device.
>
> Confirmed with my Motorola C350 cellphone. It appears to accept S16_LE, MU_LAW
> and A_LAW formats, 8 kHz sample rate, but actually records no data and plays no
> sounds (even if a cal is in progress).
>
> One question: what playback and recording functionality is available on this
> cellphone under Windows?
>
> --
> Alexander E. Patrakov
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No sound from usb on Motorola C350 cellphone
2007-11-12 13:57 ` Giovanni Maruzzelli
@ 2007-11-12 14:14 ` Alexander E. Patrakov
2007-11-12 18:39 ` John Utz
0 siblings, 1 reply; 9+ messages in thread
From: Alexander E. Patrakov @ 2007-11-12 14:14 UTC (permalink / raw)
To: Giovanni Maruzzelli; +Cc: alsa-devel
Giovanni Maruzzelli wrote:
> Needs more info, tests?
If you can make the audio functionality work under Windows 2000 or XP with the
new (non-standard) driver, snoopy logs will be interesting. Snoopy is available
from http://www.wingmanteam.com/usbsnoopy/ or (different version)
http://sourceforge.net/projects/usbsnoop/
--
Alexander E. Patrakov
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No sound from usb on Motorola C350 cellphone
2007-11-12 14:14 ` Alexander E. Patrakov
@ 2007-11-12 18:39 ` John Utz
2007-11-12 18:49 ` Giovanni Maruzzelli
2007-11-12 22:29 ` Jesse Burt
0 siblings, 2 replies; 9+ messages in thread
From: John Utz @ 2007-11-12 18:39 UTC (permalink / raw)
To: Alexander E. Patrakov; +Cc: alsa-devel, Giovanni Maruzzelli
Hi All;
I think this is a totally fascinating thing and i hope it will be
possible to make it work.....
onto the specifics
On Mon, 12 Nov 2007 19:14:06 +0500
"Alexander E. Patrakov" <patrakov@gmail.com> wrote:
> Giovanni Maruzzelli wrote:
> > Needs more info, tests?
>
> If you can make the audio functionality work under Windows 2000 or XP
> with the new (non-standard) driver, snoopy logs will be interesting.
> Snoopy is available from http://www.wingmanteam.com/usbsnoopy/ or
> (different version) http://sourceforge.net/projects/usbsnoop/
>
i am not staring at the USB code right now (it's on a different box),
but i would think that one of the first things that you might need to
uncover is the USB device string. It may be offered up as part of the
device probe when it's attached (check in dmesg) or you may find it in
a registry or .inf file on the windows file system after you install
the drivers.
if it's a class compliant device, then it may just work once alsa get's
taught about it (dont hold me to that, i am not looking at code)
however, as one of you alluded to, there may be an AT command that
needs to get tickled to turn it on.
the other annoying thing to consider is that it may actually be probe
and connected, but you havent yet figured out how to turn up the
volume :-( (yes, that happens)
i'll be really curious about this, so please continue to share with
the list....
tnx!
johnu
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No sound from usb on Motorola C350 cellphone
2007-11-12 18:39 ` John Utz
@ 2007-11-12 18:49 ` Giovanni Maruzzelli
2007-11-12 22:29 ` Jesse Burt
1 sibling, 0 replies; 9+ messages in thread
From: Giovanni Maruzzelli @ 2007-11-12 18:49 UTC (permalink / raw)
To: John Utz; +Cc: alsa-devel, Alexander E. Patrakov
Johnu,
device string, and all the "usual" kind of detailed informations are
in the files contained by the compressed archive you can download at:
http://www.celliax.org/c350_usb_sound.tgz (lsusb -vv before and after,
stream0, etc etc).
maybe there is need for a quirk in snd_usb_audio ?
the problem is that the device appear to works, but do not captures or
plays samples.
On Nov 12, 2007 7:39 PM, John Utz <john.utz@dmx.com> wrote:
> Hi All;
>
> I think this is a totally fascinating thing and i hope it will be
> possible to make it work.....
>
> onto the specifics
>
> On Mon, 12 Nov 2007 19:14:06 +0500
> "Alexander E. Patrakov" <patrakov@gmail.com> wrote:
>
>
> > Giovanni Maruzzelli wrote:
> > > Needs more info, tests?
> >
> > If you can make the audio functionality work under Windows 2000 or XP
> > with the new (non-standard) driver, snoopy logs will be interesting.
> > Snoopy is available from http://www.wingmanteam.com/usbsnoopy/ or
> > (different version) http://sourceforge.net/projects/usbsnoop/
> >
>
> i am not staring at the USB code right now (it's on a different box),
> but i would think that one of the first things that you might need to
> uncover is the USB device string. It may be offered up as part of the
> device probe when it's attached (check in dmesg) or you may find it in
> a registry or .inf file on the windows file system after you install
> the drivers.
>
> if it's a class compliant device, then it may just work once alsa get's
> taught about it (dont hold me to that, i am not looking at code)
>
> however, as one of you alluded to, there may be an AT command that
> needs to get tickled to turn it on.
>
> the other annoying thing to consider is that it may actually be probe
> and connected, but you havent yet figured out how to turn up the
> volume :-( (yes, that happens)
>
> i'll be really curious about this, so please continue to share with
> the list....
>
> tnx!
>
> johnu
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No sound from usb on Motorola C350 cellphone
2007-11-12 18:39 ` John Utz
2007-11-12 18:49 ` Giovanni Maruzzelli
@ 2007-11-12 22:29 ` Jesse Burt
1 sibling, 0 replies; 9+ messages in thread
From: Jesse Burt @ 2007-11-12 22:29 UTC (permalink / raw)
To: Giovanni Maruzzelli; +Cc: alsa-devel, Alexander E. Patrakov
Giovanni,
I agree with John, this sounds very interesting; I have been looking to
do something at least remotely related to this, but standalone (though
perhaps I've misunderstood the purpose of your software completely).
I've been searching for a way to use a host PC as a
handsfree/speakerphone for my v3/v3x via bluetooth. The closest I've
come is the software at:
http://wall4.soft.uni-linz.ac.at/_wiki/tiki-index.php?page=ProjectBluezHandsfree
...but I only once got it to partly work with my V3 (very little audio,
and all broken up) and no audio at all with my V3x.
It seems the links to the tarballs are dead though so if anyone wants
them I think I can find them somewhere on my computer.
I have tried sending the 'AT+MODE=8' command to my phone and it indeed
does trigger a change in the USB state: it disconnects and attempts to
reconnect, but fails.
Also I don't mean to flood the list with something that might be
considered offtopic so unless someone feels any of what I've said is
relevant this will be my first and last post.
Cheers,
Jesse Burt
On Mon, 2007-11-12 at 10:39 -0800, John Utz wrote:
> Hi All;
>
> I think this is a totally fascinating thing and i hope it will be
> possible to make it work.....
>
> onto the specifics
>
> On Mon, 12 Nov 2007 19:14:06 +0500
> "Alexander E. Patrakov" <patrakov@gmail.com> wrote:
>
> > Giovanni Maruzzelli wrote:
> > > Needs more info, tests?
> >
> > If you can make the audio functionality work under Windows 2000 or XP
> > with the new (non-standard) driver, snoopy logs will be interesting.
> > Snoopy is available from http://www.wingmanteam.com/usbsnoopy/ or
> > (different version) http://sourceforge.net/projects/usbsnoop/
> >
>
> i am not staring at the USB code right now (it's on a different box),
> but i would think that one of the first things that you might need to
> uncover is the USB device string. It may be offered up as part of the
> device probe when it's attached (check in dmesg) or you may find it in
> a registry or .inf file on the windows file system after you install
> the drivers.
>
> if it's a class compliant device, then it may just work once alsa get's
> taught about it (dont hold me to that, i am not looking at code)
>
> however, as one of you alluded to, there may be an AT command that
> needs to get tickled to turn it on.
>
> the other annoying thing to consider is that it may actually be probe
> and connected, but you havent yet figured out how to turn up the
> volume :-( (yes, that happens)
>
> i'll be really curious about this, so please continue to share with
> the list....
>
> tnx!
>
> johnu
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-11-12 22:29 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-12 13:28 No sound from usb on Motorola C350 cellphone Giovanni Maruzzelli
2007-11-12 13:34 ` Giovanni Maruzzelli
2007-11-12 13:44 ` Giovanni Maruzzelli
2007-11-12 13:50 ` Alexander E. Patrakov
[not found] ` <7c5010d60711120555r28363e3ax8bb1efa33209cc8c@mail.gmail.com>
2007-11-12 13:57 ` Giovanni Maruzzelli
2007-11-12 14:14 ` Alexander E. Patrakov
2007-11-12 18:39 ` John Utz
2007-11-12 18:49 ` Giovanni Maruzzelli
2007-11-12 22:29 ` Jesse Burt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).