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 <clemens@ladisch.de>
This commit is contained in:
Clemens Ladisch 2009-07-13 13:28:21 +02:00
parent efda3e2bc7
commit a9b1299556

View file

@ -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
}
}
################################################################################