Commit | Line | Data |
---|---|---|
e149ca29 | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
e2e404a6 SN |
2 | /* |
3 | * Copyright(c) 2020 Intel Corporation. | |
4 | */ | |
5 | ||
6 | /* | |
7 | * This file defines data structures used in Machine Driver for Intel | |
8 | * platforms with Maxim Codecs. | |
9 | */ | |
10 | #ifndef __SOF_MAXIM_COMMON_H | |
11 | #define __SOF_MAXIM_COMMON_H | |
12 | ||
13 | #include <sound/soc.h> | |
14 | ||
15 | #define MAX_98373_CODEC_DAI "max98373-aif1" | |
16 | #define MAX_98373_DEV0_NAME "i2c-MX98373:00" | |
17 | #define MAX_98373_DEV1_NAME "i2c-MX98373:01" | |
18 | ||
19 | extern struct snd_soc_dai_link_component max_98373_components[2]; | |
20 | extern struct snd_soc_ops max_98373_ops; | |
be82e888 | 21 | extern const struct snd_soc_dapm_route max_98373_dapm_routes[]; |
e2e404a6 SN |
22 | |
23 | int max98373_spk_codec_init(struct snd_soc_pcm_runtime *rtd); | |
24 | void sof_max98373_codec_conf(struct snd_soc_card *card); | |
be82e888 NM |
25 | int max98373_trigger(struct snd_pcm_substream *substream, int cmd); |
26 | ||
e2e404a6 | 27 | #endif /* __SOF_MAXIM_COMMON_H */ |