summaryrefslogtreecommitdiff
path: root/sys/dev/bluetooth
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2008-11-25 17:28:04 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2008-11-25 17:28:04 +0000
commit0d7c529c1fca4687a5c9a31a6a9a3f93812bfb7b (patch)
treec094f3aaded78898e91050cf0dd291e4fc551680 /sys/dev/bluetooth
parent17802f86fb797ffa838268ca2fcb489f828721eb (diff)
fix: add output mixer class
Diffstat (limited to 'sys/dev/bluetooth')
-rw-r--r--sys/dev/bluetooth/btsco.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/dev/bluetooth/btsco.c b/sys/dev/bluetooth/btsco.c
index 1bb26c56b48..5519daee279 100644
--- a/sys/dev/bluetooth/btsco.c
+++ b/sys/dev/bluetooth/btsco.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: btsco.c,v 1.2 2008/11/25 17:25:53 ratchov Exp $ */
+/* $OpenBSD: btsco.c,v 1.3 2008/11/25 17:28:03 ratchov Exp $ */
/* $NetBSD: btsco.c,v 1.22 2008/08/06 15:01:23 plunky Exp $ */
/*-
@@ -998,7 +998,7 @@ btsco_query_devinfo(void *hdl, mixer_devinfo_t *di)
switch(di->index) {
case BTSCO_VGS:
- di->mixer_class = BTSCO_INPUT_CLASS;
+ di->mixer_class = BTSCO_OUTPUT_CLASS;
di->next = di->prev = AUDIO_MIXER_LAST;
strlcpy(di->label.name, AudioNspeaker,
sizeof(di->label.name));
@@ -1029,6 +1029,14 @@ btsco_query_devinfo(void *hdl, mixer_devinfo_t *di)
di->type = AUDIO_MIXER_CLASS;
break;
+ case BTSCO_OUTPUT_CLASS:
+ di->mixer_class = BTSCO_OUTPUT_CLASS;
+ di->next = di->prev = AUDIO_MIXER_LAST;
+ strlcpy(di->label.name, AudioCoutputs,
+ sizeof(di->label.name));
+ di->type = AUDIO_MIXER_CLASS;
+ break;
+
default:
err = ENXIO;
break;