forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/sound/soc/codecs/pcm1681.c
....@@ -1,18 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * PCM1681 ASoC codec driver
34 *
45 * Copyright (c) StreamUnlimited GmbH 2013
56 * Marek Belisko <marek.belisko@streamunlimited.com>
6
- *
7
- * This program is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU General Public License
9
- * as published by the Free Software Foundation; either version 2
10
- * of the License, or (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
167 */
178
189 #include <linux/module.h>
....@@ -156,7 +147,7 @@
156147 return 0;
157148 }
158149
159
-static int pcm1681_digital_mute(struct snd_soc_dai *dai, int mute)
150
+static int pcm1681_mute(struct snd_soc_dai *dai, int mute, int direction)
160151 {
161152 struct snd_soc_component *component = dai->component;
162153 struct pcm1681_private *priv = snd_soc_component_get_drvdata(component);
....@@ -214,7 +205,8 @@
214205 static const struct snd_soc_dai_ops pcm1681_dai_ops = {
215206 .set_fmt = pcm1681_set_dai_fmt,
216207 .hw_params = pcm1681_hw_params,
217
- .digital_mute = pcm1681_digital_mute,
208
+ .mute_stream = pcm1681_mute,
209
+ .no_capture_mute = 1,
218210 };
219211
220212 static const struct snd_soc_dapm_widget pcm1681_dapm_widgets[] = {