hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/isabelle.c
....@@ -1,15 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * isabelle.c - Low power high fidelity audio codec driver
34 *
45 * Copyright (c) 2012 Texas Instruments, Inc
56 *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; version 2 of the License.
9
- *
10
- *
117 * Initially based on sound/soc/codecs/twl6040.c
12
- *
138 */
149 #include <linux/module.h>
1510 #include <linux/moduleparam.h>
....@@ -865,7 +860,7 @@
865860 { "LINEOUT2", NULL, "LINEOUT2 Driver" },
866861 };
867862
868
-static int isabelle_hs_mute(struct snd_soc_dai *dai, int mute)
863
+static int isabelle_hs_mute(struct snd_soc_dai *dai, int mute, int direction)
869864 {
870865 snd_soc_component_update_bits(dai->component, ISABELLE_DAC1_SOFTRAMP_REG,
871866 BIT(4), (mute ? BIT(4) : 0));
....@@ -873,7 +868,7 @@
873868 return 0;
874869 }
875870
876
-static int isabelle_hf_mute(struct snd_soc_dai *dai, int mute)
871
+static int isabelle_hf_mute(struct snd_soc_dai *dai, int mute, int direction)
877872 {
878873 snd_soc_component_update_bits(dai->component, ISABELLE_DAC2_SOFTRAMP_REG,
879874 BIT(4), (mute ? BIT(4) : 0));
....@@ -881,7 +876,7 @@
881876 return 0;
882877 }
883878
884
-static int isabelle_line_mute(struct snd_soc_dai *dai, int mute)
879
+static int isabelle_line_mute(struct snd_soc_dai *dai, int mute, int direction)
885880 {
886881 snd_soc_component_update_bits(dai->component, ISABELLE_DAC3_SOFTRAMP_REG,
887882 BIT(4), (mute ? BIT(4) : 0));
....@@ -1019,19 +1014,22 @@
10191014 static const struct snd_soc_dai_ops isabelle_hs_dai_ops = {
10201015 .hw_params = isabelle_hw_params,
10211016 .set_fmt = isabelle_set_dai_fmt,
1022
- .digital_mute = isabelle_hs_mute,
1017
+ .mute_stream = isabelle_hs_mute,
1018
+ .no_capture_mute = 1,
10231019 };
10241020
10251021 static const struct snd_soc_dai_ops isabelle_hf_dai_ops = {
10261022 .hw_params = isabelle_hw_params,
10271023 .set_fmt = isabelle_set_dai_fmt,
1028
- .digital_mute = isabelle_hf_mute,
1024
+ .mute_stream = isabelle_hf_mute,
1025
+ .no_capture_mute = 1,
10291026 };
10301027
10311028 static const struct snd_soc_dai_ops isabelle_line_dai_ops = {
10321029 .hw_params = isabelle_hw_params,
10331030 .set_fmt = isabelle_set_dai_fmt,
1034
- .digital_mute = isabelle_line_mute,
1031
+ .mute_stream = isabelle_line_mute,
1032
+ .no_capture_mute = 1,
10351033 };
10361034
10371035 static const struct snd_soc_dai_ops isabelle_ul_dai_ops = {