hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/tas571x.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * TAS571x amplifier audio driver
34 *
....@@ -9,11 +10,6 @@
910 *
1011 * TAS5707 support:
1112 * Copyright (C) 2018 Jerome Brunet, Baylibre SAS <jbrunet@baylibre.com>
12
- *
13
- * This program is free software; you can redistribute it and/or modify
14
- * it under the terms of the GNU General Public License as published by
15
- * the Free Software Foundation; either version 2 of the License, or
16
- * (at your option) any later version.
1713 */
1814
1915 #include <linux/clk.h>
....@@ -305,7 +301,7 @@
305301 TAS571X_SDI_FMT_MASK, val);
306302 }
307303
308
-static int tas571x_mute(struct snd_soc_dai *dai, int mute)
304
+static int tas571x_mute(struct snd_soc_dai *dai, int mute, int direction)
309305 {
310306 struct snd_soc_component *component = dai->component;
311307 u8 sysctl2;
....@@ -358,7 +354,8 @@
358354 static const struct snd_soc_dai_ops tas571x_dai_ops = {
359355 .set_fmt = tas571x_set_dai_fmt,
360356 .hw_params = tas571x_hw_params,
361
- .digital_mute = tas571x_mute,
357
+ .mute_stream = tas571x_mute,
358
+ .no_capture_mute = 1,
362359 };
363360
364361
....@@ -725,8 +722,8 @@
725722 static const struct tas571x_chip tas5721_chip = {
726723 .supply_names = tas5721_supply_names,
727724 .num_supply_names = ARRAY_SIZE(tas5721_supply_names),
728
- .controls = tas5711_controls,
729
- .num_controls = ARRAY_SIZE(tas5711_controls),
725
+ .controls = tas5721_controls,
726
+ .num_controls = ARRAY_SIZE(tas5721_controls),
730727 .regmap_config = &tas5721_regmap_config,
731728 .vol_reg_size = 1,
732729 };