Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371882
b: refs/heads/master
c: c24a34d
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Mack authored and Mark Brown committed Mar 22, 2013
1 parent 7fde48e commit 2913614
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 1b1861ead4f9fd7314acb2a8950a2b75ad2c8af5
refs/heads/master: c24a34dbcd93ef3172ecd4e5ce533fe365d4554e
7 changes: 5 additions & 2 deletions trunk/sound/soc/codecs/cs4271.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,14 +388,17 @@ static int cs4271_hw_params(struct snd_pcm_substream *substream,
return cs4271_set_deemph(codec);
}

static int cs4271_digital_mute(struct snd_soc_dai *dai, int mute)
static int cs4271_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
{
struct snd_soc_codec *codec = dai->codec;
struct cs4271_private *cs4271 = snd_soc_codec_get_drvdata(codec);
int ret;
int val_a = 0;
int val_b = 0;

if (stream != SNDRV_PCM_STREAM_PLAYBACK)
return 0;

if (mute) {
val_a = CS4271_VOLA_MUTE;
val_b = CS4271_VOLB_MUTE;
Expand Down Expand Up @@ -442,7 +445,7 @@ static const struct snd_soc_dai_ops cs4271_dai_ops = {
.hw_params = cs4271_hw_params,
.set_sysclk = cs4271_set_dai_sysclk,
.set_fmt = cs4271_set_dai_fmt,
.digital_mute = cs4271_digital_mute,
.mute_stream = cs4271_mute_stream,
};

static struct snd_soc_dai_driver cs4271_dai = {
Expand Down

0 comments on commit 2913614

Please sign in to comment.