.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * TAS571x amplifier audio driver |
---|
3 | 4 | * |
---|
.. | .. |
---|
9 | 10 | * |
---|
10 | 11 | * TAS5707 support: |
---|
11 | 12 | * 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. |
---|
17 | 13 | */ |
---|
18 | 14 | |
---|
19 | 15 | #include <linux/clk.h> |
---|
.. | .. |
---|
305 | 301 | TAS571X_SDI_FMT_MASK, val); |
---|
306 | 302 | } |
---|
307 | 303 | |
---|
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) |
---|
309 | 305 | { |
---|
310 | 306 | struct snd_soc_component *component = dai->component; |
---|
311 | 307 | u8 sysctl2; |
---|
.. | .. |
---|
358 | 354 | static const struct snd_soc_dai_ops tas571x_dai_ops = { |
---|
359 | 355 | .set_fmt = tas571x_set_dai_fmt, |
---|
360 | 356 | .hw_params = tas571x_hw_params, |
---|
361 | | - .digital_mute = tas571x_mute, |
---|
| 357 | + .mute_stream = tas571x_mute, |
---|
| 358 | + .no_capture_mute = 1, |
---|
362 | 359 | }; |
---|
363 | 360 | |
---|
364 | 361 | |
---|
.. | .. |
---|
725 | 722 | static const struct tas571x_chip tas5721_chip = { |
---|
726 | 723 | .supply_names = tas5721_supply_names, |
---|
727 | 724 | .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), |
---|
730 | 727 | .regmap_config = &tas5721_regmap_config, |
---|
731 | 728 | .vol_reg_size = 1, |
---|
732 | 729 | }; |
---|