2001-06-18 08:02:57 +00:00
|
|
|
#
|
2001-06-26 14:28:02 +00:00
|
|
|
# Configuration for the CMI8338/8738 chip (w/o multi-channel support)
|
2001-06-18 08:02:57 +00:00
|
|
|
#
|
|
|
|
|
|
2001-06-26 14:28:02 +00:00
|
|
|
<confdir:pcm/front.conf>
|
|
|
|
|
|
2001-06-24 23:16:17 +00:00
|
|
|
CMI8338.pcm.front.0 {
|
2001-06-19 10:36:31 +00:00
|
|
|
@args [ CARD ]
|
2001-06-18 08:02:57 +00:00
|
|
|
@args.CARD {
|
2001-06-19 11:52:50 +00:00
|
|
|
type string
|
2001-06-18 08:02:57 +00:00
|
|
|
}
|
|
|
|
|
type hw
|
2001-06-18 13:34:11 +00:00
|
|
|
card $CARD
|
2001-06-19 10:36:31 +00:00
|
|
|
device 0
|
2001-06-18 08:02:57 +00:00
|
|
|
}
|
|
|
|
|
|
2001-06-26 14:28:02 +00:00
|
|
|
<confdir:pcm/rear.conf>
|
|
|
|
|
|
2001-06-24 23:16:17 +00:00
|
|
|
# 2nd DAC
|
|
|
|
|
# FIXME: we need a volume attenuator for rear channel.
|
|
|
|
|
CMI8338.pcm.rear.0 {
|
2001-06-18 08:02:57 +00:00
|
|
|
@args [ CARD ]
|
|
|
|
|
@args.CARD {
|
2001-06-19 11:52:50 +00:00
|
|
|
type string
|
2001-06-18 08:02:57 +00:00
|
|
|
}
|
|
|
|
|
type hw
|
2001-06-18 13:34:11 +00:00
|
|
|
card $CARD
|
2001-06-24 23:16:17 +00:00
|
|
|
device 1
|
|
|
|
|
}
|
2001-06-21 13:41:50 +00:00
|
|
|
|
2001-06-26 14:28:02 +00:00
|
|
|
<confdir:pcm/surround40.conf>
|
|
|
|
|
|
2001-06-24 23:16:17 +00:00
|
|
|
# for the old CM8738 with 2nd DAC for rear
|
|
|
|
|
CMI8338.pcm.surround40.0 {
|
2001-06-18 08:02:57 +00:00
|
|
|
@args [ CARD ]
|
|
|
|
|
@args.CARD {
|
2001-06-19 11:52:50 +00:00
|
|
|
type string
|
2001-06-18 08:02:57 +00:00
|
|
|
}
|
|
|
|
|
type multi
|
2001-06-24 23:16:17 +00:00
|
|
|
master 1
|
2001-06-18 08:02:57 +00:00
|
|
|
slaves [
|
|
|
|
|
{
|
|
|
|
|
pcm {
|
|
|
|
|
@func concat
|
|
|
|
|
strings [
|
2001-06-24 23:16:17 +00:00
|
|
|
"cards.CMI8338.pcm.front.0:CARD=" $CARD
|
2001-06-18 08:02:57 +00:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
channels 2
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
pcm {
|
|
|
|
|
@func concat
|
|
|
|
|
strings [
|
2001-06-24 23:16:17 +00:00
|
|
|
"cards.CMI8338.pcm.rear.0:CARD=" $CARD
|
2001-06-18 08:02:57 +00:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
channels 2
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
bindings [
|
|
|
|
|
{ slave 0 channel 0 }
|
|
|
|
|
{ slave 0 channel 1 }
|
|
|
|
|
{ slave 1 channel 0 }
|
|
|
|
|
{ slave 1 channel 1 }
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2001-06-26 14:28:02 +00:00
|
|
|
<confdir:pcm/iec958.conf>
|
2001-06-21 13:41:50 +00:00
|
|
|
|
2001-06-24 23:16:17 +00:00
|
|
|
CMI8338.pcm.iec958.0 {
|
2002-11-07 20:06:11 +00:00
|
|
|
@args [ CARD AES0 AES1 AES2 AES3 ]
|
2001-06-18 08:02:57 +00:00
|
|
|
@args.CARD {
|
2001-06-19 11:52:50 +00:00
|
|
|
type string
|
2001-06-18 08:02:57 +00:00
|
|
|
}
|
|
|
|
|
@args.AES0 {
|
|
|
|
|
type integer
|
|
|
|
|
}
|
|
|
|
|
@args.AES1 {
|
|
|
|
|
type integer
|
|
|
|
|
}
|
|
|
|
|
@args.AES2 {
|
|
|
|
|
type integer
|
|
|
|
|
}
|
|
|
|
|
@args.AES3 {
|
|
|
|
|
type integer
|
|
|
|
|
}
|
2004-01-26 15:56:42 +00:00
|
|
|
type asym
|
|
|
|
|
playback.pcm {
|
|
|
|
|
type hooks
|
|
|
|
|
slave.pcm {
|
|
|
|
|
type hw
|
|
|
|
|
card $CARD
|
|
|
|
|
device 2
|
|
|
|
|
}
|
|
|
|
|
hooks.0 {
|
|
|
|
|
type ctl_elems
|
|
|
|
|
hook_args [
|
|
|
|
|
{
|
|
|
|
|
interface PCM
|
|
|
|
|
name "IEC958 Playback PCM Stream"
|
|
|
|
|
device 2
|
|
|
|
|
lock true
|
|
|
|
|
preserve true
|
|
|
|
|
value [ $AES0 $AES1 $AES2 $AES3 ]
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name "IEC958 Loop"
|
|
|
|
|
lock true
|
|
|
|
|
preserve true
|
|
|
|
|
value off
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
capture.pcm {
|
2001-06-26 14:28:02 +00:00
|
|
|
type hw
|
|
|
|
|
card $CARD
|
|
|
|
|
device 2
|
|
|
|
|
}
|
2001-06-18 08:02:57 +00:00
|
|
|
}
|