diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-04-04 09:51:11 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-04-04 09:51:11 +0000 |
commit | 5ad9e0ec87dd078dc2a4e70967f1e9ace1ebf43f (patch) | |
tree | 735ada5845275780ba1f83532d462c21574a0e85 | |
parent | 31a3adbb73dd4b629b19d87157a1731758ddcaa1 (diff) |
Add basic plugin code
-rw-r--r-- | audio/ctl_bluetooth.c | 12 | ||||
-rw-r--r-- | audio/pcm_bluetooth.c | 12 |
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); |