mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-30 07:34:27 +08:00
android/client-audio: Add get_parameters for output
Get current parameters for the audio stream.
This commit is contained in:
parent
9613c04075
commit
0fa227bd77
@ -388,6 +388,25 @@ static void get_sample_rate_p(int argc, const char **argv)
|
||||
stream_out->common.get_sample_rate(&stream_out->common));
|
||||
}
|
||||
|
||||
static void get_parameters_p(int argc, const char **argv)
|
||||
{
|
||||
const char *keystr;
|
||||
|
||||
RETURN_IF_NULL(if_audio);
|
||||
RETURN_IF_NULL(stream_out);
|
||||
|
||||
if (argc < 3) {
|
||||
haltest_info("No keys given.\n");
|
||||
keystr = "";
|
||||
} else {
|
||||
keystr = argv[2];
|
||||
}
|
||||
|
||||
haltest_info("Current parameters: %s\n",
|
||||
stream_out->common.get_parameters(&stream_out->common,
|
||||
keystr));
|
||||
}
|
||||
|
||||
static struct method methods[] = {
|
||||
STD_METHOD(init),
|
||||
STD_METHOD(cleanup),
|
||||
@ -402,6 +421,7 @@ static struct method methods[] = {
|
||||
STD_METHOD(get_channels),
|
||||
STD_METHOD(get_format),
|
||||
STD_METHOD(get_sample_rate),
|
||||
STD_METHODH(get_parameters, "<A2dpSuspended;closing>"),
|
||||
END_METHOD
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user