linux/sound/soc/codecs/rt1017-sdca-sdw.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * rt1017-sdca-sdw.h -- RT1017 SDCA ALSA SoC audio driver header
 *
 * Copyright(c) 2023 Realtek Semiconductor Corp.
 */

#ifndef __RT1017_SDW_H__
#define __RT1017_SDW_H__

#include <linux/regmap.h>
#include <linux/soundwire/sdw.h>
#include <linux/soundwire/sdw_type.h>
#include <linux/soundwire/sdw_registers.h>
#include <sound/soc.h>

/* RT1017 SDCA Control - function number */
#define FUNC_NUM_SMART_AMP

/* RT1017 SDCA entity */
#define RT1017_SDCA_ENT_PDE23
#define RT1017_SDCA_ENT_PDE22
#define RT1017_SDCA_ENT_CS21
#define RT1017_SDCA_ENT_SAPU29
#define RT1017_SDCA_ENT_XU22
#define RT1017_SDCA_ENT_FU
#define RT1017_SDCA_ENT_UDMPU21

/* RT1017 SDCA control */
#define RT1017_SDCA_CTL_FS_INDEX
#define RT1017_SDCA_CTL_REQ_POWER_STATE
#define RT1017_SDCA_CTL_PROT_STAT
#define RT1017_SDCA_CTL_BYPASS
#define RT1017_SDCA_CTL_FU_MUTE
#define RT1017_SDCA_CTL_FU_VOLUME
#define RT1017_SDCA_CTL_UDMPU_CLUSTER


#define RT1017_CLASSD_INT_1
#define RT1017_PWM_TRIM_1


#define RT1017_PWM_FREQ_CTL_SRC_SEL_MASK
#define RT1017_PWM_FREQ_CTL_SRC_SEL_EFUSE
#define RT1017_PWM_FREQ_CTL_SRC_SEL_REG

enum {};

struct rt1017_sdca_priv {};

static const struct reg_default rt1017_sdca_reg_defaults[] =;

#endif /* __RT1017_SDW_H__ */