]> git.alsa-project.org Git - alsa-lib.git/commitdiff
set/reset the surround-swap switch for 4 and 6 channel playback.
authorTakashi Iwai <tiwai@suse.de>
Tue, 25 Feb 2003 16:57:59 +0000 (16:57 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Feb 2003 16:57:59 +0000 (16:57 +0000)
src/conf/cards/VIA8233A.conf

index 4c632865f824e73bc71ca2143568e4735a916882..6db7bd686d60fadd88b6068c61c6fc5462b01c48 100644 (file)
@@ -16,11 +16,59 @@ VIA8233A.pcm.front.0 {
 
 <confdir:pcm/surround40.conf>
 
-VIA8233A.pcm.surround51.0 "cards.VIA8233A.pcm.surround40.0"
+VIA8233A.pcm.surround40.0 {
+       @args [ CARD ]
+       @args.CARD {
+               type string
+       }
+       type hooks
+       slave.pcm {
+               type hw
+               card $CARD
+               device 0
+       }
+       hooks.0 {
+               type ctl_elems
+               hook_args [
+                       {
+                               name "Swap Surround Slot"
+                               device 0
+                               lock true
+                               preserve true
+                               value flase
+                               optional true
+                       }
+               ]
+       }
+}
 
 <confdir:pcm/surround51.conf>
 
-VIA8233A.pcm.surround51.0 "cards.VIA8233A.pcm.surround40.0"
+VIA8233A.pcm.surround51.0 {
+       @args [ CARD ]
+       @args.CARD {
+               type string
+       }
+       type hooks
+       slave.pcm {
+               type hw
+               card $CARD
+               device 0
+       }
+       hooks.0 {
+               type ctl_elems
+               hook_args [
+                       {
+                               name "Swap Surround Slot"
+                               device 0
+                               lock true
+                               preserve true
+                               value true
+                               optional true
+                       }
+               ]
+       }
+}
 
 <confdir:pcm/iec958.conf>