mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
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:
parent
efda3e2bc7
commit
a9b1299556
1 changed files with 42 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
################################################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue