linux/include/media/i2c/m52790.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
    m52790.h - definition for m52790 inputs and outputs

    Copyright (C) 2007 Hans Verkuil ([email protected])

*/

#ifndef _M52790_H_
#define _M52790_H_

/* Input routing switch 1 */

#define M52790_SW1_IN_MASK
#define M52790_SW1_IN_TUNER
#define M52790_SW1_IN_V2
#define M52790_SW1_IN_V3
#define M52790_SW1_IN_V4

/* Selects component input instead of composite */
#define M52790_SW1_YCMIX


/* Input routing switch 2 */

#define M52790_SW2_IN_MASK
#define M52790_SW2_IN_TUNER
#define M52790_SW2_IN_V2
#define M52790_SW2_IN_V3
#define M52790_SW2_IN_V4

/* Selects component input instead of composite */
#define M52790_SW2_YCMIX


/* Output routing switch 1 */

/* Enable 6dB amplifier for composite out */
#define M52790_SW1_V_AMP

/* Enable 6dB amplifier for component out */
#define M52790_SW1_YC_AMP

/* Audio output mode */
#define M52790_SW1_AUDIO_MASK
#define M52790_SW1_AUDIO_MUTE
#define M52790_SW1_AUDIO_R
#define M52790_SW1_AUDIO_L
#define M52790_SW1_AUDIO_STEREO


/* Output routing switch 2 */

/* Enable 6dB amplifier for composite out */
#define M52790_SW2_V_AMP

/* Enable 6dB amplifier for component out */
#define M52790_SW2_YC_AMP

/* Audio output mode */
#define M52790_SW2_AUDIO_MASK
#define M52790_SW2_AUDIO_MUTE
#define M52790_SW2_AUDIO_R
#define M52790_SW2_AUDIO_L
#define M52790_SW2_AUDIO_STEREO


/* Common values */
#define M52790_IN_TUNER
#define M52790_IN_V2
#define M52790_IN_V3
#define M52790_IN_V4

#define M52790_OUT_STEREO
#define M52790_OUT_AMP_STEREO

#endif