linux/drivers/media/i2c/wm8775.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * wm8775 - driver version 0.0.1
 *
 * Copyright (C) 2004 Ulf Eklund <ivtv at eklund.to>
 *
 * Based on saa7115 driver
 *
 * Copyright (C) 2005 Hans Verkuil <[email protected]>
 * - Cleanup
 * - V4L2 API update
 * - sound fixes
 */

#include <linux/module.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/ioctl.h>
#include <linux/uaccess.h>
#include <linux/i2c.h>
#include <linux/videodev2.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>
#include <media/i2c/wm8775.h>

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



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

enum {};

#define ALC_HOLD
#define ALC_EN

struct wm8775_state {};

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

static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl)
{}

static int wm8775_write(struct v4l2_subdev *sd, int reg, u16 val)
{}

static void wm8775_set_audio(struct v4l2_subdev *sd, int quietly)
{}

static int wm8775_s_routing(struct v4l2_subdev *sd,
			    u32 input, u32 output, u32 config)
{}

static int wm8775_s_ctrl(struct v4l2_ctrl *ctrl)
{}

static int wm8775_log_status(struct v4l2_subdev *sd)
{}

static int wm8775_s_frequency(struct v4l2_subdev *sd, const struct v4l2_frequency *freq)
{}

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

static const struct v4l2_ctrl_ops wm8775_ctrl_ops =;

static const struct v4l2_subdev_core_ops wm8775_core_ops =;

static const struct v4l2_subdev_tuner_ops wm8775_tuner_ops =;

static const struct v4l2_subdev_audio_ops wm8775_audio_ops =;

static const struct v4l2_subdev_ops wm8775_ops =;

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

/* i2c implementation */

/*
 * Generic i2c probe
 * concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1'
 */

static int wm8775_probe(struct i2c_client *client)
{}

static void wm8775_remove(struct i2c_client *client)
{}

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

static struct i2c_driver wm8775_driver =;

module_i2c_driver();