Update of /cvsroot/alsa/alsa-kernel/pci/trident
In directory sc8-pr-cvs1:/tmp/cvs-serv3428
Modified Files:
trident_main.c
Log Message:
Fixed index for IEC958 controls
Index: trident_main.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/trident/trident_main.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- trident_main.c 28 Feb 2003 14:29:27 -0000 1.33
+++ trident_main.c 7 Mar 2003 15:12:38 -0000 1.34
@@ -3030,17 +3030,29 @@
kctl->put(kctl, &uctl);
}
if (trident->device == TRIDENT_DEVICE_ID_NX || trident->device ==
TRIDENT_DEVICE_ID_SI7018) {
+
if ((err = snd_ctl_add(card, kctl =
snd_ctl_new1(&snd_trident_spdif_control, trident))) < 0)
return err;
+ if (trident->ac97->ext_id & AC97_EI_SPDIF)
+ kctl->id.index++;
+ if (trident->ac97_sec && (trident->ac97_sec->ext_id & AC97_EI_SPDIF))
+ kctl->id.index++;
+ idx = kctl->id.index;
kctl->put(kctl, &uctl);
+
if ((err = snd_ctl_add(card, kctl =
snd_ctl_new1(&snd_trident_spdif_default, trident))) < 0)
return err;
+ kctl->id.index = idx;
kctl->id.device = pcm_spdif_device;
+
if ((err = snd_ctl_add(card, kctl =
snd_ctl_new1(&snd_trident_spdif_mask, trident))) < 0)
return err;
+ kctl->id.index = idx;
kctl->id.device = pcm_spdif_device;
+
if ((err = snd_ctl_add(card, kctl =
snd_ctl_new1(&snd_trident_spdif_stream, trident))) < 0)
return err;
+ kctl->id.index = idx;
kctl->id.device = pcm_spdif_device;
trident->spdif_pcm_ctl = kctl;
}
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog