| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ak4641.c -- AK4641 ALSA Soc Audio driver |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * Copyright (C) 2011 Dmitry Artamonow <mad_soft@inbox.ru> |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Based on ak4535.c by Richard Purdie |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 10 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 11 | | - * published by the Free Software Foundation. |
|---|
| 12 | 9 | */ |
|---|
| 13 | 10 | |
|---|
| 14 | 11 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 408 | 405 | return snd_soc_component_write(component, AK4641_MODE1, mode1); |
|---|
| 409 | 406 | } |
|---|
| 410 | 407 | |
|---|
| 411 | | -static int ak4641_mute(struct snd_soc_dai *dai, int mute) |
|---|
| 408 | +static int ak4641_mute(struct snd_soc_dai *dai, int mute, int direction) |
|---|
| 412 | 409 | { |
|---|
| 413 | 410 | struct snd_soc_component *component = dai->component; |
|---|
| 414 | 411 | |
|---|
| .. | .. |
|---|
| 470 | 467 | static const struct snd_soc_dai_ops ak4641_i2s_dai_ops = { |
|---|
| 471 | 468 | .hw_params = ak4641_i2s_hw_params, |
|---|
| 472 | 469 | .set_fmt = ak4641_i2s_set_dai_fmt, |
|---|
| 473 | | - .digital_mute = ak4641_mute, |
|---|
| 470 | + .mute_stream = ak4641_mute, |
|---|
| 474 | 471 | .set_sysclk = ak4641_set_dai_sysclk, |
|---|
| 472 | + .no_capture_mute = 1, |
|---|
| 475 | 473 | }; |
|---|
| 476 | 474 | |
|---|
| 477 | 475 | static const struct snd_soc_dai_ops ak4641_pcm_dai_ops = { |
|---|
| 478 | 476 | .hw_params = NULL, /* rates are controlled by BT chip */ |
|---|
| 479 | 477 | .set_fmt = ak4641_pcm_set_dai_fmt, |
|---|
| 480 | | - .digital_mute = ak4641_mute, |
|---|
| 478 | + .mute_stream = ak4641_mute, |
|---|
| 481 | 479 | .set_sysclk = ak4641_set_dai_sysclk, |
|---|
| 480 | + .no_capture_mute = 1, |
|---|
| 482 | 481 | }; |
|---|
| 483 | 482 | |
|---|
| 484 | 483 | static struct snd_soc_dai_driver ak4641_dai[] = { |
|---|