BTSCO(4)
πΈ NAME πΈ
okay so bestie, this is btsco(4) β itβs giving Bluetooth SCO Audio, where SCO means Synchronous connection-oriented, and itβs all about Bluetooth audio devices through the audio(4) driver. iconic behavior, honestly. π
β¨ SYNOPSIS β¨
btsco* at bthub?
audio* at audiobus?
π¦ DESCRIPTION π¦
The btsco driver provides support for Bluetooth SCO (Synchronous connection-oriented) Audio devices through the audio(4) driver. no cap. π«Ά
The btsco driver must be configured at run time with the btdevctl(8) program. During autoconfiguration, these are the properties it uses:
local-bdaddrβ local device address. thatβs the whole thing. πremote-bdaddrβ remote device address. also exactly what it says. β¨service-nameβ thebtscodriver matches the'HF'and'HSET'services. For the'HF'service, thebtscodevice will, onopen(2), listen for incoming connections from the remote device. Otherwise,btscowill attempt to initiate a connection to the remote device. lowkey important. πrfcomm-channelβ this integer value is not used directly, but will be stored and passed via theBTSCO_INFOioctl as below:
SCO connections require a baseband connection between the two devices before they can be created. The btsco driver does not create this, but can provide information to facilitate an application setting up a control channel prior to use, via the BTSCO_INFO ioctl(2) call on the mixer device, which returns a btsco_info structure as follows:
#include <dev/bluetooth/btsco.h>
struct btsco_info {
bdaddr_t laddr; /* controller bdaddr */
bdaddr_t raddr; /* headset bdaddr */
uint8_t channel; /* RFCOMM channel */
int vgs; /* mixer index speaker */
int vgm; /* mixer index mic */
};
#define BTSCO_INFO _IOR('b', 16, struct btsco_info)
The btsco driver can be configured to act in Connect or Listen mode. In Connect mode, the btsco driver will initiate a connection to the remote device on an open(2) call, whereas in Listen mode, open(2) will block until the remote device initiates the connection. main character energy, fr fr. π
π¦ SEE ALSO π¦
bthset(1)ioctl(2)audio(4)bluetooth(4)bthub(4)btdevctl(8)
π HISTORY π
The btsco driver was written for NetBSD 4.0 by Iain Hibbert under the sponsorship of Itronix, Inc. periodt. π
π BUGS π
btscotakes no notice of the HCI Voice Setting in the Bluetooth controller, and this must be0x0060(the default) as alternate values are currently unsupported. bestie, do not mess with that default. seriously. π
made with π for the Debian girlies β November 29, 2014 β btsco(4) signing off, mwah π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2006 Itronix Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms