]> git.alsa-project.org Git - alsa-lib.git/commitdiff
James Courtier-Dutton <James@superbug.demon.co.uk>:
authorTakashi Iwai <tiwai@suse.de>
Mon, 28 Jun 2004 10:26:45 +0000 (10:26 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 28 Jun 2004 10:26:45 +0000 (10:26 +0000)
AudigyLS now supports Digital(AC3)/Analog outputs. 5.1 Surround
PLAYBACK. MIC and LINE IN CAPTURE.

The MIC and LINE IN use the AC97 chip.

The AC97 uses the PLAYBACK(Not CAPTURE) controls in alsamixer for
controlling CAPTURE. Then, instead of sending that output to the
speakers, it sends it to the Philips 1361T ADC. This results in high
quality ADC conversion.
E.g. For LINE IN capture, set LINE IN playback volume and unmute it.
Set MASTER volume.
There is a new control for "CAPTURE feedback into PLAYBACK". If one does
not want any feedback, leave it at it's minimum.

Once I have figured out all the controls in the AC97 and what they do
for the AudigyLS, I will rename them so that they make sense to the user.

Please see attached patch files against the current CVS.

Still TODO:
1) Set multiple sample rates.
2) Add a CAPUTRE source switch for switch between "MIC", "Line in",
"SPDIF in", "TAD in", "AUX in" and "What u hear". Currently, one cannot
switch to capture "SPDIF in" or "What u hear", but all the other inputs
are possible via switches in the AC97.
3) Set multiple periods per buffer.
4) MIDI in/out.
5) Cleaner module unload.

src/conf/cards/AudigyLS.conf

index b08152bb924fad54dd0cf221c61424512b2d92c0..4e571c14f053aa948911ad0c06cee8aa4c4ff8f5 100644 (file)
@@ -23,7 +23,7 @@ AudigyLS.pcm.rear.0 {
        }
        type hw
        card $CARD
-       device 3
+       device 1
 }      
 
 <confdir:pcm/center_lfe.conf>
@@ -35,7 +35,7 @@ AudigyLS.pcm.center_lfe.0 {
        }
        type hw
        card $CARD
-       device 1
+       device 2
 }      
 
 <confdir:pcm/surround40.conf>
@@ -146,11 +146,18 @@ AudigyLS.pcm.iec958.0 {
        slave.pcm {
                type hw
                card $CARD
-               device 3
+               device 0
        }
        hooks.0 {
                type ctl_elems
                hook_args [
+                       {
+                               name "PCM Front Volume"
+                               index 0
+                               lock true
+                               preserve true
+                               value [ 207 207 ]   # Puts 0x30303030 in the Volume register. 0xff - 0x30 = 0xcf = 207
+                       }
                        {
                                name "Analog/Digital Output Jack"
                                lock true
@@ -159,7 +166,7 @@ AudigyLS.pcm.iec958.0 {
                        }
                        {
                                name "IEC958 Playback Default"
-                               index 0
+                               index 1
                                lock true
                                preserve true
                                value [ $AES0 $AES1 $AES2 $AES3 ]