From 25096d382c46416c1546a26a8bd80ed1c62bcd08 Mon Sep 17 00:00:00 2001 From: dvdli Date: Wed, 15 Dec 2021 21:21:29 +0800 Subject: add ioctl to read IEC958 data --- src/mixer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/mixer.c b/src/mixer.c index b4d96fd..afbc015 100644 --- a/src/mixer.c +++ b/src/mixer.c @@ -1047,6 +1047,9 @@ int mixer_ctl_get_array(const struct mixer_ctl *ctl, void *array, size_t count) } case SNDRV_CTL_ELEM_TYPE_IEC958: + ret = grp->ops->ioctl(grp->data, SNDRV_CTL_IOCTL_ELEM_READ, &ev); + if (ret < 0) + return ret; size = sizeof(ev.value.iec958); source = &ev.value.iec958; break; -- cgit v1.2.3