http://qa.mandrakesoft.com/show_bug.cgi?id=2244





------- Additional Comments From [EMAIL PROTECTED]  2003-07-09 05:42 -------
> lspcidrake -v | fgrep AUDIO 
 
snd-via82xx     : VIA Technologies|VT82C686 [Apollo Super AC97/Audio] 
[MULTIMEDIA_AUDIO] (vendor:1106 device:3058 subv:1019 subd:0990) 
 
> /sbin/chkconfig --list sound 
sound           0:off   1:off   2:on    3:on    4:on    5:on    6:off 
 
> /sbin/chkconfig --list alsa  
alsa            0:off   1:off   2:off   3:off   4:off   5:off   6:off 
 
I would like to point out that the problem is _not_ in sound card detection. 
The detection is just fine. Its just that draksound must follow a strict 
policy of having exactly one driver per sound device.  
         
- During _reconfiguration_ of sound, if the user selects a different driver 
for the same sound device, the old entry (in /etc/modules.conf) must be 
deleted and then the new entry added. Otherwise, there will be two entries 
(like the example in this bug report) with different drivers for the same 
sound device. 
 
- During sound reconfiguration, it must check that the same sound device is 
not being mistakenly taken as a new one. This will avoid the multiple entries 
(one with sound-slot-0 and the other with sound-slot-1) for the same audio 
device.  
 
1. Basically, a nice way to do is to store the list of current PCI sound cards 
in the system. This can be done by: 
         
        lspci -n | grep "Class 0401" 
 
Store the "Vendor_number:device_number" in an array. The 1st element is for 
sound-slot-0, 2nd one for sound-slot-1 and so on. 
 
2. Next time, draksound is run, check if any of these sound devices has 
changed. By change, I mean: 
        - addition/removal of a card 
        - exchange of cards 
 
3. Every time /etc/modules.conf is modified for sound, make sure that there is 
only one driver per device: 
 
        alias sound-slot-$n driver_name 
        above driver_name snd-pcm-oss (if ALSA) 
         
Naturally, if the driver is changed, the entries for the earlier driver must 
be deleted as well. 

-- 
Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
status: NEEDINFO
creation_date: 
description: 
Using mandrake-9.1rc1. I have via686b on-board sound. The entries for sound 
in /etc/modules.conf are: 
 
above snd-via82xx snd-pcm-oss 
alias sound-slot-0 snd-via82xx 
alias sound-slot- via82cxxx_audio 
 
The 3rd entry is just plain wrong and should not be there.

Reply via email to