linux/sound/soc/codecs/tas2562.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * tas2562.h - ALSA SoC Texas Instruments TAS2562 Mono Audio Amplifier
 *
 * Copyright (C) 2019 Texas Instruments Incorporated -  https://www.ti.com
 *
 * Author: Dan Murphy <[email protected]>
 */

#ifndef __TAS2562_H__
#define __TAS2562_H__

#define TAS2562_PAGE_CTRL

#define TAS2562_REG(page, reg)

#define TAS2562_SW_RESET
#define TAS2562_PWR_CTRL
#define TAS2562_PB_CFG1
#define TAS2562_MISC_CFG1
#define TAS2562_MISC_CFG2

#define TAS2562_TDM_CFG0
#define TAS2562_TDM_CFG1
#define TAS2562_TDM_CFG2
#define TAS2562_TDM_CFG3
#define TAS2562_TDM_CFG4
#define TAS2562_TDM_CFG5
#define TAS2562_TDM_CFG6
#define TAS2562_TDM_CFG7
#define TAS2562_TDM_CFG8
#define TAS2562_TDM_CFG9
#define TAS2562_TDM_CFG10
#define TAS2562_TDM_DET
#define TAS2562_REV_ID

#define TAS2562_RX_OFF_MASK
#define TAS2562_TX_OFF_MASK
#define TAS2562_RIGHT_SLOT_SHIFT

/* Page 2 */
#define TAS2562_DVC_CFG1
#define TAS2562_DVC_CFG2
#define TAS2562_DVC_CFG3
#define TAS2562_DVC_CFG4

#define TAS2562_RESET

#define TAS2562_MODE_MASK
#define TAS2562_ACTIVE
#define TAS2562_MUTE
#define TAS2562_SHUTDOWN

#define TAS2562_TDM_CFG1_RX_EDGE_MASK
#define TAS2562_TDM_CFG1_RX_FALLING

#define TAS2562_TDM_CFG0_RAMPRATE_MASK
#define TAS2562_TDM_CFG0_RAMPRATE_44_1
#define TAS2562_TDM_CFG0_SAMPRATE_MASK
#define TAS2562_TDM_CFG0_SAMPRATE_7305_8KHZ
#define TAS2562_TDM_CFG0_SAMPRATE_14_7_16KHZ
#define TAS2562_TDM_CFG0_SAMPRATE_22_05_24KHZ
#define TAS2562_TDM_CFG0_SAMPRATE_29_4_32KHZ
#define TAS2562_TDM_CFG0_SAMPRATE_44_1_48KHZ
#define TAS2562_TDM_CFG0_SAMPRATE_88_2_96KHZ
#define TAS2562_TDM_CFG0_SAMPRATE_176_4_192KHZ

#define TAS2562_TDM_CFG2_RIGHT_JUSTIFY

#define TAS2562_TDM_CFG2_RXLEN_MASK
#define TAS2562_TDM_CFG2_RXLEN_16B
#define TAS2562_TDM_CFG2_RXLEN_24B
#define TAS2562_TDM_CFG2_RXLEN_32B

#define TAS2562_TDM_CFG2_RXWLEN_MASK
#define TAS2562_TDM_CFG2_RXWLEN_16B
#define TAS2562_TDM_CFG2_RXWLEN_20B
#define TAS2562_TDM_CFG2_RXWLEN_24B
#define TAS2562_TDM_CFG2_RXWLEN_32B

#define TAS2562_VSENSE_POWER_EN
#define TAS2562_ISENSE_POWER_EN

#define TAS2562_TDM_CFG5_VSNS_EN
#define TAS2562_TDM_CFG5_VSNS_SLOT_MASK

#define TAS2562_TDM_CFG6_ISNS_EN
#define TAS2562_TDM_CFG6_ISNS_SLOT_MASK

#endif /* __TAS2562_H__ */