summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-09-29 22:33:53 +0200
committerTakashi Iwai <tiwai@suse.de>2015-09-29 22:33:53 +0200
commitd1f08b5a6968a22e5b229aee9c75408f964ce432 (patch)
tree4e1a23c352277163ccf0375d64e25d4186c0bcdf
parent4abfe19b54cafb15001ab9e9c248d27a359342c4 (diff)
parent6b3a2350e7084acb6a1fd522c96a65020035ea81 (diff)
downloadalsa-driver-build-unstable-d1f08b5a6968a22e5b229aee9c75408f964ce432.tar.gz
Merge remote-tracking branch 'stable/build' into build
-rw-r--r--alsa/.gitignore1
-rw-r--r--alsa/firewire/amdtp-am824.c2
-rw-r--r--alsa/firewire/amdtp-stream.c2
-rw-r--r--alsa/firewire/dice/Makefile2
-rw-r--r--alsa/firewire/oxfw/Makefile2
-rw-r--r--alsa/pci/hda/Makefile3
-rw-r--r--alsa/pci/hda/patch_hdmi.c3
-rw-r--r--alsa/pci/hda/patch_hdmi.patch76
-rw-r--r--alsa/soc/sunxi/Makefile10
-rw-r--r--alsa/soc/sunxi/sun4i-codec.c2
10 files changed, 97 insertions, 6 deletions
diff --git a/alsa/.gitignore b/alsa/.gitignore
index 1c15e5086..4625a7999 100644
--- a/alsa/.gitignore
+++ b/alsa/.gitignore
@@ -115,6 +115,7 @@ pci/emu10k1/emu10k1x.c
pci/fm801.c
pci/hda/hda_beep.c
pci/hda/hda_intel.c
+pci/hda/patch_hdmi.c
pci/intel8x0.c
pci/korg1212/korg1212.c
pci/maestro3.c
diff --git a/alsa/firewire/amdtp-am824.c b/alsa/firewire/amdtp-am824.c
new file mode 100644
index 000000000..55f0ae014
--- /dev/null
+++ b/alsa/firewire/amdtp-am824.c
@@ -0,0 +1,2 @@
+#include "adriver.h"
+#include "../alsa-kernel/firewire/amdtp-am824.c"
diff --git a/alsa/firewire/amdtp-stream.c b/alsa/firewire/amdtp-stream.c
new file mode 100644
index 000000000..ee95a94f3
--- /dev/null
+++ b/alsa/firewire/amdtp-stream.c
@@ -0,0 +1,2 @@
+#include "adriver.h"
+#include "../alsa-kernel/firewire/amdtp-stream.c"
diff --git a/alsa/firewire/dice/Makefile b/alsa/firewire/dice/Makefile
index 552991816..95e82d827 100644
--- a/alsa/firewire/dice/Makefile
+++ b/alsa/firewire/dice/Makefile
@@ -1,5 +1,5 @@
ifndef SND_TOPDIR
-SND_TOPDIR=..
+SND_TOPDIR=../..
endif
include $(SND_TOPDIR)/toplevel.config
diff --git a/alsa/firewire/oxfw/Makefile b/alsa/firewire/oxfw/Makefile
index 20f1f93dc..a9df3e402 100644
--- a/alsa/firewire/oxfw/Makefile
+++ b/alsa/firewire/oxfw/Makefile
@@ -1,5 +1,5 @@
ifndef SND_TOPDIR
-SND_TOPDIR=..
+SND_TOPDIR=../..
endif
include $(SND_TOPDIR)/toplevel.config
diff --git a/alsa/pci/hda/Makefile b/alsa/pci/hda/Makefile
index 0be5bc577..7ec9fee4a 100644
--- a/alsa/pci/hda/Makefile
+++ b/alsa/pci/hda/Makefile
@@ -5,7 +5,7 @@ endif
include $(SND_TOPDIR)/toplevel.config
include $(SND_TOPDIR)/Makefile.conf
-clean-files := hda_intel.c hda_beep.c
+clean-files := hda_intel.c hda_beep.c patch_hdmi.c
EXTRA_CFLAGS += -I$(SND_TOPDIR)/alsa-kernel/pci/hda
@@ -24,3 +24,4 @@ include $(SND_TOPDIR)/Rules.make
hda_intel.c: hda_intel.patch $(SND_TOPDIR)/alsa-kernel/pci/hda/hda_intel.c
hda_beep.c: hda_beep.patch $(SND_TOPDIR)/alsa-kernel/pci/hda/hda_beep.c
+patch_hdmi.c: patch_hdmi.patch $(SND_TOPDIR)/alsa-kernel/pci/hda/patch_hdmi.c
diff --git a/alsa/pci/hda/patch_hdmi.c b/alsa/pci/hda/patch_hdmi.c
deleted file mode 100644
index 68d42a7b0..000000000
--- a/alsa/pci/hda/patch_hdmi.c
+++ /dev/null
@@ -1,3 +0,0 @@
-#define __NO_VERSION__
-#include "adriver.h"
-#include "../../alsa-kernel/pci/hda/patch_hdmi.c"
diff --git a/alsa/pci/hda/patch_hdmi.patch b/alsa/pci/hda/patch_hdmi.patch
new file mode 100644
index 000000000..3fd9f5632
--- /dev/null
+++ b/alsa/pci/hda/patch_hdmi.patch
@@ -0,0 +1,76 @@
+--- ../../alsa-kernel/pci/hda/patch_hdmi.c 2015-09-25 10:08:21.842439055 +0200
++++ patch_hdmi.c 2015-09-29 22:28:08.851217112 +0200
+@@ -1,3 +1,4 @@
++#include "adriver.h"
+ /*
+ *
+ * patch_hdmi.c - routines for HDMI/DisplayPort codecs
+@@ -38,7 +39,9 @@
+ #include <sound/asoundef.h>
+ #include <sound/tlv.h>
+ #include <sound/hdaudio.h>
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
+ #include <sound/hda_i915.h>
++#endif
+ #include "hda_codec.h"
+ #include "hda_local.h"
+ #include "hda_jack.h"
+@@ -147,8 +150,10 @@
+ struct hda_multi_out multiout;
+ struct hda_pcm_stream pcm_playback;
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
+ /* i915/powerwell (Haswell+/Valleyview+) specific */
+ struct i915_audio_component_audio_ops i915_audio_ops;
++#endif
+ };
+
+
+@@ -1802,7 +1807,9 @@
+ struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
+ hda_nid_t pin_nid = per_pin->pin_nid;
+ struct snd_pcm_runtime *runtime = substream->runtime;
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
+ struct i915_audio_component *acomp = codec->bus->core.audio_component;
++#endif
+ bool non_pcm;
+ int pinctl;
+
+@@ -1819,12 +1826,14 @@
+ intel_not_share_assigned_cvt(codec, pin_nid, per_pin->mux_idx);
+ }
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
+ /* Call sync_audio_rate to set the N/CTS/M manually if necessary */
+ /* Todo: add DP1.2 MST audio support later */
+ if (acomp && acomp->ops && acomp->ops->sync_audio_rate)
+ acomp->ops->sync_audio_rate(acomp->dev,
+ intel_pin2port(pin_nid),
+ runtime->rate);
++#endif
+
+ non_pcm = check_non_pcm_per_cvt(codec, cvt_nid);
+ mutex_lock(&per_pin->lock);
+@@ -2215,8 +2224,10 @@
+ struct hdmi_spec *spec = codec->spec;
+ int pin_idx;
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
+ if (is_haswell_plus(codec) || is_valleyview_plus(codec))
+ snd_hdac_i915_register_notifier(NULL);
++#endif
+
+ for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
+ struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
+@@ -2379,9 +2390,11 @@
+
+ if (is_haswell_plus(codec) || is_valleyview_plus(codec)) {
+ codec->depop_delay = 0;
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
+ spec->i915_audio_ops.audio_ptr = codec;
+ spec->i915_audio_ops.pin_eld_notify = intel_pin_eld_notify;
+ snd_hdac_i915_register_notifier(&spec->i915_audio_ops);
++#endif
+ }
+
+ if (hdmi_parse_codec(codec) < 0) {
diff --git a/alsa/soc/sunxi/Makefile b/alsa/soc/sunxi/Makefile
new file mode 100644
index 000000000..c7e6d3c5b
--- /dev/null
+++ b/alsa/soc/sunxi/Makefile
@@ -0,0 +1,10 @@
+ifndef SND_TOPDIR
+SND_TOPDIR=../..
+endif
+
+include $(SND_TOPDIR)/toplevel.config
+include $(SND_TOPDIR)/Makefile.conf
+
+include $(SND_TOPDIR)/alsa-kernel/soc/sunxi/Makefile
+
+include $(SND_TOPDIR)/Rules.make
diff --git a/alsa/soc/sunxi/sun4i-codec.c b/alsa/soc/sunxi/sun4i-codec.c
new file mode 100644
index 000000000..185c513e5
--- /dev/null
+++ b/alsa/soc/sunxi/sun4i-codec.c
@@ -0,0 +1,2 @@
+#include "adriver.h"
+#include "../../alsa-kernel/soc/sunxi/sun4i-codec.c"