From: Clemens Ladisch Date: Mon, 13 Jul 2009 11:28:21 +0000 (+0200) Subject: USB-Audio.conf: fix definition for M-Audio AudioPhile spdif device X-Git-Tag: v1.0.21~19 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=a9b1299556598fed12d0d42c80aaa933aced8a42;p=alsa-lib.git USB-Audio.conf: fix definition for M-Audio AudioPhile spdif device Add custom definitions for the AudioPhile "default" and "iec958" devices so that output and input are routed to the correct PCM device. Signed-off-by: Clemens Ladisch --- diff --git a/src/conf/cards/USB-Audio.conf b/src/conf/cards/USB-Audio.conf index d6fbec5d..5849e3f3 100644 --- a/src/conf/cards/USB-Audio.conf +++ b/src/conf/cards/USB-Audio.conf @@ -40,11 +40,48 @@ USB-Audio.pcm.iec958_device { # If a device requires non-standard definitions for front, surround40, # surround51, surround71 or iec958, they can be defined here. -# USB-Audio."NoiseBlaster 3000".pcm.surround51 { -# @args [ CARD ] -# @args.CARD { type string } -# ... -# } +# M-Audio AudioPhile USB: +# device 0: analog output, digital input +# device 1: digital output, analog input +USB-Audio."AudioPhile".pcm.default { + @args [ CARD ] + @args.CARD { type string } + type asym + playback.pcm { + type plug + slave.pcm { + type hw + card $CARD + device 0 + } + } + capture.pcm { + type plug + slave.pcm { + @func concat + strings [ "dsnoop:DEVICE=1,CARD=" $CARD ] + } + } +} +USB-Audio."AudioPhile".pcm.iec958 { + @args [ CARD AES0 AES1 AES2 AES3 ] + @args.CARD { type string } + @args.AES0 { type integer } + @args.AES1 { type integer } + @args.AES2 { type integer } + @args.AES3 { type integer } + type asym + playback.pcm { + type hw + card $CARD + device 1 + } + capture.pcm { + type hw + card $CARD + device 0 + } +} ################################################################################