162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Apple Onboard Audio driver for tas codec (header) 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright 2006 Johannes Berg <johannes@sipsolutions.net> 662306a36Sopenharmony_ci */ 762306a36Sopenharmony_ci#ifndef __SND_AOA_CODECTASH 862306a36Sopenharmony_ci#define __SND_AOA_CODECTASH 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#define TAS_REG_MCS 0x01 /* main control */ 1162306a36Sopenharmony_ci# define TAS_MCS_FASTLOAD (1<<7) 1262306a36Sopenharmony_ci# define TAS_MCS_SCLK64 (1<<6) 1362306a36Sopenharmony_ci# define TAS_MCS_SPORT_MODE_MASK (3<<4) 1462306a36Sopenharmony_ci# define TAS_MCS_SPORT_MODE_I2S (2<<4) 1562306a36Sopenharmony_ci# define TAS_MCS_SPORT_MODE_RJ (1<<4) 1662306a36Sopenharmony_ci# define TAS_MCS_SPORT_MODE_LJ (0<<4) 1762306a36Sopenharmony_ci# define TAS_MCS_SPORT_WL_MASK (3<<0) 1862306a36Sopenharmony_ci# define TAS_MCS_SPORT_WL_16BIT (0<<0) 1962306a36Sopenharmony_ci# define TAS_MCS_SPORT_WL_18BIT (1<<0) 2062306a36Sopenharmony_ci# define TAS_MCS_SPORT_WL_20BIT (2<<0) 2162306a36Sopenharmony_ci# define TAS_MCS_SPORT_WL_24BIT (3<<0) 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ci#define TAS_REG_DRC 0x02 2462306a36Sopenharmony_ci#define TAS_REG_VOL 0x04 2562306a36Sopenharmony_ci#define TAS_REG_TREBLE 0x05 2662306a36Sopenharmony_ci#define TAS_REG_BASS 0x06 2762306a36Sopenharmony_ci#define TAS_REG_LMIX 0x07 2862306a36Sopenharmony_ci#define TAS_REG_RMIX 0x08 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci#define TAS_REG_ACR 0x40 /* analog control */ 3162306a36Sopenharmony_ci# define TAS_ACR_B_MONAUREAL (1<<7) 3262306a36Sopenharmony_ci# define TAS_ACR_B_MON_SEL_RIGHT (1<<6) 3362306a36Sopenharmony_ci# define TAS_ACR_DEEMPH_MASK (3<<2) 3462306a36Sopenharmony_ci# define TAS_ACR_DEEMPH_OFF (0<<2) 3562306a36Sopenharmony_ci# define TAS_ACR_DEEMPH_48KHz (1<<2) 3662306a36Sopenharmony_ci# define TAS_ACR_DEEMPH_44KHz (2<<2) 3762306a36Sopenharmony_ci# define TAS_ACR_INPUT_B (1<<1) 3862306a36Sopenharmony_ci# define TAS_ACR_ANALOG_PDOWN (1<<0) 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci#define TAS_REG_MCS2 0x43 /* main control 2 */ 4162306a36Sopenharmony_ci# define TAS_MCS2_ALLPASS (1<<1) 4262306a36Sopenharmony_ci 4362306a36Sopenharmony_ci#define TAS_REG_LEFT_BIQUAD6 0x10 4462306a36Sopenharmony_ci#define TAS_REG_RIGHT_BIQUAD6 0x19 4562306a36Sopenharmony_ci 4662306a36Sopenharmony_ci#define TAS_REG_LEFT_LOUDNESS 0x21 4762306a36Sopenharmony_ci#define TAS_REG_RIGHT_LOUDNESS 0x22 4862306a36Sopenharmony_ci#define TAS_REG_LEFT_LOUDNESS_GAIN 0x23 4962306a36Sopenharmony_ci#define TAS_REG_RIGHT_LOUDNESS_GAIN 0x24 5062306a36Sopenharmony_ci 5162306a36Sopenharmony_ci#define TAS3001_DRC_MAX 0x5f 5262306a36Sopenharmony_ci#define TAS3004_DRC_MAX 0xef 5362306a36Sopenharmony_ci 5462306a36Sopenharmony_ci#endif /* __SND_AOA_CODECTASH */ 55