Skip to contentSkip to conversation

Getting an adaptor to be supported (for SCO audio)

Bluez-devel Alexandros Vellis 2 participants 4 messages Aug 1, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

How would one go about making a dongle supported in Linux? Especially with regard to SCO audio.

Any pointers to what is needed and to places in the bluetooth code are welcome.

I have this dongle (its name: "Mars II, MII-792") which can establish rfcomm connections et al, but cannot transmit or receive audio:

# hciconfig hci0 revision
hci0:   Type: USB
        BD Address: 00:11:F6:01:5F:56 ACL MTU: 120:20 SCO MTU: 64:0
        Unsupported manufacturer

hci0: Type: USB
BD Address: 00:11:F6:01:5F:56 ACL MTU: 120:20 SCO MTU: 64:0 UP RUNNING PSCAN ISCAN
RX bytes:366 acl:0 sco:0 events:39 errors:0
TX bytes:485 acl:0 sco:0 commands:24 errors:0
Features: 0xff 0xff 0x05 0x38 0x18 0x18 0x00 0x00 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'null'
Class: 0x3e0100
Service Classes: Networking, Rendering, Capturing Device Class: Computer, Uncategorized
HCI Ver: 1.2 (0x2) HCI Rev: 0x0 LMP Ver: 1.2 (0x2) LMP Subver:
0x757
Manufacturer: Silicon Wave (11)

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=e0(unk. ) Sub=01 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0c10 ProdID=0000 Rev=15.00
S:  Manufacturer=SiW
S:  Product=SiW
S:  SerialNumber=565F01F61100
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr= 50mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=1ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 1 Alt= 0 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=83(I) Atr=01(Isoc) MxPS=   0 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=   0 Ivl=1ms
I:  If#= 1 Alt= 1 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=83(I) Atr=01(Isoc) MxPS=   9 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=   9 Ivl=1ms
I:  If#= 1 Alt= 2 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=83(I) Atr=01(Isoc) MxPS=  17 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=  17 Ivl=1ms
I:  If#= 1 Alt= 3 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=83(I) Atr=01(Isoc) MxPS=  25 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=  25 Ivl=1ms
I:  If#= 1 Alt= 4 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=83(I) Atr=01(Isoc) MxPS=  33 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=  33 Ivl=1ms
I:  If#= 1 Alt= 5 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=83(I) Atr=01(Isoc) MxPS=  49 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=  49 Ivl=1ms

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#1 lore raw

Alexandros

It seems that hci routing of sco audio is only available on CSR chips.

SCO will be routed through the PCM hardware on your silicon wave chip but that PCM interface is not connected to anything in a usb dongle.

I have the same problem with the builtin infineon bluetooth on gumstix (see http://bluetooth-alsa.sf.net/embed.html for more)

Brad

Quoted 72 lines · Alexandros Vellis

How would one go about making a dongle supported in Linux? Especially with regard to SCO audio.

Any pointers to what is needed and to places in the bluetooth code are welcome.

I have this dongle (its name: "Mars II, MII-792") which can establish rfcomm connections et al, but cannot transmit or receive audio:

# hciconfig hci0 revision
hci0:   Type: USB
        BD Address: 00:11:F6:01:5F:56 ACL MTU: 120:20 SCO MTU: 64:0
        Unsupported manufacturer

hci0: Type: USB
BD Address: 00:11:F6:01:5F:56 ACL MTU: 120:20 SCO MTU: 64:0 UP RUNNING PSCAN ISCAN
RX bytes:366 acl:0 sco:0 events:39 errors:0
TX bytes:485 acl:0 sco:0 commands:24 errors:0
Features: 0xff 0xff 0x05 0x38 0x18 0x18 0x00 0x00 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'null'
Class: 0x3e0100
Service Classes: Networking, Rendering, Capturing Device Class: Computer, Uncategorized
HCI Ver: 1.2 (0x2) HCI Rev: 0x0 LMP Ver: 1.2 (0x2) LMP Subver:
0x757
Manufacturer: Silicon Wave (11)

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=e0(unk. ) Sub=01 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0c10 ProdID=0000 Rev=15.00
S:  Manufacturer=SiW
S:  Product=SiW
S:  SerialNumber=565F01F61100
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr= 50mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=1ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 1 Alt= 0 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=83(I) Atr=01(Isoc) MxPS=   0 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=   0 Ivl=1ms
I:  If#= 1 Alt= 1 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=83(I) Atr=01(Isoc) MxPS=   9 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=   9 Ivl=1ms
I:  If#= 1 Alt= 2 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=83(I) Atr=01(Isoc) MxPS=  17 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=  17 Ivl=1ms
I:  If#= 1 Alt= 3 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=83(I) Atr=01(Isoc) MxPS=  25 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=  25 Ivl=1ms
I:  If#= 1 Alt= 4 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=83(I) Atr=01(Isoc) MxPS=  33 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=  33 Ivl=1ms
I:  If#= 1 Alt= 5 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=83(I) Atr=01(Isoc) MxPS=  49 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=  49 Ivl=1ms
Quoted 9 lines

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw
Quoted 4 lines · Brad Midgley

It seems that hci routing of sco audio is only available on CSR chips.

SCO will be routed through the PCM hardware on your silicon wave chip but that PCM interface is not connected to anything in a usb dongle.

Voice audio works perfectly in Windows XP, though.

Is it a case such as the one with winmodems, in that software is doing the voice routing?

Or would these (cheap, admittedly, I got mine for 15 euros) dongles need some sort of (difficult) reverse engineering to pass through the audio?

Just wondering. :)

Quoted 2 lines

I have the same problem with the builtin infineon bluetooth on gumstix (see http://bluetooth-alsa.sf.net/embed.html for more)

I don't particulary like this TODO item:

- Find out if SCO can be mapped to HCI as it can on CSR (*no*)

:-D

Thanks,
Alexandros

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#3 lore raw

Alexandros

Quoted 3 lines
Quoted 1 line

SCO will be routed through the PCM hardware on your silicon wave chip but that PCM interface is not connected to anything in a usb dongle.

Voice audio works perfectly in Windows XP, though.

Ok, then they must have a way to route audio through the hci connection.

Quoted 2 lines

Is it a case such as the one with winmodems, in that software is doing the voice routing?

I don't think it's like that. I think I've seen Marcel complain about silicon wave not working with him on specs/drivers.

Quoted 2 lines

Or would these (cheap, admittedly, I got mine for 15 euros) dongles need some sort of (difficult) reverse engineering to pass through the audio?

Everything is cheap these days. I saw a CSR class 1 bt1.2 usb dongle for us$10 shipped the other day.

Quoted 3 lines

I don't particulary like this TODO item:

- Find out if SCO can be mapped to HCI as it can on CSR (*no*)

yeah, I traded email with the infineon tech guy who gumstix works through. He danced around this question but I think it's because they don't have a way to do it.

Brad

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel