[PATCH 1/2] ucm: Add JackSwitch definition
Curtis Malainey
cujomalainey at chromium.org
Fri Aug 21 01:32:04 CEST 2020
Some codecs can differentiate headsets based on the number of rings.
Should we choose to differentiate the config we will need to be able to
select based on the jack event code.
Signed-off-by: Curtis Malainey <cujomalainey at chromium.org>
---
include/use-case.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/use-case.h b/include/use-case.h
index 2363c3ed..80148a7b 100644
--- a/include/use-case.h
+++ b/include/use-case.h
@@ -386,6 +386,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
* to e.g. automatically mute speakers when headphones are plugged in,
* but that's application policy configuration that doesn't belong
* to UCM configuration files.
+ * - JackSwitch
+ * - Represents the jack switch value for this device. Value is a base 10
+ * value of a switch code in input_event_codes.h
* - MinBufferLevel
* - This is used on platform where reported buffer level is not accurate.
* E.g. "512", which holds 512 samples in device buffer. Note: this will
--
2.28.0.297.g1956fa8f8d-goog
More information about the Alsa-devel
mailing list