Message ID | 20240819195102.37393-4-luiz.dentz@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 168ea3078066d293e915280bb55ededa7d109abe |
Headers | show |
Series | [BlueZ,v1,1/4] client/player: Add support for entering metadata via endpoint.presets | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/CheckPatch | success | CheckPatch PASS |
tedd_an/GitLint | fail | WARNING: I3 - ignore-body-lines: gitlint will be switching from using Python regex 'match' (match beginning) to 'search' (match anywhere) semantics. Please review your ignore-body-lines.regex option accordingly. To remove this warning, set general.regex-style-search=True. More details: https://jorisroovers.github.io/gitlint/configuration/#regex-style-search 9: B3 Line contains hard tab characters (\t): " Preset 32_1_1" 10: B3 Line contains hard tab characters (\t): " Configuration.#0: len 0x02 type 0x01" 11: B3 Line contains hard tab characters (\t): " Configuration.Sampling Frequency: 32 Khz (0x06)" 12: B3 Line contains hard tab characters (\t): " Configuration.#1: len 0x02 type 0x02" 13: B3 Line contains hard tab characters (\t): " Configuration.Frame Duration: 7.5 ms (0x00)" 14: B3 Line contains hard tab characters (\t): " Configuration.#2: len 0x03 type 0x04" 15: B3 Line contains hard tab characters (\t): " Configuration.Frame Length: 60 (0x003c)" |
tedd_an/IncrementalBuild | success | Incremental Build PASS |
diff --git a/client/player.c b/client/player.c index 5644b0d616c9..46863b1f4493 100644 --- a/client/player.c +++ b/client/player.c @@ -4299,7 +4299,9 @@ static void cmd_presets_endpoint(int argc, char *argv[]) return; } - } else + } else if (ep && (ep->codec_preset)) + print_preset(ep->codec_preset, ep->codec); + else print_presets(preset); enter_cc:
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> If just the endpoint objects is passed to endpoint.presets then just print it instead of the listing the presets available for the UUID: [bluetooth]# endpoint.presets /local/endpoint/ep2 Preset 32_1_1 Configuration.#0: len 0x02 type 0x01 Configuration.Sampling Frequency: 32 Khz (0x06) Configuration.#1: len 0x02 type 0x02 Configuration.Frame Duration: 7.5 ms (0x00) Configuration.#2: len 0x03 type 0x04 Configuration.Frame Length: 60 (0x003c) --- client/player.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)