Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263360
b: refs/heads/master
c: 95c93d8
h: refs/heads/master
v: v3
  • Loading branch information
Scott Jiang authored and Mark Brown committed Aug 15, 2011
1 parent 67488ff commit c82cd30
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 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: bf545ed72f2eeac664695a8ea2199d9ddaef6020
refs/heads/master: 95c93d8525ebce1024bda7316f602ae45c36cd6f
3 changes: 2 additions & 1 deletion trunk/sound/soc/codecs/ad193x.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ static int ad193x_hw_params(struct snd_pcm_substream *substream,
snd_soc_write(codec, AD193X_PLL_CLK_CTRL0, reg);

reg = snd_soc_read(codec, AD193X_DAC_CTRL2);
reg = (reg & (~AD193X_DAC_WORD_LEN_MASK)) | word_len;
reg = (reg & (~AD193X_DAC_WORD_LEN_MASK))
| (word_len << AD193X_DAC_WORD_LEN_SHFT);
snd_soc_write(codec, AD193X_DAC_CTRL2, reg);

reg = snd_soc_read(codec, AD193X_ADC_CTRL1);
Expand Down
1 change: 1 addition & 0 deletions trunk/sound/soc/codecs/ad193x.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#define AD193X_DAC_LEFT_HIGH (1 << 3)
#define AD193X_DAC_BCLK_INV (1 << 7)
#define AD193X_DAC_CTRL2 0x804
#define AD193X_DAC_WORD_LEN_SHFT 3
#define AD193X_DAC_WORD_LEN_MASK 0x18
#define AD193X_DAC_MASTER_MUTE 1
#define AD193X_DAC_CHNL_MUTE 0x805
Expand Down

0 comments on commit c82cd30

Please sign in to comment.