mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-24 07:00:01 -05:00
Added missing iec958.conf.
Added defaults for iec958. Fixed slave type in IEC1712.conf. Corrected config file for CMI8738.
This commit is contained in:
parent
be8e3bb72d
commit
828562a5ee
4 changed files with 103 additions and 16 deletions
72
src/conf/pcm/iec958.conf
Normal file
72
src/conf/pcm/iec958.conf
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
#
|
||||
# Hardware output from iec958
|
||||
#
|
||||
|
||||
pcm.!iec958 {
|
||||
@args [ CARD DEV AES0 AES1 AES2 AES3 ]
|
||||
@args.CARD {
|
||||
type string
|
||||
default {
|
||||
@func getenv
|
||||
vars [
|
||||
ALSA_IEC958_CARD
|
||||
ALSA_PCM_CARD
|
||||
ALSA_CARD
|
||||
]
|
||||
default {
|
||||
@func refer
|
||||
name defaults.pcm.iec958.card
|
||||
}
|
||||
}
|
||||
}
|
||||
@args.DEV {
|
||||
type integer
|
||||
default {
|
||||
@func igetenv
|
||||
vars [
|
||||
ALSA_IEC958_DEVICE
|
||||
]
|
||||
default {
|
||||
@func refer
|
||||
name defaults.pcm.iec958.device
|
||||
}
|
||||
}
|
||||
}
|
||||
@args.AES0 {
|
||||
type integer
|
||||
# consumer, not-copyright, emphasis-none, mode=0
|
||||
default 0x04
|
||||
}
|
||||
@args.AES1 {
|
||||
type integer
|
||||
# original, PCM coder
|
||||
default 0x82
|
||||
}
|
||||
@args.AES2 {
|
||||
type integer
|
||||
# source and channel
|
||||
default 0x00
|
||||
}
|
||||
@args.AES3 {
|
||||
type integer
|
||||
# fs=48000Hz, clock accuracy=1000ppm
|
||||
default 0x02
|
||||
}
|
||||
@func refer
|
||||
name {
|
||||
@func concat
|
||||
strings [
|
||||
"cards."
|
||||
{
|
||||
@func card_strtype
|
||||
card $CARD
|
||||
}
|
||||
".pcm.iec958." $DEV ":"
|
||||
"CARD=" $CARD ","
|
||||
"AES0=" $AES0 ","
|
||||
"AES1=" $AES1 ","
|
||||
"AES2=" $AES2 ","
|
||||
"AES3=" $AES3
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue