hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/pcm179x.c
....@@ -1,19 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * PCM179X ASoC codec driver
34 *
45 * Copyright (c) Amarula Solutions B.V. 2013
56 *
67 * Michael Trimarchi <michael@amarulasolutions.com>
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * as published by the Free Software Foundation; either version 2
11
- * of the License, or (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
178 */
189
1910 #include <linux/module.h>
....@@ -85,7 +76,7 @@
8576 return 0;
8677 }
8778
88
-static int pcm179x_digital_mute(struct snd_soc_dai *dai, int mute)
79
+static int pcm179x_mute(struct snd_soc_dai *dai, int mute, int direction)
8980 {
9081 struct snd_soc_component *component = dai->component;
9182 struct pcm179x_private *priv = snd_soc_component_get_drvdata(component);
....@@ -154,7 +145,8 @@
154145 static const struct snd_soc_dai_ops pcm179x_dai_ops = {
155146 .set_fmt = pcm179x_set_dai_fmt,
156147 .hw_params = pcm179x_hw_params,
157
- .digital_mute = pcm179x_digital_mute,
148
+ .mute_stream = pcm179x_mute,
149
+ .no_capture_mute = 1,
158150 };
159151
160152 static const DECLARE_TLV_DB_SCALE(pcm179x_dac_tlv, -12000, 50, 1);