mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 09:48:07 +07:00
603597c937
This patch adds support for the ADAU1977, ADAU1978 and ADAU1979 audio CODEC devices. They are a family of 4-channel differential input audio ADC devices. They can be connected to either a SPI or I2C bus. The driver is implemented in three modules, one main module (adau1977.ko) which implements the device logic and one module each for SPI (adau1977-spi.ko) and I2C (adau1977-i2c.ko) bus access. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
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
|