Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v4.17-rc7 64 lines 2.0 kB view raw
1/* 2 tvaudio.h - definition for tvaudio inputs 3 4 Copyright (C) 2006 Hans Verkuil (hverkuil@xs4all.nl) 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2 of the License, or 9 (at your option) any later version. 10 11 This program is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with this program; if not, write to the Free Software 18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19*/ 20 21#ifndef _TVAUDIO_H 22#define _TVAUDIO_H 23 24/* 25 * i2c bus addresses for the chips supported by tvaudio.c 26 */ 27 28#define I2C_ADDR_TDA8425 0x82 29#define I2C_ADDR_TDA9840 0x84 30#define I2C_ADDR_TDA9874 0xb0 /* also used by 9875 */ 31#define I2C_ADDR_TDA9875 0xb0 32#define I2C_ADDR_TDA8425 0x82 33#define I2C_ADDR_TDA9840 0x84 /* also used by TA8874Z */ 34#define I2C_ADDR_TDA985x_L 0xb4 /* also used by 9873 */ 35#define I2C_ADDR_TDA985x_H 0xb6 36#define I2C_ADDR_TDA9874 0xb0 /* also used by 9875 */ 37#define I2C_ADDR_TEA6300 0x80 /* also used by 6320 */ 38#define I2C_ADDR_TEA6420 0x98 39#define I2C_ADDR_PIC16C54 0x96 /* PV951 */ 40 41/* The tvaudio module accepts the following inputs: */ 42#define TVAUDIO_INPUT_TUNER 0 43#define TVAUDIO_INPUT_RADIO 1 44#define TVAUDIO_INPUT_EXTERN 2 45#define TVAUDIO_INPUT_INTERN 3 46 47static inline const unsigned short *tvaudio_addrs(void) 48{ 49 static const unsigned short addrs[] = { 50 I2C_ADDR_TDA8425 >> 1, 51 I2C_ADDR_TEA6300 >> 1, 52 I2C_ADDR_TEA6420 >> 1, 53 I2C_ADDR_TDA9840 >> 1, 54 I2C_ADDR_TDA985x_L >> 1, 55 I2C_ADDR_TDA985x_H >> 1, 56 I2C_ADDR_TDA9874 >> 1, 57 I2C_ADDR_PIC16C54 >> 1, 58 I2C_CLIENT_END 59 }; 60 61 return addrs; 62} 63 64#endif