LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-21-2004, 04:17 AM   #1
ministre
LQ Newbie
 
Registered: Jul 2003
Posts: 28

Rep: Reputation: 15
Alsa loads wrong driver when hotplug runs first


Hello,

I am running Slackware 10.0 distro with kernel 2.4.26

When I download, compile and install the latest source of alsa and after I run "alsaconf", the sound plays perfrectly. The mixer that I have access to is "Realtek ALC100/100P rev 38 [(Audio Mixer (OSS)]".

However, here is the problem. After installing alsa and everything works fine, I reboot my computer. After the reboot, the sound no longer works, the weird thing is that a new sound driver is installed and the mixer that I now have access to is "Bt87x [(Audio Mixer (OSS)]"

After some fiddling around, I figured that the problem is hotplug. On my computer I have a SiS sound card and I also have an ATI TV Wonder Ve TV Tuner. I think that when hotplug starts, it detects the audio chip that is on my TV tuner and afterwards alsa loads the audio drivers for the TV tuner instead.

I changed my init scripts so that hotplug does not get invoked anymore on system startup. Alsa works correctly, the correct sound driver is loaded and I can get sound again. However, my ethernet card is no longer detected. I need hotplug to run to get my ethernet to work.

I tried to change the hotplug scripts a bit (the file pci.rc) so that it only loads my ethernet card driver and no other drivers but I still could not get alsa to load the proper sound driver. Could someone please give me some advice ?

Below I have an output of my pci devices from lspci

====================================================
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 735 Host (rev 01)
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] Virtual PCI-to-PCI bridge (AGP)
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS85C503/5513 (LPC Bridge)00:02.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 07)
00:02.3 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 07)
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev d0)
00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] Sound Controller (rev a0)
00:03.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 90)
00:0f.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
00:0f.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 MX 440] (rev a3)
====================================================

Thanks
Richard
 
Old 11-21-2004, 04:05 PM   #2
Gary987
Member
 
Registered: Oct 2003
Distribution: Gentoo, Mint, Ubuntu, Vector
Posts: 174

Rep: Reputation: 17
Check out the pci.ids file @ /usr/share/misc/pci.ids

You could comment out the brooktree lines... but that would probably render your tv card useless...but perhaps you could scan for it later, or manually install it after the other card is "installed.".

When Alsa sets up it defines each card as card0 card1 in

/proc/asound/

Chances are your card has been configured by ALSA but the rest of your system is assuming that the 1st card found ie card0 is the card you want to use for sound...

The gentleman below may be able to help you as he changed his AdvancedCD application so it would find my nforce audio instead of my btaudio card.. but again I think it just removes the TV card altogether

Andrea Mazzoleni <amadvance@users.sourceforge.net>
(ask them really nice... very busy person )


Cheers,

Gary
 
Old 11-21-2004, 04:46 PM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Add lines to /etc/modules.conf that includes your sound, ethernet, video graphics, video capture, etc. Specify the index or card option for certain modules. If you want your on-board sound to be the first sound device specify index=0. If you want BT878 audio be the second device, specify index=1. You do not have to mess around with hotplug.
 
  


Reply



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
alsa loads manually but will not load in run level kawinter Linux - Software 4 09-17-2005 02:53 PM
cron.daily runs at the wrong time dwz3591 Linux - Software 2 10-27-2004 09:46 AM
wrong OHCI detection at hotplug Borelian Slackware 2 06-11-2004 03:24 PM
Alsa loads fine, but no sound :( flonejek Linux - Hardware 0 05-28-2004 09:00 AM
alsa and hotplug problems with linux 2.6 zaba Linux - Software 3 05-04-2004 11:51 AM

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

All times are GMT -5. The time now is 04:54 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