Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Intel HD Audio: main, jack and speaker problems [SOLVED]
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Wed Feb 15, 2006 4:41 pm    Post subject: Intel HD Audio: main, jack and speaker problems [SOLVED] Reply with quote

Hi.

I have a Dell Inspiron 9400 with Intel 82801G (ICH7) chipset (STAC9200). It also has Intel HD Audio. Sound works but I'm still facing several strange things. Under Windoze, I can control (on/off) speaker output (the "Beep"), I don't hear the PC speakers when I plug my headphones and the sound is clear.

Under Gentoo (Gentoo Sources 2.6.15-r5) I have no PC speaker control (for the "Beep"), I still hear the speakers even when I plug my headphones in the headphones jack and the sound is always a little bit cracky, i.e. I can hear some very low noise like plops and cracks when I play music - just as if I were playing an old LP album. Alsa mixer (and Gnome Volume Control as well) show the following controls:
  • Master
  • PCM
  • Capture
  • Capture Mux (twice but it looks like a Gnome bug as I only have it once in alsamixer)
  • IEC958 - what's that?


Here's the lspci output:
Code:
# lspci | grep -i audio
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)


I have selected CONFIG_INPUT_PCSPKR=m and the module loads when I boot Gentoo. However I can't turn the speaker off neither control its volume. I have to unload module pcspkr.

Has anyone got the same problem?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!


Last edited by VinzC on Thu Apr 20, 2006 10:14 am; edited 3 times in total
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Mon Feb 20, 2006 7:07 pm    Post subject: Update Reply with quote

Looked a bit more carefully: I don't have any speaker control under Windows either. All controls are the same on both platforms. IEC958 is the SPDIF output, available through a mini-din connector/splitter.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
surfmasta
n00b
n00b


Joined: 23 Jul 2005
Posts: 36

PostPosted: Mon Feb 20, 2006 8:11 pm    Post subject: Reply with quote

>the sound is always a little bit cracky, i.e. I can hear some very low noise like plops and cracks when I
>play music - just as if I were playing an old LP album.
I have the same problem when using hda_intel, try to load the driver with position_fix=1
(modprobe snd-hda-intel position_fix=1)
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Tue Feb 21, 2006 7:23 am    Post subject: Reply with quote

surfmasta wrote:
... modprobe snd-hda-intel position_fix=1

Thanks for your suggestion. I suppose this loads the module in the first position?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
surfmasta
n00b
n00b


Joined: 23 Jul 2005
Posts: 36

PostPosted: Tue Feb 21, 2006 9:31 am    Post subject: Reply with quote

>I suppose this loads the module in the first position?
No, it have to do something with DMA pointer position. For me it works with position_fix=1 and 2.
Here are some information from the kernel-documentation. You can play with modprobe snd-hda-intel model=... too.

Module snd-hda-intel
--------------------

Module for Intel HD Audio (ICH6, ICH6M, ICH7), ATI SB450,
VIA VT8251/VT8237A

model - force the model name
position_fix - Fix DMA pointer (0 = FIFO size, 1 = none, 2 = POSBUF)

Module supports up to 8 cards.

Each codec may have a model table for different configurations.
If your machine isn't listed there, the default (usually minimal)
configuration is set up. You can pass "model=<name>" option to
specify a certain model in such a case. There are different
models depending on the codec chip.

Model name Description
---------- -----------
ALC880
3stack 3-jack in back and a headphone out
3stack-digout 3-jack in back, a HP out and a SPDIF out
5stack 5-jack in back, 2-jack in front
5stack-digout 5-jack in back, 2-jack in front, a SPDIF out
6stack 6-jack in back, 2-jack in front
6stack-digout 6-jack with a SPDIF out
w810 3-jack
z71v 3-jack (HP shared SPDIF)
asus 3-jack
uniwill 3-jack
F1734 2-jack
test for testing/debugging purpose, almost all controls can be
adjusted. Appearing only when compiled with
$CONFIG_SND_DEBUG=y

CMI9880
minimal 3-jack in back
min_fp 3-jack in back, 2-jack in front
full 6-jack in back, 2-jack in front
full_dig 6-jack in back, 2-jack in front, SPDIF I/O
allout 5-jack in back, 2-jack in front, SPDIF out
auto auto-config reading BIOS (default)

Note 2: If you get click noises on output, try the module option
position_fix=1 or 2. position_fix=1 will use the SD_LPIB
register value without FIFO size correction as the current
DMA pointer. position_fix=2 will make the driver to use
the position buffer instead of reading SD_LPIB register.
(Usually SD_LPLIB register is more accurate than the
position buffer.)
Back to top
View user's profile Send private message
simeli
Apprentice
Apprentice


Joined: 15 Jun 2005
Posts: 193
Location: Switzerland, Zurich

PostPosted: Tue Feb 21, 2006 1:14 pm    Post subject: Re: Intel HD Audio (82801G): main, jack and speaker problems Reply with quote

VinzC wrote:
Under Gentoo (Gentoo Sources 2.6.15-r5) I have no PC speaker control (for the "Beep"), I still hear the speakers even when I plug my headphones in the headphones jack and the sound is always a little bit cracky, i.e. I can hear some very low noise like plops and cracks when I play music - just as if I were playing an old LP album. Alsa mixer (and Gnome Volume Control as well) show the following controls:


the internal buzzer on the mainboard is controlled directly by a kernel option and bypasses alsa. not sure at the moment where that is configured though. had a tough time last time myself finding it... not sure if this is what you were looking for
_________________
Pentium M 740 on MSI 915GM SPEEDSTER-FA4, 2x512MB Corsair XMS2 DDR2 667 Memory, Zalman CNPS7000B AlCu, Samsung SpinPoint P120 250GB SATAII, Hauppauge WinTV PVR-500, Enermaxx Liberty 400, Antec P180

Husaberg FS650e Force Edition [http://www.husaberg.se]
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Tue Feb 21, 2006 3:24 pm    Post subject: Re: Intel HD Audio (82801G): main, jack and speaker problems Reply with quote

simeli wrote:
the internal buzzer on the mainboard is controlled directly by a kernel option and bypasses alsa. not sure at the moment where that is configured though. had a tough time last time myself finding it... not sure if this is what you were looking for

Probably yes :-). Happy tracking...
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
moscwolf
n00b
n00b


Joined: 18 Feb 2006
Posts: 3
Location: Hamburg (Germany)

PostPosted: Thu Feb 23, 2006 10:52 am    Post subject: Reply with quote

you can switch-off the pc-speaker temp while using the commandline: setterm -blength 0
or permanent (as told) in the kernel: Device Drivers -> Input Device support -> Miscellaneous devices -> PC Speaker support
_________________
INSPIRON 9400
Intel(R) Core Duo
Genuine Intel(R) CPU T2600 @ 2.16GHz GenuineIntel GNU/Linux
Linux Gentoo 2.6.15 #1 SMP PREEMPT Fri Feb 17 00:01:35 GMT 2006 i686
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Thu Feb 23, 2006 11:25 am    Post subject: Reply with quote

moscwolf wrote:
...
permanent (as told) in the kernel: Device Drivers -> Input Device support -> Miscellaneous devices -> PC Speaker support

Or to blacklist the spkr module, which is what I did. It doesn't require recompiling the kernel when you need it.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Wed Mar 08, 2006 3:21 pm    Post subject: Audio jack mute problem Reply with quote

I decided to file a bug report about the audio jack that does not mute the HPs when plugged in.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sun Mar 19, 2006 12:19 pm    Post subject: Reply with quote

I took my time but here's my own variation on the position_fix trick:
Code:
echo "options snd-hda-intel position_fix=1" > /etc/modules.d/snd_hda_intel
modules-update
/etc/init.d/alsasound restart

_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
roynux
n00b
n00b


Joined: 31 Mar 2004
Posts: 6

PostPosted: Mon Mar 27, 2006 1:54 pm    Post subject: Reply with quote

Hello,

I tried the patch given at this place http://lkml.org/lkml/2006/3/17/279 but it doesn't seem to work.

Maybe I am doing something wrong.
Back to top
View user's profile Send private message
roynux
n00b
n00b


Joined: 31 Mar 2004
Posts: 6

PostPosted: Thu Mar 30, 2006 8:56 am    Post subject: Reply with quote

Replying to my post...

In fact, it is working, but the HP are always muted. The audio jack is working fine.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Thu Mar 30, 2006 8:24 pm    Post subject: Reply with quote

Great... I've just tried Gentoo Sources 2.6.16-r1 and I have no more sound :roll: . HPs are silent, as well as my headphones...
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Thu Mar 30, 2006 9:13 pm    Post subject: Reply with quote

Ok, now I've applied the patch mentionned by roynux and I get sound through my headphones only. Main HPs still muted, like you said, roynux. But it's more than nothing. Thanks for the hint.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
LD
Guru
Guru


Joined: 23 Dec 2003
Posts: 336
Location: Middle of No-Where Granbury, Tx

PostPosted: Sat Apr 01, 2006 2:03 am    Post subject: Reply with quote

Having an issue with the snd-hda-intel driver using kernel gentoo sources 2.6.16-gentoo-r1. For some reason the HD audio driver was removed from the kernel with r1. It was in 2.6.16. Also, the alsa driver for it is not wanting to install. I keep getting weird issues with the output when I start alsasound.

Code:
WARNING: Error inserting snd (/lib/modules/2.6.16-gentoo-r1/alsa-driver/acore/snd.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_timer (/lib/modules/2.6.16-gentoo-r1/alsa-driver/acore/snd-timer.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_pcm (/lib/modules/2.6.16-gentoo-r1/alsa-driver/acore/snd-pcm.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_hda_codec (/lib/modules/2.6.16-gentoo-r1/alsa-driver/pci/hda/snd-hda-codec.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_hda_intel (/lib/modules/2.6.16-gentoo-r1/alsa-driver/pci/hda/snd-hda-intel.ko): Unknown symbol in module, or unknown parameter (see dmesg)


Any ideas?
_________________
[Owner/Operator: Dhampir Dreams]
Last.fm profile
Netflix Profile
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sat Apr 01, 2006 10:33 am    Post subject: Reply with quote

Things get worse. With either kernels I tried the microphone doesn't work at all. I'm using Skype but all I can do is text-chat. Has anyone else tried the microphone?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sun Apr 02, 2006 9:12 pm    Post subject: Reply with quote

Ah, good news. I followed this guide and now I get sound working with 2.6.16-gentoo-r1. And most of all HP are now muted when an earphones jack is plugged in. I still have to check Mic input but at least it works normally for sound output. The trick is to use alsa driver from portage.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
cheecheeo
n00b
n00b


Joined: 08 Dec 2005
Posts: 6
Location: P-town, Oregon

PostPosted: Tue Apr 11, 2006 3:55 am    Post subject: Reply with quote

VinzC wrote:
Ah, good news. I followed this guide and now I get sound working with 2.6.16-gentoo-r1. And most of all HP are now muted when an earphones jack is plugged in. I still have to check Mic input but at least it works normally for sound output. The trick is to use alsa driver from portage.


Guide worked for me too! thanks :)
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Tue Apr 11, 2006 9:39 pm    Post subject: Reply with quote

Microphone still doesn't work but the current state is more than nothing.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Thu Apr 20, 2006 10:02 am    Post subject: Reply with quote

Problem no more solved entirely after a couple of updates. And it's getting even more wierd...

When I boot my laptop I have to manually restart /etc/init.d/alsasound before I logon into Gnome. Then I get sound from the speakers. If I plug my headphones, the main speakers are muted, normal. However I get sound in Gnome only from multimedia applications; Gnome events remain silent i.e. I don't get any sound for Gnome events (application launch, message boxes, aso).

a) If I logon into Gnome without restarting alsasound, I get no sound in Gnome. I get no sound either from the console.

b) If I restart alsasound directly from Gnome (Ok, I'm playing with fire) I get sound but the headphones don't mute the main speakers anymore! Then Gnome sound events do work!

Go figure...
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Thu Apr 20, 2006 10:13 am    Post subject: Reply with quote

Hmmm... It turns out the solution is not to start /etc/init.d/esound! I've removed esound from the default runlevel, selected ALSA as Gnome's default sound and multimedia handler and now:
  1. Sound works at first without restarting alsasound
  2. Sound works from the console
  3. Sound works in Gnome
  4. Gnome sound events do work
  5. Plugging my earphones mute the main speakers from both the console and Gnome!

Pfew!

Next one, please? :D

Question: what the heck is that bloody init script, esound, for?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
mahler
n00b
n00b


Joined: 06 Oct 2004
Posts: 22

PostPosted: Mon Apr 24, 2006 12:29 am    Post subject: Reply with quote

VinzC wrote:
Hmmm... It turns out the solution is not to start /etc/init.d/esound! I've removed esound from the default runlevel, selected ALSA as Gnome's default sound and multimedia handler and now:
  1. Sound works at first without restarting alsasound
  2. Sound works from the console
  3. Sound works in Gnome
  4. Gnome sound events do work
  5. Plugging my earphones mute the main speakers from both the console and Gnome!

Pfew!

Next one, please? :D

Question: what the heck is that bloody init script, esound, for?


Does that mean your microphone works?
I do not run esound, and still have no microphone.

D
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Mon Apr 24, 2006 8:01 am    Post subject: Reply with quote

mahler wrote:
Does that mean your microphone works?
I do not run esound, and still have no microphone.

D

Not tested, in fact. I expect the mike not to work, still...
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sun Apr 30, 2006 11:20 am    Post subject: Reply with quote

That guy at Disgruntledgoat.com has gone through the same sound maze. I've added his page to my favorites as he even submitted a bug for the lack of support of Intel HDA.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum