linux/sound/soc/codecs/ak5558.h

/* SPDX-License-Identifier: GPL-2.0
 *
 * Audio driver header for AK5558
 *
 * Copyright (C) 2016 Asahi Kasei Microdevices Corporation
 * Copyright 2018 NXP
 */

#ifndef _AK5558_H
#define _AK5558_H

#define AK5558_00_POWER_MANAGEMENT1
#define AK5558_01_POWER_MANAGEMENT2
#define AK5558_02_CONTROL1
#define AK5558_03_CONTROL2
#define AK5558_04_CONTROL3
#define AK5558_05_DSD

/* AK5558_02_CONTROL1 fields */
#define AK5558_DIF
#define AK5558_DIF_MSB_MODE
#define AK5558_DIF_I2S_MODE

#define AK5558_BITS
#define AK5558_DIF_24BIT_MODE
#define AK5558_DIF_32BIT_MODE

#define AK5558_CKS
#define AK5558_CKS_128FS_192KHZ
#define AK5558_CKS_192FS_192KHZ
#define AK5558_CKS_256FS_48KHZ
#define AK5558_CKS_256FS_96KHZ
#define AK5558_CKS_384FS_96KHZ
#define AK5558_CKS_384FS_48KHZ
#define AK5558_CKS_512FS_48KHZ
#define AK5558_CKS_768FS_48KHZ
#define AK5558_CKS_64FS_384KHZ
#define AK5558_CKS_32FS_768KHZ
#define AK5558_CKS_96FS_384KHZ
#define AK5558_CKS_48FS_768KHZ
#define AK5558_CKS_64FS_768KHZ
#define AK5558_CKS_1024FS_16KHZ
#define AK5558_CKS_AUTO

/* AK5558_03_CONTROL2 fields */
#define AK5558_MODE_BITS
#define AK5558_MODE_NORMAL
#define AK5558_MODE_TDM128
#define AK5558_MODE_TDM256
#define AK5558_MODE_TDM512

#endif