Page 1 of 1

Installed OSSv4 Several Problems

Posted: Mon Apr 26, 2010 3:36 pm
by forevertheuni
I've always hated alsa (really it is the sole think that pushed linux hw down since I remember) so I decided to give ossv4 a try. I need to fix this faster or i'll go back to alsa since I don't have much spare time in my hands, so:

1- Unless I mute manually int-speaker sound outputs from headphones and speakers at the same time. (Which can sometimes be great if I can send some apps to speakers and others to headphones) but by default speakers should mute when I plug the thing
2- I can't see my hdmi device and I have no idea out to output to it
output from lspci | grep Audio

Code: Select all

00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)


3- My internal mic doesn't work . Tried to touch in everything in ossxmix

Everything works in alsa.


(compiled ossv4 from mercury sources)
Ubuntu 10.04(updated)

Code: Select all

Selected mixer 0/High Definition Audio ALC262
Known controls are:
jack.int-speaker.mode <mix|mix|input> (currently mix)
jack.int-speaker [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.int-speaker.mute ON|OFF (currently ON)
jack.black.mode <mix|mix|input> (currently mix)
jack.black [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.black.mute ON|OFF (currently OFF)
jack.red.mode <mix|mix|input> (currently mix)
jack.red [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.red.mute ON|OFF (currently ON)
record.mix.mute.mic1 ON|OFF (currently OFF)
record.mix.mute.line-out1 ON|OFF (currently OFF)
record.mix.mute.headphone1 ON|OFF (currently OFF)
record.mix.mute.mix1 ON|OFF (currently OFF)
record.mix1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
record.mix.mute.mic2 ON|OFF (currently OFF)
record.mix.mute.line-out2 ON|OFF (currently OFF)
record.mix.mute.headphone2 ON|OFF (currently OFF)
record.mix.mute.mix2 ON|OFF (currently OFF)
record.mix2 [<leftvol>:<rightvol>] (currently 40.4:40.4 dB)
record.select.select <mic|mix|dmic> (currently mic)
record.select [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.mic [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.line-out [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.headphone [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.speaker-mute ON|OFF (currently OFF)
misc.mix-mute1 ON|OFF (currently OFF)
misc.mix1 [<leftvol>:<rightvol>] (currently 37.4:37.4 dB)
misc.mix2 <speaker|mix> (currently speaker)
misc.headphone-mute ON|OFF (currently OFF)
misc.mix-mute2 ON|OFF (currently OFF)
misc.mix3 [<leftvol>:<rightvol>] (currently 37.4:37.4 dB)
misc.mix4 <headphone|mix> (currently headphone)
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.pcm5 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB) ("rhythmbox")
vmix0.pcm6 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm7 [<leftvol>:<rightvol>] (currently 24.5:24.5 dB)
vmix0.pcm8 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)


Code: Select all

Version info: OSS 4.2 (b 2002/201004261244) (0x00040100) OSS_HG
Hg revision: changeset: 891:cac211efd60d, tag: tip, date: Tue Apr 20 22:49:24 2010 +0300, summary: Haiku port: reserve PCI devices to avoid conflicts with native drivers
Platform: Linux/x86_64 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC 2010 (Neptunus)

Number of audio devices:   5
Number of audio engines:   9
Number of MIDI devices:      0
Number of mixer devices:   1


Device objects
 0: osscore0 OSS core services
 1: oss_hdaudio0 Intel HD Audio interrupts=654562 (654562)
    HD Audio controller Intel HD Audio
    Vendor ID    0x80863b56
    Subvendor ID 0x104d9072
     Codec  0: ALC262 (0x10ec0262/0x104d4700)
 2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

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


Audio devices
HD Audio play speaker             /dev/oss/oss_hdaudio0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Out engine  1: 0/HD Audio play speaker
                     Busy (OUT) label 'VMIX'
      Engine      2: 5/HD Audio play speaker (vmix)
                     Busy (OUT) by PID 28246 / rhythmbox label 'rhythmbox'
      Engine      3: 6/HD Audio play speaker (vmix)
                     Available for use
      Engine      4: 7/HD Audio play speaker (vmix)
                     Available for use
      Engine      5: 8/HD Audio play speaker (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: PCI9072104d-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): 44100 - 192000 (44100,48000,96000,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: PCI9072104d-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): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin0  (device index 2)
    Legacy device /dev/dsp2
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      In engine   1: 2/HD Audio rec mix
                     Busy (IN) label 'VMIX_IN'
      Engine      2: 5/HD Audio play speaker (vmix)
                     Busy (OUT) by PID 28246 / rhythmbox label 'rhythmbox'
      Engine      3: 6/HD Audio play speaker (vmix)
                     Available for use
      Engine      4: 7/HD Audio play speaker (vmix)
                     Available for use
      Engine      5: 8/HD Audio play speaker (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: PCI9072104d-0000:00:1b.0-au03
    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): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin1  (device index 3)
    Legacy device /dev/dsp3
    Caps: TRIGGER MMAP
    Modes: INPUT 
      In engine   1: 3/HD Audio rec mix
                     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: PCI9072104d-0000:00:1b.0-au04
    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): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec select               /dev/oss/oss_hdaudio0/pcmin2  (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP
    Modes: INPUT 
      In engine   1: 4/HD Audio rec select
                     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: PCI9072104d-0000:00:1b.0-au05
    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): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated


Nodes
  /dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0


By the way. If PA guys hate you...develop a input plugin for it.
PA is not great, but ubuntu uses it. If you want oss to be used..I suggest you do it..It sucks..but well.. :)
Either that or have great tools to use it the same way(gui tools)

Re: Installed OSSv4 Several Problems

Posted: Mon Apr 26, 2010 3:41 pm
by Ollboll
Did you set mmap=0 in /etc/pulse/default.pa?

After I load the driver with the line:

load-module module-oss device="/dev/dsp" sink_name=output source_name=input mmap=0

found in: http://www.opensound.com/wiki/index.php/Configuring_Applications_for_OSSv4

pulseaudio with that line added works perfectly ontop of OSSv4 for me.

Re: Installed OSSv4 Several Problems

Posted: Mon Apr 26, 2010 4:39 pm
by forevertheuni
Oh..PA runs ok. It was more about advanced option in pulseaudio I was refering to :).
The mic and hdmi and mute when jack is in are my only probs

Re: Installed OSSv4 Several Problems

Posted: Mon Apr 26, 2010 7:19 pm
by cesium
As for recording, try this:
A) Try recording from pcmin1. e.g. test with "ossrecord -d/dev/oss/oss_hdaudio0/pcmin1 - | ossplay -" and speak to the mic.
B) If the above doesn't work, put the mode of the jack where the mic is connected to to "input". If you don't know what it is, try red. Then do "A" again.

Re: Installed OSSv4 Several Problems

Posted: Mon Apr 26, 2010 10:28 pm
by forevertheuni
Hi. Doesn't work :(
I tried what you said. And that tried every option in the mixer( from ubuntu from the audiohacks repo) I have configure the hdsound to have (I don't know the name) the option at 7 :(

Re: Installed OSSv4 Several Problems

Posted: Tue Apr 27, 2010 12:46 pm
by igorzwx
forevertheuni wrote:Hi. Doesn't work :(
I tried what you said. And that tried every option in the mixer( from ubuntu from the audiohacks repo) I have configure the hdsound to have (I don't know the name) the option at 7 :(


forevertheuni wrote:I've always hated alsa (really it is the sole think that pushed linux hw down since I remember) so I decided to give ossv4 a try. I need to fix this faster or i'll go back to alsa since I don't have much spare time in my hands...
...Everything works in alsa.


Perhaps, I am mistaken, but OSS4 is for audiophiles and for those who really have problems with ALSA.
If there is not any ALSA driver for your soundcard, you might be happy with OSS4 and anything else.

You may simply remove PulseAudio, install ESound, and certain magic packages from "audiohacks PPA" https://launchpad.net/~dtl131/+archive/ppa
and your sound system will be perfectly O.K. To configure GStreamer, you may need "gnome-sound-properties" ("autodetect" means ESound daemon)
viewtopic.php?f=3&t=3324

If you need Skype, you can install skype-static-oss (it works with both ALSA and OSS)
viewtopic.php?f=3&t=3561&start=15#p14505
http://www.mediafire.com/?2ydhmj4yo3i

Some usefull information you may find here:
http://wiki.archlinux.org/index.php/All ... Play_Sound

EDIT: There is an opinion that ESound is not "kosher", in a sense. I made several tests. ESound works well on very old computers (of 2001, for example), much better than "dmix".

Re: Installed OSSv4 Several Problems

Posted: Tue Apr 27, 2010 2:55 pm
by cesium
Can you try the same with pcmin2 instead of pcmin1?