@@ -1,20 +1,21 @@
-snd-hda-controller-objs := hda_controller.o
-snd-hda-codec-y := hda_codec.o hda_jack.o hda_auto_parser.o \
- hda_eld.o hda_sysfs.o
-
-snd-hda-codec-$(CONFIG_PROC_FS) += hda_proc.o
-snd-hda-codec-$(CONFIG_SND_HDA_HWDEP) += hda_hwdep.o
-snd-hda-codec-$(CONFIG_SND_HDA_INPUT_BEEP) += hda_beep.o
+ccflags-y += -Werror
+ccflags-y += -DDEBUG
+snd-hdalib-controller-objs := hdalib_controller.o
+snd-hdalib-codec-y := hdalib_codec.o hdalib_jack.o hdalib_auto_parser.o \
+hdalib_eld.o hdalib_sysfs.o
+snd-hdalib-codec-$(CONFIG_PROC_FS) += hdalib_proc.o
+snd-hdalib-codec-$(CONFIG_SND_HDA_HWDEP) += hdalib_hwdep.o
+snd-hdalib-codec-$(CONFIG_SND_HDA_INPUT_BEEP) += hdalib_beep.o
# for trace-points
-CFLAGS_hda_controller.o := -I$(src)
-CFLAGS_hda_codec.o := -I$(src)
+CFLAGS_hdalib_controller.o := -I$(src)
+CFLAGS_hdalib_codec.o := -I$(src)
-snd-hda-codec-generic-objs := hda_generic.o
+snd-hdalib-codec-generic-objs := hdalib_generic.o
# common driver
-obj-$(CONFIG_SND_CORE_HDA) += snd-hda-codec.o
-obj-$(CONFIG_SND_CORE_HDA) += snd-hda-controller.o
+obj-$(CONFIG_SND_CORE_HDA) += snd-hdalib-codec.o
+obj-$(CONFIG_SND_CORE_HDA) += snd-hdalib-controller.o
# codec drivers
-obj-$(CONFIG_SND_CORE_HDA_GENERIC) += snd-hda-codec-generic.o
+obj-$(CONFIG_SND_CORE_HDA_GENERIC) += snd-hdalib-codec-generic.o