linux/sound/aoa/codecs/tas.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0-only */
   2/*
   3 * Apple Onboard Audio driver for tas codec (header)
   4 *
   5 * Copyright 2006 Johannes Berg <johannes@sipsolutions.net>
   6 */
   7#ifndef __SND_AOA_CODECTASH
   8#define __SND_AOA_CODECTASH
   9
  10#define TAS_REG_MCS     0x01    /* main control */
  11#       define TAS_MCS_FASTLOAD         (1<<7)
  12#       define TAS_MCS_SCLK64           (1<<6)
  13#       define TAS_MCS_SPORT_MODE_MASK  (3<<4)
  14#       define TAS_MCS_SPORT_MODE_I2S   (2<<4)
  15#       define TAS_MCS_SPORT_MODE_RJ    (1<<4)
  16#       define TAS_MCS_SPORT_MODE_LJ    (0<<4)
  17#       define TAS_MCS_SPORT_WL_MASK    (3<<0)
  18#       define TAS_MCS_SPORT_WL_16BIT   (0<<0)
  19#       define TAS_MCS_SPORT_WL_18BIT   (1<<0)
  20#       define TAS_MCS_SPORT_WL_20BIT   (2<<0)
  21#       define TAS_MCS_SPORT_WL_24BIT   (3<<0)
  22
  23#define TAS_REG_DRC     0x02
  24#define TAS_REG_VOL     0x04
  25#define TAS_REG_TREBLE  0x05
  26#define TAS_REG_BASS    0x06
  27#define TAS_REG_LMIX    0x07
  28#define TAS_REG_RMIX    0x08
  29
  30#define TAS_REG_ACR     0x40    /* analog control */
  31#       define TAS_ACR_B_MONAUREAL      (1<<7)
  32#       define TAS_ACR_B_MON_SEL_RIGHT  (1<<6)
  33#       define TAS_ACR_DEEMPH_MASK      (3<<2)
  34#       define TAS_ACR_DEEMPH_OFF       (0<<2)
  35#       define TAS_ACR_DEEMPH_48KHz     (1<<2)
  36#       define TAS_ACR_DEEMPH_44KHz     (2<<2)
  37#       define TAS_ACR_INPUT_B          (1<<1)
  38#       define TAS_ACR_ANALOG_PDOWN     (1<<0)
  39
  40#define TAS_REG_MCS2    0x43    /* main control 2 */
  41#       define TAS_MCS2_ALLPASS         (1<<1)
  42
  43#define TAS_REG_LEFT_BIQUAD6    0x10
  44#define TAS_REG_RIGHT_BIQUAD6   0x19
  45
  46#define TAS_REG_LEFT_LOUDNESS           0x21
  47#define TAS_REG_RIGHT_LOUDNESS          0x22
  48#define TAS_REG_LEFT_LOUDNESS_GAIN      0x23
  49#define TAS_REG_RIGHT_LOUDNESS_GAIN     0x24
  50
  51#define TAS3001_DRC_MAX         0x5f
  52#define TAS3004_DRC_MAX         0xef
  53
  54#endif /* __SND_AOA_CODECTASH */
  55