summaryrefslogtreecommitdiff
path: root/sys/dev/bluetooth
diff options
context:
space:
mode:
authorisaki <isaki@NetBSD.org>2019-06-08 08:02:36 +0000
committerisaki <isaki@NetBSD.org>2019-06-08 08:02:36 +0000
commitedc8f0a62a02f8cbc0110110120dcbb6a78d8818 (patch)
treea3cc168b17f7a7c5d325d5dada52428663f43380 /sys/dev/bluetooth
parent4f0ab2b08193aee906df9b6b53b4fb8fc59289a0 (diff)
Clean get_props().
- Make get_props() return AUDIO_PROP_{PLAYBACK,CAPTURE} properly. This eliminates need for audio.c to take care of such (old) drivers which don't return both of PLAYBACK and CAPTURE. - All get_props() doesn't need to return AUDIO_PROP_MMAP. It is handled in the audio layer now.
Diffstat (limited to 'sys/dev/bluetooth')
-rw-r--r--sys/dev/bluetooth/btsco.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/bluetooth/btsco.c b/sys/dev/bluetooth/btsco.c
index d13f00a6240..cc4eb44c2c0 100644
--- a/sys/dev/bluetooth/btsco.c
+++ b/sys/dev/bluetooth/btsco.c
@@ -1,4 +1,4 @@
-/* $NetBSD: btsco.c,v 1.40 2019/05/25 04:41:53 isaki Exp $ */
+/* $NetBSD: btsco.c,v 1.41 2019/06/08 08:02:38 isaki Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: btsco.c,v 1.40 2019/05/25 04:41:53 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: btsco.c,v 1.41 2019/06/08 08:02:38 isaki Exp $");
#include <sys/param.h>
#include <sys/audioio.h>
@@ -1009,7 +1009,8 @@ static int
btsco_get_props(void *hdl)
{
- return AUDIO_PROP_FULLDUPLEX;
+ return AUDIO_PROP_PLAYBACK | AUDIO_PROP_CAPTURE |
+ AUDIO_PROP_FULLDUPLEX;
}
static void