18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright(c) 2020 Intel Corporation.
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci/*
78c2ecf20Sopenharmony_ci * This file defines data structures used in Machine Driver for Intel
88c2ecf20Sopenharmony_ci * platforms with Maxim Codecs.
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_ci#ifndef __SOF_MAXIM_COMMON_H
118c2ecf20Sopenharmony_ci#define __SOF_MAXIM_COMMON_H
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#include <sound/soc.h>
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#define MAX_98373_CODEC_DAI	"max98373-aif1"
168c2ecf20Sopenharmony_ci#define MAX_98373_DEV0_NAME	"i2c-MX98373:00"
178c2ecf20Sopenharmony_ci#define MAX_98373_DEV1_NAME	"i2c-MX98373:01"
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciextern struct snd_soc_dai_link_component max_98373_components[2];
208c2ecf20Sopenharmony_ciextern struct snd_soc_ops max_98373_ops;
218c2ecf20Sopenharmony_ciextern const struct snd_soc_dapm_route max_98373_dapm_routes[];
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciint max98373_spk_codec_init(struct snd_soc_pcm_runtime *rtd);
248c2ecf20Sopenharmony_civoid sof_max98373_codec_conf(struct snd_soc_card *card);
258c2ecf20Sopenharmony_ciint max98373_trigger(struct snd_pcm_substream *substream, int cmd);
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#endif /* __SOF_MAXIM_COMMON_H */
28