]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Added PS3 configuration
authorTakashi Iwai <tiwai@suse.de>
Thu, 5 Jul 2007 10:58:10 +0000 (12:58 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 5 Jul 2007 10:58:10 +0000 (12:58 +0200)
Added PS3 configuration.
No iec958 PCM at this stage since it doesn't support passthru yet.

src/conf/cards/Makefile.am
src/conf/cards/PS3.conf [new file with mode: 0644]

index 8677bca62f1e8b4f3920053b94e65a8ef404abde..7e4ab94fb2c030c012cd96598a5962ee80bd8b66 100644 (file)
@@ -35,6 +35,7 @@ cfg_files = aliases.conf \
        PC-Speaker.conf \
        PMac.conf \
        PMacToonie.conf \
+       PS3.conf \
        RME9636.conf \
        RME9652.conf \
        SI7018.conf \
diff --git a/src/conf/cards/PS3.conf b/src/conf/cards/PS3.conf
new file mode 100644 (file)
index 0000000..b7e30ff
--- /dev/null
@@ -0,0 +1,46 @@
+#
+# Configuration for PS3
+#
+
+<confdir:pcm/front.conf>
+
+PS3.pcm.front.0 {
+       @args [ CARD ]
+       @args.CARD {
+               type string
+       }
+       type softvol
+       slave.pcm {
+               type hw
+               card $CARD
+               device 0
+       }
+       control {
+               name "PCM Playback Volume"
+               card $CARD
+       }
+}      
+
+# default with dmix+softvol
+PS3.pcm.default {
+       @args [ CARD ]
+       @args.CARD {
+               type string
+       }
+       type asym
+       playback.pcm {
+               type plug
+               slave.pcm {
+                       type softvol
+                       slave.pcm {
+                               @func concat
+                                #strings [ "dmix:CARD=" $CARD ]
+                                strings [ "dmix:CARD=" $CARD ",FORMAT=S16" ]
+                       }
+                       control {
+                               name "PCM Playback Volume"
+                               card $CARD
+                       }
+               }
+       }
+}