low max volume on intel hda

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

New Member
Posts: 5
Joined: Mon Jan 11, 2010 8:21 pm

low max volume on intel hda

Postby rrva » Wed Jun 06, 2012 10:28 am


When switching from ALSA to OSS with my intel HDA card, I noticed that the new max volume is lower (through pulseaudio).

I set codec3.misc.pcm1 and vmix0-outvol to max and set hdaudio_noskip=7 in oss_hdaudio.conf to see all mixers.

If I set output in pavucontrol (pulseaudio) to 153% I get closer to the volume level I want.

Code: Select all

Selected mixer 0/High Definition Audio 0x80862802
Known controls are:
codec1.jack.int-digout.mute ON|OFF (currently OFF)
codec3.jack.green.mode <pcm1|pcm2> (currently pcm1)
codec3.jack.lineout [<leftvol>:<rightvol>] (currently 39.9:39.9 dB)
codec3.jack.pink [<leftvol>:<rightvol>] (currently 39.9:39.9 dB)
codec3.jack.lineout.mode1 <pcm1|pcm2> (currently pcm1)
codec3.jack.int-speaker.mode <pcm1|pcm2> (currently pcm1)
codec3.jack.lineout.mode2 <pcm1|pcm2> (currently pcm1)
codec3.jack.int-mic [<leftvol>:<rightvol>] (currently 39.9:39.9 dB)
codec3.jack.black.mode <pcm3|input> (currently pcm3)
codec3.record.rec1 [<leftvol>:<rightvol>] (currently 64.9:64.9 dB)
codec3.record.mic [<leftvol>:<rightvol>] (currently 64.9:64.9 dB)
codec3.misc.pcm1 [<leftvol>:<rightvol>] (currently 73.9:73.9 dB)
codec3.misc.pcm2 [<leftvol>:<rightvol>] (currently 73.9:73.9 dB)
codec3.misc <-28.-8dB|-19.-2dB|-9.-6dB|0.0dB> (currently 0.0dB)
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 High)
vmix0-outvol <monovol> (currently 25.0 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm8 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB) ("pulseaudio")
vmix0.pcm9 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm10 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm11 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)

New Member
Posts: 5
Joined: Mon Jan 11, 2010 8:21 pm

Re: low max volume on intel hda

Postby rrva » Wed Jun 06, 2012 10:30 am

Additional info:

Code: Select all

Version info: OSS 4.2 (b 2006/201203222121) (0x00040100) TRIAL
Platform: Linux/x86_64 3.4.0-rc6-custom #1 SMP Wed May 30 21:20:58 CEST 2012 (rr-Lenovo-3000-N500)

Number of audio devices:   8
Number of audio engines:   12
Number of MIDI devices:      0
Number of mixer devices:   1

Device objects
 0: osscore0 OSS core services
 1: oss_hdaudio0 Intel HD Audio interrupts=262013 (262013)
    HD Audio controller Intel HD Audio
    Vendor ID    0x8086293e
    Subvendor ID 0x17aa3a0d
     Codec  0: Unknown (0x80862802/0x80860101)
     Codec  2: CX20561 (0x14f15051/0x17aa3c2b)
 2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

Mixer devices
 0: High Definition Audio 0x8086280 (Mixer 0 of device object 1)

Audio devices
HD Audio play pcm1                /dev/oss/oss_hdaudio0/pcm0  (device index 0)
HD Audio play pcm2                /dev/oss/oss_hdaudio0/pcm1  (device index 1)
HD Audio play pcm3                /dev/oss/oss_hdaudio0/pcm2  (device index 2)
HD Audio play spdifout1           /dev/oss/oss_hdaudio0/spdout0  (device index 3)
HD Audio play spdifout2           /dev/oss/oss_hdaudio0/spdout1  (device index 4)
HD Audio rec rec1                 /dev/oss/oss_hdaudio0/pcmin0  (device index 5)
HD Audio rec mic                  /dev/oss/oss_hdaudio0/pcmin1  (device index 6)
HD Audio rec pcm3                 /dev/oss/oss_hdaudio0/pcmin2  (device index 7)

  /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_ac3 -> /dev/oss/oss_hdaudio0/spdout0
  /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0

Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: low max volume on intel hda

Postby cesium » Wed Jun 06, 2012 3:41 pm

Ideas: A) Does 'osstest' have better volume? B) Does changing the value of codec3.misc change anything?

I suspect these would fail, but it's worth a shot. if not, we may have to patch the source and rebuild OSS (See here). I know that changing the last argument of HDA_OUTAMP in kernel/drv/oss_hdaudio/ to 100 would raise it the volume bit, but I'm not sure where to go further. Hmmm..

Known Member
Posts: 1206
Joined: Sun Jun 28, 2009 9:31 pm

Re: low max volume on intel hda

Postby igorzwx » Fri Jun 29, 2012 4:15 pm

rrva wrote:When switching from ALSA to OSS with my intel HDA card, I noticed that the new max volume is lower (through pulseaudio).

The user seems to need loudness rather than sound quality. This might be a symptom of deafness http://en-de.sennheiser.com/service-sup ... y/symptons
Since loud sound inevitably causes permanent hearing impairment, PulseAudio users may tend to increase loudness further and further until they become completely deaf http://en-de.sennheiser.com/service-sup ... -capacity/

Why do they increase loudness? The reason is simple. If sound is perceived as "inaudible", a semi-deaf person attempts to increase loudness in the hope to make it audible.

It is predicted that exposure to loud music will cause as many as 50 million Americans to suffer hearing loss by 2050. http://en.wikipedia.org/wiki/Loud_music#Health

Such hearing loss is likely to be accompanied by cognitive impairment, dementia (маразм, слабоумие), madness and stupidity http://nextavenue.org/article/2012-04/l ... d-dementia This may explain the phenomenon of PulseAudio.

Notice that resampling may reduce the amplitude of the original signal, simply because it usually involves "normalization" to prevent clipping. Since low quality resamplers tend to produce strong distortions, the further "normalization" is likely to cause an essential reduction of amplitude.

Since both ALSA and OSS4 have the worst resamplers enabled by default, semi-deaf Linux newbies may try to increase loudness to improve "sound quality". Linux is dangerous for health (in this sense). To make things worse, PulseAudio is enabled by default in major Linux distributions such as Fedora, Ubuntu, Linux Mint, OpenSUSE, Arch Linux and so on. Small wonder, the number of Linux users is comparable with the number of the deaf
http://blogs.adobe.com/open/2011/06/foc ... lient.html

As it was already noticed (although, perhaps, too late) by Ingo Molnar, a Linux kernel developer from Red Hat Software:

Desktop Linux users are, naturally, voting with their feet: they prefer an open marketplace over (from their perspective) micro-managed, closed and low quality Linux desktop distributions. https://plus.google.com/109922199462633 ... gdeFDfRzNe

It was expected that PulseAudio would solve all problems: all the Mac OS and Windows users would install Ubuntu, Micro$oft would go go bankrupt, and so on, and the utopian dreams of Richard Stallman would be materialized. But disillusionment was bound to follow (as it usually happens with Cargo cults [Russian translation]). For some strange reason, the "kids with old ears and old brains" do not seem to be perfectly happy with PulseALSA and other "open-source crap". Radical reforms seem inevitable. They might be initiated by Linux kernel developers. The result is likely to be a complete destruction of Linux.

Why Linux Is Decrepit Donkey Crap
Nobody seems to realize how truly ancient Linux is. We're living in the internet age when 5 years is a long time and 10 an eternity, yet Linux is over 40 years old. It wasn't known by that name 40 years ago but that hardly matters since it's hardly changed since. Linux dates back to a prehistoric era when computer dinosaurs roamed the Earth and stern patriarchs ruled the home. And it shows!
Linux has 40 years' worth of mistakes and missed opportunities accumulated in a gigantic pile of crap... Linux's model of users is still based on Fascism...
It's amazingly difficult to convey exactly how ancient, how capricious, how fucked up, and how totally dysfunctional this piece of crapware called Linux is.
It's vile, incoherent, inconsistent, contradictory, meaningless, arbitrary, senseless, ad hoc, unprincipled, bloated, arrogant, dictatorial, fetid, rotten, corrupt, and just plain evil. http://richardkulisz.blogspot.de/2010/1 ... -crap.html

A simple test for semi-deafness: if an increase of loudness makes music sound better, you might already be semi-deaf. It this case, you may need to take precautions. If you are suspicious about modern medicine, you may try ancient Taoist techniques http://de1.chinabroadcast.cn/21/2005/07/15/1@32902.htm

cesium wrote: I know that changing the last argument of HDA_OUTAMP in kernel/drv/oss_hdaudio/ to 100 would raise it the volume bit

Do you mean /oss-v4.2-build2006-src-gpl/kernel/drv/oss_hdaudio/hdaudio_dedicated.h ?

Code: Select all

#define HDA_OUTAMP(wid, group, name, percent) ctl=hda_codec_add_outamp(dev, mixer, cad, wid, group, name, percent, 0)

I tend to believe that HDA_OUTAMP is the cause of some very strange bugs on my Dell notebook Latitude D531.
Perhaps, a semi-deaf developer hacked the OSS4 code to increase loudness on notebooks with HDA codecs http://en.wikipedia.org/wiki/Hearing_impairment#Age

As a workaround (for Dell Latitude D531 notebook), I have to use the mic jack for sound output (the headphones jack is much louder, but sound quality is bad).
Moreover, to remove a strange noise in the external speakers (a kind of 50Hz), I have to plug an external display into the notebook (my old IBM notebook with ICH4 does not have such problems).

Do you remember old discussions about "distorted sound" with Intel HDA codecs?
For example: viewtopic.php?f=3&t=3552
There is still a kind of "troubleshooting advice for OSS4" in Arch Linux Wiki:

If you get distorted sound, try lowering some volume control sliders. https://wiki.archlinux.org/index.php/OS ... her_issues

The same old bug, just another incarnation. Right? A kind of "buggy amplifier", or "gain", or other crap of the sort?

QUESTION: Is it possible to disable that mysterious HDA_OUTAMP or remove it completely?

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 2 guests