hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/uda134x.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * uda134x.c -- UDA134X ALSA SoC Codec driver
34 *
....@@ -7,10 +8,6 @@
78 * Author: Zoltan Devai
89 *
910 * Based on the WM87xx drivers by Liam Girdwood and Richard Purdie
10
- *
11
- * This program is free software; you can redistribute it and/or modify
12
- * it under the terms of the GNU General Public License version 2 as
13
- * published by the Free Software Foundation.
1411 */
1512
1613 #include <linux/module.h>
....@@ -120,7 +117,7 @@
120117 regmap_update_bits(uda134x->regmap, UDA134X_STATUS0, mask, 0);
121118 }
122119
123
-static int uda134x_mute(struct snd_soc_dai *dai, int mute)
120
+static int uda134x_mute(struct snd_soc_dai *dai, int mute, int direction)
124121 {
125122 struct uda134x_priv *uda134x = snd_soc_component_get_drvdata(dai->component);
126123 unsigned int mask = 1<<2;
....@@ -419,9 +416,10 @@
419416 .startup = uda134x_startup,
420417 .shutdown = uda134x_shutdown,
421418 .hw_params = uda134x_hw_params,
422
- .digital_mute = uda134x_mute,
419
+ .mute_stream = uda134x_mute,
423420 .set_sysclk = uda134x_set_dai_sysclk,
424421 .set_fmt = uda134x_set_dai_fmt,
422
+ .no_capture_mute = 1,
425423 };
426424
427425 static struct snd_soc_dai_driver uda134x_dai = {