[PATCH BlueZ v1 4/4] client/player: Print endpoint preset with endpoint.presets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>

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(-)

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:
-- 
2.46.0





[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux