Skip to contentSkip to conversation

Word clocks in envy24control

DISCUSSION Ludwig Schwardt 2 participants 2 messages Feb 19, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I see in the envy24control code that only the Delta 1010 is allowed to have a word clock option as Master Clock. I have the Delta 1010-LT and according to the documentation it definitely supports a word clock. Is this restriction in envy24control an ALSA ice1712 driver thing (as I don't see such options with amixer either), or can the option simply be enabled for my card as well?

Thanks,
Ludwig Schwardt

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

#1 lore raw
Quoted 7 lines · Ludwig Schwardt

I see in the envy24control code that only the Delta 1010 is allowed to have a word clock option as Master Clock. I have the Delta 1010-LT and according to the documentation it definitely supports a word clock. Is this restriction in envy24control an ALSA ice1712 driver thing (as I don't see such options with amixer either), or can the option simply be enabled for my card as well?

It's envy24control bug. Here is the patch:

Index: hardware.c
===================================================================
RCS file: /cvsroot/alsa/alsa-tools/envy24control/hardware.c,v retrieving revision 1.12

hardware.c +6 -3
diff -u -r1.12 hardware.c
@@ -45,7 +45,8 @@
 	
 	if ((err = snd_ctl_elem_read(ctl, internal_clock)) < 0)
 		g_print("Unable to read Internal Clock state: %s\n", snd_strerror(err));
-	if (card_eeprom.subvendor == ICE1712_SUBDEVICE_DELTA1010) {
+	if (card_eeprom.subvendor == ICE1712_SUBDEVICE_DELTA1010 ||
+	    card_eeprom.subvendor == ICE1712_SUBDEVICE_DELTA1010LT) {
 		if ((err = snd_ctl_elem_read(ctl, word_clock_sync)) < 0)
 			g_print("Unable to read word clock sync selection: %s\n", snd_strerror(err));
 	}
@@ -78,7 +79,8 @@
 {
 	int err;
 
-	if (card_eeprom.subvendor != ICE1712_SUBDEVICE_DELTA1010)
+	if (card_eeprom.subvendor != ICE1712_SUBDEVICE_DELTA1010 &&
+	    card_eeprom.subvendor != ICE1712_SUBDEVICE_DELTA1010LT)
 		return;
 	snd_ctl_elem_value_set_boolean(word_clock_sync, 0, on ? 1 : 0);
 	if ((err = snd_ctl_elem_write(ctl, word_clock_sync)) < 0)
@@ -169,7 +171,8 @@
 	
 	if ((err = snd_ctl_elem_read(ctl, internal_clock)) < 0)
 		g_print("Unable to read Internal Clock state: %s\n", snd_strerror(err));
-	if (card_eeprom.subvendor == ICE1712_SUBDEVICE_DELTA1010) {
+	if (card_eeprom.subvendor == ICE1712_SUBDEVICE_DELTA1010 ||
+	    card_eeprom.subvendor == ICE1712_SUBDEVICE_DELTA1010LT) {
 		if ((err = snd_ctl_elem_read(ctl, word_clock_sync)) < 0)
 			g_print("Unable to read word clock sync selection: %s\n", snd_strerror(err));
 	}

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click