client/player: Add support for custom preset
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 23 Nov 2022 23:27:36 +0000 (15:27 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:11:34 +0000 (15:41 +0530)
commit63230ca5cc59fbf6f64941f6c17c2b6e661267a5
treea7a27dcf9a805d602cfb9aee4ea526fa8a1993c2
parent5206fcd7da4682fdb540fb30558a1e77fad01611
client/player: Add support for custom preset

This adds support for a custom preset which asks the user to enter its
configuration:

[bluetooth]# endpoint.presets 00002bc9-0000-1000-8000-00805f9b34fb custom
[Codec] Enter frequency (Khz): 48
[Codec] Enter frame duration (ms): 10
[Codec] Enter channel allocation: 0x000000003
[Codec] Enter frame length: 100
[QoS] Enter Target Latency (Low, Balance, High): Low
[QoS] Enter SDU Interval (us): 10000
[QoS] Enter Framing (Unframed, Framed): Unframed
[QoS] Enter PHY (1M, 2M): 2M
[QoS] Enter Max SDU: 200
[QoS] Enter RTN: 3
[QoS] Enter Max Transport Latency (ms): 20
[QoS] Enter Presentation Delay (us): 10000
client/player.c