diff options
author | dvdli <70133153+dvdli@users.noreply.github.com> | 2020-11-02 09:48:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 09:48:10 +0800 |
commit | 4bbffd5c6223f8e11cf2e81b8ac9fb9cacf040fa (patch) | |
tree | cc3f820ccf3df93bf8e074d8f77cd7c6f1a657b6 /src/mixer.c | |
parent | 2378be171c12271dd76baf099e1e050218a4170b (diff) | |
parent | 877ccaf02b773ad7b995bacbfba8e1bdfe11b00d (diff) |
Merge pull request #188 from dvdli/android-dev
Synchronize the changes on AOSP repo
Diffstat (limited to 'src/mixer.c')
-rw-r--r-- | src/mixer.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mixer.c b/src/mixer.c index 6a104fe..fe590e8 100644 --- a/src/mixer.c +++ b/src/mixer.c @@ -990,6 +990,11 @@ int mixer_ctl_get_array(const struct mixer_ctl *ctl, void *array, size_t count) break; } + case SNDRV_CTL_ELEM_TYPE_IEC958: + size = sizeof(ev.value.iec958); + source = &ev.value.iec958; + break; + default: return -EINVAL; } @@ -1116,6 +1121,11 @@ int mixer_ctl_set_array(struct mixer_ctl *ctl, const void *array, size_t count) } break; + case SNDRV_CTL_ELEM_TYPE_IEC958: + size = sizeof(ev.value.iec958); + dest = &ev.value.iec958; + break; + default: return -EINVAL; } |