Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120183
b: refs/heads/master
c: 0c235d1
h: refs/heads/master
i:
  120181: 5437f48
  120179: 4e08a1e
  120175: 53cdfda
v: v3
  • Loading branch information
Timur Tabi authored and Mark Brown committed Oct 30, 2008
1 parent c4ff28d commit e5e499c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca53fb24dd21bff32c4b41b2be1035a1adfc0135
refs/heads/master: 0c235d1e837c142b7565814318b6ba5917d5ac32
13 changes: 13 additions & 0 deletions trunk/sound/soc/codecs/cs4270.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,19 @@ static int cs4270_hw_params(struct snd_pcm_substream *substream,
return ret;
}

/* Disable automatic volume control. It's enabled by default, and
* it causes volume change commands to be delayed, sometimes until
* after playback has started.
*/

reg = cs4270_read_reg_cache(codec, CS4270_TRANS);
reg &= ~(CS4270_TRANS_SOFT | CS4270_TRANS_ZERO);
ret = cs4270_i2c_write(codec, CS4270_TRANS, reg);
if (ret < 0) {
printk(KERN_ERR "I2C write failed\n");
return ret;
}

/* Thaw and power-up the codec */

ret = snd_soc_write(codec, CS4270_PWRCTL, 0);
Expand Down

0 comments on commit e5e499c

Please sign in to comment.