Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257475
b: refs/heads/master
c: 94228bc
h: refs/heads/master
i:
  257473: 46aac46
  257471: 567dfc5
v: v3
  • Loading branch information
Mark Brown committed May 27, 2011
1 parent 67aa49a commit a1d7969
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: f06f136fe0217174657e325279672d4b73ed4d87
refs/heads/master: 94228bcf8c85cfb824e15485285ceb4d5cf080fe
4 changes: 2 additions & 2 deletions trunk/sound/soc/soc-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ static int snd_soc_8_16_write(struct snd_soc_codec *codec, unsigned int reg,
unsigned int value)
{
u8 data[3];
u16 val = cpu_to_be16(value);

data[0] = reg;
data[1] = (value >> 8) & 0xff;
data[2] = value & 0xff;
memcpy(&data[1], &val, sizeof(val));

return do_hw_write(codec, reg, value, data, 3);
}
Expand Down

0 comments on commit a1d7969

Please sign in to comment.