Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
38 lines
677 B
C
38 lines
677 B
C
/*
|
|
* ADAU1977/ADAU1978/ADAU1979 driver
|
|
*
|
|
* Copyright 2014 Analog Devices Inc.
|
|
* Author: Lars-Peter Clausen <lars@metafoo.de>
|
|
*
|
|
* Licensed under the GPL-2.
|
|
*/
|
|
|
|
#ifndef __SOUND_SOC_CODECS_ADAU1977_H__
|
|
#define __SOUND_SOC_CODECS_ADAU1977_H__
|
|
|
|
#include <linux/regmap.h>
|
|
|
|
struct device;
|
|
|
|
enum adau1977_type {
|
|
ADAU1977,
|
|
ADAU1978,
|
|
ADAU1979,
|
|
};
|
|
|
|
int adau1977_probe(struct device *dev, struct regmap *regmap,
|
|
enum adau1977_type type, void (*switch_mode)(struct device *dev));
|
|
|
|
extern const struct regmap_config adau1977_regmap_config;
|
|
|
|
enum adau1977_clk_id {
|
|
ADAU1977_SYSCLK,
|
|
};
|
|
|
|
enum adau1977_sysclk_src {
|
|
ADAU1977_SYSCLK_SRC_MCLK,
|
|
ADAU1977_SYSCLK_SRC_LRCLK,
|
|
};
|
|
|
|
#endif
|