Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99046
b: refs/heads/master
c: 1ef6ab7
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown authored and Jaroslav Kysela committed May 19, 2008
1 parent 01efbac commit 772118c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 25 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b2efbbfba24efc8456d68d5af42d082ab1c2febc
refs/heads/master: 1ef6ab75c7deef931d6308af282ed7d8e480e77f
30 changes: 6 additions & 24 deletions trunk/include/sound/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,17 +272,17 @@ struct snd_soc_ops {
int (*trigger)(struct snd_pcm_substream *, int);
};

/* ASoC codec DAI ops */
struct snd_soc_codec_ops {
/* codec DAI clocking configuration */
/* ASoC DAI ops */
struct snd_soc_dai_ops {
/* DAI clocking configuration */
int (*set_sysclk)(struct snd_soc_codec_dai *codec_dai,
int clk_id, unsigned int freq, int dir);
int (*set_pll)(struct snd_soc_codec_dai *codec_dai,
int pll_id, unsigned int freq_in, unsigned int freq_out);
int (*set_clkdiv)(struct snd_soc_codec_dai *codec_dai,
int div_id, int div);

/* CPU DAI format configuration */
/* DAI format configuration */
int (*set_fmt)(struct snd_soc_codec_dai *codec_dai,
unsigned int fmt);
int (*set_tdm_slot)(struct snd_soc_codec_dai *codec_dai,
Expand All @@ -293,24 +293,6 @@ struct snd_soc_codec_ops {
int (*digital_mute)(struct snd_soc_codec_dai *, int mute);
};

/* ASoC cpu DAI ops */
struct snd_soc_cpu_ops {
/* CPU DAI clocking configuration */
int (*set_sysclk)(struct snd_soc_cpu_dai *cpu_dai,
int clk_id, unsigned int freq, int dir);
int (*set_clkdiv)(struct snd_soc_cpu_dai *cpu_dai,
int div_id, int div);
int (*set_pll)(struct snd_soc_cpu_dai *cpu_dai,
int pll_id, unsigned int freq_in, unsigned int freq_out);

/* CPU DAI format configuration */
int (*set_fmt)(struct snd_soc_cpu_dai *cpu_dai,
unsigned int fmt);
int (*set_tdm_slot)(struct snd_soc_cpu_dai *cpu_dai,
unsigned int mask, int slots);
int (*set_tristate)(struct snd_soc_cpu_dai *, int tristate);
};

/* SoC Codec DAI */
struct snd_soc_codec_dai {
char *name;
Expand All @@ -328,7 +310,7 @@ struct snd_soc_codec_dai {

/* ops */
struct snd_soc_ops ops;
struct snd_soc_codec_ops dai_ops;
struct snd_soc_dai_ops dai_ops;

/* DAI private data */
void *private_data;
Expand All @@ -352,7 +334,7 @@ struct snd_soc_cpu_dai {

/* ops */
struct snd_soc_ops ops;
struct snd_soc_cpu_ops dai_ops;
struct snd_soc_dai_ops dai_ops;

/* DAI capabilities */
struct snd_soc_pcm_stream capture;
Expand Down

0 comments on commit 772118c

Please sign in to comment.