alsadir = $(datadir)/alsa/cards
-cfg_files = SI_7018.conf EMU10K1.conf
+cfg_files = SI_7018.conf EMU10K1.conf TRID4DWAVENX.conf
EXTRA_DIST = $(cfg_files)
alsa_DATA = $(cfg_files)
--- /dev/null
+pcm.iec958_0 {
+ @args [ CARD DEV AES0 AES1 AES2 AES3 ]
+ @args.CARD {
+ type integer
+ }
+ @args.DEV {
+ type integer
+ }
+ @args.AES0 {
+ type integer
+ }
+ @args.AES1 {
+ type integer
+ }
+ @args.AES2 {
+ type integer
+ }
+ @args.AES3 {
+ type integer
+ }
+ type hooks
+ slave.pcm {
+ type hw
+ card $(CARD)
+ device 2
+ }
+ hooks.0 {
+ type ctl_elems
+ hook_args [
+ {
+ interface PCM
+ name "IEC958 Playback PCM Stream"
+ value [ $(AES0) $(AES1) $(AES2) $(AES3) ]
+ device 2
+ lock true
+ preserve true
+ }
+ ]
+ }
+}
void snd_config_substitute(snd_config_t *dst, snd_config_t *src)
{
+ if (src->type == SND_CONFIG_TYPE_COMPOUND) {
+ snd_config_iterator_t i, next;
+ snd_config_for_each(i, next, src) {
+ snd_config_t *n = snd_config_iterator_entry(i);
+ n->father = dst;
+ }
+ src->u.compound.fields.next->prev = &dst->u.compound.fields;
+ src->u.compound.fields.prev->next = &dst->u.compound.fields;
+ }
free(dst->id);
- dst->id = src->id;
+ dst->id = src->id;
dst->type = src->type;
dst->u = src->u;
}