linux/drivers/media/pci/solo6x10/solo6x10-tw28.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2010-2013 Bluecherry, LLC <https://www.bluecherrydvr.com>
 *
 * Original author:
 * Ben Collins <[email protected]>
 *
 * Additional work by:
 * John Brooks <[email protected]>
 */

#ifndef __SOLO6X10_TW28_H
#define __SOLO6X10_TW28_H

#include "solo6x10.h"

#define TW_NUM_CHIP
#define TW_BASE_ADDR
#define TW_CHIP_OFFSET_ADDR(n)

/* tw2815 */
#define TW_AV_STAT_ADDR
#define TW_HUE_ADDR(n)
#define TW_SATURATION_ADDR(n)
#define TW_CONTRAST_ADDR(n)
#define TW_BRIGHTNESS_ADDR(n)
#define TW_AUDIO_OUTPUT_VOL_ADDR
#define TW_AUDIO_INPUT_GAIN_ADDR(n)

/* tw286x */
#define TW286x_AV_STAT_ADDR
#define TW286x_HUE_ADDR(n)
#define TW286x_SATURATIONU_ADDR(n)
#define TW286x_SATURATIONV_ADDR(n)
#define TW286x_CONTRAST_ADDR(n)
#define TW286x_BRIGHTNESS_ADDR(n)
#define TW286x_SHARPNESS(n)
#define TW286x_AUDIO_OUTPUT_VOL_ADDR
#define TW286x_AUDIO_INPUT_GAIN_ADDR(n)

int solo_tw28_init(struct solo_dev *solo_dev);

int tw28_set_ctrl_val(struct solo_dev *solo_dev, u32 ctrl, u8 ch, s32 val);
int tw28_get_ctrl_val(struct solo_dev *solo_dev, u32 ctrl, u8 ch, s32 *val);
bool tw28_has_sharpness(struct solo_dev *solo_dev, u8 ch);

u8 tw28_get_audio_gain(struct solo_dev *solo_dev, u8 ch);
void tw28_set_audio_gain(struct solo_dev *solo_dev, u8 ch, u8 val);
int tw28_get_video_status(struct solo_dev *solo_dev, u8 ch);

#if 0
unsigned int tw2815_get_audio_status(struct SOLO *solo);
void tw2815_Set_AudioOutVol(struct SOLO *solo, unsigned int u_val);
#endif

#endif /* __SOLO6X10_TW28_H */