2023-02-24 01:51:44

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: [PATCH BlueZ] monitor/att: Fix ASE frequency values

From: Luiz Augusto von Dentz <[email protected]>

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



2023-02-24 02:36:34

by bluez.test.bot

[permalink] [raw]
Subject: RE: [BlueZ] monitor/att: Fix ASE frequency values

This is an automated email and please do not reply to this email.

Dear Submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
While preparing the CI tests, the patches you submitted couldn't be applied to the current HEAD of the repository.

----- Output -----

error: patch failed: monitor/att.c:890
error: monitor/att.c: patch does not apply
hint: Use 'git am --show-current-patch' to see the failed patch

Please resolve the issue and submit the patches again.


---
Regards,
Linux Bluetooth