sdca_jack.h 960 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * The MIPI SDCA specification is available for public downloads at
  4. * https://www.mipi.org/mipi-sdca-v1-0-download
  5. *
  6. * Copyright (C) 2025 Cirrus Logic, Inc. and
  7. * Cirrus Logic International Semiconductor Ltd.
  8. */
  9. #ifndef __SDCA_JACK_H__
  10. #define __SDCA_JACK_H__
  11. struct sdca_interrupt;
  12. struct snd_kcontrol;
  13. struct snd_soc_jack;
  14. /**
  15. * struct jack_state - Jack state structure to keep data between interrupts
  16. * @kctl: Pointer to the ALSA control attached to this jack
  17. * @jack: Pointer to the ASoC jack struct for this jack
  18. */
  19. struct jack_state {
  20. struct snd_kcontrol *kctl;
  21. struct snd_soc_jack *jack;
  22. };
  23. int sdca_jack_alloc_state(struct sdca_interrupt *interrupt);
  24. int sdca_jack_process(struct sdca_interrupt *interrupt);
  25. int sdca_jack_set_jack(struct sdca_interrupt_info *info, struct snd_soc_jack *jack);
  26. int sdca_jack_report(struct sdca_interrupt *interrupt);
  27. #endif // __SDCA_JACK_H__