LinuxQuestions.org
Help answer threads with 0 replies.
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 09-05-2007, 03:17 PM   #16
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30

Well, I'm glad to here that you have sound again, but until you decide to upgrade alsa to 1.0.15rc1 (or later) I won't be able to help. The alsa-info output you posted indicates that you are still on 1.0.14rc3, which is VERY old. It is also from an older kernel (2.6.21.5-smp).

Please try to understand that alsa development is at a far more rapid pace than the kernel is, and it's the kernel developers that have requested alsa to spin 1.0.15rc1 (it has over 60 patches to hda-intel since 1.0.14 final).

Tobin
 
Old 09-05-2007, 11:06 PM   #17
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Quote:
Originally Posted by GrueMaster View Post
This is the correct location. I can now access it and go forward. Here is a patch for you to try. It is against alsa-driver-1.0.15rc1. It adds specific support for your system, so after installing it, make sure you remove any "model=" references from your modprobe config files.

To apply the patch:
Code:
cd alsa-driver-1.0.15rc1/alsa-kernel/
patch -p1 <Dell-Vostro.patch  # you will need to enter the correct path to this patch
cd ..
./configure --with-cards=hda-intel && make && sudo make install
tajsandhu & Spinlock: Post the output from the above script for your machines, and I can add them as well.
Oops... I have been enjoying my system and forgot to post back here.

Just an update, i play with a few options on the model and try to figure which give the best performance, After a few trial, model=5stack is the best. If I set to 3stack, the output for "Surround" has not sound, but with 5stack, it works. I have not tried to do recording yet (I don't have a mic), but this is not that critical for me.

Do I need to regenerated the alsa-info again?
 
Old 09-06-2007, 07:24 PM   #18
Spinlock
Member
 
Registered: Jan 2006
Location: Missouri
Distribution: Slackware -current, Slackware64 -current, Slackware 12.2
Posts: 135

Rep: Reputation: 15
Hmm... well, I'm not entirely sure it'll make a difference, BUT... http://pastebin.ca/684796

I have 2.6.23-rc5 working perfectly now.
 
Old 09-07-2007, 02:27 AM   #19
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
This is a new link: http://pastebin.ca/685214

This time, is using model=5stack instead of earlier model=3stack.
 
Old 09-08-2007, 11:32 AM   #20
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
Ghostdancer: Please try the patch I sent you. I'd like to submit it upstream soon if it works better.

Spinlock: Your system is fully supported in the newer drivers. I'm not sure how far back, but I can definitely say that it is in alsa-driver-1.0.15rc1. I also know it wasn't in 1.0.14 final, but it may have been pulled in the newer kernel. If you are fully working, great. Otherwise, please try 1.0.15rc1.

Tobin
 
Old 09-10-2007, 02:40 AM   #21
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
I tried the patch, it gave:

Code:
Hunk #1 FAILED at 97.
Hunk #2 FAILED at 1061.
Hunk #3 FAILED at 1081.
Hunk #4 FAILED at 1112.
4 out of 4 hunks FAILED -- saving rejects to file /usr/src/a/pci/hda/patch_sigmatel.c.rej
 
Old 09-10-2007, 09:03 AM   #22
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
How did you apply the patch? To which version of alsa?

It needs to be applied to 1.0.15rc1 (or newer) with the following sequence:

cd alsa-driver-1.0.15rc1/alsa-kernel
patch -p1 < Dell-Vostro.patch
cd ..
./configure --with-cards=hda-intel && make && sudo make install


I have tested this patch against 1.0.15rc1 and know that it will apply.
 
Old 09-10-2007, 01:38 PM   #23
Spinlock
Member
 
Registered: Jan 2006
Location: Missouri
Distribution: Slackware -current, Slackware64 -current, Slackware 12.2
Posts: 135

Rep: Reputation: 15
GrueMaster-

Would upgrading alsa-lib and alsa-utils to 1.0.15rc1 make any difference to me? The way that Pat V. has done it appears to be using the kernel-based alsa driver, and compiling the alsa-utils, alsa-lib, and alsa-oss separately. I'm just curious if I'm missing out by updating the driver and not the rest. Thanks!
 
Old 09-11-2007, 12:11 PM   #24
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Quote:
Originally Posted by GrueMaster View Post

It needs to be applied to 1.0.15rc1 (or newer) with the following sequence:

cd alsa-driver-1.0.15rc1/alsa-kernel
patch -p1 < Dell-Vostro.patch
OK, my mistake was patch at the wrong path.

Quote:
Originally Posted by GrueMaster View Post
I have tested this patch against 1.0.15rc1 and know that it will apply.
It applied successfully. However, it does not fix sound problem. I still need to at model=5stack in order to get it working.
 
Old 09-16-2007, 12:35 PM   #25
funtoos
Member
 
Registered: Jun 2003
Location: US
Distribution: Gentoo AMD64, KDE 3.5
Posts: 35

Rep: Reputation: 15
For me (with Dell Ins 1520) 1.0.15RC2 works but the volume is very low even at 100 under alsamixer. What are the various models about? Can some one enlighten me, so I can choose the right parameters for this module?

Thanks a bunch!
 
Old 09-16-2007, 12:47 PM   #26
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
Currently, there are 4 models for the stac9205 to try: ref, dell-m42, dell-m43, and dell-m44.
 
Old 09-16-2007, 11:00 PM   #27
funtoos
Member
 
Registered: Jun 2003
Location: US
Distribution: Gentoo AMD64, KDE 3.5
Posts: 35

Rep: Reputation: 15
Two questions:

1. How do I know which model I have? 'lspci -v' doesn't return anything like stac9205.

2. What change exactly does a model bring?

Thanks for the helpful info!
 
Old 09-17-2007, 11:54 PM   #28
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
Quote:
1. How do I know which model I have? 'lspci -v' doesn't return anything like stac9205.
lspci -v may not tell you much, but for someone (like me) that knows the source code for the driver, it gives me a reference to look for. The hda-intel driver looks first at the main pci bus id's to see if there is an Intel HD Audio Controller. Several manufacturers have adopted this bus standard, so you don't necessarily have to have Intel silicon for this driver to work.

Once the driver determines that you have a compatible audio bus controller, it queries the bus to see what devices (codecs) are on it. The HD Audio Bus can have up to 15 devices, according to the bus specification, however only 4 are supported on current motherboards electrically. The driver then queries each device to determine what function group (audio, modem, HDMI, future definitions) it belongs to. Some codecs, namely Conexant's, have both audio and modem built into one physical chip.

Once the driver determines the function group for the chip, it also gets the chip's vendor ID to determine which "patch" of the driver it should load. At the end of each "patch_<vendor>.c" within the driver source tree, is an array defining what code is used for each codec ID. That branch of code then determines what presets and mixer controls (for some codecs) to use, based on the PCI subsystem ID (and we have now come full circle to the output of lspci -v). For example, lspci -v on my system (DP965LT) returns (shortened to the audio device only):
Quote:
00:1b.0 Audio device: Intel Corporation HD Audio Controller (rev 02)
Subsystem: Intel Corporation Unknown device 2111
Based on this, I know I have an Intel Audio subsystem ID 8086:2111 (vendor:device). I can then look in the patch_sigmatel.c (my motherboard specifications tell me this is the brand, as does line 1 from /proc/asound/card0/codec#*) and find that I have a predefined model of 3stack (matches the back panel output connectors for this motherboard).

Back to your question, this only can help you if your system has been added to the driver. Otherwise we (the developers) will need to add your system to the predefined model list based on "best fit" by testing the different models. Worst case, we need to add a model specific to your system vendor's idea of how an audio chip should be integrated (some vendors have multiple models for the same audio chip and the same number of connectors, all wired differently in each system - joy).

Quote:
2. What change exactly does a model bring?
In your case, by looking at the lspci -v output, I can look at the appropriate Windows driver (yes, I cheat a little) to see which INF file is associated with your specific configuration, then I can add the codec predefined settings from the Windows configuration into snd-hda-intel. In the case of the STAC9205, all currently known (by alsa developers) systems that use this codec are produced by Dell, and the "model" corresponds with the Windows driver config file (ex: dell-M42 corresponds with Dell's Windows driver using the configuration in 92XXM4-2.INI). If I knew what the actual output from your lspci -v (just for the audio bus - see example above), I could determine exaclty what model you should use, and add your system to the driver.


Sorry if this seems long winded, but I get asked this a lot, and I hope others will read this.
 
  


Reply

Tags
dell, driver, fedora, sigmatel, sound


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
My SigmaTel STAC9200 will not work theriddle Linux - Hardware 16 11-06-2007 10:48 AM
Absolutely no sound on Sigmatel / Intel FC6 Gateway steveywonderboy Linux - Newbie 14 08-26-2007 07:14 PM
sigmatel audio problems reddwarf1387 Linux - Hardware 2 02-09-2007 07:45 PM
FC6-x86_64: Soundless Tvtime on DG965RY mobo/using SigmaTel onboard chip Hitboxx Fedora 2 12-27-2006 09:29 AM
Sigmatel C-Major on FC4 adymroxx Linux - General 1 07-05-2005 03:06 PM


All times are GMT -5. The time now is 05:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration