summaryrefslogtreecommitdiffstats
path: root/sound/ac97/codec.c
diff options
context:
space:
mode:
authorRobert Jarzmik2017-09-02 21:54:04 +0200
committerMark Brown2017-09-04 19:24:56 +0200
commit74426fbff66eea8e8d1f42c8238c268d1e63a832 (patch)
tree98b6d36b8fc9f8059cbbb2114ce592dab5a94be7 /sound/ac97/codec.c
parentALSA: ac97: split out the generic ac97 registers (diff)
downloadkernel-qcow2-linux-74426fbff66eea8e8d1f42c8238c268d1e63a832.tar.gz
kernel-qcow2-linux-74426fbff66eea8e8d1f42c8238c268d1e63a832.tar.xz
kernel-qcow2-linux-74426fbff66eea8e8d1f42c8238c268d1e63a832.zip
ALSA: ac97: add an ac97 bus
AC97 is a bus for sound usage. It enables for a AC97 AC-Link to link one controller to 0 to 4 AC97 codecs. The goal of this new implementation is to implement a device/driver model for AC97, with an automatic scan of the bus and automatic discovery of AC97 codec devices. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Reviewed-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/ac97/codec.c')
-rw-r--r--sound/ac97/codec.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sound/ac97/codec.c b/sound/ac97/codec.c
new file mode 100644
index 000000000000..a835f03744bf
--- /dev/null
+++ b/sound/ac97/codec.c
@@ -0,0 +1,15 @@
+/*
+ * Copyright (C) 2016 Robert Jarzmik <robert.jarzmik@free.fr>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <sound/ac97_codec.h>
+#include <sound/ac97/codec.h>
+#include <sound/ac97/controller.h>
+#include <linux/device.h>
+#include <linux/slab.h>
+#include <sound/soc.h> /* For compat_ac97_* */
+