Hello,

there's a bug introduced in the 1.25 revision of the file
"alsa-kernel/core/control.c" which is fixed with the attached patch.

Please apply :-)

Bye,

-- 
Arnaud
--- alsa-kernel/core/control.c  2003-01-13 10:49:43.000000000 +0100
+++ alsa-kernel/core/control.c  2003-02-28 13:27:58.000000000 +0100
@@ -714,15 +714,16 @@
                        return -EFAULT;
                if (!capable(CAP_SYS_ADMIN))
                        return -EPERM;
-               err = -ENOPROTOOPT;
 #ifdef CONFIG_PM
                if (card->set_power_state) {
                    snd_power_lock(card);
                    err = card->set_power_state(card, err);
                    snd_power_unlock(card);
                }
-#endif
                return err;
+#else
+               return -ENOPROTOOPT;
+#endif
        case SNDRV_CTL_IOCTL_POWER_STATE:
 #ifdef CONFIG_PM
                return put_user(card->power_state, (int *)arg) ? -EFAULT : 0;

Reply via email to