|
#define | UNSET (-1U) |
|
#define | MAXREGS 256 |
|
#define | CHIP_HAS_VOLUME 1 |
|
#define | CHIP_HAS_BASSTREBLE 2 |
|
#define | CHIP_HAS_INPUTSEL 4 |
|
#define | CHIP_NEED_CHECKMODE 8 |
|
#define | TDA9840_SW 0x00 |
|
#define | TDA9840_LVADJ 0x02 |
|
#define | TDA9840_STADJ 0x03 |
|
#define | TDA9840_TEST 0x04 |
|
#define | TDA9840_MONO 0x10 |
|
#define | TDA9840_STEREO 0x2a |
|
#define | TDA9840_DUALA 0x12 |
|
#define | TDA9840_DUALB 0x1e |
|
#define | TDA9840_DUALAB 0x1a |
|
#define | TDA9840_DUALBA 0x16 |
|
#define | TDA9840_EXTERNAL 0x7a |
|
#define | TDA9840_DS_DUAL 0x20 /* Dual sound identified */ |
|
#define | TDA9840_ST_STEREO 0x40 /* Stereo sound identified */ |
|
#define | TDA9840_PONRES 0x80 /* Power-on reset detected if = 1 */ |
|
#define | TDA9840_TEST_INT1SN 0x1 /* Integration time 0.5s when set */ |
|
#define | TDA9840_TEST_INTFU 0x02 /* Disables integrator function */ |
|
#define | TDA9855_VR 0x00 /* Volume, right */ |
|
#define | TDA9855_VL 0x01 /* Volume, left */ |
|
#define | TDA9855_BA 0x02 /* Bass */ |
|
#define | TDA9855_TR 0x03 /* Treble */ |
|
#define | TDA9855_SW 0x04 /* Subwoofer - not connected on DTV2000 */ |
|
#define | TDA9850_C4 0x04 /* Control 1 for TDA9850 */ |
|
#define | TDA985x_C5 0x05 /* Control 2 for TDA9850, Control 1 for TDA9855 */ |
|
#define | TDA985x_C6 0x06 /* Control 3 for TDA9850, Control 2 for TDA9855 */ |
|
#define | TDA985x_C7 0x07 /* Control 4 for TDA9850, Control 3 for TDA9855 */ |
|
#define | TDA985x_A1 0x08 /* Alignment 1 for both chips */ |
|
#define | TDA985x_A2 0x09 /* Alignment 2 for both chips */ |
|
#define | TDA985x_A3 0x0a /* Alignment 3 for both chips */ |
|
#define | TDA9855_MUTE 1<<7 /* GMU, Mute at outputs */ |
|
#define | TDA9855_AVL 1<<6 /* AVL, Automatic Volume Level */ |
|
#define | TDA9855_LOUD 1<<5 /* Loudness, 1==off */ |
|
#define | TDA9855_SUR 1<<3 /* Surround / Subwoofer 1==.5(L-R) 0==.5(L+R) */ |
|
#define | TDA9855_EXT 1<<2 /* Selects inputs LIR and LIL. Pins 41 & 12 */ |
|
#define | TDA9855_INT 0 /* Selects inputs LOR and LOL. (internal) */ |
|
#define | TDA985x_SAP 3<<6 /* Selects SAP output, mute if not received */ |
|
#define | TDA985x_MONOSAP 2<<6 /* Selects Mono on left, SAP on right */ |
|
#define | TDA985x_STEREO 1<<6 /* Selects Stereo ouput, mono if not received */ |
|
#define | TDA985x_MONO 0 /* Forces Mono output */ |
|
#define | TDA985x_LMU 1<<3 /* Mute (LOR/LOL for 9855, OUTL/OUTR for 9850) */ |
|
#define | TDA9855_TZCM 1<<5 /* If set, don't mute till zero crossing */ |
|
#define | TDA9855_VZCM 1<<4 /* If set, don't change volume till zero crossing*/ |
|
#define | TDA9855_LINEAR 0 /* Linear Stereo */ |
|
#define | TDA9855_PSEUDO 1 /* Pseudo Stereo */ |
|
#define | TDA9855_SPAT_30 2 /* Spatial Stereo, 30% anti-phase crosstalk */ |
|
#define | TDA9855_SPAT_50 3 /* Spatial Stereo, 52% anti-phase crosstalk */ |
|
#define | TDA9855_E_MONO 7 /* Forced mono - mono select elseware, so useless*/ |
|
#define | TDA985x_STP 1<<5 /* Stereo Pilot/detect (read-only) */ |
|
#define | TDA985x_SAPP 1<<6 /* SAP Pilot/detect (read-only) */ |
|
#define | TDA985x_STS 1<<7 /* Stereo trigger 1= <35mV 0= <30mV (write-only)*/ |
|
#define | TDA985x_ADJ 1<<7 /* Stereo adjust on/off (wideband and spectral */ |
|
#define | TDA9873_SW 0x00 /* Switching */ |
|
#define | TDA9873_AD 0x01 /* Adjust */ |
|
#define | TDA9873_PT 0x02 /* Port */ |
|
#define | TDA9873_INP_MASK 3 |
|
#define | TDA9873_INTERNAL 0 |
|
#define | TDA9873_EXT_STEREO 2 |
|
#define | TDA9873_EXT_MONO 1 |
|
#define | TDA9873_TR_MASK (7 << 2) |
|
#define | TDA9873_TR_MONO 4 |
|
#define | TDA9873_TR_STEREO 1 << 4 |
|
#define | TDA9873_TR_REVERSE ((1 << 3) | (1 << 2)) |
|
#define | TDA9873_TR_DUALA 1 << 2 |
|
#define | TDA9873_TR_DUALB 1 << 3 |
|
#define | TDA9873_TR_DUALAB 0 |
|
#define | TDA9873_GAIN_NORMAL 1 << 5 |
|
#define | TDA9873_MUTE 1 << 6 |
|
#define | TDA9873_AUTOMUTE 1 << 7 |
|
#define | TDA9873_STEREO_ADJ 0x06 /* 0dB gain */ |
|
#define | TDA9873_BG 0 |
|
#define | TDA9873_M 1 |
|
#define | TDA9873_DK1 2 |
|
#define | TDA9873_DK2 3 |
|
#define | TDA9873_DK3 4 |
|
#define | TDA9873_I 5 |
|
#define | TDA9873_IDR_NORM 0 |
|
#define | TDA9873_IDR_FAST 1 << 7 |
|
#define | TDA9873_PORTS 3 |
|
#define | TDA9873_TST_PORT 1 << 2 |
|
#define | TDA9873_MOUT_MONO 0 |
|
#define | TDA9873_MOUT_FMONO 0 |
|
#define | TDA9873_MOUT_DUALA 0 |
|
#define | TDA9873_MOUT_DUALB 1 << 3 |
|
#define | TDA9873_MOUT_ST 1 << 4 |
|
#define | TDA9873_MOUT_EXTM ((1 << 4) | (1 << 3)) |
|
#define | TDA9873_MOUT_EXTL 1 << 5 |
|
#define | TDA9873_MOUT_EXTR ((1 << 5) | (1 << 3)) |
|
#define | TDA9873_MOUT_EXTLR ((1 << 5) | (1 << 4)) |
|
#define | TDA9873_MOUT_MUTE ((1 << 5) | (1 << 4) | (1 << 3)) |
|
#define | TDA9873_PONR 0 /* Power-on reset detected if = 1 */ |
|
#define | TDA9873_STEREO 2 /* Stereo sound is identified */ |
|
#define | TDA9873_DUAL 4 /* Dual sound is identified */ |
|
#define | TDA9874A_AGCGR 0x00 /* AGC gain */ |
|
#define | TDA9874A_GCONR 0x01 /* general config */ |
|
#define | TDA9874A_MSR 0x02 /* monitor select */ |
|
#define | TDA9874A_C1FRA 0x03 /* carrier 1 freq. */ |
|
#define | TDA9874A_C1FRB 0x04 /* carrier 1 freq. */ |
|
#define | TDA9874A_C1FRC 0x05 /* carrier 1 freq. */ |
|
#define | TDA9874A_C2FRA 0x06 /* carrier 2 freq. */ |
|
#define | TDA9874A_C2FRB 0x07 /* carrier 2 freq. */ |
|
#define | TDA9874A_C2FRC 0x08 /* carrier 2 freq. */ |
|
#define | TDA9874A_DCR 0x09 /* demodulator config */ |
|
#define | TDA9874A_FMER 0x0a /* FM de-emphasis */ |
|
#define | TDA9874A_FMMR 0x0b /* FM dematrix */ |
|
#define | TDA9874A_C1OLAR 0x0c /* ch.1 output level adj. */ |
|
#define | TDA9874A_C2OLAR 0x0d /* ch.2 output level adj. */ |
|
#define | TDA9874A_NCONR 0x0e /* NICAM config */ |
|
#define | TDA9874A_NOLAR 0x0f /* NICAM output level adj. */ |
|
#define | TDA9874A_NLELR 0x10 /* NICAM lower error limit */ |
|
#define | TDA9874A_NUELR 0x11 /* NICAM upper error limit */ |
|
#define | TDA9874A_AMCONR 0x12 /* audio mute control */ |
|
#define | TDA9874A_SDACOSR 0x13 /* stereo DAC output select */ |
|
#define | TDA9874A_AOSR 0x14 /* analog output select */ |
|
#define | TDA9874A_DAICONR 0x15 /* digital audio interface config */ |
|
#define | TDA9874A_I2SOSR 0x16 /* I2S-bus output select */ |
|
#define | TDA9874A_I2SOLAR 0x17 /* I2S-bus output level adj. */ |
|
#define | TDA9874A_MDACOSR 0x18 /* mono DAC output select (tda9874a) */ |
|
#define | TDA9874A_ESP 0xFF /* easy standard progr. (tda9874a) */ |
|
#define | TDA9874A_DSR 0x00 /* device status */ |
|
#define | TDA9874A_NSR 0x01 /* NICAM status */ |
|
#define | TDA9874A_NECR 0x02 /* NICAM error count */ |
|
#define | TDA9874A_DR1 0x03 /* add. data LSB */ |
|
#define | TDA9874A_DR2 0x04 /* add. data MSB */ |
|
#define | TDA9874A_LLRA 0x05 /* monitor level read-out LSB */ |
|
#define | TDA9874A_LLRB 0x06 /* monitor level read-out MSB */ |
|
#define | TDA9874A_SIFLR 0x07 /* SIF level */ |
|
#define | TDA9874A_TR2 252 /* test reg. 2 */ |
|
#define | TDA9874A_TR1 253 /* test reg. 1 */ |
|
#define | TDA9874A_DIC 254 /* device id. code */ |
|
#define | TDA9874A_SIC 255 /* software id. code */ |
|
#define | TDA9875_MUT 0x12 /*General mute (value --> 0b11001100*/ |
|
#define | TDA9875_CFG 0x01 /* Config register (value --> 0b00000000 */ |
|
#define | TDA9875_DACOS 0x13 /*DAC i/o select (ADC) 0b0000100*/ |
|
#define | TDA9875_LOSR 0x16 /*Line output select regirter 0b0100 0001*/ |
|
#define | TDA9875_CH1V 0x0c /*Channel 1 volume (mute)*/ |
|
#define | TDA9875_CH2V 0x0d /*Channel 2 volume (mute)*/ |
|
#define | TDA9875_SC1 0x14 /*SCART 1 in (mono)*/ |
|
#define | TDA9875_SC2 0x15 /*SCART 2 in (mono)*/ |
|
#define | TDA9875_ADCIS 0x17 /*ADC input select (mono) 0b0110 000*/ |
|
#define | TDA9875_AER 0x19 /*Audio effect (AVL+Pseudo) 0b0000 0110*/ |
|
#define | TDA9875_MCS 0x18 /*Main channel select (DAC) 0b0000100*/ |
|
#define | TDA9875_MVL 0x1a /* Main volume gauche */ |
|
#define | TDA9875_MVR 0x1b /* Main volume droite */ |
|
#define | TDA9875_MBA 0x1d /* Main Basse */ |
|
#define | TDA9875_MTR 0x1e /* Main treble */ |
|
#define | TDA9875_ACS 0x1f /* Auxiliary channel select (FM) 0b0000000*/ |
|
#define | TDA9875_AVL 0x20 /* Auxiliary volume gauche */ |
|
#define | TDA9875_AVR 0x21 /* Auxiliary volume droite */ |
|
#define | TDA9875_ABA 0x22 /* Auxiliary Basse */ |
|
#define | TDA9875_ATR 0x23 /* Auxiliary treble */ |
|
#define | TDA9875_MSR 0x02 /* Monitor select register */ |
|
#define | TDA9875_C1MSB 0x03 /* Carrier 1 (FM) frequency register MSB */ |
|
#define | TDA9875_C1MIB 0x04 /* Carrier 1 (FM) frequency register (16-8]b */ |
|
#define | TDA9875_C1LSB 0x05 /* Carrier 1 (FM) frequency register LSB */ |
|
#define | TDA9875_C2MSB 0x06 /* Carrier 2 (nicam) frequency register MSB */ |
|
#define | TDA9875_C2MIB 0x07 /* Carrier 2 (nicam) frequency register (16-8]b */ |
|
#define | TDA9875_C2LSB 0x08 /* Carrier 2 (nicam) frequency register LSB */ |
|
#define | TDA9875_DCR 0x09 /* Demodulateur configuration regirter*/ |
|
#define | TDA9875_DEEM 0x0a /* FM de-emphasis regirter*/ |
|
#define | TDA9875_FMAT 0x0b /* FM Matrix regirter*/ |
|
#define | TDA9875_MUTE_ON 0xff /* general mute */ |
|
#define | TDA9875_MUTE_OFF 0xcc /* general no mute */ |
|
#define | TEA6300_VL 0x00 /* volume left */ |
|
#define | TEA6300_VR 0x01 /* volume right */ |
|
#define | TEA6300_BA 0x02 /* bass */ |
|
#define | TEA6300_TR 0x03 /* treble */ |
|
#define | TEA6300_FA 0x04 /* fader control */ |
|
#define | TEA6300_S 0x05 /* switch register */ |
|
#define | TEA6300_S_SA 0x01 /* stereo A input */ |
|
#define | TEA6300_S_SB 0x02 /* stereo B */ |
|
#define | TEA6300_S_SC 0x04 /* stereo C */ |
|
#define | TEA6300_S_GMU 0x80 /* general mute */ |
|
#define | TEA6320_V 0x00 /* volume (0-5)/loudness off (6)/zero crossing mute(7) */ |
|
#define | TEA6320_FFR 0x01 /* fader front right (0-5) */ |
|
#define | TEA6320_FFL 0x02 /* fader front left (0-5) */ |
|
#define | TEA6320_FRR 0x03 /* fader rear right (0-5) */ |
|
#define | TEA6320_FRL 0x04 /* fader rear left (0-5) */ |
|
#define | TEA6320_BA 0x05 /* bass (0-4) */ |
|
#define | TEA6320_TR 0x06 /* treble (0-4) */ |
|
#define | TEA6320_S 0x07 /* switch register */ |
|
#define | TEA6320_S_SA 0x07 /* stereo A input */ |
|
#define | TEA6320_S_SB 0x06 /* stereo B */ |
|
#define | TEA6320_S_SC 0x05 /* stereo C */ |
|
#define | TEA6320_S_SD 0x04 /* stereo D */ |
|
#define | TEA6320_S_GMU 0x80 /* general mute */ |
|
#define | TEA6420_S_SA 0x00 /* stereo A input */ |
|
#define | TEA6420_S_SB 0x01 /* stereo B */ |
|
#define | TEA6420_S_SC 0x02 /* stereo C */ |
|
#define | TEA6420_S_SD 0x03 /* stereo D */ |
|
#define | TEA6420_S_SE 0x04 /* stereo E */ |
|
#define | TEA6420_S_GMU 0x05 /* general mute */ |
|
#define | TDA8425_VL 0x00 /* volume left */ |
|
#define | TDA8425_VR 0x01 /* volume right */ |
|
#define | TDA8425_BA 0x02 /* bass */ |
|
#define | TDA8425_TR 0x03 /* treble */ |
|
#define | TDA8425_S1 0x08 /* switch functions */ |
|
#define | TDA8425_S1_OFF 0xEE /* audio off (mute on) */ |
|
#define | TDA8425_S1_CH1 0xCE /* audio channel 1 (mute off) - "linear stereo" mode */ |
|
#define | TDA8425_S1_CH2 0xCF /* audio channel 2 (mute off) - "linear stereo" mode */ |
|
#define | TDA8425_S1_MU 0x20 /* mute bit */ |
|
#define | TDA8425_S1_STEREO 0x18 /* stereo bits */ |
|
#define | TDA8425_S1_STEREO_SPATIAL 0x18 /* spatial stereo */ |
|
#define | TDA8425_S1_STEREO_LINEAR 0x08 /* linear stereo */ |
|
#define | TDA8425_S1_STEREO_PSEUDO 0x10 /* pseudo stereo */ |
|
#define | TDA8425_S1_STEREO_MONO 0x00 /* forced mono */ |
|
#define | TDA8425_S1_ML 0x06 /* language selector */ |
|
#define | TDA8425_S1_ML_SOUND_A 0x02 /* sound a */ |
|
#define | TDA8425_S1_ML_SOUND_B 0x04 /* sound b */ |
|
#define | TDA8425_S1_ML_STEREO 0x06 /* stereo */ |
|
#define | TDA8425_S1_IS 0x01 /* channel selector */ |
|
#define | PIC16C54_REG_KEY_CODE 0x01 /* Not use. */ |
|
#define | PIC16C54_REG_MISC 0x02 |
|
#define | PIC16C54_MISC_RESET_REMOTE_CTL 0x01 /* bit 0, Reset to receive the key */ |
|
#define | PIC16C54_MISC_MTS_MAIN 0x02 /* bit 1 */ |
|
#define | PIC16C54_MISC_MTS_SAP 0x04 /* bit 2 */ |
|
#define | PIC16C54_MISC_MTS_BOTH 0x08 /* bit 3 */ |
|
#define | PIC16C54_MISC_SND_MUTE 0x10 /* bit 4, Mute Audio(Line-in and Tuner) */ |
|
#define | PIC16C54_MISC_SND_NOTMUTE 0x20 /* bit 5 */ |
|
#define | PIC16C54_MISC_SWITCH_TUNER 0x40 /* bit 6 , Switch to Line-in */ |
|
#define | PIC16C54_MISC_SWITCH_LINE 0x80 /* bit 7 , Switch to Tuner */ |
|
#define | TA8874Z_LED_STE 0x80 |
|
#define | TA8874Z_LED_BIL 0x40 |
|
#define | TA8874Z_LED_EXT 0x20 |
|
#define | TA8874Z_MONO_SET 0x10 |
|
#define | TA8874Z_MUTE 0x08 |
|
#define | TA8874Z_F_MONO 0x04 |
|
#define | TA8874Z_MODE_SUB 0x02 |
|
#define | TA8874Z_MODE_MAIN 0x01 |
|
#define | TA8874Z_SEPARATION 0x3f |
|
#define | TA8874Z_SEPARATION_DEFAULT 0x10 |
|
#define | TA8874Z_B1 0x80 |
|
#define | TA8874Z_B0 0x40 |
|
#define | TA8874Z_CHAG_FLAG 0x20 |
|