hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/ssm4567.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * SSM4567 amplifier audio driver
34 *
....@@ -6,8 +7,6 @@
67 *
78 * Based on code copyright/by:
89 * Copyright 2013 Analog Devices Inc.
9
- *
10
- * Licensed under the GPL-2.
1110 */
1211
1312 #include <linux/acpi.h>
....@@ -221,7 +220,7 @@
221220 SSM4567_DAC_FS_MASK, dacfs);
222221 }
223222
224
-static int ssm4567_mute(struct snd_soc_dai *dai, int mute)
223
+static int ssm4567_mute(struct snd_soc_dai *dai, int mute, int direction)
225224 {
226225 struct ssm4567 *ssm4567 = snd_soc_component_get_drvdata(dai->component);
227226 unsigned int val;
....@@ -391,9 +390,10 @@
391390
392391 static const struct snd_soc_dai_ops ssm4567_dai_ops = {
393392 .hw_params = ssm4567_hw_params,
394
- .digital_mute = ssm4567_mute,
393
+ .mute_stream = ssm4567_mute,
395394 .set_fmt = ssm4567_set_dai_fmt,
396395 .set_tdm_slot = ssm4567_set_tdm_slot,
396
+ .no_capture_mute = 1,
397397 };
398398
399399 static struct snd_soc_dai_driver ssm4567_dai = {