Problems attaching vmix to Intel hdaudio

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium, kodachi

Problems attaching vmix to Intel hdaudio

Postby pzs » Tue Jul 20, 2010 4:18 pm

Hi there,

I've been using OSS on this Ubuntu machine for a while but had problems when I "up"graded to 10.04. I had added the vmix_no_autoattach=1 to my config, and that works but I'd like to get multiple applications working. If I attach with

Code: Select all
sudo vmixctl attach /dev/oss/oss_hdaudio0/pcm0


I get no sound from various applications (flash, mpg321) although osstest still works. The mpg321 -o oss error message is:

Code: Select all
Can't find a suitable libao driver. (Is device in use?)


I've also tried removing the vmix_no_autoattach line and restarting oss - this brings the same situation as attaching manually.

If I use ossxmix to switch off vmix I get sound back, although obviously no multiple application usage. I've also seen some people attaching vmix to /dev/oss/hdaudio0/pcmin0 - I don't have that device:

Code: Select all
$ ls /dev/oss/oss_hdaudio0
mix0  pcm0


I've attached the output from ossinfo -v3. I couldn't attach ossmix because the it thinks it's a possible attack vector(!) so I've put it inline below:

Code: Select all
Selected mixer 0/High Definition Audio AD1984
Known controls are:
jack.fp-green.mute ON|OFF (currently OFF)
jack.fp-green.headphone [<leftvol>:<rightvol>] (currently 0.0:58.4 dB)
jack.fp-green.headphone-sel <headphone|front> (currently headphone)
jack.fp-green.headphone-sel-m ON|OFF (currently OFF)
jack.fp-green.input-mix-mute ON|OFF (currently OFF)
jack.green.mute ON|OFF (currently OFF)
jack.green.front [<leftvol>:<rightvol>] (currently 22.4:22.4 dB)
jack.green.front-mute ON|OFF (currently OFF)
jack.green.input-mix-mute ON|OFF (currently OFF)
jack.int-speaker.mono-mix <monovol> (currently 46.4 dB)
jack.int-speaker.mono-sel <headphone|front> (currently headphone)
jack.int-speaker.mono-sel-mute ON|OFF (currently OFF)
jack.int-speaker.input-mix-mute ON|OFF (currently OFF)
jack.fp-pink [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.blue [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
misc.aux-sel-mute ON|OFF (currently OFF)
misc.input-mix-mute1 ON|OFF (currently OFF)
misc.aux-mix <aux-sel|input-mix> (currently aux-sel)
misc.rec1-sel1 [<leftvol>:<rightvol>] (currently 67.4:67.4 dB)
misc.rec1-sel2 <fp-mic|linein|input-mix> (currently fp-mic)
misc.rec2-sel1 [<leftvol>:<rightvol>] (currently 64.4:64.4 dB)
misc.rec2-sel2 <fp-mic|linein|input-mix> (currently fp-mic)
misc.aux-sel <headphone|front> (currently headphone)
misc.beep <monovol> (currently 38.9 dB)
misc.fp-mic [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.linein [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.input-mix1 <fp-mic|linein> (currently fp-mic)
misc.input-mix2 [<leftvol>:<rightvol>] (currently 0.0:0.0 dB)
misc.dock-sel <headphone|front> (currently headphone)
misc.dock-sel-mute ON|OFF (currently OFF)
misc.input-mix-mute2 ON|OFF (currently OFF)
misc.dock-mix <dock-sel|input-mix> (currently dock-sel)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-channels <Stereo|Multich> (currently Stereo)
vmix0-src <Fast|High|OFF> (currently Fast)
vmix0-outvol <monovol> (currently 25.0 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm2 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm3 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm4 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm5 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
pzs
New Member
 
Posts: 3
Joined: Tue Jul 20, 2010 4:01 pm

Re: Problems attaching vmix to Intel hdaudio

Postby pzs » Tue Jul 20, 2010 7:21 pm

The attachment seems to have disappeared. Here it is inline:

Code: Select all
Version info: OSS 4.2 (b 2002/200911060720) (0x00040100) EXPIRED
Platform: Linux/x86_64 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 08:03:28 UTC 2010 (cs-analysis)

Number of audio devices:   4
Number of audio engines:   12
Number of MIDI devices:      0
Number of mixer devices:   2


Device objects
0: osscore0 OSS core services
1: oss_hdaudio0 Intel HD Audio interrupts=469 (469)
    HD Audio controller Intel HD Audio
    Vendor ID    0x8086269a
    Subvendor ID 0x1028021e
     Codec  0: AD1984 (0x11d41984/0x1028021e)
2: oss_sbxfi0 Sound Blaster X-Fi (UAA)
    PCI device 1102:0005, subdevice 1102:6002
3: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

Mixer devices
0: High Definition Audio AD1984 (Mixer 0 of device object 1)
    Device file /dev/oss/oss_hdaudio0/mix0, Legacy device /dev/mixer0
    Priority: 10
    Caps:
    Device handle: PCI021e1028-0000:00:1b.0-mx01
    Device priority: 10

1: Sound Blaster X-Fi (UAA) (Mixer 0 of device object 2)
    Device file /dev/oss/oss_sbxfi0/mix0, Legacy device /dev/mixer1
    Priority: 1
    Caps:
    Device handle: PCI60021102-0000:09:02.0-mx01
    Device priority: 1


Audio devices
HD Audio play front               /dev/oss/oss_hdaudio0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 0/HD Audio play front
                     Available for use
      Out engine  2: 2/HD Audio play front (vmix)
                     Available for use
      Out engine  3: 3/HD Audio play front (vmix)
                     Available for use
      Out engine  4: 4/HD Audio play front (vmix)
                     Available for use
      Out engine  5: 5/HD Audio play front (vmix)
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI021e1028-0000:00:1b.0-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 8
    Native sample rates (min - max): 8000 - 192000 (8000,11025,16000,22050,32000,44100,48000,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play headphone           /dev/oss/oss_hdaudio0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 1/HD Audio play headphone
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI021e1028-0000:00:1b.0-au02
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 8000 - 192000 (8000,11025,16000,22050,32000,44100,48000,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

Sound Blaster X-Fi (UAA) output   /dev/oss/oss_sbxfi0/pcm0  (device index 2)
    Legacy device /dev/dsp2
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Out engine  1: 6/Sound Blaster X-Fi (UAA) output
                     Available for use
      Engine      2: 8/Sound Blaster X-Fi (UAA) output (vmix)
                     Available for use
      Engine      3: 9/Sound Blaster X-Fi (UAA) output (vmix)
                     Available for use
      Engine      4: 10/Sound Blaster X-Fi (UAA) output (vmix)
                     Available for use
      Engine      5: 11/Sound Blaster X-Fi (UAA) output (vmix)
                     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: PCI60021102-0000:09:02.0-au01
    Related mixer dev: 1
    Sample rate source: 6
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 48000 - 92600
    HW Type: Not indicated.
    Minimum latency: Not indicated

Sound Blaster X-Fi (UAA) input    /dev/oss/oss_sbxfi0/pcmin0  (device index 3)
    Legacy device /dev/dsp3
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      In engine   1: 7/Sound Blaster X-Fi (UAA) input
                     Available for use
      Engine      2: 8/Sound Blaster X-Fi (UAA) output (vmix)
                     Available for use
      Engine      3: 9/Sound Blaster X-Fi (UAA) output (vmix)
                     Available for use
      Engine      4: 10/Sound Blaster X-Fi (UAA) output (vmix)
                     Available for use
      Engine      5: 11/Sound Blaster X-Fi (UAA) output (vmix)
                     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: PCI60021102-0000:09:02.0-au02
    Related mixer dev: 1
    Sample rate source: 6
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 48000 - 96000
    HW Type: Not indicated.
    Minimum latency: Not indicated


Nodes
  /dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_in -> /dev/oss/oss_sbxfi0/pcmin0
  /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0
pzs
New Member
 
Posts: 3
Joined: Tue Jul 20, 2010 4:01 pm

Re: Problems attaching vmix to Intel hdaudio

Postby cesium » Tue Jul 20, 2010 8:26 pm

I suspect the problem is that OSS doesn't recognize an input on your hdaudio, so any program trying to open the device in O_RDWR mode fails...

Try this: Add the "vmix_no_autoattach=1" line again, and use the command "sudo vmixctl attach /dev/oss/oss_hdaudio0/pcm0 /dev/oss/oss_sbxfi0/pcmin0"**. Does this work with programs?

** It's possible to use a virtual device like oss_audioloop as input device if you don't like to use the x-fi for this.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: Problems attaching vmix to Intel hdaudio

Postby pzs » Wed Jul 21, 2010 9:34 am

The problem is that there are no /dev/oss/oss_sbxfi files:

Code: Select all
$ ls /dev/oss
oss_hdaudio0/


Also:

Code: Select all
$ sudo ossdevlinks -r -v     
6 audio devices
/dev/dsp0 is the next free legacy device
/dev/dsp0: No such file or directory
Created new legacy device /dev/dsp0 -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp1: No such file or directory
Created new legacy device /dev/dsp1 -> /dev/oss/oss_hdaudio0/pcm1
/dev/dsp2: No such file or directory
Created new legacy device /dev/dsp2 -> /dev/oss/oss_sbxfi0/pcm0
/dev/dsp3: No such file or directory
Created new legacy device /dev/dsp3 -> /dev/oss/oss_sbxfi0/pcmin0
/dev/dsp4: No such file or directory
Created new legacy device /dev/dsp4 -> /dev/oss/oss_audioloop0/pcm0
0 legacy dsp device files
Adev 5 (/dev/oss/oss_audioloop0/pcm0) is legacy device file /dev/dsp4
/dev/oss/oss_sbxfi0/pcm0 is the default /dev/dsp device
/dev/oss/oss_hdaudio0/pcm0 is the default dsp_out device
/dev/oss/oss_sbxfi0/pcm0 is the default dsp_in device
/dev/oss/oss_hdaudio0/pcm0 is the default mmap output device
/dev/oss/oss_hdaudio0/pcm0 is the default multichan output device
2 mixer devices
/dev/mixer2 is the next free legacy device
/dev/mixer0: No such file or directory
Created new legacy device /dev/mixer0 -> /dev/oss/oss_hdaudio0/mix0
/dev/mixer1: No such file or directory
Created new legacy device /dev/mixer1 -> /dev/oss/oss_sbxfi0/mix0
2 legacy mixer device files


Code: Select all
$ sudo ossdetect -d -v
mknod /dev/sndstat c 250 0 -m 20666
mknod /dev/midi c 250 1 -m 20666
mknod /dev/mixer c 250 2 -m 20666
mknod /dev/oss/oss_hdaudio0/mix0 c 249 3 -m 20666
mknod /dev/oss/oss_hdaudio0/pcm0 c 249 4 -m 20666


Although the sbxfi is properly detected in ossinfo, ossdetect and ossdevlinks do not seem to be able to create the device links properly. Therefore I can't use the x-fi for the input (or output). That x-fi is tricksy. When I first upgraded Ubuntu, it worked under ALSA for a few days but then my machine crashed and when I rebooted it had disappeared again.

I also tried installing the audioloop with "modprobe oss_audioloop" but this doesn't seem to create a dev link for me to use as input either.

When I do soundoff && soundon I get some message about my trial license having expired - could this be anything to do with it?
pzs
New Member
 
Posts: 3
Joined: Tue Jul 20, 2010 4:01 pm

Re: Problems attaching vmix to Intel hdaudio

Postby cesium » Wed Jul 21, 2010 2:26 pm

I suggest you upgrade oss - there's a newer version avaiable. At the very least we'll get rid of the expiration issue. I suggest you follow this procedure (which will get rid of the "expired" messages for good). Alternatively you can install a .deb downloaded from this website, or run "sudo ossupdate" (the two last methods are easier, but will "expire" in the future). Also, Debian has an "oss-linux" package, but I don't think it exists in Ubuntu.

As for loading oss_audioloop, you need to run "sudo ossdetect -d -v" afterwards to create the link (Or you can edit /usr/lib/oss/etc/installed_drivers and add an oss_audioloop line - next oss startup it will load it for you).
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am


Return to Linux

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron