mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 00:17:44 +00: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>
37 lines
677 B
C
37 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
|