[ALSA] hda - Fix EAPD and COEF setups for realtek codecs
[safe/jmp/linux-2.6] / sound / pci / hda / hda_hwdep.c
index 64be7b5..6e18a42 100644 (file)
@@ -18,7 +18,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  */
 
-#include <sound/driver.h>
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/pci.h>
@@ -83,13 +82,13 @@ static int hda_hwdep_ioctl(struct snd_hwdep *hw, struct file *file,
 static int hda_hwdep_ioctl_compat(struct snd_hwdep *hw, struct file *file,
                                  unsigned int cmd, unsigned long arg)
 {
-       return hda_hwdep_ioctl(hw, file, cmd, compat_ptr(arg));
+       return hda_hwdep_ioctl(hw, file, cmd, (unsigned long)compat_ptr(arg));
 }
 #endif
 
 static int hda_hwdep_open(struct snd_hwdep *hw, struct file *file)
 {
-#ifndef CONFIG_SND_DEBUG_DETECT
+#ifndef CONFIG_SND_DEBUG_VERBOSE
        if (!capable(CAP_SYS_RAWIO))
                return -EACCES;
 #endif