Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ucm: Add JackSwitch definition
@ 2020-08-20 23:32 Curtis Malainey
  2020-08-20 23:32 ` [PATCH 2/2] ucm: add DmaPeriodMicrosecs Curtis Malainey
  2020-08-22 13:48 ` [PATCH 1/2] ucm: Add JackSwitch definition Alper Nebi Yasak
  0 siblings, 2 replies; 6+ messages in thread
From: Curtis Malainey @ 2020-08-20 23:32 UTC (permalink / raw)
  To: alsa-devel; +Cc: tiwai, Curtis Malainey

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@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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-08-22 20:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-20 23:32 [PATCH 1/2] ucm: Add JackSwitch definition Curtis Malainey
2020-08-20 23:32 ` [PATCH 2/2] ucm: add DmaPeriodMicrosecs Curtis Malainey
2020-08-22 13:48 ` [PATCH 1/2] ucm: Add JackSwitch definition Alper Nebi Yasak
2020-08-22 17:07   ` Curtis Malainey
2020-08-22 18:33     ` Alper Nebi Yasak
2020-08-22 20:28       ` Curtis Malainey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox