-static int snd_ice1712_delta1010lt_wordclock_status_info(struct snd_kcontrol *kcontrol,
- struct snd_ctl_elem_info *uinfo)
-{
- uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
- uinfo->count = 1;
- uinfo->value.integer.min = 0;
- uinfo->value.integer.max = 1;
- return 0;
-}
-
-static int snd_ice1712_delta1010lt_wordclock_status_get(struct snd_kcontrol *kcontrol,
- struct snd_ctl_elem_value *ucontrol)
-{
- char reg = 0x10; // cs8427 receiver error register
- struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
-
- if (snd_i2c_sendbytes(ice->cs8427, ®, 1) != 1)
- snd_printk(KERN_ERR "unable to send register 0x%x byte to CS8427\n", reg);
- snd_i2c_readbytes(ice->cs8427, ®, 1);
- ucontrol->value.integer.value[0] = (reg ? 1 : 0);
- return 0;
-}
-
-static struct snd_kcontrol_new snd_ice1712_delta1010lt_wordclock_status __devinitdata =
-{
- .access = (SNDRV_CTL_ELEM_ACCESS_READ),
- .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
- .name = "Word Clock Status",
- .info = snd_ice1712_delta1010lt_wordclock_status_info,
- .get = snd_ice1712_delta1010lt_wordclock_status_get,
-};