linux/sound/soc/codecs/wm8731.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * wm8731.h  --  WM8731 Soc Audio driver
 *
 * Copyright 2005 Openedhand Ltd.
 *
 * Author: Richard Purdie <[email protected]>
 *
 * Based on wm8753.h
 */

#ifndef _WM8731_H
#define _WM8731_H

#include <linux/mutex.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>

struct clk;
struct snd_pcm_hw_constraint_list;

/* WM8731 register space */

#define WM8731_LINVOL
#define WM8731_RINVOL
#define WM8731_LOUT1V
#define WM8731_ROUT1V
#define WM8731_APANA
#define WM8731_APDIGI
#define WM8731_PWR
#define WM8731_IFACE
#define WM8731_SRATE
#define WM8731_ACTIVE
#define WM8731_RESET

#define WM8731_CACHEREGNUM

#define WM8731_SYSCLK_MCLK
#define WM8731_SYSCLK_XTAL

#define WM8731_DAI

#define WM8731_NUM_SUPPLIES

/* codec private data */
struct wm8731_priv {};

extern const struct regmap_config wm8731_regmap;

int wm8731_init(struct device *dev, struct wm8731_priv *wm8731);

#endif