forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/sound/soc/meson/axg-spdifout.c
....@@ -108,7 +108,7 @@
108108 }
109109 }
110110
111
-static int axg_spdifout_digital_mute(struct snd_soc_dai *dai, int mute)
111
+static int axg_spdifout_mute(struct snd_soc_dai *dai, int mute, int direction)
112112 {
113113 struct axg_spdifout *priv = snd_soc_dai_get_drvdata(dai);
114114
....@@ -285,10 +285,11 @@
285285
286286 static const struct snd_soc_dai_ops axg_spdifout_ops = {
287287 .trigger = axg_spdifout_trigger,
288
- .digital_mute = axg_spdifout_digital_mute,
288
+ .mute_stream = axg_spdifout_mute,
289289 .hw_params = axg_spdifout_hw_params,
290290 .startup = axg_spdifout_startup,
291291 .shutdown = axg_spdifout_shutdown,
292
+ .no_capture_mute = 1,
292293 };
293294
294295 static struct snd_soc_dai_driver axg_spdifout_dai_drv[] = {
....@@ -401,7 +402,6 @@
401402 {
402403 struct device *dev = &pdev->dev;
403404 struct axg_spdifout *priv;
404
- struct resource *res;
405405 void __iomem *regs;
406406 int ret;
407407
....@@ -410,8 +410,7 @@
410410 return -ENOMEM;
411411 platform_set_drvdata(pdev, priv);
412412
413
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
414
- regs = devm_ioremap_resource(dev, res);
413
+ regs = devm_platform_ioremap_resource(pdev, 0);
415414 if (IS_ERR(regs))
416415 return PTR_ERR(regs);
417416