.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * uda134x.c -- UDA134X ALSA SoC Codec driver |
---|
3 | 4 | * |
---|
.. | .. |
---|
7 | 8 | * Author: Zoltan Devai |
---|
8 | 9 | * |
---|
9 | 10 | * Based on the WM87xx drivers by Liam Girdwood and Richard Purdie |
---|
10 | | - * |
---|
11 | | - * This program is free software; you can redistribute it and/or modify |
---|
12 | | - * it under the terms of the GNU General Public License version 2 as |
---|
13 | | - * published by the Free Software Foundation. |
---|
14 | 11 | */ |
---|
15 | 12 | |
---|
16 | 13 | #include <linux/module.h> |
---|
.. | .. |
---|
120 | 117 | regmap_update_bits(uda134x->regmap, UDA134X_STATUS0, mask, 0); |
---|
121 | 118 | } |
---|
122 | 119 | |
---|
123 | | -static int uda134x_mute(struct snd_soc_dai *dai, int mute) |
---|
| 120 | +static int uda134x_mute(struct snd_soc_dai *dai, int mute, int direction) |
---|
124 | 121 | { |
---|
125 | 122 | struct uda134x_priv *uda134x = snd_soc_component_get_drvdata(dai->component); |
---|
126 | 123 | unsigned int mask = 1<<2; |
---|
.. | .. |
---|
419 | 416 | .startup = uda134x_startup, |
---|
420 | 417 | .shutdown = uda134x_shutdown, |
---|
421 | 418 | .hw_params = uda134x_hw_params, |
---|
422 | | - .digital_mute = uda134x_mute, |
---|
| 419 | + .mute_stream = uda134x_mute, |
---|
423 | 420 | .set_sysclk = uda134x_set_dai_sysclk, |
---|
424 | 421 | .set_fmt = uda134x_set_dai_fmt, |
---|
| 422 | + .no_capture_mute = 1, |
---|
425 | 423 | }; |
---|
426 | 424 | |
---|
427 | 425 | static struct snd_soc_dai_driver uda134x_dai = { |
---|