hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/ml26124.c
....@@ -1,18 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2011 LAPIS Semiconductor Co., Ltd.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation; version 2 of the License.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
12
- *
13
- * You should have received a copy of the GNU General Public License
14
- * along with this program; if not, write to the Free Software
15
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
164 */
175
186 #include <linux/module.h>
....@@ -68,7 +56,6 @@
6856 static const DECLARE_TLV_DB_SCALE(mingain, -1200, 600, 0);
6957 static const DECLARE_TLV_DB_SCALE(maxgain, -675, 600, 0);
7058 static const DECLARE_TLV_DB_SCALE(boost_vol, -1200, 75, 0);
71
-static const DECLARE_TLV_DB_SCALE(ngth, -7650, 150, 0);
7259
7360 static const char * const ml26124_companding[] = {"16bit PCM", "u-law",
7461 "A-law"};
....@@ -385,7 +372,7 @@
385372 return 0;
386373 }
387374
388
-static int ml26124_mute(struct snd_soc_dai *dai, int mute)
375
+static int ml26124_mute(struct snd_soc_dai *dai, int mute, int direction)
389376 {
390377 struct snd_soc_component *component = dai->component;
391378 struct ml26124_priv *priv = snd_soc_component_get_drvdata(component);
....@@ -505,9 +492,10 @@
505492
506493 static const struct snd_soc_dai_ops ml26124_dai_ops = {
507494 .hw_params = ml26124_hw_params,
508
- .digital_mute = ml26124_mute,
495
+ .mute_stream = ml26124_mute,
509496 .set_fmt = ml26124_set_dai_fmt,
510497 .set_sysclk = ml26124_set_dai_sysclk,
498
+ .no_capture_mute = 1,
511499 };
512500
513501 static struct snd_soc_dai_driver ml26124_dai = {