.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Driver for ADAU1701 SigmaDSP processor |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2011 Analog Devices Inc. |
---|
5 | 6 | * Author: Lars-Peter Clausen <lars@metafoo.de> |
---|
6 | 7 | * based on an inital version by Cliff Cai <cliff.cai@analog.com> |
---|
7 | | - * |
---|
8 | | - * Licensed under the GPL-2 or later. |
---|
9 | 8 | */ |
---|
10 | 9 | |
---|
11 | 10 | #include <linux/module.h> |
---|
.. | .. |
---|
574 | 573 | return 0; |
---|
575 | 574 | } |
---|
576 | 575 | |
---|
577 | | -static int adau1701_digital_mute(struct snd_soc_dai *dai, int mute) |
---|
| 576 | +static int adau1701_mute_stream(struct snd_soc_dai *dai, int mute, int direction) |
---|
578 | 577 | { |
---|
579 | 578 | struct snd_soc_component *component = dai->component; |
---|
580 | 579 | unsigned int mask = ADAU1701_DSPCTRL_DAM; |
---|
.. | .. |
---|
632 | 631 | static const struct snd_soc_dai_ops adau1701_dai_ops = { |
---|
633 | 632 | .set_fmt = adau1701_set_dai_fmt, |
---|
634 | 633 | .hw_params = adau1701_hw_params, |
---|
635 | | - .digital_mute = adau1701_digital_mute, |
---|
| 634 | + .mute_stream = adau1701_mute_stream, |
---|
636 | 635 | .startup = adau1701_startup, |
---|
| 636 | + .no_capture_mute = 1, |
---|
637 | 637 | }; |
---|
638 | 638 | |
---|
639 | 639 | static struct snd_soc_dai_driver adau1701_dai = { |
---|