adau17x1.h (a02001086bbfb4da35d1228bebc2f1b442db455f) | adau17x1.h (dee9cec42fc9cc4635ea2f45939e443210a638f8) |
---|---|
1#ifndef __ADAU17X1_H__ 2#define __ADAU17X1_H__ 3 4#include <linux/regmap.h> 5#include <linux/platform_data/adau17x1.h> 6 | 1#ifndef __ADAU17X1_H__ 2#define __ADAU17X1_H__ 3 4#include <linux/regmap.h> 5#include <linux/platform_data/adau17x1.h> 6 |
7#include "sigmadsp.h" 8 |
|
7enum adau17x1_type { 8 ADAU1361, 9 ADAU1761, 10 ADAU1381, 11 ADAU1781, 12}; 13 14enum adau17x1_pll { --- 22 unchanged lines hidden (view full) --- 37 uint8_t pll_regs[6]; 38 39 bool master; 40 41 unsigned int tdm_slot[2]; 42 bool dsp_bypass[2]; 43 44 struct regmap *regmap; | 9enum adau17x1_type { 10 ADAU1361, 11 ADAU1761, 12 ADAU1381, 13 ADAU1781, 14}; 15 16enum adau17x1_pll { --- 22 unchanged lines hidden (view full) --- 39 uint8_t pll_regs[6]; 40 41 bool master; 42 43 unsigned int tdm_slot[2]; 44 bool dsp_bypass[2]; 45 46 struct regmap *regmap; |
47 struct sigmadsp *sigmadsp; |
|
45}; 46 47int adau17x1_add_widgets(struct snd_soc_codec *codec); 48int adau17x1_add_routes(struct snd_soc_codec *codec); 49int adau17x1_probe(struct device *dev, struct regmap *regmap, | 48}; 49 50int adau17x1_add_widgets(struct snd_soc_codec *codec); 51int adau17x1_add_routes(struct snd_soc_codec *codec); 52int adau17x1_probe(struct device *dev, struct regmap *regmap, |
50 enum adau17x1_type type, void (*switch_mode)(struct device *dev)); | 53 enum adau17x1_type type, void (*switch_mode)(struct device *dev), 54 const char *firmware_name); |
51int adau17x1_set_micbias_voltage(struct snd_soc_codec *codec, 52 enum adau17x1_micbias_voltage micbias); 53bool adau17x1_readable_register(struct device *dev, unsigned int reg); 54bool adau17x1_volatile_register(struct device *dev, unsigned int reg); | 55int adau17x1_set_micbias_voltage(struct snd_soc_codec *codec, 56 enum adau17x1_micbias_voltage micbias); 57bool adau17x1_readable_register(struct device *dev, unsigned int reg); 58bool adau17x1_volatile_register(struct device *dev, unsigned int reg); |
59bool adau17x1_precious_register(struct device *dev, unsigned int reg); |
|
55int adau17x1_resume(struct snd_soc_codec *codec); 56 57extern const struct snd_soc_dai_ops adau17x1_dai_ops; 58 | 60int adau17x1_resume(struct snd_soc_codec *codec); 61 62extern const struct snd_soc_dai_ops adau17x1_dai_ops; 63 |
59int adau17x1_load_firmware(struct adau *adau, struct device *dev, 60 const char *firmware); | 64int adau17x1_setup_firmware(struct adau *adau, unsigned int rate); |
61bool adau17x1_has_dsp(struct adau *adau); 62 63#define ADAU17X1_CLOCK_CONTROL 0x4000 64#define ADAU17X1_PLL_CONTROL 0x4002 65#define ADAU17X1_REC_POWER_MGMT 0x4009 66#define ADAU17X1_MICBIAS 0x4010 67#define ADAU17X1_SERIAL_PORT0 0x4015 68#define ADAU17X1_SERIAL_PORT1 0x4016 --- 55 unchanged lines hidden --- | 65bool adau17x1_has_dsp(struct adau *adau); 66 67#define ADAU17X1_CLOCK_CONTROL 0x4000 68#define ADAU17X1_PLL_CONTROL 0x4002 69#define ADAU17X1_REC_POWER_MGMT 0x4009 70#define ADAU17X1_MICBIAS 0x4010 71#define ADAU17X1_SERIAL_PORT0 0x4015 72#define ADAU17X1_SERIAL_PORT1 0x4016 --- 55 unchanged lines hidden --- |