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

// SPDX-License-Identifier: GPL-2.0-only
/*
 * radio-aztech.c - Aztech radio card driver
 *
 * Converted to the radio-isa framework by Hans Verkuil <[email protected]>
 * Converted to V4L2 API by Mauro Carvalho Chehab <[email protected]>
 * 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])
 *
 * Fully tested with the Keene USB FM Transmitter and the v4l2-compliance tool.
*/

#include <linux/module.h>	/* Modules			*/
#include <linux/init.h>		/* Initdata			*/
#include <linux/ioport.h>	/* request_region		*/
#include <linux/delay.h>	/* udelay			*/
#include <linux/videodev2.h>	/* kernel radio structs		*/
#include <linux/io.h>		/* outb, outb_p			*/
#include <linux/slab.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-ctrls.h>
#include "radio-isa.h"
#include "lm7000.h"

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

/* acceptable ports: 0x350 (JP3 shorted), 0x358 (JP3 open) */
#ifndef CONFIG_RADIO_AZTECH_PORT
#define CONFIG_RADIO_AZTECH_PORT
#endif

#define AZTECH_MAX

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

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

struct aztech {};

/* bit definitions for register read */
#define AZTECH_BIT_NOT_TUNED
#define AZTECH_BIT_MONO
/* bit definitions for register write */
#define AZTECH_BIT_TUN_CE
#define AZTECH_BIT_TUN_CLK
#define AZTECH_BIT_TUN_DATA
/* bits 0 and 2 are volume control, bits 3..5 are not connected */

static void aztech_set_pins(void *handle, u8 pins)
{}

static struct radio_isa_card *aztech_alloc(void)
{}

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

static u32 aztech_g_rxsubchans(struct radio_isa_card *isa)
{}

static u32 aztech_g_signal(struct radio_isa_card *isa)
{}

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

static const struct radio_isa_ops aztech_ops =;

static const int aztech_ioports[] =;

static struct radio_isa_driver aztech_driver =;

static int __init aztech_init(void)
{}

static void __exit aztech_exit(void)
{}

module_init();
module_exit(aztech_exit);