summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-04-04 09:51:11 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-04-04 09:51:11 +0000
commit5ad9e0ec87dd078dc2a4e70967f1e9ace1ebf43f (patch)
tree735ada5845275780ba1f83532d462c21574a0e85
parent31a3adbb73dd4b629b19d87157a1731758ddcaa1 (diff)
Add basic plugin code
-rw-r--r--audio/ctl_bluetooth.c12
-rw-r--r--audio/pcm_bluetooth.c12
2 files changed, 24 insertions, 0 deletions
diff --git a/audio/ctl_bluetooth.c b/audio/ctl_bluetooth.c
index 7e9755b8..511a1b24 100644
--- a/audio/ctl_bluetooth.c
+++ b/audio/ctl_bluetooth.c
@@ -24,3 +24,15 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
+
+#include <alsa/asoundlib.h>
+#include <alsa/control_external.h>
+
+SND_CTL_PLUGIN_DEFINE_FUNC(bluetooth)
+{
+ printf("Bluetooth control plugin\n");
+
+ return -EIO;
+}
+
+SND_CTL_PLUGIN_SYMBOL(bluetooth);
diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c
index 7e9755b8..b9f4f02c 100644
--- a/audio/pcm_bluetooth.c
+++ b/audio/pcm_bluetooth.c
@@ -24,3 +24,15 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
+
+#include <alsa/asoundlib.h>
+#include <alsa/pcm_external.h>
+
+SND_PCM_PLUGIN_DEFINE_FUNC(bluetooth)
+{
+ printf("Bluetooth PCM plugin\n");
+
+ return -EIO;
+}
+
+SND_PCM_PLUGIN_SYMBOL(bluetooth);