summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-03-16 15:11:38 +0100
committerTakashi Iwai <tiwai@suse.de>2015-03-16 15:11:38 +0100
commit0d8d4e8a71596a7f4cc7ef63592e68ec36d52663 (patch)
tree3ea19fb79eafe98155292edd868bdb76c3ab44d1
parent8ac742dcd7305a3fba553f38dbe88087e2bef6e8 (diff)
downloadalsa-driver-build-unstable-0d8d4e8a71596a7f4cc7ef63592e68ec36d52663.tar.gz
Fix build for the recent HD-audio restructuring
Just refresh hda_beep.patch and add a build stub for hda_bind.c. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--alsa/pci/hda/hda_beep.patch14
-rw-r--r--alsa/pci/hda/hda_bind.c2
2 files changed, 7 insertions, 9 deletions
diff --git a/alsa/pci/hda/hda_beep.patch b/alsa/pci/hda/hda_beep.patch
index db153f468..06341a34c 100644
--- a/alsa/pci/hda/hda_beep.patch
+++ b/alsa/pci/hda/hda_beep.patch
@@ -1,5 +1,5 @@
---- ../../alsa-kernel/pci/hda/hda_beep.c 2014-02-28 14:04:36.379083709 +0100
-+++ hda_beep.c 2014-02-28 14:06:26.879910159 +0100
+--- ../../alsa-kernel/pci/hda/hda_beep.c 2015-03-16 14:56:38.666616076 +0100
++++ hda_beep.c 2015-03-16 15:06:17.428601095 +0100
@@ -1,3 +1,5 @@
+#define __NO_VERSION__
+#include "adriver.h"
@@ -50,23 +50,19 @@
if (!input_dev)
return -ENOMEM;
-@@ -168,8 +183,15 @@
+@@ -169,7 +184,11 @@
input_dev->evbit[0] = BIT_MASK(EV_SND);
input_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE);
input_dev->event = snd_hda_beep_event;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 22)
- input_dev->dev.parent = &codec->dev;
input_set_drvdata(input_dev, beep);
+#else
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 15)
-+ input_dev->cdev.dev = &codec->dev;
-+#endif
+ input_dev->private = beep;
+#endif /* 2.6.22 */
beep->dev = input_dev;
return 0;
-@@ -248,6 +270,7 @@
+@@ -275,6 +294,7 @@
if (!beep || !beep->dev)
return 0;
@@ -74,7 +70,7 @@
err = input_register_device(beep->dev);
if (err < 0) {
codec_err(codec, "hda_beep: unable to register input device\n");
-@@ -256,6 +279,9 @@
+@@ -283,6 +303,9 @@
kfree(beep);
return err;
}
diff --git a/alsa/pci/hda/hda_bind.c b/alsa/pci/hda/hda_bind.c
new file mode 100644
index 000000000..f72eaaa65
--- /dev/null
+++ b/alsa/pci/hda/hda_bind.c
@@ -0,0 +1,2 @@
+#include "adriver.h"
+#include "../../alsa-kernel/pci/hda/hda_bind.c"