aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordvdli <70133153+dvdli@users.noreply.github.com>2022-01-05 09:40:14 +0800
committerGitHub <noreply@github.com>2022-01-05 09:40:14 +0800
commitfa1136edcaf3e14b8030187fb7d206807f582dfa (patch)
treeb78b7161eda12d20825b126a821f32c96fb8738e /src
parent8238437d5d5a944efa0dd08a242034f249196944 (diff)
parent25096d382c46416c1546a26a8bd80ed1c62bcd08 (diff)
Merge pull request #222 from dvdli/tinyalsa-dev
Fix a type issue and a mixer control issue.
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;