diff options
author | dvdli <dvdli@google.com> | 2020-10-28 22:09:09 +0800 |
---|---|---|
committer | dvdli <dvdli@google.com> | 2020-10-28 22:09:09 +0800 |
commit | ed51bc4ba921806690dd0dffe7927031db5739d1 (patch) | |
tree | ca31c1a3e9c7be6f111fe4dfa0ce2361f0dd8c41 /src | |
parent | 1e75a165df625396afd68bbc68a59c517727c3e6 (diff) |
AOSP CL "tinyalsa: channel status set as per IEC958"
https://android.googlesource.com/platform/external/tinyalsa/+/49a61374fc18a0f39da0d9c11cc9ccc3e9c1ec3f
commit 49a61374fc18a0f39da0d9c11cc9ccc3e9c1ec3f
author Yogesh Agrawal <yagrawal@nvidia.com>
tinyalsa: channel status set as per IEC958
Add support for modifying the IEC958 structure in a mixer_ctl.
Bug: 9428304
Bug: 22576112
Change-Id: I8982340da9403a8a9e36b389fc97e9c635a9f681
Diffstat (limited to 'src')
-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; } |