aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-12-04 18:18:16 +0100
committerTakashi Iwai <tiwai@suse.de>2012-12-04 18:18:16 +0100
commitdd041e31d11ab3703b1d34109e944b644f7fcdf8 (patch)
tree76e06d9f59ae7fc36cbfdaba0ac62e69d2a3d1fa
parent2683fa197c831ad34b23263dcb091b9524856578 (diff)
downloadhda-emu-dd041e31d11ab3703b1d34109e944b644f7fcdf8.tar.gz
Change the kernel file management
Instead of symlinkin to each of kernel/*.c file, create a master symlink to $hdadir -> hda directory, and include each file from "../hda/xxx.c" in kernel/*.c file. This makes the kernel/ subdirectory more consistent. The configure script is modified for that, and also for defining the conditional for each patch_*.c so that kernel/Makefile.am can compile files selectively. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--.gitignore4
-rw-r--r--configure.ac134
-rw-r--r--hda-decode-pincfg.c2
-rw-r--r--hda-emu.c6
-rw-r--r--kernel/Makefile.am73
-rw-r--r--kernel/hda_auto_parser.c1
-rw-r--r--kernel/hda_beep.c1
-rw-r--r--kernel/hda_codec.c1
-rw-r--r--kernel/hda_eld.c1
-rw-r--r--kernel/hda_generic.c1
-rw-r--r--kernel/hda_hwdep.c1
-rw-r--r--kernel/hda_jack.c1
-rw-r--r--kernel/hda_own_proc.c1
-rw-r--r--kernel/hda_proc.c1
-rw-r--r--kernel/patch_analog.c1
-rw-r--r--kernel/patch_atihdmi.c1
-rw-r--r--kernel/patch_ca0110.c1
-rw-r--r--kernel/patch_ca0132.c1
-rw-r--r--kernel/patch_cirrus.c1
-rw-r--r--kernel/patch_cmedia.c1
-rw-r--r--kernel/patch_conexant.c1
-rw-r--r--kernel/patch_hdmi.c1
-rw-r--r--kernel/patch_intelhdmi.c1
-rw-r--r--kernel/patch_nvhdmi.c1
-rw-r--r--kernel/patch_realtek.c1
-rw-r--r--kernel/patch_si3054.c1
-rw-r--r--kernel/patch_sigmatel.c1
-rw-r--r--kernel/patch_via.c1
-rw-r--r--misc_wrapper.c4
-rw-r--r--snd-wrapper.c2
30 files changed, 124 insertions, 124 deletions
diff --git a/.gitignore b/.gitignore
index 5ab6918..a487bd5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,7 @@ hda-decode-verb
hda-encode-verb
hda-decode-pincfg
hda-encode-pincfg
+hda
.deps
INSTALL
Makefile
@@ -23,4 +24,5 @@ install-sh
libtool
ltmain.sh
missing
-kernel/*.[ch]
+kernel/misc_wrapper.c
+kernel/init_hooks.h
diff --git a/configure.ac b/configure.ac
index 63102a8..70e47e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,84 +60,29 @@ test -d "$hdadir" || \
test -f "$hdadir/hda_codec.c" || \
AC_ERROR([Invalid HD-audio directory: $hdadir])
-rm -f kernel/hda_*.h kernel/hda_*.c kernel/patch_*.c kernel/*_quirks.c
-ln -s $hdadir/hda_codec.c kernel
-ln -s $hdadir/hda_codec.h kernel
-ln -s $hdadir/hda_local.h kernel
-ln -s $hdadir/hda_generic.c kernel
-for i in hda_jack.c hda_jack.h hda_trace.h hda_auto_parser.c hda_auto_parser.h; do
- if test -f $hdadir/$i; then
- ln -s $hdadir/$i kernel
- else
- touch kernel/$i
- fi
-done
-for i in $hdadir/*_quirks.c; do
- test -f $i && ln -s $i kernel
-done
-
-AC_ARG_ENABLE(own-proc,
- AS_HELP_STRING([--enable-own-proc],
- [use own proc-file output function]),
- own_proc="$enableval", own_proc="no")
-if test "$own_proc" = "yes"; then
- rm -f kernel/hda_proc.c
- ln -s ../hda_own_proc.c kernel/hda_proc.c
-else
- ln -s $hdadir/hda_proc.c kernel
-fi
+rm -f hda
+ln -s $hdadir hda
else
dnl check existing kernel codes
-if ! test -f kernel/hda_codec.c; then
+if ! test -f hda/hda_codec.c; then
AC_ERROR([No HD-audio driver codes present in kernel directory; initialize via --with-hdadir])
fi
fi
-AC_DEFUN([CHECK_FILE], [
- AC_MSG_CHECKING(for file $1)
- if test -n "$hdadir"; then
- if test -f $hdadir/$1; then
- AC_MSG_RESULT(yes)
- ln -s $hdadir/$1 kernel
- AC_DEFINE($2)
- else
- AC_MSG_RESULT(no, creating dummy file)
- touch kernel/$1
- fi
- else
- if test -s kernel/$1; then
- AC_MSG_RESULT(yes)
- AC_DEFINE($2)
- else
- AC_MSG_RESULT(no, creating dummy file)
- touch kernel/$1
- fi
- fi
-])
-
AC_DEFUN([CHECK_CODEC], [
AC_MSG_CHECKING(for codec $1)
- if test -n "$hdadir"; then
- if test -f $hdadir/patch_$1.c; then
- AC_MSG_RESULT(yes)
- ln -s $hdadir/patch_$1.c kernel
- AC_DEFINE($2)
- else
- AC_MSG_RESULT(no, creating dummy file)
- touch kernel/patch_$1.c
- fi
+ if test -f hda/patch_$1.c; then
+ AC_MSG_RESULT(yes)
+ AC_DEFINE($2)
+ codec_found=yes
else
- if test -s kernel/patch_$1.c; then
- AC_MSG_RESULT(yes)
- AC_DEFINE($2)
- else
- AC_MSG_RESULT(no, creating dummy file)
- touch kernel/patch_$1.c
- fi
+ AC_MSG_RESULT(no)
+ codec_found=
fi
+ AM_CONDITIONAL($2, test "$codec_found" = "yes")
])
CHECK_CODEC(analog, CONFIG_SND_HDA_CODEC_ANALOG)
@@ -146,6 +91,7 @@ CHECK_CODEC(cmedia, CONFIG_SND_HDA_CODEC_CMEDIA)
CHECK_CODEC(conexant, CONFIG_SND_HDA_CODEC_CONEXANT)
CHECK_CODEC(intelhdmi, CONFIG_SND_HDA_CODEC_INTELHDMI)
CHECK_CODEC(nvhdmi, CONFIG_SND_HDA_CODEC_NVHDMI)
+CHECK_CODEC(hdmi, CONFIG_SND_HDA_CODEC_HDMI)
CHECK_CODEC(realtek, CONFIG_SND_HDA_CODEC_REALTEK)
CHECK_CODEC(sigmatel, CONFIG_SND_HDA_CODEC_SIGMATEL)
CHECK_CODEC(si3054, CONFIG_SND_HDA_CODEC_SI3054)
@@ -154,26 +100,24 @@ CHECK_CODEC(ca0110, CONFIG_SND_HDA_CODEC_CA0110)
CHECK_CODEC(ca0132, CONFIG_SND_HDA_CODEC_CA0132)
CHECK_CODEC(cirrus, CONFIG_SND_HDA_CODEC_CIRRUS)
-CHECK_FILE(hda_patch.h, HDA_PATCH_H)
-CHECK_FILE(hda_beep.c, CONFIG_SND_HDA_INPUT_BEEP)
-CHECK_FILE(hda_beep.h, CONFIG_SND_HDA_INPUT_BEEP)
-CHECK_FILE(hda_eld.c, CONFIG_SND_HDA_ELD)
-CHECK_FILE(patch_hdmi.c, CONFIG_SND_HDA_HDMI)
-
-AM_CONDITIONAL(UNIFIED_HDMI, grep -q module_init kernel/patch_hdmi.c)
+AC_ARG_ENABLE(own-proc,
+ AS_HELP_STRING([--enable-own-proc],
+ [use own proc-file output function]),
+ own_proc="$enableval", own_proc="no")
+AM_CONDITIONAL(USE_OWN_PROC, test "$own_proc" = "yes")
echo "Generating kernel/init_hooks.h..."
rm -f kernel/init_hooks.h
-cat kernel/patch_*.c | grep '^module_init(' | \
+cat hda/patch_*.c | grep '^module_init(' | \
sed -e's/^module_init(\(.*\))/void call_init_\1(void);/g' > kernel/init_hooks.h
echo 'static void gather_codec_hooks(void) {' >> kernel/init_hooks.h
-cat kernel/patch_*.c | grep '^module_init(' | \
+cat hda/patch_*.c | grep '^module_init(' | \
sed -e's/^module_init(\(.*\))/call_init_\1();/g' >> kernel/init_hooks.h
echo '}' >> kernel/init_hooks.h
AC_MSG_CHECKING(for presence of power_save option)
HAVE_POWER_SAVE=
-if grep -q 'snd_hda_power_up' kernel/hda_codec.h; then
+if grep -q 'snd_hda_power_up' hda/hda_codec.h; then
AC_MSG_RESULT(yes)
HAVE_POWER_SAVE=1
else
@@ -187,7 +131,7 @@ fi
if test "$HAVE_POWER_SAVE" = "1"; then
AC_MSG_CHECKING(for old power_save option)
OLD_POWER_SAVE=
-if grep -q '^static int power_save' kernel/hda_codec.c; then
+if grep -q '^static int power_save' hda/hda_codec.c; then
AC_MSG_RESULT(yes)
OLD_POWER_SAVE=1
else
@@ -208,7 +152,7 @@ AC_TRY_COMPILE([
#include <sound/driver.h>
#include <sound/core.h>
#include <sound/pcm.h>
-#include "kernel/hda_codec.h"
+#include "hda/hda_codec.h"
],[
extern struct hda_bus_ops *ops;
ops->command(NULL, 0, 0, 0, 0);
@@ -232,7 +176,7 @@ AC_TRY_COMPILE([
#include <sound/driver.h>
#include <sound/core.h>
#include <sound/pcm.h>
-#include "kernel/hda_codec.h"
+#include "hda/hda_codec.h"
],[
extern struct hda_bus_ops *ops;
ops->pm_notify(NULL, 0);
@@ -256,7 +200,7 @@ AC_TRY_COMPILE([
#include <sound/driver.h>
#include <sound/core.h>
#include <sound/pcm.h>
-#include "kernel/hda_codec.h"
+#include "hda/hda_codec.h"
],[
extern struct hda_bus_ops *ops;
ops->attach_pcm(NULL, NULL, NULL);
@@ -281,7 +225,7 @@ AC_TRY_COMPILE([
#include <sound/driver.h>
#include <sound/core.h>
#include <sound/pcm.h>
-#include "kernel/hda_codec.h"
+#include "hda/hda_codec.h"
],[
extern struct hda_bus_ops *ops;
ops->get_response(NULL, 1);
@@ -306,7 +250,7 @@ AC_TRY_COMPILE([
#include <sound/driver.h>
#include <sound/core.h>
#include <sound/pcm.h>
-#include "kernel/hda_codec.h"
+#include "hda/hda_codec.h"
],[
int err = snd_hda_codec_new(NULL, 0, NULL);
],
@@ -322,7 +266,7 @@ fi
HAVE_HDA_PATCH_LOADER=
if test "$OLD_HDA_CODEC_NEW" = "1"; then
AC_MSG_CHECKING(for hda-patch)
-if grep -q snd_hda_load_patch kernel/hda_codec.h; then
+if grep -q snd_hda_load_patch hda/hda_codec.h; then
AC_MSG_RESULT(yes)
HAVE_HDA_PATCH_LOADER=yes
AC_DEFINE(CONFIG_SND_HDA_RECONFIG)
@@ -344,7 +288,7 @@ AC_TRY_COMPILE([
#include <sound/driver.h>
#include <sound/core.h>
#include <sound/pcm.h>
-#include "kernel/hda_codec.h"
+#include "hda/hda_codec.h"
],[
struct hda_pcm pcm;
pcm.pcm_type = 0;
@@ -359,7 +303,7 @@ if test "$OLD_HDA_PCM" = "1"; then
fi
AC_MSG_CHECKING(for hda-reconfigure)
-if grep -q snd_hda_codec_configure kernel/hda_*.h; then
+if grep -q snd_hda_codec_configure hda/hda_*.h; then
AC_MSG_RESULT(yes)
HAVE_RECONFIG=yes
AC_DEFINE(CONFIG_SND_HDA_RECONFIG)
@@ -370,7 +314,7 @@ fi
if test "$HAVE_RECONFIG" = "yes"; then
AC_MSG_CHECKING(for user pin configs)
- if grep -q user_pins kernel/hda_codec.h; then
+ if grep -q user_pins hda/hda_codec.h; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_USER_PINCFGS)
else
@@ -380,7 +324,7 @@ fi
AC_MSG_CHECKING(for new quirk list)
NEW_QUIRK_LIST=
-if grep -q SND_PCI_QUIRK_MASK kernel/patch_sigmatel.c; then
+if grep -q SND_PCI_QUIRK_MASK hda/patch_sigmatel.c; then
AC_MSG_RESULT(yes)
NEW_QUIRK_LIST=1
else
@@ -400,7 +344,7 @@ AC_TRY_COMPILE([
#include <sound/driver.h>
#include <sound/core.h>
#include <sound/pcm.h>
-#include "kernel/hda_codec.h"
+#include "hda/hda_codec.h"
],[
struct hda_codec codec;
codec.pin_amp_workaround = 1;
@@ -424,7 +368,7 @@ AC_TRY_COMPILE([
#include <sound/driver.h>
#include <sound/core.h>
#include <sound/pcm.h>
-#include "kernel/hda_codec.h"
+#include "hda/hda_codec.h"
],[
struct hda_codec codec;
codec.function_id = 1;
@@ -440,7 +384,7 @@ fi
AC_MSG_CHECKING(for snd_ctl_boolean_mono_info definition)
HAVE_BOOLEAN_INFO=
-if grep -q snd_ctl_boolean_mono_info kernel/hda_local.h; then
+if grep -q snd_ctl_boolean_mono_info hda/hda_local.h; then
AC_MSG_RESULT(yes)
HAVE_BOOLEAN_INFO=1
else
@@ -460,7 +404,7 @@ AC_TRY_COMPILE([
#include <sound/driver.h>
#include <sound/core.h>
#include <sound/pcm.h>
-#include "kernel/hda_codec.h"
+#include "hda/hda_codec.h"
],[
snd_hda_suspend(NULL);
],
@@ -475,7 +419,7 @@ fi
HAVE_SND_HDA_JACK=
AC_MSG_CHECKING(for snd_hda_jack_xxx)
-if grep -q snd_hda_jack_free kernel/hda_codec.h; then
+if grep -q snd_hda_jack_free hda/hda_codec.h; then
AC_MSG_RESULT(yes)
HAVE_SND_HDA_JACK=yes
else
@@ -495,7 +439,7 @@ AC_TRY_COMPILE([
#include <sound/driver.h>
#include <sound/core.h>
#include <sound/pcm.h>
-#include "kernel/hda_codec.h"
+#include "hda/hda_codec.h"
],[
struct hda_spdif_out *spdif = snd_hda_spdif_out_of_nid(0, 0);
],
@@ -519,7 +463,7 @@ AC_TRY_COMPILE([
#include <sound/driver.h>
#include <sound/core.h>
#include <sound/pcm.h>
-#include "kernel/hda_codec.h"
+#include "hda/hda_codec.h"
],[
snd_hda_calc_stream_format(0, 0, 0, 0, 0);
],
@@ -535,7 +479,7 @@ fi
HAVE_COMMON_PREPARE=
AC_MSG_CHECKING(for common snd_hda_codec_prepare/cleanup)
-if grep -q snd_hda_codec_prepare kernel/hda_codec.h; then
+if grep -q snd_hda_codec_prepare hda/hda_codec.h; then
AC_MSG_RESULT(yes)
HAVE_COMMON_PREPARE=yes
else
@@ -547,7 +491,7 @@ fi
AC_MSG_CHECKING(for snd_hda_codec_get_pincfg)
HAVE_SND_HDA_CODEC_GET_PINCFG=
-if grep -q 'snd_hda_codec_get_pincfg' kernel/hda_codec.h; then
+if grep -q 'snd_hda_codec_get_pincfg' hda/hda_codec.h; then
AC_MSG_RESULT(yes)
HAVE_SND_HDA_CODEC_GET_PINCFG=1
else
diff --git a/hda-decode-pincfg.c b/hda-decode-pincfg.c
index 2c1754d..e829090 100644
--- a/hda-decode-pincfg.c
+++ b/hda-decode-pincfg.c
@@ -29,7 +29,7 @@
#include "hda-types.h"
#include "hda-log.h"
#include <sound/core.h>
-#include "kernel/hda_codec.h"
+#include "hda/hda_codec.h"
enum { DECODE, ENCODE };
diff --git a/hda-emu.c b/hda-emu.c
index df175ec..bef7e82 100644
--- a/hda-emu.c
+++ b/hda-emu.c
@@ -36,9 +36,9 @@
#include <sound/driver.h>
#include <sound/core.h>
#include <sound/pcm.h>
-#include "kernel/hda_codec.h"
-#include "kernel/hda_local.h"
-#include "kernel/hda_beep.h"
+#include "hda/hda_codec.h"
+#include "hda/hda_local.h"
+#include "hda/hda_beep.h"
#ifndef HAVE_POWER_SAVE
#define snd_hda_power_up(x)
diff --git a/kernel/Makefile.am b/kernel/Makefile.am
index 5f646cc..5bc843d 100644
--- a/kernel/Makefile.am
+++ b/kernel/Makefile.am
@@ -1,30 +1,61 @@
-PATCHES = \
- patch_analog.c \
- patch_cmedia.c \
- patch_conexant.c \
- patch_realtek.c \
- patch_si3054.c \
- patch_sigmatel.c \
- patch_via.c \
- patch_ca0110.c \
- patch_ca0132.c \
- patch_cirrus.c
-
-if UNIFIED_HDMI
+PATCHES =
+if CONFIG_SND_HDA_CODEC_ANALOG
+PATCHES += patch_analog.c
+endif
+if CONFIG_SND_HDA_CODEC_CMEDIA
+PATCHES += patch_cmedia.c
+endif
+if CONFIG_SND_HDA_CODEC_CONEXANT
+PATCHES += patch_conexant.c
+endif
+if CONFIG_SND_HDA_CODEC_REALTEK
+PATCHES += patch_realtek.c
+endif
+if CONFIG_SND_HDA_CODEC_SI3054
+PATCHES += patch_si3054.c
+endif
+if CONFIG_SND_HDA_CODEC_SIGMATEL
+PATCHES += patch_sigmatel.c
+endif
+if CONFIG_SND_HDA_CODEC_VIA
+PATCHES += patch_via.c
+endif
+if CONFIG_SND_HDA_CODEC_CA0110
+PATCHES += patch_ca0110.c
+endif
+if CONFIG_SND_HDA_CODEC_CA0132
+PATCHES += patch_ca0132.c
+endif
+if CONFIG_SND_HDA_CODEC_CIRRUS
+PATCHES += patch_cirrus.c
+endif
+if CONFIG_SND_HDA_CODEC_HDMI
PATCHES += patch_hdmi.c
+endif
+if CONFIG_SND_HDA_CODEC_ATIHDMI
+PATCHES += patch_atihdmi.c
+endif
+if CONFIG_SND_HDA_CODEC_INTELHDMI
+PATCHES += patch_intelhdmi.c
+endif
+if CONFIG_SND_HDA_CODEC_NVHDMI
+PATCHES += patch_nvhdmi.c
+endif
+
+if USE_OWN_PROC
+HELPERS = hda_own_proc.c
else
-PATCHES += patch_atihdmi.c \
- patch_intelhdmi.c \
- patch_nvhdmi.c
+HELPERS = hda_proc.c
endif
+# HELPERS += hda_beep.c
+
noinst_LIBRARIES = libhda.a
-libhda_a_SOURCES = hda_codec.c hda_generic.c hda_proc.c \
- hda_beep.c hda_eld.c hda_jack.c hda_auto_parser.c \
+libhda_a_SOURCES = hda_codec.c hda_generic.c \
+ hda_eld.c hda_jack.c hda_auto_parser.c \
misc_wrapper.c \
- $(PATCHES)
-noinst_HEADERS = hda_codec.h hda_local.h hda_beep.h hda_patch.h \
- init_hooks.h hda_auto_parser.h
+ $(PATCHES) $(HELPERS)
+noinst_HEADERS = init_hooks.h
INCLUDES = -I$(top_srcdir)/include
diff --git a/kernel/hda_auto_parser.c b/kernel/hda_auto_parser.c
new file mode 100644
index 0000000..419a6c6
--- /dev/null
+++ b/kernel/hda_auto_parser.c
@@ -0,0 +1 @@
+#include "../hda/hda_auto_parser.c"
diff --git a/kernel/hda_beep.c b/kernel/hda_beep.c
new file mode 100644
index 0000000..bc832fa
--- /dev/null
+++ b/kernel/hda_beep.c
@@ -0,0 +1 @@
+#include "../hda/hda_beep.c"
diff --git a/kernel/hda_codec.c b/kernel/hda_codec.c
new file mode 100644
index 0000000..a0319a5
--- /dev/null
+++ b/kernel/hda_codec.c
@@ -0,0 +1 @@
+#include "../hda/hda_codec.c"
diff --git a/kernel/hda_eld.c b/kernel/hda_eld.c
new file mode 100644
index 0000000..5d3ca6b
--- /dev/null
+++ b/kernel/hda_eld.c
@@ -0,0 +1 @@
+#include "../hda/hda_eld.c"
diff --git a/kernel/hda_generic.c b/kernel/hda_generic.c
new file mode 100644
index 0000000..065cc6a
--- /dev/null
+++ b/kernel/hda_generic.c
@@ -0,0 +1 @@
+#include "../hda/hda_generic.c"
diff --git a/kernel/hda_hwdep.c b/kernel/hda_hwdep.c
new file mode 100644
index 0000000..d1f71cd
--- /dev/null
+++ b/kernel/hda_hwdep.c
@@ -0,0 +1 @@
+#include "../hda/hda_hwdep.c"
diff --git a/kernel/hda_jack.c b/kernel/hda_jack.c
new file mode 100644
index 0000000..134015c
--- /dev/null
+++ b/kernel/hda_jack.c
@@ -0,0 +1 @@
+#include "../hda/hda_jack.c"
diff --git a/kernel/hda_own_proc.c b/kernel/hda_own_proc.c
new file mode 100644
index 0000000..7d855e5
--- /dev/null
+++ b/kernel/hda_own_proc.c
@@ -0,0 +1 @@
+#include "../hda_own_proc.c"
diff --git a/kernel/hda_proc.c b/kernel/hda_proc.c
new file mode 100644
index 0000000..c60e87a
--- /dev/null
+++ b/kernel/hda_proc.c
@@ -0,0 +1 @@
+#include "../hda/hda_proc.c"
diff --git a/kernel/patch_analog.c b/kernel/patch_analog.c
new file mode 100644
index 0000000..243c171
--- /dev/null
+++ b/kernel/patch_analog.c
@@ -0,0 +1 @@
+#include "../hda/patch_analog.c"
diff --git a/kernel/patch_atihdmi.c b/kernel/patch_atihdmi.c
new file mode 100644
index 0000000..60feb9c
--- /dev/null
+++ b/kernel/patch_atihdmi.c
@@ -0,0 +1 @@
+#include "../hda/patch_atihdmi.c"
diff --git a/kernel/patch_ca0110.c b/kernel/patch_ca0110.c
new file mode 100644
index 0000000..7e9e417
--- /dev/null
+++ b/kernel/patch_ca0110.c
@@ -0,0 +1 @@
+#include "../hda/patch_ca0110.c"
diff --git a/kernel/patch_ca0132.c b/kernel/patch_ca0132.c
new file mode 100644
index 0000000..23f11eb
--- /dev/null
+++ b/kernel/patch_ca0132.c
@@ -0,0 +1 @@
+#include "../hda/patch_ca0132.c"
diff --git a/kernel/patch_cirrus.c b/kernel/patch_cirrus.c
new file mode 100644
index 0000000..2373ea1
--- /dev/null
+++ b/kernel/patch_cirrus.c
@@ -0,0 +1 @@
+#include "../hda/patch_cirrus.c"
diff --git a/kernel/patch_cmedia.c b/kernel/patch_cmedia.c
new file mode 100644
index 0000000..d32b063
--- /dev/null
+++ b/kernel/patch_cmedia.c
@@ -0,0 +1 @@
+#include "../hda/patch_cmedia.c"
diff --git a/kernel/patch_conexant.c b/kernel/patch_conexant.c
new file mode 100644
index 0000000..f2d5570
--- /dev/null
+++ b/kernel/patch_conexant.c
@@ -0,0 +1 @@
+#include "../hda/patch_conexant.c"
diff --git a/kernel/patch_hdmi.c b/kernel/patch_hdmi.c
new file mode 100644
index 0000000..fd28435
--- /dev/null
+++ b/kernel/patch_hdmi.c
@@ -0,0 +1 @@
+#include "../hda/patch_hdmi.c"
diff --git a/kernel/patch_intelhdmi.c b/kernel/patch_intelhdmi.c
new file mode 100644
index 0000000..46b1f67
--- /dev/null
+++ b/kernel/patch_intelhdmi.c
@@ -0,0 +1 @@
+#include "../hda/patch_intelhdmi.c"
diff --git a/kernel/patch_nvhdmi.c b/kernel/patch_nvhdmi.c
new file mode 100644
index 0000000..61d56f8
--- /dev/null
+++ b/kernel/patch_nvhdmi.c
@@ -0,0 +1 @@
+#include "../hda/patch_nvhdmi.c"
diff --git a/kernel/patch_realtek.c b/kernel/patch_realtek.c
new file mode 100644
index 0000000..a99fa4e
--- /dev/null
+++ b/kernel/patch_realtek.c
@@ -0,0 +1 @@
+#include "../hda/patch_realtek.c"
diff --git a/kernel/patch_si3054.c b/kernel/patch_si3054.c
new file mode 100644
index 0000000..e9e22a2
--- /dev/null
+++ b/kernel/patch_si3054.c
@@ -0,0 +1 @@
+#include "../hda/patch_si3054.c"
diff --git a/kernel/patch_sigmatel.c b/kernel/patch_sigmatel.c
new file mode 100644
index 0000000..1fb2787
--- /dev/null
+++ b/kernel/patch_sigmatel.c
@@ -0,0 +1 @@
+#include "../hda/patch_sigmatel.c"
diff --git a/kernel/patch_via.c b/kernel/patch_via.c
new file mode 100644
index 0000000..77b171c
--- /dev/null
+++ b/kernel/patch_via.c
@@ -0,0 +1 @@
+#include "../hda/patch_via.c"
diff --git a/misc_wrapper.c b/misc_wrapper.c
index 1cfecfb..c04d5bf 100644
--- a/misc_wrapper.c
+++ b/misc_wrapper.c
@@ -1,6 +1,6 @@
#include <sound/core.h>
-#include "hda_codec.h"
-#include "hda_local.h"
+#include "../hda/hda_codec.h"
+#include "../hda/hda_local.h"
#if defined(CONFIG_SND_HDA_POWER_SAVE) && defined(CONFIG_SND_HDA_HWDEP)
int snd_hda_hwdep_add_power_sysfs(struct hda_codec *codec)
diff --git a/snd-wrapper.c b/snd-wrapper.c
index 7716e67..69cd19c 100644
--- a/snd-wrapper.c
+++ b/snd-wrapper.c
@@ -24,7 +24,7 @@
#include <sound/core.h>
#include <sound/pcm.h>
#include <assert.h>
-#include "kernel/hda_codec.h"
+#include "hda/hda_codec.h"
#include "hda-types.h"
#include "hda-log.h"