]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Add config file for PC-Speaker driver
authorTakashi Iwai <tiwai@suse.de>
Mon, 31 Jan 2005 11:53:46 +0000 (11:53 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 31 Jan 2005 11:53:46 +0000 (11:53 +0000)
Added the config file for PC-Speaker driver (use dmix/null as default PCM)

src/conf/cards/Makefile.am
src/conf/cards/PC-Speaker.conf [new file with mode: 0644]

index a2fe1da19cc1a66b4df264e4c13815188c064229..372dfa1896fc999c5066db2b7a2139952116362b 100644 (file)
@@ -31,6 +31,7 @@ cfg_files = aliases.conf \
        ICH-MODEM.conf \
        Maestro3.conf \
        NFORCE.conf \
+       PC-Speaker.conf \
        RME9636.conf \
        RME9652.conf \
        SI7018.conf \
diff --git a/src/conf/cards/PC-Speaker.conf b/src/conf/cards/PC-Speaker.conf
new file mode 100644 (file)
index 0000000..9cae96b
--- /dev/null
@@ -0,0 +1,48 @@
+#
+# Configuration for PC-Speaker driver
+#
+
+<confdir:pcm/front.conf>
+
+PC-Speaker.pcm.front.0 {
+       @args [ CARD ]
+       @args.CARD {
+               type integer
+       }
+       type hw
+       card $CARD
+       device 0
+}      
+
+# default with dmix & null
+PC-Speaker.pcm.default {
+       @args [ CARD ]
+       @args.CARD {
+               type integer
+       }
+       type asym
+       playback.pcm {
+               type plug
+               slave.pcm {
+                       type dmix
+                       ipc_key 5678293
+                       ipc_key_add_uid yes
+                       slave {
+                               pcm {
+                                       type hw
+                                       card $CARD
+                               }
+                               period_time 0
+                               period_size 1024
+                               buffer_size 8192
+                               format S16_LE
+                               channels 1
+                               rate 37286
+                       }
+               }
+       }
+       capture.pcm {
+               type null
+       }
+}
+