hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/sound/soc/codecs/ssm2518.c
....@@ -1,10 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * SSM2518 amplifier audio driver
34 *
45 * Copyright 2013 Analog Devices Inc.
56 * Author: Lars-Peter Clausen <lars@metafoo.de>
6
- *
7
- * Licensed under the GPL-2.
87 */
98
109 #include <linux/module.h>
....@@ -389,7 +388,7 @@
389388 SSM2518_POWER1_MCS_MASK, mcs << 1);
390389 }
391390
392
-static int ssm2518_mute(struct snd_soc_dai *dai, int mute)
391
+static int ssm2518_mute(struct snd_soc_dai *dai, int mute, int direction)
393392 {
394393 struct ssm2518 *ssm2518 = snd_soc_component_get_drvdata(dai->component);
395394 unsigned int val;
....@@ -624,9 +623,10 @@
624623 static const struct snd_soc_dai_ops ssm2518_dai_ops = {
625624 .startup = ssm2518_startup,
626625 .hw_params = ssm2518_hw_params,
627
- .digital_mute = ssm2518_mute,
626
+ .mute_stream = ssm2518_mute,
628627 .set_fmt = ssm2518_set_dai_fmt,
629628 .set_tdm_slot = ssm2518_set_tdm_slot,
629
+ .no_capture_mute = 1,
630630 };
631631
632632 static struct snd_soc_dai_driver ssm2518_dai = {