Skip to content

Commit 1a2aa6b

Browse files
committed
manual page for a2dpconf utility
1 parent 7d109cd commit 1a2aa6b

File tree

3 files changed

+103
-3
lines changed

3 files changed

+103
-3
lines changed

doc/Makefile.am

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ if ENABLE_RFCOMM
2323
man1_MANS += bluealsa-rfcomm.1
2424
endif
2525

26+
if ENABLE_A2DPCONF
27+
man1_MANS += a2dpconf.1
28+
endif
29+
2630
if ENABLE_HCITOP
2731
man1_MANS += hcitop.1
2832
endif

doc/a2dpconf.1.rst

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
========
2+
a2dpconf
3+
========
4+
5+
----------------------------------------
6+
Decode A2DP codec capability hex strings
7+
----------------------------------------
8+
9+
:Date: September 2024
10+
:Manual section: 1
11+
:Manual group: General Commands Manual
12+
:Version: $VERSION$
13+
14+
SYNOPSIS
15+
========
16+
17+
**a2dpconf** [*OPTION*]... <[*CODEC*:]*CONFIG*>...
18+
19+
DESCRIPTION
20+
===========
21+
22+
**a2dpconf** presents the fields of the given A2DP codec *CONFIG* in a
23+
human-readable format. *CODEC* is the name of the relevant codec, and *CONFIG*
24+
is the hexadecimal encoding of the configuration or capabilities binary "blob"
25+
as reported by tools such as ``bluealsactl(1)`` or the debug output of
26+
``bluealsad(8)``.
27+
(see `EXAMPLES`_ below).
28+
29+
OPTIONS
30+
=======
31+
32+
-h, --help
33+
Print this help and exit.
34+
35+
-V, --version
36+
Print version and exit.
37+
38+
-x, --auto-detect
39+
Try to auto-detect the codec. If the name of the codec associated with the
40+
configuration string is not known, then give this option and the
41+
configuration string without the codec name prefix. The output is then a
42+
list of all possible known codec configurations for which the given string
43+
is valid.
44+
45+
EXAMPLES
46+
========
47+
::
48+
49+
$ a2dpconf sbc:ffff0235
50+
SBC <hex:ffff0235> {
51+
sampling-frequency:4 = 48000 44100 32000 16000
52+
channel-mode:4 = JointStereo Stereo DualChannel Mono
53+
block-length:4 = 16 12 8 4
54+
sub-bands:2 = 8 4
55+
allocation-method:2 = Loudness SNR
56+
min-bit-pool-value:8 = 2
57+
max-bit-pool-value:8 = 53
58+
}
59+
60+
::
61+
62+
$ a2dpconf -x ffff0235
63+
SBC <hex:ffff0235> {
64+
sampling-frequency:4 = 48000 44100 32000 16000
65+
channel-mode:4 = JointStereo Stereo DualChannel Mono
66+
block-length:4 = 16 12 8 4
67+
sub-bands:2 = 8 4
68+
allocation-method:2 = Loudness SNR
69+
min-bit-pool-value:8 = 2
70+
max-bit-pool-value:8 = 53
71+
}
72+
MPEG-1,2 Audio <hex:ffff0235> {
73+
layer:3 = MP3 MP2 MP1
74+
crc:1 = true
75+
channel-mode:4 = JointStereo Stereo DualChannel Mono
76+
<reserved>:1
77+
media-payload-format:1 = MPF-1 MPF-2
78+
sampling-frequency:6 = 48000 44100 32000 24000 22050 16000
79+
vbr:1 = false
80+
bitrate-index:15 = 0x235
81+
}
82+
83+
COPYRIGHT
84+
=========
85+
86+
Copyright (c) 2016-2024 Arkadiusz Bokowy.
87+
88+
The bluez-alsa project is licensed under the terms of the MIT license.
89+
90+
SEE ALSO
91+
========
92+
93+
``bluealsactl(1)``, ``bluealsad(8)``
94+
95+
Project web site
96+
https://github.com/arkq/bluez-alsa

doc/bluealsactl.1.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ bluealsactl
66
a simple command line interface for the BlueALSA D-Bus API
77
----------------------------------------------------------
88

9-
:Date: August 2024
9+
:Date: Septemner 2024
1010
:Manual section: 1
1111
:Manual group: General Commands Manual
1212
:Version: $VERSION$
@@ -105,7 +105,7 @@ info *PCM_PATH*
105105
Available codecs: SBC:ffff02fa AAC:c0ffff035b60
106106
Selected codec: AAC:400084035b60
107107

108-
A tool such as ``a2dpconf`` can be used to decode the hex string.
108+
A tool such as ``a2dpconf(1)`` can be used to decode the hex string.
109109

110110
The list of available A2DP codecs requires BlueZ SEP support
111111
(BlueZ >= 5.52)
@@ -285,7 +285,7 @@ The bluez-alsa project is licensed under the terms of the MIT license.
285285
SEE ALSO
286286
========
287287

288-
``bluealsad(8)``, ``bluealsa-aplay(1)``, ``bluealsa-rfcomm(1)``
288+
``a2dpconf(1)``, ``bluealsa-aplay(1)``, ``bluealsa-rfcomm(1)``, ``bluealsad(8)``
289289

290290
Project web site
291291
https://github.com/arkq/bluez-alsa

0 commit comments

Comments
 (0)