Headphones out does not work (sound chip AD1981B)

Hi all,

I’ve got a problem with installing/configuring the soundcard of my notebook (Compaq NX7010). Soundcard is correctly recognized by the system (OpenSUSE 10.3) and in general works while using the internal speaker.

What does not work is the headphones out :frowning:

Already tried to change configuration (/etc/modprobe.d/sound) with different models give by ALSA team for this sound chip (e.g. basic, hp, …) without success.

Furthermore I tried to find tips and manuals in the forum without success.

Could anyone help ???

thx
Markus

Can you tell us what model options you tried? And what syntax you used in the /etc/modprobe.d/sound file when you applied those edits?

What would help, is with your mixer configured the way you believe correct, and with your PC connected to the internet, is for you to provide the output of:

 wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh && bash alsa-info.sh

that will give you a URL when it finishes. Please post the URL here. Just the URL.

Also, please post the output of executing the following commands, one at a time, in a konsole or terminal:
rpm -qa | grep alsa
rpm -qa | grep pulse
rpm -q libasound2
uname -a
cat /etc/modprobe.d/soundIts possible (no guarantees) I may be able to recommendation after studying the output of the above request.

Best wishes/good luck !

Sorry for not providing more details when opening the threat. I created it from another pc…

So, here you are the link of uploaded ALSA details

http://www.alsa-project.org/db/?f=ed5e94023f0b568f972fb76cfeb227a341c487cd

The models I already tried were all of the given by ALSA team (ALSA Configuration.txt):

AD1981
  basic		3-jack (default)
  hp		HP nx6320
  thinkpad	Lenovo Thinkpad T60/X60/Z60
  toshiba	Toshiba U205

I placed the model entry below the last entry in my “/etc/modprobe.d/sound” file, like currently configured:

alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
options snd-hda-intel model=hp

Concerning my mixer configuration headphones are enabled and volume is turned on

Please see results of given commands:

mad@mad-linux:/etc/modprobe.d> rpm -qa | grep alsa
alsa-devel-1.0.14-31.2
alsa-utils-1.0.14-27
alsa-1.0.14-31.2
alsa-oss-1.0.14-23
alsa-plugins-1.0.14-41

mad@mad-linux:/etc/modprobe.d> rpm -qa | grep pulse

mad@mad-linux:/etc/modprobe.d> rpm -q libasound2
libasound2-1.0.14-31.2

mad@mad-linux:/etc/modprobe.d> uname -a
Linux mad-linux 2.6.22.19-0.2-default #1 SMP 2008-12-18 10:17:03 +0100 i686 i686 i386 GNU/Linux

mad@mad-linux:/etc/modprobe.d> cat /etc/modprobe.d/sound
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
options snd-hda-intel model=hp
mad@mad-linux:/etc/modprobe.d>

Hope you can help me with getting headphones out working :wink:

thx
Markus

Hmmm … if your sound device is identified as a “snd-intel8x0” then I believe a “snd-hda-intel” will not work as a model option. I suppose you could try “options snd-intel8x0 model=hp” but I don’t believe that model option is intended for “snd-intel8x0” and hence I doubt that will work either.

I’m looking at the remainder of your post now.

I’m trying to understand your mixer.

When you plug the jack in for your headphones, is the speaker volume muted (even though you do not hear headset sound) ?

Yes you’re right. Speaker volume is muted when headphones are plugged in. Nevertheless I can’t hear anything out of the headphones

Hm, concerning your statement with “snd-intel8x0” device option sounds good but does not work :frowning:

Ok, so that tells us that the alsa driver does detect the headphones.

What we need to do next is confirm this is not a mixer problem. If not a mixer problem, then we can look at updating alsa from 1.0.14 to 1.0.20 … but first, lets check the mixer.

!!Amixer output
!!-------------
!!-------Mixer controls for card 0 [I82801DBICH4]
Card hw:0 ‘I82801DBICH4’/‘Intel 82801DB-ICH4 with AD1981B at irq 10’
Mixer name : ‘Analog Devices AD1981B’
Simple mixer control ‘Master’,0
Front Left: Playback 12 39%] -28.50dB] [on]
Front Right: Playback 12 39%] -28.50dB] [on]
Simple mixer control ‘Headphone’,0
Capabilities: pvolume pswitch
Front Left: Playback 18 58%] -19.50dB] [on]
Front Right: Playback 18 58%] -19.50dB] [on]
Simple mixer control ‘Headphone Jack Sense’,0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback off]
Simple mixer control ‘Line Jack Sense’,0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback off]
Simple mixer control ‘Phone’,0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-exclusive
Mono: Playback 0 0%] -34.50dB] [on]
I coloured in organge settings that may not be condusive to testing, and in red an item that looks wrong to me.

You laptop’s master and pcm volumes are low. When testing for functional sound, I recommend you move those up VERY HIGH. I also note you have “line jack sense” OFF … you could also try ON. I also note you have “simple mixer control for phone” OFF. You could also try ON. But in particular you have Headset Jack Sense OFF. Should that not be ON ?

I recommend you write down on a piece of paper the various mixer settings/combinations you try, in order to get that functioning.

If that does not work, you can update your alsa from 1.0.14 to 1.0.20 to see if there are any updates. I did search for your AD1981B on alsa for updates, and while there are updates, they appear to be for a Dell laptop and not for your laptop model. I can give you the exact zypper commands to update to 1.0.20 alsa (via prepackaged rpms - no need to custom compile).

But lets try tuning your mixer first.

I tried most of the configuration changes you thought that could probably help. None of this worked

The only thing I could not test is changing the “simple mixer control for phone” because I do not know how… There is no switcher within my mixer to do so. Is there a specific command for turning this on?

When switching “line/headphone jack sense” on no sound comes out of the headset AND furhermore no sound comes out of the internal speaker, even if headphones are not plugged in

thanks for your help so far!

If you type “amixer” you will get a list of your mixer’s settings. If you type “amixer > mixers-settings.txt” and open “mixers-settings.txt” with a text editor, you will also be able to review your mixer’s settings.

If you type “man amixer” you will be given guidance as to how to use amixer. For example, I think the "sset’ command is used to control a specific mixer item setting (which is useful when one can not find the control in one’s mixer). There are examples at the bottom of the “man amixer” page.

Assuming your headphones continue to not function, I see you have 2 choices:

  • write a bug report on openSUSE 10.3 with 1.0.14 of alsa and your sound device Submitting Bug Reports - openSUSE , and/or
  • update your alsa to 1.0.20, and only then if headphone sound does not work, write the bug report

To update your alsa sound module/driver to 1.0.20 of alsa, open a terminal or konsole, and type “su” (no quotes - enter root password when prompted) and then with your PC connected to the internet copy and paste and execute the following six zypper commands, one at a time, in sequence, to that terminal or konsole:

zypper ar http://download.opensuse.org/repositories/multimedia:/audio/openSUSE_10.3/ multimedia
zypper install alsa-devel alsa-utils alsa-tools alsa-firmware alsa-oss alsa-plugins
zypper rr multimedia
zypper ar http://download.opensuse.org/repositories/multimedia:/audio:/KMP/openSUSE_10.3_Update/ multimedia
zypper install alsa-driver-kmp-default
zypper rr multimedia

Select yes for the updates. Once the update is complete, restart your PC, test your sound and your head phones.

And if that does not work, write a bug report on openSUSE 10.3 with 1.0.14 of alsa and your sound device Submitting Bug Reports - openSUSE and be certain to select component “sound” when writing the bug report to ensure you get the attention of the SuSE-GmbH / alsa developer who packages openSUSE alsa.