aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordvdli <dvdli@google.com>2021-12-15 21:21:29 +0800
committerdvdli <dvdli@google.com>2021-12-15 21:21:29 +0800
commit25096d382c46416c1546a26a8bd80ed1c62bcd08 (patch)
treeb78b7161eda12d20825b126a821f32c96fb8738e /src
parente720c9380af22fb1eddfde3a6397f393a52cb586 (diff)
add ioctl to read IEC958 data
Diffstat (limited to 'src')
-rw-r--r--src/mixer.c3
1 files changed, 3 insertions, 0 deletions
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;