]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Added the definition of modem PCM type
authorTakashi Iwai <tiwai@suse.de>
Mon, 12 Jul 2004 16:21:29 +0000 (16:21 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Jul 2004 16:21:29 +0000 (16:21 +0000)
src/conf/pcm/Makefile.am
src/conf/pcm/modem.conf [new file with mode: 0644]

index 7576db1e1dfb015b3211c7a9568e4034e1593fb5..ee40974cd6f5158f0a3ce6f7800014fa26459a45 100644 (file)
@@ -1,7 +1,7 @@
 cfg_files = front.conf rear.conf center_lfe.conf side.conf\
            surround40.conf surround41.conf \
            surround50.conf surround51.conf \
-           surround71.conf iec958.conf
+           surround71.conf iec958.conf modem.conf
 
 EXTRA_DIST = $(cfg_files)
 
diff --git a/src/conf/pcm/modem.conf b/src/conf/pcm/modem.conf
new file mode 100644 (file)
index 0000000..7e8150b
--- /dev/null
@@ -0,0 +1,47 @@
+#
+# Modem output
+#
+
+pcm.!modem {
+       @args [ CARD DEV ]
+       @args.CARD {
+               type string
+               default {
+                       @func getenv
+                       vars [
+                               ALSA_MODEM_CARD
+                               ALSA_PCM_CARD
+                               ALSA_CARD
+                       ]
+                       default {
+                               @func refer
+                               name defaults.pcm.modem.card
+                       }
+               }
+       }
+       @args.DEV {
+               type integer
+               default {
+                       @func igetenv
+                       vars [
+                               ALSA_MODEM_DEVICE
+                       ]
+                       default {
+                               @func refer
+                               name defaults.pcm.modem.device
+                       }
+               }
+       }
+       @func refer
+       name {
+               @func concat
+               strings [
+                       "cards."
+                       {
+                               @func card_driver
+                               card $CARD
+                       }
+                       ".pcm.modem." $DEV ":CARD=" $CARD
+               ]
+       }
+}