linux/drivers/media/pci/saa7134/saa7134-tvaudio.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *
 * device driver for philips saa7134 based TV cards
 * tv audio decoder (fm stereo, nicam, ...)
 *
 * (c) 2001-03 Gerd Knorr <[email protected]> [SuSE Labs]
 */

#include "saa7134.h"
#include "saa7134-reg.h"

#include <linux/init.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/kthread.h>
#include <linux/delay.h>
#include <linux/freezer.h>
#include <asm/div64.h>

/* ------------------------------------------------------------------ */

static unsigned int audio_debug;
module_param(audio_debug, int, 0644);
MODULE_PARM_DESC();

static unsigned int audio_ddep;
module_param(audio_ddep, int, 0644);
MODULE_PARM_DESC();

static int audio_clock_override =;
module_param(audio_clock_override, int, 0644);

static int audio_clock_tweak;
module_param(audio_clock_tweak, int, 0644);
MODULE_PARM_DESC();

#define audio_dbg(level, fmt, arg...)

/* msecs */
#define SCAN_INITIAL_DELAY
#define SCAN_SAMPLE_DELAY
#define SCAN_SUBCARRIER_DELAY

/* ------------------------------------------------------------------ */
/* saa7134 code                                                       */

static struct mainscan {} mainscan[] =;

static struct saa7134_tvaudio tvaudio[] =;
#define TVAUDIO

/* ------------------------------------------------------------------ */

static u32 tvaudio_carr2reg(u32 carrier)
{}

static void tvaudio_setcarrier(struct saa7134_dev *dev,
			       int primary, int secondary)
{}

#define SAA7134_MUTE_MASK
#define SAA7134_MUTE_ANALOG
#define SAA7134_MUTE_I2S

static void mute_input_7134(struct saa7134_dev *dev)
{}

static void tvaudio_setmode(struct saa7134_dev *dev,
			    struct saa7134_tvaudio *audio,
			    char *note)
{}

static int tvaudio_sleep(struct saa7134_dev *dev, int timeout)
{}

static int tvaudio_checkcarrier(struct saa7134_dev *dev, struct mainscan *scan)
{}


static int tvaudio_getstereo(struct saa7134_dev *dev, struct saa7134_tvaudio *audio)
{}

static int tvaudio_setstereo(struct saa7134_dev *dev, struct saa7134_tvaudio *audio,
			     u32 mode)
{}

static int tvaudio_thread(void *data)
{}

/* ------------------------------------------------------------------ */
/* saa7133 / saa7135 code                                             */

static char *stdres[0x20] =;

#define DSP_RETRY
#define DSP_DELAY
#define SAA7135_DSP_RWCLEAR_RERR

static inline int saa_dsp_reset_error_bit(struct saa7134_dev *dev)
{}

static inline int saa_dsp_wait_bit(struct saa7134_dev *dev, int bit)
{}


int saa_dsp_writel(struct saa7134_dev *dev, int reg, u32 value)
{}

static int getstereo_7133(struct saa7134_dev *dev)
{}

static int mute_input_7133(struct saa7134_dev *dev)
{}

static int tvaudio_thread_ddep(void *data)
{}

/* ------------------------------------------------------------------ */
/* common stuff + external entry points                               */

void saa7134_enable_i2s(struct saa7134_dev *dev)
{}

int saa7134_tvaudio_rx2mode(u32 rx)
{}

void saa7134_tvaudio_setmute(struct saa7134_dev *dev)
{}

void saa7134_tvaudio_setinput(struct saa7134_dev *dev,
			      struct saa7134_input *in)
{}

void saa7134_tvaudio_setvolume(struct saa7134_dev *dev, int level)
{}

int saa7134_tvaudio_getstereo(struct saa7134_dev *dev)
{}

void saa7134_tvaudio_init(struct saa7134_dev *dev)
{}

int saa7134_tvaudio_init2(struct saa7134_dev *dev)
{}

int saa7134_tvaudio_close(struct saa7134_dev *dev)
{}

int saa7134_tvaudio_fini(struct saa7134_dev *dev)
{}

int saa7134_tvaudio_do_scan(struct saa7134_dev *dev)
{}

EXPORT_SYMBOL();
EXPORT_SYMBOL();