summaryrefslogtreecommitdiffstats
path: root/alsa
diff options
context:
space:
mode:
Diffstat (limited to 'alsa')
-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;