linux/drivers/media/i2c/saa6752hs.c

// SPDX-License-Identifier: GPL-2.0-or-later
 /*
    saa6752hs - i2c-driver for the saa6752hs by Philips

    Copyright (C) 2004 Andrew de Quincey

    AC-3 support:

    Copyright (C) 2008 Hans Verkuil <[email protected]>

  */

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/i2c.h>
#include <linux/types.h>
#include <linux/videodev2.h>
#include <linux/init.h>
#include <linux/crc32.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-common.h>

#define MPEG_VIDEO_TARGET_BITRATE_MAX
#define MPEG_VIDEO_MAX_BITRATE_MAX
#define MPEG_TOTAL_TARGET_BITRATE_MAX
#define MPEG_PID_MAX


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

enum saa6752hs_videoformat {};

struct saa6752hs_mpeg_params {};

static const struct v4l2_format v4l2_format_table[] =;

struct saa6752hs_state {};

enum saa6752hs_command {};

static inline struct saa6752hs_state *to_state(struct v4l2_subdev *sd)
{}

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

static const u8 PAT[] =;

static const u8 PMT[] =;

static const u8 PMT_AC3[] =;

static const struct saa6752hs_mpeg_params param_defaults =;

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

static int saa6752hs_chip_command(struct i2c_client *client,
				  enum saa6752hs_command command)
{}


static inline void set_reg8(struct i2c_client *client, uint8_t reg, uint8_t val)
{}

static inline void set_reg16(struct i2c_client *client, uint8_t reg, uint16_t val)
{}

static int saa6752hs_set_bitrate(struct i2c_client *client,
				 struct saa6752hs_state *h)
{}

static int saa6752hs_try_ctrl(struct v4l2_ctrl *ctrl)
{}

static int saa6752hs_s_ctrl(struct v4l2_ctrl *ctrl)
{}

static int saa6752hs_init(struct v4l2_subdev *sd, u32 leading_null_bytes)
{}

static int saa6752hs_get_fmt(struct v4l2_subdev *sd,
		struct v4l2_subdev_state *sd_state,
		struct v4l2_subdev_format *format)
{}

static int saa6752hs_set_fmt(struct v4l2_subdev *sd,
		struct v4l2_subdev_state *sd_state,
		struct v4l2_subdev_format *format)
{}

static int saa6752hs_s_std(struct v4l2_subdev *sd, v4l2_std_id std)
{}

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

static const struct v4l2_ctrl_ops saa6752hs_ctrl_ops =;

static const struct v4l2_subdev_core_ops saa6752hs_core_ops =;

static const struct v4l2_subdev_video_ops saa6752hs_video_ops =;

static const struct v4l2_subdev_pad_ops saa6752hs_pad_ops =;

static const struct v4l2_subdev_ops saa6752hs_ops =;

static int saa6752hs_probe(struct i2c_client *client)
{}

static void saa6752hs_remove(struct i2c_client *client)
{}

static const struct i2c_device_id saa6752hs_id[] =;
MODULE_DEVICE_TABLE(i2c, saa6752hs_id);

static struct i2c_driver saa6752hs_driver =;

module_i2c_driver();