Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     m52790.h - definition for m52790 inputs and outputs
0004 
0005     Copyright (C) 2007 Hans Verkuil (hverkuil@xs4all.nl)
0006 
0007 */
0008 
0009 #ifndef _M52790_H_
0010 #define _M52790_H_
0011 
0012 /* Input routing switch 1 */
0013 
0014 #define M52790_SW1_IN_MASK  0x0003
0015 #define M52790_SW1_IN_TUNER 0x0000
0016 #define M52790_SW1_IN_V2    0x0001
0017 #define M52790_SW1_IN_V3    0x0002
0018 #define M52790_SW1_IN_V4    0x0003
0019 
0020 /* Selects component input instead of composite */
0021 #define M52790_SW1_YCMIX    0x0004
0022 
0023 
0024 /* Input routing switch 2 */
0025 
0026 #define M52790_SW2_IN_MASK  0x0300
0027 #define M52790_SW2_IN_TUNER 0x0000
0028 #define M52790_SW2_IN_V2    0x0100
0029 #define M52790_SW2_IN_V3    0x0200
0030 #define M52790_SW2_IN_V4    0x0300
0031 
0032 /* Selects component input instead of composite */
0033 #define M52790_SW2_YCMIX    0x0400
0034 
0035 
0036 /* Output routing switch 1 */
0037 
0038 /* Enable 6dB amplifier for composite out */
0039 #define M52790_SW1_V_AMP    0x0008
0040 
0041 /* Enable 6dB amplifier for component out */
0042 #define M52790_SW1_YC_AMP   0x0010
0043 
0044 /* Audio output mode */
0045 #define M52790_SW1_AUDIO_MASK   0x00c0
0046 #define M52790_SW1_AUDIO_MUTE   0x0000
0047 #define M52790_SW1_AUDIO_R  0x0040
0048 #define M52790_SW1_AUDIO_L  0x0080
0049 #define M52790_SW1_AUDIO_STEREO 0x00c0
0050 
0051 
0052 /* Output routing switch 2 */
0053 
0054 /* Enable 6dB amplifier for composite out */
0055 #define M52790_SW2_V_AMP    0x0800
0056 
0057 /* Enable 6dB amplifier for component out */
0058 #define M52790_SW2_YC_AMP   0x1000
0059 
0060 /* Audio output mode */
0061 #define M52790_SW2_AUDIO_MASK   0xc000
0062 #define M52790_SW2_AUDIO_MUTE   0x0000
0063 #define M52790_SW2_AUDIO_R  0x4000
0064 #define M52790_SW2_AUDIO_L  0x8000
0065 #define M52790_SW2_AUDIO_STEREO 0xc000
0066 
0067 
0068 /* Common values */
0069 #define M52790_IN_TUNER (M52790_SW1_IN_TUNER | M52790_SW2_IN_TUNER)
0070 #define M52790_IN_V2    (M52790_SW1_IN_V2 | M52790_SW2_IN_V2)
0071 #define M52790_IN_V3    (M52790_SW1_IN_V3 | M52790_SW2_IN_V3)
0072 #define M52790_IN_V4    (M52790_SW1_IN_V4 | M52790_SW2_IN_V4)
0073 
0074 #define M52790_OUT_STEREO   (M52790_SW1_AUDIO_STEREO | \
0075                  M52790_SW2_AUDIO_STEREO)
0076 #define M52790_OUT_AMP_STEREO   (M52790_SW1_AUDIO_STEREO | \
0077                  M52790_SW1_V_AMP | \
0078                  M52790_SW2_AUDIO_STEREO | \
0079                  M52790_SW2_V_AMP)
0080 
0081 #endif