Здравствуйте!
Имеется следующая проблема. Стоит QNX 6.5.0 SP1. Под него пытаюсь запустить usb-гарнитуру собственной разработки. Под Windows и Ubuntu она работает без проблем. Из особенностей только то, что частота дискретизации 8000.
Запускаю следующей командой:
io-audio -d usb &
mount -Tio-audio /lib/dll/deva-ctrl-usb.so
sloginfo выводит следующее:
Mar 22 14:13:17 1 7 0 usb_select_interface: Failed to apply sampling rate - current = 134748984, requested = 8000
Mar 22 14:13:17 1 7 0 PSW unable to access real hardware (-1338741950)
Mar 22 14:13:17 1 7 0 Unable to build audio interface
Mar 22 14:13:17 1 7 0 init_card: unable to init dll deva-ctrl-usb.so
Mar 22 14:13:17 1 7 0 mount_card(): failed to initialize card usb
Также выкладываю вывод usb -vvvv:
USB 0 (OHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk(SG), Isoch(Stream), Low speed, Full speed
USB 1 (OHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk(SG), Isoch(Stream), Low speed, Full speed
Device Address : 1
Upstream Host Controller : 1
Upstream Device Address : 0
Upstream Port : 0
Upstream Port Speed : Full
Vendor : 0x03eb (GSC "Conc")
Product : 0xb00d (Headset ShS230-M)
Device Release : r1.00
USB Spec Release : v1.10
Serial Number : 09034053
Class : 0x00 (Independent per interface)
Max PacketSize0 : 64
Languages : 0x0409 (English)
Current Frame : 20076 (1024 bytes)
Configurations : 1
Configuration : 1
Attributes : 0xa0 (Bus-powered, Remote-wakeup)
Max Power : 200 mA
Interfaces : 4 (with 2 alternate)
Interface : 0 / 0
Class : 0x01 (Audio)
Subclass : 0x01 (Control)
Protocol : 0x00
Class Audio Ctrl : Header
ADC : 01
TotalLength : 512
InCollection : 1
Interface : 2
Class Audio Ctrl : Input Terminal
TerminalId : 3
TerminalType : 0x101 (USB Streaming)
AssocTerminal : 0
Channels : 0x1
ChannelConfig : 0000,0000;0000,0000b
Class Audio Ctrl : Output Terminal
TerminalId : 4
TerminalType : 0x301 (Speaker)
AssocTerminal : 0
SourceId : 1
Class Audio Ctrl : Feature Unit
UnitId : 1
SourceId : 3
ControlSize : 1
Controls : (ch=0) 0000,0001b
Controls : (ch=1) 0000,0010b
Class Audio Ctrl : Input Terminal
TerminalId : 5
TerminalType : 0x201 (Microphone)
AssocTerminal : 0
Channels : 0x1
ChannelConfig : 0000,0000;0000,0000b
Class Audio Ctrl : Output Terminal
TerminalId : 6
TerminalType : 0x101 (USB Streaming)
AssocTerminal : 0
SourceId : 2
Class Audio Ctrl : Feature Unit
UnitId : 2
SourceId : 5
ControlSize : 1
Controls : (ch=0) 0000,0011b
Controls : (ch=1) 0000,0000b
Endpoints : Control + 0
Endpoint : 0
Attributes : Control
Max Packet Size: 64
Interface : 1 / 0
Class : 0x01 (Audio)
Subclass : 0x02 (Streaming)
Protocol : 0x00
Endpoints : Control + 0
Endpoint : 0
Attributes : Control
Max Packet Size: 64
Interface : 1 / 1
Class : 0x01 (Audio)
Subclass : 0x02 (Streaming)
Protocol : 0x00
Class Audio Stream : General
TerminalLink : 3
Delay : 0
FormatTag : 0x1
Class Audio Stream : Format_Type
FormatType : TYPE 1 0x1
Channels : 1
FrameSize : 2
BitResolution : 16
SamFreqType : 1
SampFreq : 8000
Endpoints : Control + 1
Endpoint : 0
Attributes : Control
Max Packet Size: 64
Endpoint : 6
Attributes : Isoch/OUT
Max Packet Size: 16
Interval : 1 ms
Interface : 2 / 0
Class : 0x01 (Audio)
Subclass : 0x02 (Streaming)
Protocol : 0x00
Endpoints : Control + 0
Endpoint : 0
Attributes : Control
Max Packet Size: 64
Interface : 2 / 1
Class : 0x01 (Audio)
Subclass : 0x02 (Streaming)
Protocol : 0x00
Class Audio Stream : General
TerminalLink : 6
Delay : 0
FormatTag : 0x1
Class Audio Stream : Format_Type
FormatType : TYPE 1 0x1
Channels : 1
FrameSize : 2
BitResolution : 16
SamFreqType : 1
SampFreq : 8000
Endpoints : Control + 1
Endpoint : 0
Attributes : Control
Max Packet Size: 64
Endpoint : 7
Attributes : Isoch/IN
Max Packet Size: 16
Interval : 1 ms
Interface : 3 / 0
Class : 0x03 (HID)
Subclass : 0x00
Protocol : 0x00
Endpoints : Control + 1
Endpoint : 0
Attributes : Control
Max Packet Size: 64
Endpoint : 1
Attributes : Interrupt/IN
Max Packet Size: 9
Interval : 20 ms
USB 2 (OHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk(SG), Isoch(Stream), Low speed, Full speed
USB 3 (OHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk(SG), Isoch(Stream), Low speed, Full speed
USB 4 (OHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk(SG), Isoch(Stream), Low speed, Full speed
USB 5 (EHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk(SG), Isoch(Stream), High speed
Обращаюсь сюда, потому что под другими ОС работает без проблем, поэтому хотелось бы узнать, какие особенности есть для QNX.
Еще отладка со стороны этой гарнитуры показала, что QNX посылает сигнал на выключение и включение интерфейса головных телефонов и на этом все заканчивается((
P.S. Пробовал запускать покупные usb-гарнитуры, под QNX проблем не возникло, но в них есть синхронизация насколько я понял.
Если есть исходники драйвера deva-ctrl-usb.so - то хотя бы узнать, что ему не нравится и откуда он берет это значение частоты дискретизации, оно какое вообще не от мира сего.
Заранее спасибо за помощь.