18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci tvaudio.h - definition for tvaudio inputs 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci Copyright (C) 2006 Hans Verkuil (hverkuil@xs4all.nl) 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci*/ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#ifndef _TVAUDIO_H 108c2ecf20Sopenharmony_ci#define _TVAUDIO_H 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci/* 138c2ecf20Sopenharmony_ci * i2c bus addresses for the chips supported by tvaudio.c 148c2ecf20Sopenharmony_ci */ 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#define I2C_ADDR_TDA8425 0x82 178c2ecf20Sopenharmony_ci#define I2C_ADDR_TDA9840 0x84 188c2ecf20Sopenharmony_ci#define I2C_ADDR_TDA9874 0xb0 /* also used by 9875 */ 198c2ecf20Sopenharmony_ci#define I2C_ADDR_TDA9875 0xb0 208c2ecf20Sopenharmony_ci#define I2C_ADDR_TDA8425 0x82 218c2ecf20Sopenharmony_ci#define I2C_ADDR_TDA9840 0x84 /* also used by TA8874Z */ 228c2ecf20Sopenharmony_ci#define I2C_ADDR_TDA985x_L 0xb4 /* also used by 9873 */ 238c2ecf20Sopenharmony_ci#define I2C_ADDR_TDA985x_H 0xb6 248c2ecf20Sopenharmony_ci#define I2C_ADDR_TDA9874 0xb0 /* also used by 9875 */ 258c2ecf20Sopenharmony_ci#define I2C_ADDR_TEA6300 0x80 /* also used by 6320 */ 268c2ecf20Sopenharmony_ci#define I2C_ADDR_TEA6420 0x98 278c2ecf20Sopenharmony_ci#define I2C_ADDR_PIC16C54 0x96 /* PV951 */ 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci/* The tvaudio module accepts the following inputs: */ 308c2ecf20Sopenharmony_ci#define TVAUDIO_INPUT_TUNER 0 318c2ecf20Sopenharmony_ci#define TVAUDIO_INPUT_RADIO 1 328c2ecf20Sopenharmony_ci#define TVAUDIO_INPUT_EXTERN 2 338c2ecf20Sopenharmony_ci#define TVAUDIO_INPUT_INTERN 3 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_cistatic inline const unsigned short *tvaudio_addrs(void) 368c2ecf20Sopenharmony_ci{ 378c2ecf20Sopenharmony_ci static const unsigned short addrs[] = { 388c2ecf20Sopenharmony_ci I2C_ADDR_TDA8425 >> 1, 398c2ecf20Sopenharmony_ci I2C_ADDR_TEA6300 >> 1, 408c2ecf20Sopenharmony_ci I2C_ADDR_TEA6420 >> 1, 418c2ecf20Sopenharmony_ci I2C_ADDR_TDA9840 >> 1, 428c2ecf20Sopenharmony_ci I2C_ADDR_TDA985x_L >> 1, 438c2ecf20Sopenharmony_ci I2C_ADDR_TDA985x_H >> 1, 448c2ecf20Sopenharmony_ci I2C_ADDR_TDA9874 >> 1, 458c2ecf20Sopenharmony_ci I2C_ADDR_PIC16C54 >> 1, 468c2ecf20Sopenharmony_ci I2C_CLIENT_END 478c2ecf20Sopenharmony_ci }; 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci return addrs; 508c2ecf20Sopenharmony_ci} 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci#endif 53