.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * SSM4567 amplifier audio driver |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * |
---|
7 | 8 | * Based on code copyright/by: |
---|
8 | 9 | * Copyright 2013 Analog Devices Inc. |
---|
9 | | - * |
---|
10 | | - * Licensed under the GPL-2. |
---|
11 | 10 | */ |
---|
12 | 11 | |
---|
13 | 12 | #include <linux/acpi.h> |
---|
.. | .. |
---|
221 | 220 | SSM4567_DAC_FS_MASK, dacfs); |
---|
222 | 221 | } |
---|
223 | 222 | |
---|
224 | | -static int ssm4567_mute(struct snd_soc_dai *dai, int mute) |
---|
| 223 | +static int ssm4567_mute(struct snd_soc_dai *dai, int mute, int direction) |
---|
225 | 224 | { |
---|
226 | 225 | struct ssm4567 *ssm4567 = snd_soc_component_get_drvdata(dai->component); |
---|
227 | 226 | unsigned int val; |
---|
.. | .. |
---|
391 | 390 | |
---|
392 | 391 | static const struct snd_soc_dai_ops ssm4567_dai_ops = { |
---|
393 | 392 | .hw_params = ssm4567_hw_params, |
---|
394 | | - .digital_mute = ssm4567_mute, |
---|
| 393 | + .mute_stream = ssm4567_mute, |
---|
395 | 394 | .set_fmt = ssm4567_set_dai_fmt, |
---|
396 | 395 | .set_tdm_slot = ssm4567_set_tdm_slot, |
---|
| 396 | + .no_capture_mute = 1, |
---|
397 | 397 | }; |
---|
398 | 398 | |
---|
399 | 399 | static struct snd_soc_dai_driver ssm4567_dai = { |
---|