ASoC: codecs: max*: merge .digital_mute() into .mute_stream()
[linux-2.6-microblaze.git] / sound / soc / codecs / max9867.c
index c72cb28..fcb3114 100644 (file)
@@ -283,7 +283,7 @@ static int max9867_dai_hw_params(struct snd_pcm_substream *substream,
        return 0;
 }
 
-static int max9867_mute(struct snd_soc_dai *dai, int mute)
+static int max9867_mute(struct snd_soc_dai *dai, int mute, int direction)
 {
        struct snd_soc_component *component = dai->component;
        struct max9867_priv *max9867 = snd_soc_component_get_drvdata(component);
@@ -393,9 +393,10 @@ static int max9867_dai_set_fmt(struct snd_soc_dai *codec_dai,
 static const struct snd_soc_dai_ops max9867_dai_ops = {
        .set_sysclk     = max9867_set_dai_sysclk,
        .set_fmt        = max9867_dai_set_fmt,
-       .digital_mute   = max9867_mute,
+       .mute_stream    = max9867_mute,
        .startup        = max9867_startup,
        .hw_params      = max9867_dai_hw_params,
+       .no_capture_mute = 1,
 };
 
 static struct snd_soc_dai_driver max9867_dai[] = {