forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/sound/soc/spear/spdif_out.c
....@@ -188,7 +188,7 @@
188188 return ret;
189189 }
190190
191
-static int spdif_digital_mute(struct snd_soc_dai *dai, int mute)
191
+static int spdif_mute(struct snd_soc_dai *dai, int mute, int direction)
192192 {
193193 struct spdif_out_dev *host = snd_soc_dai_get_drvdata(dai);
194194 u32 val;
....@@ -229,7 +229,8 @@
229229 if (host->saved_params.mute == ucontrol->value.integer.value[0])
230230 return 0;
231231
232
- spdif_digital_mute(cpu_dai, ucontrol->value.integer.value[0]);
232
+ spdif_mute(cpu_dai, ucontrol->value.integer.value[0],
233
+ SNDRV_PCM_STREAM_PLAYBACK);
233234
234235 return 1;
235236 }
....@@ -250,11 +251,12 @@
250251 }
251252
252253 static const struct snd_soc_dai_ops spdif_out_dai_ops = {
253
- .digital_mute = spdif_digital_mute,
254
+ .mute_stream = spdif_mute,
254255 .startup = spdif_out_startup,
255256 .shutdown = spdif_out_shutdown,
256257 .trigger = spdif_out_trigger,
257258 .hw_params = spdif_out_hw_params,
259
+ .no_capture_mute = 1,
258260 };
259261
260262 static struct snd_soc_dai_driver spdif_out_dai = {