You are not logged in.

#1 2009-02-10 18:36:41

gattu_marrudu
Member
Registered: 2008-03-29
Posts: 32

OSS with Intel HD - No sound from headphones

I have a Dell Precision M4400 with an Intel integrated audio card. I recently switched to OSS because ALSA was giving me a very bad soud quality.
I got the sound working on the internal speakers and internal mic, but I cannot get any sound from the headphone jack. In fact, when I plug in the phones/loudspeakers, it keeps playing sound  from the internal speakers.
This is my ossinfo output:

Version info: OSS 4.1 (b 1051/200901030037) (0x00040100) GPL
Platform: Linux/x86_64 2.6.28-ARCH #1 SMP PREEMPT Mon Feb 2 22:02:17 UTC 2009 (laptop1)

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


Device objects
 0: osscore0 OSS core services
 1: oss_hdaudio0 Intel HD Audio interrupts=10550276 (10550276)
    HD Audio controller Intel HD Audio
    Vendor ID    0x8086293e
    Subvendor ID 0x10280250
     Codec  0: Unknown (0x111d76b2/0x10280250)
 2: oss_usb0 USB audio core services


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


Audio devices
HD Audio play pcm1                /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 pcm1
                     Busy (OUT) label 'VMIX' 
      Engine      2: 5/HD Audio play pcm1 (vmix)
                     Busy (OUT) by PID 10025 / audacious label 'audacious' 
      Engine      3: 6/HD Audio play pcm1 (vmix)
                     Available for use 
      Engine      4: 7/HD Audio play pcm1 (vmix)
                     Available for use 
      Engine      5: 8/HD Audio play pcm1 (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: PCI02501028-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,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play pcm2                /dev/oss/oss_hdaudio0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: TRIGGER MMAP 
    Modes: OUTPUT 
      Out engine  1: 1/HD Audio play pcm2
                     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: PCI02501028-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,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play spdifout2           /dev/oss/oss_hdaudio0/spdout0  (device index 2)
    Legacy device /dev/dsp2
    Caps: TRIGGER MMAP 
    Modes: OUTPUT 
      Out engine  1: 2/HD Audio play spdifout2
                     Available for use 
    Input formats (0x00001410):
      AFMT_S16_LE    - 16 bit signed little endian
      AFMT_AC3        - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE    - 32 bit signed little endian
    Output formats (0x00001410):
      AFMT_S16_LE    - 16 bit signed little endian
      AFMT_AC3        - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE    - 32 bit signed little endian
    Device handle: PCI02501028-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,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec select3              /dev/oss/oss_hdaudio0/pcmin0  (device index 3)
    Legacy device /dev/dsp3
    Caps: DUPLEX TRIGGER MMAP 
    Modes: IN/OUT 
      In engine   1: 3/HD Audio rec select3
                     Busy (IN) label 'VMIX_IN' 
      Engine      2: 5/HD Audio play pcm1 (vmix)
                     Busy (OUT) by PID 10025 / audacious label 'audacious' 
      Engine      3: 6/HD Audio play pcm1 (vmix)
                     Available for use 
      Engine      4: 7/HD Audio play pcm1 (vmix)
                     Available for use 
      Engine      5: 8/HD Audio play pcm1 (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: PCI02501028-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,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec select4              /dev/oss/oss_hdaudio0/pcmin1  (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP 
    Modes: INPUT  
      In engine   1: 4/HD Audio rec select4
                     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: PCI02501028-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,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

And these my ossmix settings:

Selected mixer 0/High Definition Audio 0x111d76b2
Known controls are:
jack.black.mode1 <pcm1|pcm2|mix> (currently mix)
jack.int-speaker.mode <pcm1|pcm2|mix> (currently mix)
jack.black.mode2 <pcm1|pcm2|mix> (currently mix)
jack.int-mic <0.0dB|16.0dB|32.0dB|48.0dB> (currently 32.0dB)
jack.black.select5 <spdifout2|select3|select4> (currently spdifout2)
record.select3 <0.0dB|16.0dB|32.0dB|48.0dB> (currently 0.0dB)
record.select3.select1 <mic1|mic2> (currently mic2)
record.select3.select31 [<leftvol>:<rightvol>] (currently 22.4:22.4 dB)
record.select3.select32 <select1|mix|int-mic> (currently int-mic)
record.select4 <0.0dB|16.0dB|32.0dB|48.0dB> (currently 0.0dB)
record.select4.select2 <mic1|mic2> (currently mic1)
record.select4.select41 [<leftvol>:<rightvol>] (currently 19.4:19.4 dB)
record.select4.select42 <select2|mix|int-mic> (currently int-mic)
misc.pcm11 [<leftvol>:<rightvol>] (currently 76.4:76.4 dB)
misc.pcm21 [<leftvol>:<rightvol>] (currently 80.9:80.9 dB)
misc.pcm12 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.pcm22 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.select1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.select2 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.mix <pcm1|pcm2|select1|select2> (currently pcm2)
misc <-28.-8dB|-19.-2dB|-9.-6dB|0.0dB|mute> (currently 0.0dB)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-channels <Stereo|Multich> (currently Multich)
vmix0-src <Fast|Low|Medium|High|High+|Production|OFF> (currently Medium)
vmix0-outvol <monovol> (currently 25.0 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm5 [<leftvol>:<rightvol>] (currently 21.7:21.7 dB) ("audacious")
vmix0.pcm6 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm7 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm8 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)

I would greatly appreciate your help.

gm

Offline

#2 2009-02-12 09:22:07

JohnD
Member
Registered: 2007-02-12
Posts: 17

Re: OSS with Intel HD - No sound from headphones

When you perform an osstest does it at any point output to your headphone?

JD

Offline

#3 2009-02-12 15:57:11

gattu_marrudu
Member
Registered: 2008-03-29
Posts: 32

Re: OSS with Intel HD - No sound from headphones

I don't seem to have a headphone output! Am I missing some drivers or using the wrong one?
Currently I only loaded osscore, oss_usb, oss_hdaudio.
BTW, what is spdifout2 for?

Test results:

osstest
Sound subsystem and version: OSS 4.1 (b 1051/200901030037) (0x00040100)
Platform: Linux/x86_64 2.6.28-ARCH #1 SMP PREEMPT Sun Feb 8 09:47:26 UTC 2009

*** Scanning sound adapter #-1 ***
/dev/oss/oss_hdaudio0/pcm0 (audio engine 0): HD Audio play pcm1
- Performing audio playback test... 
  <left> OK <right> OK <stereo> OK <measured srate 47968.00 Hz (-0.07%)>  #####plays fine ######
/dev/oss/oss_hdaudio0/pcm1 (audio engine 1): HD Audio play pcm2
- Performing audio playback test... 
  <left> OK <right> OK <stereo> OK <measured srate 47968.00 Hz (-0.07%)> #####plays fine ######
/dev/oss/oss_hdaudio0/spdout0 (audio engine 2): HD Audio play spdifout2
- Performing audio playback test... 
  <left> OK <right> OK <stereo> OK <measured srate 47968.00 Hz (-0.07%)> #####no sound ######
/dev/oss/oss_hdaudio0/pcmin0 (audio engine 3): HD Audio rec select3
- Skipping input only device                                       #####no sound (of course) ######
/dev/oss/oss_hdaudio0/pcmin1 (audio engine 4): HD Audio rec select4
- Skipping input only device                                       #####no sound ######

My settings:

Selected mixer 0/High Definition Audio 0x111d76b2
Known controls are:
jack.black.mode1 <pcm1|pcm2|mix> (currently mix)
jack.int-speaker.mode <pcm1|pcm2|mix> (currently mix)
jack.black.mode2 <pcm1|pcm2|mix> (currently mix)
jack.int-mic <0.0dB|16.0dB|32.0dB|48.0dB> (currently 16.0dB)
jack.black.select5 <spdifout2|select3|select4> (currently select3)
record.select3 <0.0dB|16.0dB|32.0dB|48.0dB> (currently 0.0dB)
record.select3.select1 <mic1|mic2> (currently mic2)
record.select3.select31 [<leftvol>:<rightvol>] (currently 19.4:19.4 dB)
record.select3.select32 <select1|mix|int-mic> (currently int-mic)
record.select4 <0.0dB|16.0dB|32.0dB|48.0dB> (currently 0.0dB)
record.select4.select2 <mic1|mic2> (currently mic1)
record.select4.select41 [<leftvol>:<rightvol>] (currently 19.4:19.4 dB)
record.select4.select42 <select2|mix|int-mic> (currently int-mic)
misc.pcm11 [<leftvol>:<rightvol>] (currently 76.4:76.4 dB)
misc.pcm21 [<leftvol>:<rightvol>] (currently 80.9:80.9 dB)
misc.pcm12 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.pcm22 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.select1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.select2 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.mix <pcm1|pcm2|select1|select2> (currently pcm2)
misc <-28.-8dB|-19.-2dB|-9.-6dB|0.0dB|mute> (currently 0.0dB)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-channels <Stereo|Multich> (currently Multich)
vmix0-src <Fast|Low|Medium|High|High+|Production|OFF> (currently Medium)
vmix0-outvol <monovol> (currently 11.0 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm5 [<leftvol>:<rightvol>] (currently 23.4:23.4 dB)
vmix0.pcm6 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm7 [<leftvol>:<rightvol>] (currently 23.9:23.9 dB)
vmix0.pcm8 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)

Offline

#4 2009-08-18 19:14:53

Kardell
Member
From: London a new Babylon
Registered: 2007-02-20
Posts: 225

Re: OSS with Intel HD - No sound from headphones

OSS and ALSA is shit for HD. I had never so much troubles with sound in Linux like now with HD Intel.
Recently I've noticed that I have no sound in my laptop, osstest produced the sound, but any application does.

Sorry, but I'm angry. Usually I have enough power to struggle with such issues, but when I've wanted to rest and watch some video, god dammit, no sound, whatever I do, how many times I restart oss daemon. And this time it was not related with updates.

Remember if your system is fully operational, don't perform any updates, until you produce enough system backups.
Some applications like Amarok are becoming so unusable like software marked by micro$hit. I was using this soft for long, but latest Amarok is same shit.

I started Amarok and if this s***** cannot play the d*** stream it consumes my Dual Core for some undetified operations. Old Amarok was ok.
Recently I had similar performace problem with OpenOffice. Still unresolved. Even I went back to old version, problem persisted.
To many things are happening over os user, even root.

[edit]
Sound fixed. Apparently I had to eat my dish without video first.
OO issue fixed by rewinding far to 2.4 version. wink

Last edited by Kardell (2009-08-18 20:02:17)


"Those who don't know history are doomed to repeat it." Edmund Burke

Offline

#5 2009-08-19 05:53:14

guzz46
Member
From: New Zealand
Registered: 2009-06-18
Posts: 190

Re: OSS with Intel HD - No sound from headphones

i had to edit /usr/lib/oss/oss_hdaudio.conf to this

# Disable checks to skip unconnected jack. Values: 0-7, where value is a
# bitmask - every bit disables another check. Can override hdaudio_jacksense.
#
hdaudio_noskip=7

to get get all my speakers working, also my headphone output was one of the "jack black" options in ossxmix.
try uncommenting  hdaudio_noskip and changing it to 7 instead of 0 and that should give you more options in ossxmix to play around with.

my speaker don't mute either when i plug in my headphones but i worked around it by configuring a shortcut key to launch ossmix and then just muting the front speakers whenever i plugin my headphones or use spidf out to my receiver.

BTW, what is spdifout2 for?

spdif is the digital out of your sound card, just like the optical out of a dvd player, handy if you have a lot of music on your pc and want to listen to it at the best quality via your av receiver, it will pass the the digital signal straight to your receiver where it should have better digital to analog converters than your pc.
i had to buy a $5 3.5mm to optical/toslink adapter for my laptop as it has spdif out but only via a 3.5mm jack.

Last edited by guzz46 (2009-08-19 05:54:12)

Offline

Board footer

Powered by FluxBB