At Wed, 22 May 2002 23:15:36 +0200 (CEST),
tomasz motylewski wrote:
> 
> Another test with Takashi patch:
> 
> single codec installed, snd_dual_codec=1
> ALSA ../../alsa-kernel/pci/ac97/ac97_codec.c:1458: AC'97 1:0 does not respond -
> RESET [REC_GAIN = 0xffff]
> CS4281 soundcard not found or device busy
> 
> - this suggests autodetection should be possible.

yes.  but i think we can keep it as a module option, because, as
Thomas mentioned, there is almost no cards with dual codecs.


> 
> I have looked more on the hardware and found out that the clock signal on
> XTL_IN was too weak when the plate with additional codec was added. This signal
> is not connected to the secondary codec, but the length of the wire was enough
> to make it too weak.
> 
> After I fixed the problem the driver patched by Takashi actually loaded with
> snd_dual_codec=1 !

good to hear that :)

> I have seen:
> cat /proc/asound/card0/ac97#0
> 0-1/0: Cirrus Logic CS4299 rev 4
> 
> Capabilities     : -headphone out-
> DAC resolution   : 20-bit
> ADC resolution   : 18-bit
> 3D enhancement   : Crystal Semi 3D Stereo Enhancement
> 
> Current setup
> Mic gain         : +0dB [+0dB]
> POP path         : pre 3D
> Sim. stereo      : off
> 3D enhancement   : off
> Loudness         : off
> Mono output      : MIX
> Mic select       : Mic1
> ADC/DAC loopback : off
> Extended ID      : codec=3 rev=0 AMAP DSA=0 VRA
> Extended status  : VRA
> PCM front DAC    : 48000Hz
> PCM ADC          : 48000Hz
> 
> When I loaded the same driver with snd_dual_codec=0 I have got:
> 
> cat /proc/asound/card0/ac97#0
> 0-0/0: Cirrus Logic CS4299 rev 4
> 
> Capabilities     : -headphone out-
> DAC resolution   : 20-bit
> ADC resolution   : 18-bit
> 3D enhancement   : Crystal Semi 3D Stereo Enhancement
> 
> Current setup
> Mic gain         : +0dB [+0dB]
> POP path         : pre 3D
> Sim. stereo      : off
> 3D enhancement   : off
> Loudness         : off
> Mono output      : MIX
> Mic select       : Mic1
> ADC/DAC loopback : off
> Extended ID      : codec=0 rev=0 AMAP DSA=0 VRA
> Extended status  : VRA
> PCM front DAC    : 48000Hz
> PCM ADC          : 48000Hz
> 
> But why there was always only a single codec listed in /proc/asound/card0/ ?

oh, you hit a bug.
the second codec is not shown, because the primary and secondary codec
try to create the same file.
the attached patch will fix this problem.
the second codec will be shown in the file
/proc/asound/card0/ac97#0-1.

does alsamixer show entries for the second codec?
they must be there even without the patch below.


Takashi

Attachment: ac97-fix.dif
Description: Binary data

Reply via email to