hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/sound/soc/codecs/ak4641.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ak4641.c -- AK4641 ALSA Soc Audio driver
34 *
....@@ -5,10 +6,6 @@
56 * Copyright (C) 2011 Dmitry Artamonow <mad_soft@inbox.ru>
67 *
78 * Based on ak4535.c by Richard Purdie
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License version 2 as
11
- * published by the Free Software Foundation.
129 */
1310
1411 #include <linux/module.h>
....@@ -408,7 +405,7 @@
408405 return snd_soc_component_write(component, AK4641_MODE1, mode1);
409406 }
410407
411
-static int ak4641_mute(struct snd_soc_dai *dai, int mute)
408
+static int ak4641_mute(struct snd_soc_dai *dai, int mute, int direction)
412409 {
413410 struct snd_soc_component *component = dai->component;
414411
....@@ -470,15 +467,17 @@
470467 static const struct snd_soc_dai_ops ak4641_i2s_dai_ops = {
471468 .hw_params = ak4641_i2s_hw_params,
472469 .set_fmt = ak4641_i2s_set_dai_fmt,
473
- .digital_mute = ak4641_mute,
470
+ .mute_stream = ak4641_mute,
474471 .set_sysclk = ak4641_set_dai_sysclk,
472
+ .no_capture_mute = 1,
475473 };
476474
477475 static const struct snd_soc_dai_ops ak4641_pcm_dai_ops = {
478476 .hw_params = NULL, /* rates are controlled by BT chip */
479477 .set_fmt = ak4641_pcm_set_dai_fmt,
480
- .digital_mute = ak4641_mute,
478
+ .mute_stream = ak4641_mute,
481479 .set_sysclk = ak4641_set_dai_sysclk,
480
+ .no_capture_mute = 1,
482481 };
483482
484483 static struct snd_soc_dai_driver ak4641_dai[] = {