~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/media/i2c/m52790.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*
  3     m52790.h - definition for m52790 inputs and outputs
  4 
  5     Copyright (C) 2007 Hans Verkuil (hverkuil@xs4all.nl)
  6 
  7 */
  8 
  9 #ifndef _M52790_H_
 10 #define _M52790_H_
 11 
 12 /* Input routing switch 1 */
 13 
 14 #define M52790_SW1_IN_MASK      0x0003
 15 #define M52790_SW1_IN_TUNER     0x0000
 16 #define M52790_SW1_IN_V2        0x0001
 17 #define M52790_SW1_IN_V3        0x0002
 18 #define M52790_SW1_IN_V4        0x0003
 19 
 20 /* Selects component input instead of composite */
 21 #define M52790_SW1_YCMIX        0x0004
 22 
 23 
 24 /* Input routing switch 2 */
 25 
 26 #define M52790_SW2_IN_MASK      0x0300
 27 #define M52790_SW2_IN_TUNER     0x0000
 28 #define M52790_SW2_IN_V2        0x0100
 29 #define M52790_SW2_IN_V3        0x0200
 30 #define M52790_SW2_IN_V4        0x0300
 31 
 32 /* Selects component input instead of composite */
 33 #define M52790_SW2_YCMIX        0x0400
 34 
 35 
 36 /* Output routing switch 1 */
 37 
 38 /* Enable 6dB amplifier for composite out */
 39 #define M52790_SW1_V_AMP        0x0008
 40 
 41 /* Enable 6dB amplifier for component out */
 42 #define M52790_SW1_YC_AMP       0x0010
 43 
 44 /* Audio output mode */
 45 #define M52790_SW1_AUDIO_MASK   0x00c0
 46 #define M52790_SW1_AUDIO_MUTE   0x0000
 47 #define M52790_SW1_AUDIO_R      0x0040
 48 #define M52790_SW1_AUDIO_L      0x0080
 49 #define M52790_SW1_AUDIO_STEREO 0x00c0
 50 
 51 
 52 /* Output routing switch 2 */
 53 
 54 /* Enable 6dB amplifier for composite out */
 55 #define M52790_SW2_V_AMP        0x0800
 56 
 57 /* Enable 6dB amplifier for component out */
 58 #define M52790_SW2_YC_AMP       0x1000
 59 
 60 /* Audio output mode */
 61 #define M52790_SW2_AUDIO_MASK   0xc000
 62 #define M52790_SW2_AUDIO_MUTE   0x0000
 63 #define M52790_SW2_AUDIO_R      0x4000
 64 #define M52790_SW2_AUDIO_L      0x8000
 65 #define M52790_SW2_AUDIO_STEREO 0xc000
 66 
 67 
 68 /* Common values */
 69 #define M52790_IN_TUNER (M52790_SW1_IN_TUNER | M52790_SW2_IN_TUNER)
 70 #define M52790_IN_V2    (M52790_SW1_IN_V2 | M52790_SW2_IN_V2)
 71 #define M52790_IN_V3    (M52790_SW1_IN_V3 | M52790_SW2_IN_V3)
 72 #define M52790_IN_V4    (M52790_SW1_IN_V4 | M52790_SW2_IN_V4)
 73 
 74 #define M52790_OUT_STEREO       (M52790_SW1_AUDIO_STEREO | \
 75                                  M52790_SW2_AUDIO_STEREO)
 76 #define M52790_OUT_AMP_STEREO   (M52790_SW1_AUDIO_STEREO | \
 77                                  M52790_SW1_V_AMP | \
 78                                  M52790_SW2_AUDIO_STEREO | \
 79                                  M52790_SW2_V_AMP)
 80 
 81 #endif
 82 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php