File Index
Files and directories
Sign in
FILE

sdca_jack.h

File preview with syntax highlighting.

linux-6.19.14/include/sound/sdca_jack.h C
 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
13struct sdca_interrupt;
14struct snd_kcontrol;
15struct snd_soc_jack;
16
17/**
18 * struct jack_state - Jack state structure to keep data between interrupts
19 * @kctl: Pointer to the ALSA control attached to this jack
20 * @jack: Pointer to the ASoC jack struct for this jack
21 */
22struct jack_state {
23	struct snd_kcontrol *kctl;
24	struct snd_soc_jack *jack;
25};
26
27int sdca_jack_alloc_state(struct sdca_interrupt *interrupt);
28int sdca_jack_process(struct sdca_interrupt *interrupt);
29int sdca_jack_set_jack(struct sdca_interrupt_info *info, struct snd_soc_jack *jack);
30int sdca_jack_report(struct sdca_interrupt *interrupt);
31
32#endif // __SDCA_JACK_H__
~/ Read-only file preview.