LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-22-2006, 04:26 AM   #1
stelek
LQ Newbie
 
Registered: Dec 2006
Posts: 12

Rep: Reputation: 0
Linux + Intel HDA + ALSA = bad sound quality...


Dear all,

I'm not completely new to Linux but this is my first attempt to switch from Windows completely. I've managed to solve most of the issues but this one is still a mystery to me...

My motherboard is Asus P5GD1 with Realtek ALC880 audio. I have installed Slackware 11 with kernel 2.6.19.1.

On Windows it works perfectly. I can go with the volume up to the top and the sound is still perfect. At the top, my ears really hurt (in the headphones) but the quality is still superb. Nothing to complain about...

The situation is different on Linux. If I use the mixer to go with "front" and "pcm" to the top, the sound is really bad. It sounds like there's simply too much bass and my headphones go crazy. To have a decent sound quality I have to limit the "pcm" volume to about a half. But then the problem is that the sound is simply not loud enough. So in the end - I cannot really use the Linux to listen to music...

Just to clarify: when I put all the sliders up to the top on both Windows and Linux, the loudness is more or less the same. The problem is the quality which is much worse on Linux - too much bass which results in a distorted sound.

I've tried going for the new Alsa 14rc1 but it did not help...

Any other ideas what could improve the audio quality at higher volumes? If I don't solve this problem, I'll have to go back to Windows

My config:
Asus P5GD1 with ALC880/Intel HDA
Slackware 11
Kernel 2.6.19.1
Alsa 13/14rc1 (tried both)
KDE 3.5.4

lsmod:
Quote:
Module Size Used by
nvidia 4707924 32
snd_seq_oss 32256 0
snd_seq_midi_event 6016 1 snd_seq_oss
snd_seq 45776 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 6924 2 snd_seq_oss,snd_seq
snd_pcm_oss 42912 0
snd_mixer_oss 16000 1 snd_pcm_oss
snd_hda_intel 17048 1
snd_hda_codec 200624 1 snd_hda_intel
snd_pcm 70792 3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer 19844 2 snd_seq,snd_pcm
snd 45924 11 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_hda_codec,snd_pcm,snd _timer
snd_page_alloc 8072 2 snd_hda_intel,snd_pcm
ipv6 228704 85
sg 28188 0
fuse 42516 6
capability 3464 0
commoncap 5376 1 capability
agpgart 28336 1 nvidia
lp 10312 0
parport_pc 24900 1
parport 31560 2 lp,parport_pc
pcspkr 2560 0
psmouse 37384 0
 
Old 12-22-2006, 09:17 PM   #2
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
When you load alsa 1.0.14rc1, what is the output in dmesg? Also what is the subsytem ID returned from "lspci -v|fgrep -A1 Audio"?

It's possible that your system is not properly being setup in alsa. If dmesg returns something like "hda_codec: Unknown model for ALC880, trying auto-probe from BIOS..." then your configuration isn't entered in the driver. The lspci output will give me the info I need to add it.
 
Old 12-23-2006, 03:12 AM   #3
stelek
LQ Newbie
 
Registered: Dec 2006
Posts: 12

Original Poster
Rep: Reputation: 0
LSPCI lists the following:
Quote:
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03)
Subsystem: ASUSTeK Computer Inc. P5GD1-VW Mainboard
--
01:09.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Subsystem: Twinhan Technology Co. Ltd VisionPlus DVB Card
The latter is my DVB-S card which I currently do not use...

DMESG output does not contain any Alsa-related messages. Or maybe I'm doing something wrong... Should I do anything more except calling DMESG and checking the output?
 
Old 12-23-2006, 03:15 AM   #4
stelek
LQ Newbie
 
Registered: Dec 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Additionally - scanpci gives me the following...

Quote:
pci bus 0x0000 cardnum 0x1b function 0x00: vendor 0x8086 device 0x2668
Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller
 
Old 12-23-2006, 11:20 AM   #5
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
I was looking at the code, and your system could be different than the one programmed in the driver. First, I need to verify your sound subsystem id. Post the output from "lspci -s 0:1b -vn". Also, there are a few different configuration possiblities that your system may fall under. Try unloading and reloading snd-hda-intel with "model=<from list>" parameter, using the following list:

5stack
6stack
asus
asus-dig
asus-dig2

Each of them is slightly different in their settings. Another thing to try is to rebuild the driver with debug=detect. Then you can load it with "model=test". This will open up the controls more.

Tobin
 
Old 12-23-2006, 04:27 PM   #6
stelek
LQ Newbie
 
Registered: Dec 2006
Posts: 12

Original Poster
Rep: Reputation: 0
"lspci -s 0:1b -vn" gives me...

Quote:
00:1b.0 0403: 8086:2668 (rev 03)
Subsystem: 1043:814e
Flags: bus master, fast devsel, latency 0, IRQ 10
Memory at cfdf4000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Capabilities: [70] Express Unknown type IRQ 0
I will try the modes and post the results here...
 
Old 12-23-2006, 05:23 PM   #7
stelek
LQ Newbie
 
Registered: Dec 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Woohoo !!! The setting "model=asus" made a miracle for me. It works perfectly now. No more unneeded low frequencies. GrueMaster - thank you very much...

Now that I look at this, it is described in the ALSA Docs (in the sources). It seems that I was expecting that such thing would simply work from the beginning. Seems I was wrong...

Anyway - thank you very much again. Although I'm still not sure whether my audio is "asus-dig" or "asus-dig2", the important thing is that it works now

Now I only need to compile WineX and I can leave Windows for good
 
Old 12-25-2006, 08:32 PM   #8
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
Quote:
Although I'm still not sure whether my audio is "asus-dig" or "asus-dig2",
You will need to look at your system's rear panel. If you have an SPDIF Digital out port, it will be one of the two. For now, I'll change the driver so that you at least default to Asus instead of 5stack.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't adjust playback volume on HDA Intel card (Alsa 1.0.13, Linux 2.6.18.2) lithiumfx Linux - Laptop and Netbook 17 12-08-2006 05:26 PM
Intel HDA and ALSA problems SLaCk_KiD Linux - Software 0 09-22-2005 02:22 PM
Bad sound quality in Linux astrosapiens Linux - Hardware 4 04-06-2005 02:59 PM
SIS7012 aka Intel i8x0 sound card w. ALSA sounds bad wahwah Linux - Newbie 6 11-10-2003 05:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration