.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * PCM179X ASoC codec driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) Amarula Solutions B.V. 2013 |
---|
5 | 6 | * |
---|
6 | 7 | * Michael Trimarchi <michael@amarulasolutions.com> |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or |
---|
9 | | - * modify it under the terms of the GNU General Public License |
---|
10 | | - * as published by the Free Software Foundation; either version 2 |
---|
11 | | - * of the License, or (at your option) any later version. |
---|
12 | | - * |
---|
13 | | - * This program is distributed in the hope that it will be useful, |
---|
14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | | - * GNU General Public License for more details. |
---|
17 | 8 | */ |
---|
18 | 9 | |
---|
19 | 10 | #include <linux/module.h> |
---|
.. | .. |
---|
85 | 76 | return 0; |
---|
86 | 77 | } |
---|
87 | 78 | |
---|
88 | | -static int pcm179x_digital_mute(struct snd_soc_dai *dai, int mute) |
---|
| 79 | +static int pcm179x_mute(struct snd_soc_dai *dai, int mute, int direction) |
---|
89 | 80 | { |
---|
90 | 81 | struct snd_soc_component *component = dai->component; |
---|
91 | 82 | struct pcm179x_private *priv = snd_soc_component_get_drvdata(component); |
---|
.. | .. |
---|
154 | 145 | static const struct snd_soc_dai_ops pcm179x_dai_ops = { |
---|
155 | 146 | .set_fmt = pcm179x_set_dai_fmt, |
---|
156 | 147 | .hw_params = pcm179x_hw_params, |
---|
157 | | - .digital_mute = pcm179x_digital_mute, |
---|
| 148 | + .mute_stream = pcm179x_mute, |
---|
| 149 | + .no_capture_mute = 1, |
---|
158 | 150 | }; |
---|
159 | 151 | |
---|
160 | 152 | static const DECLARE_TLV_DB_SCALE(pcm179x_dac_tlv, -12000, 50, 1); |
---|