Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284068
b: refs/heads/master
c: 16aff76
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Jan 2, 2012
1 parent 5d3a338 commit 49ef204
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 6065abf5ce8ba0ad945d21255a1d581ca30f2e18
refs/heads/master: 16aff769d73c6b66a79450d7218f31dc46962536
7 changes: 6 additions & 1 deletion trunk/sound/soc/codecs/ak4641.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ static int ak4641_pcm_set_dai_fmt(struct snd_soc_dai *codec_dai,
{
struct snd_soc_codec *codec = codec_dai->codec;
u8 btif;
int ret;

/* interface format */
switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
Expand All @@ -358,7 +359,11 @@ static int ak4641_pcm_set_dai_fmt(struct snd_soc_dai *codec_dai,
return -EINVAL;
}

return snd_soc_update_bits(codec, AK4641_BTIF, (0x3 << 5), btif);
ret = snd_soc_update_bits(codec, AK4641_BTIF, (0x3 << 5), btif);
if (ret < 0)
return ret;

return 0;
}

static int ak4641_i2s_set_dai_fmt(struct snd_soc_dai *codec_dai,
Expand Down

0 comments on commit 49ef204

Please sign in to comment.