hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/adau1701.c
....@@ -1,11 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Driver for ADAU1701 SigmaDSP processor
34 *
45 * Copyright 2011 Analog Devices Inc.
56 * Author: Lars-Peter Clausen <lars@metafoo.de>
67 * based on an inital version by Cliff Cai <cliff.cai@analog.com>
7
- *
8
- * Licensed under the GPL-2 or later.
98 */
109
1110 #include <linux/module.h>
....@@ -574,7 +573,7 @@
574573 return 0;
575574 }
576575
577
-static int adau1701_digital_mute(struct snd_soc_dai *dai, int mute)
576
+static int adau1701_mute_stream(struct snd_soc_dai *dai, int mute, int direction)
578577 {
579578 struct snd_soc_component *component = dai->component;
580579 unsigned int mask = ADAU1701_DSPCTRL_DAM;
....@@ -632,8 +631,9 @@
632631 static const struct snd_soc_dai_ops adau1701_dai_ops = {
633632 .set_fmt = adau1701_set_dai_fmt,
634633 .hw_params = adau1701_hw_params,
635
- .digital_mute = adau1701_digital_mute,
634
+ .mute_stream = adau1701_mute_stream,
636635 .startup = adau1701_startup,
636
+ .no_capture_mute = 1,
637637 };
638638
639639 static struct snd_soc_dai_driver adau1701_dai = {