From 381e3cda682abcef2acd7828e9639f4ceb95880f Mon Sep 17 00:00:00 2001 From: Doug McLain Date: Tue, 28 Feb 2006 11:53:06 +0100 Subject: [ALSA] ice1712 - Fix wordclock status on Delta1010LT Modules: ICE1712 driver I posted this patch to bug 1806 a while back, and have been awaiting a reply or commit. It currently reports the Locked/No Signal text backwards in envy24control, since i was using an older version of envy24control when I wrote the original code. The Locked/No Signal test was recently reversed in envy24control cvs, so the test in my code needs to be reversed as well. Here is the patch, once again. Signed-off-by: Takashi Iwai --- sound/pci/ice1712/delta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sound/pci') diff --git a/sound/pci/ice1712/delta.c b/sound/pci/ice1712/delta.c index 74c4d03720bb..465eeb50eb98 100644 --- a/sound/pci/ice1712/delta.c +++ b/sound/pci/ice1712/delta.c @@ -412,7 +412,7 @@ int snd_ice1712_delta1010lt_wordclock_status_get(struct snd_kcontrol *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 ? 0 : 1); + ucontrol->value.integer.value[0] = (reg ? 1 : 0); return 0; } -- cgit v1.2.3