18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Apple Onboard Audio driver for tas codec (header) 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright 2006 Johannes Berg <johannes@sipsolutions.net> 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci#ifndef __SND_AOA_CODECTASH 88c2ecf20Sopenharmony_ci#define __SND_AOA_CODECTASH 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#define TAS_REG_MCS 0x01 /* main control */ 118c2ecf20Sopenharmony_ci# define TAS_MCS_FASTLOAD (1<<7) 128c2ecf20Sopenharmony_ci# define TAS_MCS_SCLK64 (1<<6) 138c2ecf20Sopenharmony_ci# define TAS_MCS_SPORT_MODE_MASK (3<<4) 148c2ecf20Sopenharmony_ci# define TAS_MCS_SPORT_MODE_I2S (2<<4) 158c2ecf20Sopenharmony_ci# define TAS_MCS_SPORT_MODE_RJ (1<<4) 168c2ecf20Sopenharmony_ci# define TAS_MCS_SPORT_MODE_LJ (0<<4) 178c2ecf20Sopenharmony_ci# define TAS_MCS_SPORT_WL_MASK (3<<0) 188c2ecf20Sopenharmony_ci# define TAS_MCS_SPORT_WL_16BIT (0<<0) 198c2ecf20Sopenharmony_ci# define TAS_MCS_SPORT_WL_18BIT (1<<0) 208c2ecf20Sopenharmony_ci# define TAS_MCS_SPORT_WL_20BIT (2<<0) 218c2ecf20Sopenharmony_ci# define TAS_MCS_SPORT_WL_24BIT (3<<0) 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#define TAS_REG_DRC 0x02 248c2ecf20Sopenharmony_ci#define TAS_REG_VOL 0x04 258c2ecf20Sopenharmony_ci#define TAS_REG_TREBLE 0x05 268c2ecf20Sopenharmony_ci#define TAS_REG_BASS 0x06 278c2ecf20Sopenharmony_ci#define TAS_REG_LMIX 0x07 288c2ecf20Sopenharmony_ci#define TAS_REG_RMIX 0x08 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#define TAS_REG_ACR 0x40 /* analog control */ 318c2ecf20Sopenharmony_ci# define TAS_ACR_B_MONAUREAL (1<<7) 328c2ecf20Sopenharmony_ci# define TAS_ACR_B_MON_SEL_RIGHT (1<<6) 338c2ecf20Sopenharmony_ci# define TAS_ACR_DEEMPH_MASK (3<<2) 348c2ecf20Sopenharmony_ci# define TAS_ACR_DEEMPH_OFF (0<<2) 358c2ecf20Sopenharmony_ci# define TAS_ACR_DEEMPH_48KHz (1<<2) 368c2ecf20Sopenharmony_ci# define TAS_ACR_DEEMPH_44KHz (2<<2) 378c2ecf20Sopenharmony_ci# define TAS_ACR_INPUT_B (1<<1) 388c2ecf20Sopenharmony_ci# define TAS_ACR_ANALOG_PDOWN (1<<0) 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci#define TAS_REG_MCS2 0x43 /* main control 2 */ 418c2ecf20Sopenharmony_ci# define TAS_MCS2_ALLPASS (1<<1) 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci#define TAS_REG_LEFT_BIQUAD6 0x10 448c2ecf20Sopenharmony_ci#define TAS_REG_RIGHT_BIQUAD6 0x19 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci#define TAS_REG_LEFT_LOUDNESS 0x21 478c2ecf20Sopenharmony_ci#define TAS_REG_RIGHT_LOUDNESS 0x22 488c2ecf20Sopenharmony_ci#define TAS_REG_LEFT_LOUDNESS_GAIN 0x23 498c2ecf20Sopenharmony_ci#define TAS_REG_RIGHT_LOUDNESS_GAIN 0x24 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci#define TAS3001_DRC_MAX 0x5f 528c2ecf20Sopenharmony_ci#define TAS3004_DRC_MAX 0xef 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci#endif /* __SND_AOA_CODECTASH */ 55