| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2011 LAPIS Semiconductor Co., Ltd. |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 6 | | - * the Free Software Foundation; version 2 of the License. |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 9 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 10 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 11 | | - * GNU General Public License for more details. |
|---|
| 12 | | - * |
|---|
| 13 | | - * You should have received a copy of the GNU General Public License |
|---|
| 14 | | - * along with this program; if not, write to the Free Software |
|---|
| 15 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 16 | 4 | */ |
|---|
| 17 | 5 | |
|---|
| 18 | 6 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 68 | 56 | static const DECLARE_TLV_DB_SCALE(mingain, -1200, 600, 0); |
|---|
| 69 | 57 | static const DECLARE_TLV_DB_SCALE(maxgain, -675, 600, 0); |
|---|
| 70 | 58 | static const DECLARE_TLV_DB_SCALE(boost_vol, -1200, 75, 0); |
|---|
| 71 | | -static const DECLARE_TLV_DB_SCALE(ngth, -7650, 150, 0); |
|---|
| 72 | 59 | |
|---|
| 73 | 60 | static const char * const ml26124_companding[] = {"16bit PCM", "u-law", |
|---|
| 74 | 61 | "A-law"}; |
|---|
| .. | .. |
|---|
| 385 | 372 | return 0; |
|---|
| 386 | 373 | } |
|---|
| 387 | 374 | |
|---|
| 388 | | -static int ml26124_mute(struct snd_soc_dai *dai, int mute) |
|---|
| 375 | +static int ml26124_mute(struct snd_soc_dai *dai, int mute, int direction) |
|---|
| 389 | 376 | { |
|---|
| 390 | 377 | struct snd_soc_component *component = dai->component; |
|---|
| 391 | 378 | struct ml26124_priv *priv = snd_soc_component_get_drvdata(component); |
|---|
| .. | .. |
|---|
| 505 | 492 | |
|---|
| 506 | 493 | static const struct snd_soc_dai_ops ml26124_dai_ops = { |
|---|
| 507 | 494 | .hw_params = ml26124_hw_params, |
|---|
| 508 | | - .digital_mute = ml26124_mute, |
|---|
| 495 | + .mute_stream = ml26124_mute, |
|---|
| 509 | 496 | .set_fmt = ml26124_set_dai_fmt, |
|---|
| 510 | 497 | .set_sysclk = ml26124_set_dai_sysclk, |
|---|
| 498 | + .no_capture_mute = 1, |
|---|
| 511 | 499 | }; |
|---|
| 512 | 500 | |
|---|
| 513 | 501 | static struct snd_soc_dai_driver ml26124_dai = { |
|---|