| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ALSA SoC CQ0093 Voice Codec Driver for DaVinci platforms |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2010 Texas Instruments, Inc |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Author: Miguel Aguilar <miguel.aguilar@ridgerun.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 10 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 11 | | - * (at your option) any later version. |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | | - * GNU General Public License for more details. |
|---|
| 17 | | - * |
|---|
| 18 | | - * You should have received a copy of the GNU General Public License |
|---|
| 19 | | - * along with this program; if not, write to the Free Software |
|---|
| 20 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 21 | 8 | */ |
|---|
| 22 | 9 | #include <linux/module.h> |
|---|
| 23 | 10 | #include <linux/moduleparam.h> |
|---|
| .. | .. |
|---|
| 43 | 30 | SOC_SINGLE("Mono DAC Playback Volume", DAVINCI_VC_REG09, 0, 0x3f, 0), |
|---|
| 44 | 31 | }; |
|---|
| 45 | 32 | |
|---|
| 46 | | -static int cq93vc_mute(struct snd_soc_dai *dai, int mute) |
|---|
| 33 | +static int cq93vc_mute(struct snd_soc_dai *dai, int mute, int direction) |
|---|
| 47 | 34 | { |
|---|
| 48 | 35 | struct snd_soc_component *component = dai->component; |
|---|
| 49 | 36 | u8 reg; |
|---|
| .. | .. |
|---|
| 100 | 87 | #define CQ93VC_FORMATS (SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE) |
|---|
| 101 | 88 | |
|---|
| 102 | 89 | static const struct snd_soc_dai_ops cq93vc_dai_ops = { |
|---|
| 103 | | - .digital_mute = cq93vc_mute, |
|---|
| 90 | + .mute_stream = cq93vc_mute, |
|---|
| 104 | 91 | .set_sysclk = cq93vc_set_dai_sysclk, |
|---|
| 92 | + .no_capture_mute = 1, |
|---|
| 105 | 93 | }; |
|---|
| 106 | 94 | |
|---|
| 107 | 95 | static struct snd_soc_dai_driver cq93vc_dai = { |
|---|