allow master volume only volume control
- some H/W cannot support multiple volumes.
- also chage doc which broke vehiclehal_code_gen.py
bug: 28175862
Change-Id: I26799838fc9154e695d93c38c4fa75b0982f59a9
(cherry picked from commit 17a2e849f304fffe6bc79bb00067a7fe3ad14673)
diff --git a/include/hardware/vehicle.h b/include/hardware/vehicle.h
index ac7e470..568f958 100644
--- a/include/hardware/vehicle.h
+++ b/include/hardware/vehicle.h
@@ -702,6 +702,11 @@
* of each physical streams whenever there is an audio context change.
*/
VEHICLE_AUDIO_VOLUME_CAPABILITY_PERSISTENT_STORAGE = 0x1,
+ /**
+ * When this flag is set, the H/W can support only single master volume for all streams.
+ * There is no way to set volume level differently per each stream or context.
+ */
+ VEHICLE_AUDIO_VOLUME_CAPABILITY_MASTER_VOLUME_ONLY = 0x2,
};
@@ -1240,7 +1245,7 @@
* Property of this type will be reported when there is a change.
* get call should return the current value.
* Set operation for this property is assumed to be asynchronous. When the property is read
- * (=get) after set, it may still return old value until underlying H/W backing this property
+ * (get) after set, it may still return old value until underlying H/W backing this property
* has actually changed the state. Once state is changed, the property will dispatch changed
* value as event.
*/