From a698198d8eced393046cb7d49df0b4ed465a8d6b Mon Sep 17 00:00:00 2001 From: Ranjani Sridharan Date: Tue, 17 Sep 2024 21:00:19 -0700 Subject: [PATCH] tools: ctl: Add ABI header for kcontrol read This is necessary to pass the param ID for the data being requested. Signed-off-by: Ranjani Sridharan --- tools/ctl/ctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/ctl/ctl.c b/tools/ctl/ctl.c index 3f969635b..1d89c2c15 100644 --- a/tools/ctl/ctl.c +++ b/tools/ctl/ctl.c @@ -508,6 +508,8 @@ static int ctl_set_get(struct ctl_data *ctl_data) fprintf(stdout, "Retrieving configuration for "); fprintf(stdout, "device %s control %s.\n", ctl_data->dev, ctl_data->cname); + /* set the ABI header to pass the param ID */ + header_init(ctl_data); ctl_data->buffer[BUFFER_SIZE_OFFSET] = ctl_data->ctrl_size; ret = snd_ctl_elem_tlv_read(ctl_data->ctl, ctl_data->id, ctl_data->buffer,