hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/cq93vc.c
....@@ -1,23 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ALSA SoC CQ0093 Voice Codec Driver for DaVinci platforms
34 *
45 * Copyright (C) 2010 Texas Instruments, Inc
56 *
67 * 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
218 */
229 #include <linux/module.h>
2310 #include <linux/moduleparam.h>
....@@ -43,7 +30,7 @@
4330 SOC_SINGLE("Mono DAC Playback Volume", DAVINCI_VC_REG09, 0, 0x3f, 0),
4431 };
4532
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)
4734 {
4835 struct snd_soc_component *component = dai->component;
4936 u8 reg;
....@@ -100,8 +87,9 @@
10087 #define CQ93VC_FORMATS (SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE)
10188
10289 static const struct snd_soc_dai_ops cq93vc_dai_ops = {
103
- .digital_mute = cq93vc_mute,
90
+ .mute_stream = cq93vc_mute,
10491 .set_sysclk = cq93vc_set_dai_sysclk,
92
+ .no_capture_mute = 1,
10593 };
10694
10795 static struct snd_soc_dai_driver cq93vc_dai = {