hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/cs4349.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * cs4349.c -- CS4349 ALSA Soc Audio driver
34 *
45 * Copyright 2015 Cirrus Logic, Inc.
56 *
67 * Authors: Tim Howe <Tim.Howe@cirrus.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 version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #include <linux/module.h>
....@@ -134,7 +131,7 @@
134131 return 0;
135132 }
136133
137
-static int cs4349_digital_mute(struct snd_soc_dai *dai, int mute)
134
+static int cs4349_mute(struct snd_soc_dai *dai, int mute, int direction)
138135 {
139136 struct snd_soc_component *component = dai->component;
140137 int reg;
....@@ -239,7 +236,8 @@
239236 static const struct snd_soc_dai_ops cs4349_dai_ops = {
240237 .hw_params = cs4349_pcm_hw_params,
241238 .set_fmt = cs4349_set_dai_fmt,
242
- .digital_mute = cs4349_digital_mute,
239
+ .mute_stream = cs4349_mute,
240
+ .no_capture_mute = 1,
243241 };
244242
245243 static struct snd_soc_dai_driver cs4349_dai = {