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
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 @@
break;
}
+ case SNDRV_CTL_ELEM_TYPE_IEC958:
+ size = sizeof(ev.value.iec958);
+ source = &ev.value.iec958;
+ break;
+
default:
return -EINVAL;
}
@@ -1116,6 +1121,11 @@
}
break;
+ case SNDRV_CTL_ELEM_TYPE_IEC958:
+ size = sizeof(ev.value.iec958);
+ dest = &ev.value.iec958;
+ break;
+
default:
return -EINVAL;
}