From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ] monitor/att: Fix ASE frequency values
Date: Thu, 23 Feb 2023 17:51:36 -0800 [thread overview]
Message-ID: <20230224015136.3445113-1-luiz.dentz@gmail.com> (raw)
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This fixes the printed hex value of some of the frequencies.
---
monitor/att.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/monitor/att.c b/monitor/att.c
index 05784e9f46c4..f9643b333b32 100644
--- a/monitor/att.c
+++ b/monitor/att.c
@@ -890,31 +890,31 @@ static void ase_decode_freq(const uint8_t *data, uint8_t len)
print_field(" Sampling Frequency: 22.05 Khz (0x04)");
break;
case 0x05:
- print_field(" Sampling Frequency: 24 Khz (0x04)");
+ print_field(" Sampling Frequency: 24 Khz (0x05)");
break;
case 0x06:
- print_field(" Sampling Frequency: 32 Khz (0x04)");
+ print_field(" Sampling Frequency: 32 Khz (0x06)");
break;
case 0x07:
- print_field(" Sampling Frequency: 44.1 Khz (0x04)");
+ print_field(" Sampling Frequency: 44.1 Khz (0x07)");
break;
case 0x08:
- print_field(" Sampling Frequency: 48 Khz (0x04)");
+ print_field(" Sampling Frequency: 48 Khz (0x08)");
break;
case 0x09:
- print_field(" Sampling Frequency: 88.2 Khz (0x04)");
+ print_field(" Sampling Frequency: 88.2 Khz (0x09)");
break;
case 0x0a:
- print_field(" Sampling Frequency: 96 Khz (0x04)");
+ print_field(" Sampling Frequency: 96 Khz (0x0a)");
break;
case 0x0b:
- print_field(" Sampling Frequency: 176.4 Khz (0x04)");
+ print_field(" Sampling Frequency: 176.4 Khz (0x0b)");
break;
case 0x0c:
- print_field(" Sampling Frequency: 192 Khz (0x04)");
+ print_field(" Sampling Frequency: 192 Khz (0x0c)");
break;
case 0x0d:
- print_field(" Sampling Frequency: 384 Khz (0x04)");
+ print_field(" Sampling Frequency: 384 Khz (0x0d)");
break;
default:
print_field(" Sampling Frequency: RFU (0x%2.2x)", value);
--
2.37.3
next reply other threads:[~2023-02-24 1:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-24 1:51 Luiz Augusto von Dentz [this message]
2023-02-24 2:36 ` [BlueZ] monitor/att: Fix ASE frequency values bluez.test.bot
-- strict thread matches above, loose matches on Subject: below --
2023-02-15 0:56 [PATCH BlueZ] " Luiz Augusto von Dentz
2023-02-15 23:50 ` patchwork-bot+bluetooth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230224015136.3445113-1-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.