.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * PCM1681 ASoC codec driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) StreamUnlimited GmbH 2013 |
---|
5 | 6 | * Marek Belisko <marek.belisko@streamunlimited.com> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or |
---|
8 | | - * modify it under the terms of the GNU General Public License |
---|
9 | | - * as published by the Free Software Foundation; either version 2 |
---|
10 | | - * of the License, or (at your option) any later version. |
---|
11 | | - * |
---|
12 | | - * This program is distributed in the hope that it will be useful, |
---|
13 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
15 | | - * GNU General Public License for more details. |
---|
16 | 7 | */ |
---|
17 | 8 | |
---|
18 | 9 | #include <linux/module.h> |
---|
.. | .. |
---|
156 | 147 | return 0; |
---|
157 | 148 | } |
---|
158 | 149 | |
---|
159 | | -static int pcm1681_digital_mute(struct snd_soc_dai *dai, int mute) |
---|
| 150 | +static int pcm1681_mute(struct snd_soc_dai *dai, int mute, int direction) |
---|
160 | 151 | { |
---|
161 | 152 | struct snd_soc_component *component = dai->component; |
---|
162 | 153 | struct pcm1681_private *priv = snd_soc_component_get_drvdata(component); |
---|
.. | .. |
---|
214 | 205 | static const struct snd_soc_dai_ops pcm1681_dai_ops = { |
---|
215 | 206 | .set_fmt = pcm1681_set_dai_fmt, |
---|
216 | 207 | .hw_params = pcm1681_hw_params, |
---|
217 | | - .digital_mute = pcm1681_digital_mute, |
---|
| 208 | + .mute_stream = pcm1681_mute, |
---|
| 209 | + .no_capture_mute = 1, |
---|
218 | 210 | }; |
---|
219 | 211 | |
---|
220 | 212 | static const struct snd_soc_dapm_widget pcm1681_dapm_widgets[] = { |
---|