Skip to contentSkip to conversation

: ac97 codec is not found when loading the driver

ALSA - driver 0001435 [email protected] 1 participant 1 message Sep 19, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1435>
======================================================================

Reported By:                iluxa
Assigned To:                sashak
======================================================================
Project:                    ALSA - driver
Issue ID:                   1435
Category:                   PCI - atiixp-modem
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     assigned
Distribution:               
Kernel Version:             2.6.13, 2.6.14-rc1
======================================================================
Date Submitted:             09-19-2005 08:49 CEST
Last Modified:              09-20-2005 01:15 CEST

======================================================================
Summary: ac97 codec is not found when loading the driver
Description:
When loading snd-tiixp-modem _after_ loading snd-atiixp, I get a message saying
"atiixp-modem: no codec available" and modem doesn't function after that.

Little more investigation shown that snd_ac97_mixer thinks the codec is already
registered as sound codec by audio card driver.

I'v tried alsa-1.0.9, driver included in 2.6.13, 2.6.14-rc1 and drivers from CVS HEAD - all with same result.

======================================================================

----------------------------------------------------------------------
sashak - 09-20-05 01:06
----------------------------------------------------------------------
Yes, this codec looks like combined Audio-Modem codec (AMC), some modem registers (>= 3c) are represented too.

And I think that atiixp-modem fails to detect codec because detection procedure (interrupt driver) is "stolen" by audio driver. Try to unload both audio (snd-atiixp) and modem (snd-atiixp-modem) drivers, then load only atiixp-modem.

Other way to verify this hypothesis is to try with uploaded patch (to
apply: cd <alsa-dir> ; patch -p0 < atiixp-debug.patch ), then build (with '--with-debug=detect') and load both snd-atiixp, snd-atiixp-modem, dmesg should show that atiixp detects codec twice (second time when atiixp-modem is loaded).

----------------------------------------------------------------------
iluxa - 09-20-05 01:15
----------------------------------------------------------------------
Well, as far as failure to detect - it seems that both drivers notice this codec,
but whichever of them grabs it first, marks it as audio or modem codec respectively, and atiixp and atiixp-modem think that it is exclusive (they
call snd_ac97_mixer with ac97.scaps SKIP_AUDIO/SKIP_MODEM flag set)

I tried loading snd-atiixp-modem before snd-atiixp, and modem driver loaded, while
audio did not. Now, question is if there is anything that could be done to actuall
support modem (I don't think it actually worked even though it loaded fine by itself)

Issue History
Date Modified Username Field Change
======================================================================

09-19-05 08:49 iluxa          New Issue                                    
09-19-05 08:49 iluxa          Kernel Version            => 2.6.13, 2.6.14-rc1
09-19-05 13:27 sashak         Note Added: 0006292                          
09-19-05 19:32 iluxa          File Added: pci.txt                          
09-19-05 19:56 iluxa          File Added: comment.diff                     
09-19-05 19:57 iluxa          Note Added: 0006296                          
09-19-05 20:01 iluxa          File Added: atiixp.txt                       
09-19-05 20:01 iluxa          File Added: codec97_0_ac97_0-0.txt                
09-19-05 20:07 iluxa          Note Added: 0006298                          
09-19-05 23:30 sashak         File Deleted: comment.diff                    
09-19-05 23:38 sashak         Note Added: 0006304                          
09-19-05 23:41 iluxa          File Added: codec97_0_ac97_0-0+regs.txt           
09-19-05 23:44 iluxa          Note Added: 0006306                          
09-20-05 01:03 sashak         File Added: atiixp-debug.patch                    
09-20-05 01:06 sashak         Note Added: 0006307                          
09-20-05 01:15 iluxa          Note Added: 0006308                          

======================================================================

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php