From a58a42378fe7bec58c8835b2627ade21568ab5e7 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 19 Feb 2004 10:44:53 +0000 Subject: [PATCH] Delta1010LT has wordclock too --- envy24control/hardware.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/envy24control/hardware.c b/envy24control/hardware.c index fe7bee9..c648623 100644 --- a/envy24control/hardware.c +++ b/envy24control/hardware.c @@ -45,7 +45,8 @@ void master_clock_update(void) 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 @@ static void master_clock_word_select(int on) { 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 @@ gint internal_clock_status_timeout_callback(gpointer data) 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)); } -- 2.47.1