summaryrefslogtreecommitdiffstats
path: root/alsa/pcm_a2dp.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-05-18 14:06:11 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-05-18 14:06:11 +0000
commit350e6ad62c8f3c32dd15e368ff5519ac656992db (patch)
treee88af52a3556511ee765555966dc64cc9c0a9173 /alsa/pcm_a2dp.c
parentfd1420fe08910f599bbb3bc84840318d1b99f748 (diff)
Handle the plugin version field
Diffstat (limited to 'alsa/pcm_a2dp.c')
-rw-r--r--alsa/pcm_a2dp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/alsa/pcm_a2dp.c b/alsa/pcm_a2dp.c
index 9bab41ef..fcacce75 100644
--- a/alsa/pcm_a2dp.c
+++ b/alsa/pcm_a2dp.c
@@ -448,6 +448,10 @@ SND_PCM_PLUGIN_DEFINE_FUNC(a2dp)
a2dp->state = BT_CONNECTED;
}
+#ifdef SND_PCM_IOPLUG_VERSION
+ a2dp->io.version = SND_PCM_IOPLUG_VERSION;
+#endif
+
a2dp->io.name = "Bluetooth Advanced Audio Distribution";
a2dp->io.poll_fd = a2dp->sk;
a2dp->io.poll_events = POLLOUT;