xref: /linux/include/sound/sdca_jack.h (revision 3addd63d1fba8d9013e00b06d9420e39271c0c4e)
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 
10 #ifndef __SDCA_JACK_H__
11 #define __SDCA_JACK_H__
12 
13 struct sdca_interrupt;
14 struct snd_kcontrol;
15 
16 /**
17  * struct jack_state - Jack state structure to keep data between interrupts
18  * @kctl: Pointer to the ALSA control attached to this jack
19  */
20 struct jack_state {
21 	struct snd_kcontrol *kctl;
22 };
23 
24 int sdca_jack_alloc_state(struct sdca_interrupt *interrupt);
25 int sdca_jack_process(struct sdca_interrupt *interrupt);
26 
27 #endif // __SDCA_JACK_H__
28