/*1m52790.h - definition for m52790 inputs and outputs23Copyright (C) 2007 Hans Verkuil ([email protected])45This program is free software; you can redistribute it and/or modify6it under the terms of the GNU General Public License as published by7the Free Software Foundation; either version 2 of the License, or8(at your option) any later version.910This program is distributed in the hope that it will be useful,11but WITHOUT ANY WARRANTY; without even the implied warranty of12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13GNU General Public License for more details.1415You should have received a copy of the GNU General Public License16along with this program; if not, write to the Free Software17Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.18*/1920#ifndef _M52790_H_21#define _M52790_H_2223/* Input routing switch 1 */2425#define M52790_SW1_IN_MASK 0x000326#define M52790_SW1_IN_TUNER 0x000027#define M52790_SW1_IN_V2 0x000128#define M52790_SW1_IN_V3 0x000229#define M52790_SW1_IN_V4 0x00033031/* Selects component input instead of composite */32#define M52790_SW1_YCMIX 0x0004333435/* Input routing switch 2 */3637#define M52790_SW2_IN_MASK 0x030038#define M52790_SW2_IN_TUNER 0x000039#define M52790_SW2_IN_V2 0x010040#define M52790_SW2_IN_V3 0x020041#define M52790_SW2_IN_V4 0x03004243/* Selects component input instead of composite */44#define M52790_SW2_YCMIX 0x0400454647/* Output routing switch 1 */4849/* Enable 6dB amplifier for composite out */50#define M52790_SW1_V_AMP 0x00085152/* Enable 6dB amplifier for component out */53#define M52790_SW1_YC_AMP 0x00105455/* Audio output mode */56#define M52790_SW1_AUDIO_MASK 0x00c057#define M52790_SW1_AUDIO_MUTE 0x000058#define M52790_SW1_AUDIO_R 0x004059#define M52790_SW1_AUDIO_L 0x008060#define M52790_SW1_AUDIO_STEREO 0x00c0616263/* Output routing switch 2 */6465/* Enable 6dB amplifier for composite out */66#define M52790_SW2_V_AMP 0x08006768/* Enable 6dB amplifier for component out */69#define M52790_SW2_YC_AMP 0x10007071/* Audio output mode */72#define M52790_SW2_AUDIO_MASK 0xc00073#define M52790_SW2_AUDIO_MUTE 0x000074#define M52790_SW2_AUDIO_R 0x400075#define M52790_SW2_AUDIO_L 0x800076#define M52790_SW2_AUDIO_STEREO 0xc000777879/* Common values */80#define M52790_IN_TUNER (M52790_SW1_IN_TUNER | M52790_SW2_IN_TUNER)81#define M52790_IN_V2 (M52790_SW1_IN_V2 | M52790_SW2_IN_V2)82#define M52790_IN_V3 (M52790_SW1_IN_V3 | M52790_SW2_IN_V3)83#define M52790_IN_V4 (M52790_SW1_IN_V4 | M52790_SW2_IN_V4)8485#define M52790_OUT_STEREO (M52790_SW1_AUDIO_STEREO | \86M52790_SW2_AUDIO_STEREO)87#define M52790_OUT_AMP_STEREO (M52790_SW1_AUDIO_STEREO | \88M52790_SW1_V_AMP | \89M52790_SW2_AUDIO_STEREO | \90M52790_SW2_V_AMP)9192#endif939495