Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372041
b: refs/heads/master
c: d486fea
h: refs/heads/master
i:
  372039: dc7717c
v: v3
  • Loading branch information
Michal Bachraty authored and Mark Brown committed Apr 23, 2013
1 parent ced8708 commit 933a98e
Show file tree
Hide file tree
Showing 3 changed files with 6 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: 7c21a78104d7f2c155e2c12279282f659d773d05
refs/heads/master: d486fea6babfe3ff0c382c9e4baf18f535fcee7d
7 changes: 4 additions & 3 deletions trunk/sound/soc/davinci/davinci-mcasp.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,11 +636,12 @@ static int davinci_config_channel_size(struct davinci_audio_dev *dev,
* callback, take it into account here. That allows us to for example
* send 32 bits per channel to the codec, while only 16 of them carry
* audio payload.
* The clock ratio is given for a full period of data (both left and
* right channels), so it has to be divided by 2.
* The clock ratio is given for a full period of data (for I2S format
* both left and right channels), so it has to be divided by number of
* tdm-slots (for I2S - divided by 2).
*/
if (dev->bclk_lrclk_ratio)
word_length = dev->bclk_lrclk_ratio / 2;
word_length = dev->bclk_lrclk_ratio / dev->tdm_slots;

/* mapping of the XSSZ bit-field as described in the datasheet */
fmt = (word_length >> 1) - 1;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/davinci/davinci-mcasp.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct davinci_audio_dev {
u8 num_serializer;
u8 *serial_dir;
u8 version;
u8 bclk_lrclk_ratio;
u16 bclk_lrclk_ratio;

/* McASP FIFO related */
u8 txnumevt;
Expand Down

0 comments on commit 933a98e

Please sign in to comment.