linux/drivers/media/radio/radio-trust.c

// SPDX-License-Identifier: GPL-2.0-only
/* radio-trust.c - Trust FM Radio card driver for Linux 2.2
 * by Eric Lammerts <[email protected]>
 *
 * Based on radio-aztech.c. Original notes:
 *
 * Adapted to support the Video for Linux API by
 * Russell Kroll <[email protected]>.  Based on original tuner code by:
 *
 * Quay Ly
 * Donald Song
 * Jason Lewis      ([email protected])
 * Scott McGrath    ([email protected])
 * William McGrath  ([email protected])
 *
 * Converted to V4L2 API by Mauro Carvalho Chehab <[email protected]>
 */

#include <linux/module.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/videodev2.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include "radio-isa.h"

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_VERSION();

/* acceptable ports: 0x350 (JP3 shorted), 0x358 (JP3 open) */

#ifndef CONFIG_RADIO_TRUST_PORT
#define CONFIG_RADIO_TRUST_PORT
#endif

#define TRUST_MAX

static int io[TRUST_MAX] =;
static int radio_nr[TRUST_MAX] =;

module_param_array();
MODULE_PARM_DESC();
module_param_array();
MODULE_PARM_DESC();

struct trust {};

static struct radio_isa_card *trust_alloc(void)
{}

/* i2c addresses */
#define TDA7318_ADDR
#define TSA6060T_ADDR

#define TR_DELAY
#define TR_SET_SCL
#define TR_CLR_SCL
#define TR_SET_SDA
#define TR_CLR_SDA

static void write_i2c(struct trust *tr, int n, ...)
{}

static int trust_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol)
{}

static int trust_s_stereo(struct radio_isa_card *isa, bool stereo)
{}

static u32 trust_g_signal(struct radio_isa_card *isa)
{}

static int trust_s_frequency(struct radio_isa_card *isa, u32 freq)
{}

static int basstreble2chip[15] =;

static int trust_s_ctrl(struct v4l2_ctrl *ctrl)
{}

static const struct v4l2_ctrl_ops trust_ctrl_ops =;

static int trust_initialize(struct radio_isa_card *isa)
{}

static const struct radio_isa_ops trust_ops =;

static const int trust_ioports[] =;

static struct radio_isa_driver trust_driver =;

static int __init trust_init(void)
{}

static void __exit trust_exit(void)
{}

module_init();
module_exit(trust_exit);