adau17x1.h (bc0868c62bb13834b20a864f684cced1f84a2412) adau17x1.h (5d76de61dd8cb89b7189ef7456fba921c547c398)
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

--- 8 unchanged lines hidden (view full) ---

17 ADAU17X1_PLL,
18};
19
20enum adau17x1_pll_src {
21 ADAU17X1_PLL_SRC_MCLK,
22};
23
24enum adau17x1_clk_src {
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

--- 8 unchanged lines hidden (view full) ---

17 ADAU17X1_PLL,
18};
19
20enum adau17x1_pll_src {
21 ADAU17X1_PLL_SRC_MCLK,
22};
23
24enum adau17x1_clk_src {
25 /* Automatically configure PLL based on the sample rate */
26 ADAU17X1_CLK_SRC_PLL_AUTO,
25 ADAU17X1_CLK_SRC_MCLK,
26 ADAU17X1_CLK_SRC_PLL,
27};
28
27 ADAU17X1_CLK_SRC_MCLK,
28 ADAU17X1_CLK_SRC_PLL,
29};
30
31struct clk;
32
29struct adau {
30 unsigned int sysclk;
31 unsigned int pll_freq;
33struct adau {
34 unsigned int sysclk;
35 unsigned int pll_freq;
36 struct clk *mclk;
32
33 enum adau17x1_clk_src clk_src;
34 enum adau17x1_type type;
35 void (*switch_mode)(struct device *dev);
36
37 unsigned int dai_fmt;
38
39 uint8_t pll_regs[6];

--- 7 unchanged lines hidden (view full) ---

47 struct sigmadsp *sigmadsp;
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,
53 enum adau17x1_type type, void (*switch_mode)(struct device *dev),
54 const char *firmware_name);
37
38 enum adau17x1_clk_src clk_src;
39 enum adau17x1_type type;
40 void (*switch_mode)(struct device *dev);
41
42 unsigned int dai_fmt;
43
44 uint8_t pll_regs[6];

--- 7 unchanged lines hidden (view full) ---

52 struct sigmadsp *sigmadsp;
53};
54
55int adau17x1_add_widgets(struct snd_soc_codec *codec);
56int adau17x1_add_routes(struct snd_soc_codec *codec);
57int adau17x1_probe(struct device *dev, struct regmap *regmap,
58 enum adau17x1_type type, void (*switch_mode)(struct device *dev),
59 const char *firmware_name);
60void adau17x1_remove(struct device *dev);
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);
60int adau17x1_resume(struct snd_soc_codec *codec);
61
62extern const struct snd_soc_dai_ops adau17x1_dai_ops;

--- 65 unchanged lines hidden ---
61int adau17x1_set_micbias_voltage(struct snd_soc_codec *codec,
62 enum adau17x1_micbias_voltage micbias);
63bool adau17x1_readable_register(struct device *dev, unsigned int reg);
64bool adau17x1_volatile_register(struct device *dev, unsigned int reg);
65bool adau17x1_precious_register(struct device *dev, unsigned int reg);
66int adau17x1_resume(struct snd_soc_codec *codec);
67
68extern const struct snd_soc_dai_ops adau17x1_dai_ops;

--- 65 unchanged lines hidden ---