| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * SSM2518 amplifier audio driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2013 Analog Devices Inc. |
|---|
| 5 | 6 | * Author: Lars-Peter Clausen <lars@metafoo.de> |
|---|
| 6 | | - * |
|---|
| 7 | | - * Licensed under the GPL-2. |
|---|
| 8 | 7 | */ |
|---|
| 9 | 8 | |
|---|
| 10 | 9 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 389 | 388 | SSM2518_POWER1_MCS_MASK, mcs << 1); |
|---|
| 390 | 389 | } |
|---|
| 391 | 390 | |
|---|
| 392 | | -static int ssm2518_mute(struct snd_soc_dai *dai, int mute) |
|---|
| 391 | +static int ssm2518_mute(struct snd_soc_dai *dai, int mute, int direction) |
|---|
| 393 | 392 | { |
|---|
| 394 | 393 | struct ssm2518 *ssm2518 = snd_soc_component_get_drvdata(dai->component); |
|---|
| 395 | 394 | unsigned int val; |
|---|
| .. | .. |
|---|
| 624 | 623 | static const struct snd_soc_dai_ops ssm2518_dai_ops = { |
|---|
| 625 | 624 | .startup = ssm2518_startup, |
|---|
| 626 | 625 | .hw_params = ssm2518_hw_params, |
|---|
| 627 | | - .digital_mute = ssm2518_mute, |
|---|
| 626 | + .mute_stream = ssm2518_mute, |
|---|
| 628 | 627 | .set_fmt = ssm2518_set_dai_fmt, |
|---|
| 629 | 628 | .set_tdm_slot = ssm2518_set_tdm_slot, |
|---|
| 629 | + .no_capture_mute = 1, |
|---|
| 630 | 630 | }; |
|---|
| 631 | 631 | |
|---|
| 632 | 632 | static struct snd_soc_dai_driver ssm2518_dai = { |
|---|