Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148294
b: refs/heads/master
c: 5c82f56
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed May 22, 2009
1 parent fdbcd07 commit 69f5c94
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 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: 6943c92e87c4aa2a6d7a1f4dbd79cf4a0b5fd67b
refs/heads/master: 5c82f56736e4c3a9eaf53c94366b056c8622d79e
17 changes: 13 additions & 4 deletions trunk/include/sound/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,6 @@ void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count,
struct snd_soc_jack_gpio *gpios);
#endif

/* codec IO */
#define snd_soc_read(codec, reg) codec->read(codec, reg)
#define snd_soc_write(codec, reg, value) codec->write(codec, reg, value)

/* codec register bit access */
int snd_soc_update_bits(struct snd_soc_codec *codec, unsigned short reg,
unsigned short mask, unsigned short value);
Expand Down Expand Up @@ -507,6 +503,19 @@ struct soc_enum {
void *dapm;
};

/* codec IO */
static inline unsigned int snd_soc_read(struct snd_soc_codec *codec,
unsigned int reg)
{
return codec->read(codec, reg);
}

static inline unsigned int snd_soc_write(struct snd_soc_codec *codec,
unsigned int reg, unsigned int val)
{
return codec->write(codec, reg, val);
}

#include <sound/soc-dai.h>

#endif

0 comments on commit 69f5c94

Please sign in to comment.