USB audio issues

OSS specific Solaris discussion (x86/SPARC)

Moderators: hannu, dev, cesium, kodachi

USB audio issues

Postby yoeljacobsen » Mon Nov 03, 2008 4:13 pm

Hello forum,

I have a cheap USB audio dongle which doesn't work with neither Solaris usb_ac nor with OSS ossusb (tried 4.0_106, 4.1, and mercurial version).

I usualy get an I/O error. Rarely I just get something which sound like a loud sine wave when I try to play a file (or use osstest).

The USB info (from a linux box):
Bus 002 Device 002: ID 1130:f211 Tenx Technology, Inc.

And from Solaris:
bash-3.00# cfgadm -v usb0/6
Ap_Id Receptacle Occupant Condition Information
When Type Busy Phys_Id
usb0/6 connected configured ok Mfg: <undef> Product: USB AUDIO NConfigs: 1 Config: 0 <no>
unavailable usb-device n /devices/pci@0,0/pci108e,cb84@2:6


The pattern I see in /var/adm/messages is:
Nov 3 17:59:08 unknown osscommon: [ID 702911 kern.notice] Msg (rq=0x1, val=0x0100, ix=0x0001, len=3): 80 bb 00
Nov 3 17:59:08 unknown osscommon: [ID 341041 kern.notice] NOTICE: usb_pipe_ctrl_xfer_wait write failed: USB_FAILURE (USB_CB_PROTOCOL_STALL)
Nov 3 17:59:08 unknown osscommon: [ID 137455 kern.notice] bRq 1, wIx 1, wVal 100, wLen 3
Nov 3 17:59:08 unknown oss_usb: [ID 157603 kern.warning] WARNING: Endpoint control write error -5
Nov 3 17:59:08 unknown oss_usb: [ID 440981 kern.notice] Failed to set 48000 Hz sampling rate

ossinfo:
bash-3.00# ossinfo -v3
Version info: OSS 4.1 (b rc2/200811031553) (0x00040090)
Platform: SunOS/i86pc 5.10 Generic_127128-11 (unknown)

Number of audio devices: 2
Number of audio engines: 2
Number of mixer devices: 1


Device objects
0: osscore0 OSS common devices
1: oss_usb0 USB audio/MIDI device
2: usb1130_f211_5 USB AUDIO
3: usb1130_f211_5 USB AUDIO
4: usb1130_f211_5 USB AUDIO
5: oss_sadasupport SADA compatibility layer


Mixer devices
0: USB AUDIO (Mixer 0 of device object 2)
Device file /dev/oss/usb1130_f211_5/mix0, Legacy device /dev/mixer0
Priority: 0
Caps:
Device handle: usb1130,f211.0:0-mx01
Device priority: 0


Audio devices
USB AUDIO play /dev/oss/usb1130_f211_5/pcm0 (device index 0)
Legacy device /dev/dsp0
Caps: TRIGGER
Modes: OUTPUT
Out engine 1: 0/USB AUDIO play
Available for use
Input formats (0x00000010):
AFMT_S16_LE - 16 bit signed little endian
Output formats (0x00000010):
AFMT_S16_LE - 16 bit signed little endian
Device handle: usb1130,f211.1:1-au01
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: STEREO
Supported number of channels (min - max): 2 - 2
Native sample rates (min - max): 48000 - 48000 (48000)
HW Type: Not indicated.
Minimum latency: Not indicated

USB AUDIO rec /dev/oss/usb1130_f211_5/pcmin0 (device index 1)
Legacy device /dev/dsp1
Caps: TRIGGER
Modes: INPUT
In engine 1: 1/USB AUDIO rec
Available for use
Input formats (0x00000010):
AFMT_S16_LE - 16 bit signed little endian
Output formats (0x00000010):
AFMT_S16_LE - 16 bit signed little endian
Device handle: usb1130,f211.2:2-au01
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: MONO
Supported number of channels (min - max): 1 - 1
Native sample rates (min - max): 24000 - 24000 (24000)
HW Type: Not indicated.
Minimum latency: Not indicated

The usual osstest output:
bash-3.00# osstest
Sound subsystem and version: OSS 4.1 (b rc2/200811031553) (0x00040090)
Platform: SunOS/i86pc 5.10 Generic_127128-11

*** Scanning sound adapter #-1 ***
/dev/oss/usb1130_f211_5/pcm0 (audio engine 0): USB AUDIO play
- Performing audio playback test...
<left> Device returned error: I/O error

*** Scanning sound adapter #3 ***
/dev/oss/usb1130_f211_5/pcmin0 (audio engine 1): USB AUDIO rec
- Skipping input only device

*** Some errors were detected during the tests ***

ossmix configuration:
bash-3.00# ossmix -c
!ossmix -d0 output.mute OFF
!ossmix -d0 output.vol 255:255
!ossmix -d0 rec.mute OFF
!ossmix -d0 rec.vol 0

Any idea?

Thanks,
Yoel
yoeljacobsen
 
Posts: 1
Joined: Mon Nov 03, 2008 3:51 pm

Postby dev » Wed Nov 12, 2008 4:08 pm

Hi,

Run ossxmix and see if changing the altsetting helps. Change the altsetting and then run osstest.


regards
dev
dev
 
Posts: 577
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA


Return to Solaris

Who is online

Users browsing this forum: No registered users and 1 guest