IntelHDA: jack output works, but no sound in laptop speakers

OSS specific Linux discussion (x86/amd64)

Moderators: cesium, dev, kodachi, hannu

IntelHDA: jack output works, but no sound in laptop speakers

Postby Nyar » Sun Jan 22, 2012 8:30 am

Hello. I'm using ThinkPad T510 having Intel sound card with Parabola GNU/Linux (Arch Linux based distro).

Code: Select all
$ uname -a
Linux thinkpad 3.1.5-1-LIBRE #1 SMP PREEMPT Tue Dec 20 15:18:19 UTC 2011 x86_64 Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz GenuineIntel GNU/Linux

$ lspci | grep -i audio
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)


I've installed the latest version of OSS4 from the Arch AUR and had no troubles with that.

Code: Select all
$ yaourt -Ss oss-hg
aur/oss-hg 894-1 [installed: 942-1] (29)
    Open Sound System UNIX audio architecture

$ cat /etc/rc.conf | grep DAEMONS=
DAEMONS=(syslog-ng !network wicd crond oss4 mpd dbus slim)


After system loading I see

Code: Select all
$ lsmod | grep oss
oss_usb               108983  4
oss_hdaudio           145640  10
osscore               550562  4 oss_hdaudio,oss_usb
usbcore               144400  6 ehci_hcd,usbhid,oss_usb,btusb,uvcvideo


It seems to work just fine in applications with OSS support (MPD for example), still only through headphones. I tried changing _all_ ossmix mixer settings, but haven't manage to make my internal speakers work. Awfully need your help in configuring. Could it be not a certain value but a _combination_ of values? Or maybe my sound card just isn't fully supported? I've only figured out that jack.black.mode1 affects my jack output. So here is my ossinfo and default ossmix values (with hdaudio_noskip=7 enabled in /usr/lib/oss/conf/oss_hdaudio.conf):

Code: Select all
$ ossinfo
Version info: OSS 4.2 (b 2005/201111292009) (0x00040100) GPL
Platform: Linux/x86_64 3.1.5-1-LIBRE #1 SMP PREEMPT Tue Dec 20 15:18:19 UTC 2011 (thinkpad)

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


Device objects
0: osscore0 OSS core services
1: oss_hdaudio0 Intel HD Audio interrupts=319 (319)
    HD Audio controller Intel HD Audio
    Vendor ID    0x80863b56
    Subvendor ID 0x17aa215e
     Codec  0: Unknown (0x14f15069/0x17aa218b)
2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

Mixer devices
0: High Definition Audio 0x14f1506 (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 rec2                 /dev/oss/oss_hdaudio0/pcmin1  (device index 6)
HD Audio rec rec3                 /dev/oss/oss_hdaudio0/pcmin2  (device index 7)
HD Audio rec pcm3                 /dev/oss/oss_hdaudio0/pcmin3  (device index 8)

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


Code: Select all
$ ossmix
Selected mixer 0/High Definition Audio 0x14f15069
Known controls are:
jack.black.mode1 <pcm1|pcm2> (currently pcm1)
jack.black.mode2 <pcm1|pcm2|input> (currently pcm1)
jack.green.mode <pcm1|pcm2> (currently pcm1)
jack.internal.mode <pcm1|pcm2|input> (currently pcm1)
jack.int-speaker.mode <pcm1|pcm2> (currently pcm1)
jack.int-mic [<leftvol>:<rightvol>] (currently 47.9:47.9 dB)
jack.black.mode3 <pcm3|input> (currently pcm3)
record.rec1 [<leftvol>:<rightvol>] (currently 64.9:64.9 dB)
record.rec1.rec1 <select1|select2|int-mic|mix> (currently select1)
record.rec2 [<leftvol>:<rightvol>] (currently 64.9:64.9 dB)
record.rec2.rec2 <select1|select2|int-mic|mix> (currently select1)
record.rec3 [<leftvol>:<rightvol>] (currently 64.9:64.9 dB)
record.rec3.rec3 <select1|select2|int-mic|mix> (currently select1)
misc.pcm11 [<leftvol>:<rightvol>] (currently 59.9:59.9 dB)
misc.pcm21 [<leftvol>:<rightvol>] (currently 59.9:59.9 dB)
misc.beep <monovol> (currently 23.9 dB)
misc.select11 [<leftvol>:<rightvol>] (currently 39.9:39.9 dB)
misc.select12 <mic1|mic2|internal1|internal2> (currently mic2)
misc.select21 [<leftvol>:<rightvol>] (currently 39.9:39.9 dB)
misc.select22 <mic1|mic2|internal1|internal2> (currently mic2)
misc.pcm12 [<leftvol>:<rightvol>] (currently 59.9:59.9 dB)
misc.pcm22 [<leftvol>:<rightvol>] (currently 59.9:59.9 dB)
misc.mix <pcm1|pcm2> (currently pcm1)
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 24.0 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm9 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB) ("mpd")
vmix0.pcm10 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm11 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm12 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
Last edited by Nyar on Sun Jan 22, 2012 4:48 pm, edited 1 time in total.
Nyar
New Member
 
Posts: 2
Joined: Sun Jan 22, 2012 7:19 am

Re: IntelHDA: jack output works, but no sound in laptop spea

Postby igorzwx » Sun Jan 22, 2012 3:04 pm

Nyar wrote: Hardly need your help in configuring. Could it be not a certain value but a _combination_ of values? Or maybe my sound card just isn't fully supported? I've only figured out that jack.black.mode1 affects my jack output. So here is my ossinfo and default ossmix values (with hdaudio_noskip=7 enabled in /usr/lib/oss/conf/oss_hdaudio.conf)


Nyar wrote: Hardly need your help in configuring.

Are you going to say that you do not need help?

Nyar wrote: with hdaudio_noskip=7 enabled in /usr/lib/oss/conf/oss_hdaudio.conf

Unconnected jacks are not supposed to work. You may better try the default.
igorzwx
Supporter
 
Posts: 993
Joined: Sun Jun 28, 2009 9:31 pm

Re: IntelHDA: jack output works, but no sound in laptop spea

Postby Nyar » Sun Jan 22, 2012 4:44 pm

igorzwx wrote:Are you going to say that you do not need help?


Oh, very sorry for that! :D I meant «awfully», of course.

igorzwx wrote:Unconnected jacks are not supposed to work. You may better try the default.


The thing is: I tried, but with no result. Is there any way to know what mixers should affect internal speakers?
Nyar
New Member
 
Posts: 2
Joined: Sun Jan 22, 2012 7:19 am

Re: IntelHDA: jack output works, but no sound in laptop spea

Postby igorzwx » Sun Jan 22, 2012 7:09 pm

Nyar wrote:The thing is: I tried, but with no result. Is there any way to know what mixers should affect internal speakers?

What do you want of "generic driver"? It is as good as "vesa" and other GNU/PulseAudio crap.

Since oss_hdaudio is a "generic driver", it does not support "hardware mixing" and "jack-sensing" (except for ICH6). For the same reason, it may fail to work.
KNOWN PROBLEMS
In general Azalia based systems (laptops/motherboards) would require a custom driver to work properly. Due to enormous number of different systems it is not possible to develop such custom drivers for all systems. A generic driver is used for systems that don't have dedicated drivers.
Unfortunately the mixer and control panel interface (see ossmix ) for "generic" systems is very cryptic and difficult to understand. To solve problems with volumes or signal routing you need to start ossxmix and change the controls one at time until you get the desired effect.
http://manuals.opensound.com/usersguide ... audio.html

Try to fix the default. If it fails to work, you may try to write your own "custom driver" for your soundcard.

EDIT: Although "jack-sensing" is not likely to work with your soundcard, you may better disconnect your headphones, when you test internal speakers.
igorzwx
Supporter
 
Posts: 993
Joined: Sun Jun 28, 2009 9:31 pm

Re: IntelHDA: jack output works, but no sound in laptop spea

Postby igorzwx » Tue Jul 17, 2012 11:16 pm

Nyar wrote:I'm using ThinkPad T510 having Intel sound card with Parabola GNU/Linux (Arch Linux based distro)...
It seems to work just fine in applications with OSS support (MPD for example), still only through headphones. I tried changing _all_ ossmix mixer settings, but haven't manage to make my internal speakers work. Awfully need your help in configuring. Could it be not a certain value but a _combination_ of values? Or maybe my sound card just isn't fully supported? I've only figured out that jack.black.mode1 affects my jack output. So here is my ossinfo and default ossmix values (with hdaudio_noskip=7 enabled in /usr/lib/oss/conf/oss_hdaudio.conf) viewtopic.php?f=3&t=4621#p18177


It seems that the internal speakers work with the default hdaudio_noskip=0 (in /usr/lib/oss/conf/oss_hdaudio.conf) on the same ThinkPad T510.
See: viewtopic.php?f=3&t=4750
igorzwx
Supporter
 
Posts: 993
Joined: Sun Jun 28, 2009 9:31 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest

cron