diff --git a/src/conf/pcm/Makefile.am b/src/conf/pcm/Makefile.am index 7576db1e..ee40974c 100644 --- a/src/conf/pcm/Makefile.am +++ b/src/conf/pcm/Makefile.am @@ -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 index 00000000..7e8150b8 --- /dev/null +++ b/src/conf/pcm/modem.conf @@ -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 + ] + } +}