Skip to content

Commit

Permalink
manual page for a2dpconf utility
Browse files Browse the repository at this point in the history
  • Loading branch information
borine committed Sep 16, 2024
1 parent 7d109cd commit 5bef75e
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/spellcheck-wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ unregister
utils

# Others
a2dpconf
AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYYZZ
aas
ABCD
Expand Down Expand Up @@ -174,6 +175,7 @@ dlopen
dmix
dmx
docutils
dpconf
dpsnk
dpsrc
DYN
Expand Down
4 changes: 4 additions & 0 deletions doc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ if ENABLE_RFCOMM
man1_MANS += bluealsa-rfcomm.1
endif

if ENABLE_A2DPCONF
man1_MANS += a2dpconf.1
endif

if ENABLE_HCITOP
man1_MANS += hcitop.1
endif
Expand Down
96 changes: 96 additions & 0 deletions doc/a2dpconf.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
========
a2dpconf
========

----------------------------------------
Decode A2DP codec capability hex strings
----------------------------------------

:Date: September 2024
:Manual section: 1
:Manual group: General Commands Manual
:Version: $VERSION$

SYNOPSIS
========

**a2dpconf** [*OPTION*]... <[*CODEC*:]*CONFIG*>...

DESCRIPTION
===========

**a2dpconf** presents the fields of the given A2DP codec *CONFIG* in a
human-readable format. *CODEC* is the name of the relevant codec, and *CONFIG*
is the hexadecimal encoding of the configuration or capabilities binary "blob"
as reported by tools such as ``bluealsactl(1)`` or the debug output of
``bluealsad(8)``.
(see `EXAMPLES`_ below).

OPTIONS
=======

-h, --help
Print this help and exit.

-V, --version
Print version and exit.

-x, --auto-detect
Try to auto-detect the codec. If the name of the codec associated with the
configuration string is not known, then give this option and the
configuration string without the codec name prefix. The output is then a
list of all possible known codec configurations for which the given string
is valid.

EXAMPLES
========
::

$ a2dpconf sbc:ffff0235
SBC <hex:ffff0235> {
sampling-frequency:4 = 48000 44100 32000 16000
channel-mode:4 = JointStereo Stereo DualChannel Mono
block-length:4 = 16 12 8 4
sub-bands:2 = 8 4
allocation-method:2 = Loudness SNR
min-bit-pool-value:8 = 2
max-bit-pool-value:8 = 53
}

::

$ a2dpconf -x ffff0235
SBC <hex:ffff0235> {
sampling-frequency:4 = 48000 44100 32000 16000
channel-mode:4 = JointStereo Stereo DualChannel Mono
block-length:4 = 16 12 8 4
sub-bands:2 = 8 4
allocation-method:2 = Loudness SNR
min-bit-pool-value:8 = 2
max-bit-pool-value:8 = 53
}
MPEG-1,2 Audio <hex:ffff0235> {
layer:3 = MP3 MP2 MP1
crc:1 = true
channel-mode:4 = JointStereo Stereo DualChannel Mono
<reserved>:1
media-payload-format:1 = MPF-1 MPF-2
sampling-frequency:6 = 48000 44100 32000 24000 22050 16000
vbr:1 = false
bitrate-index:15 = 0x235
}

COPYRIGHT
=========

Copyright (c) 2016-2024 Arkadiusz Bokowy.

The bluez-alsa project is licensed under the terms of the MIT license.

SEE ALSO
========

``bluealsactl(1)``, ``bluealsad(8)``

Project web site
https://github.com/arkq/bluez-alsa
7 changes: 4 additions & 3 deletions doc/bluealsactl.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ bluealsactl
a simple command line interface for the BlueALSA D-Bus API
----------------------------------------------------------

:Date: August 2024
:Date: September 2024
:Manual section: 1
:Manual group: General Commands Manual
:Version: $VERSION$
Expand Down Expand Up @@ -105,7 +105,7 @@ info *PCM_PATH*
Available codecs: SBC:ffff02fa AAC:c0ffff035b60
Selected codec: AAC:400084035b60

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

The list of available A2DP codecs requires BlueZ SEP support
(BlueZ >= 5.52)
Expand Down Expand Up @@ -285,7 +285,8 @@ The bluez-alsa project is licensed under the terms of the MIT license.
SEE ALSO
========

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

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

0 comments on commit 5bef75e

Please sign in to comment.