forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/drivers/pcsp/pcsp.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * PC-Speaker driver for Linux
34 *
....@@ -42,7 +43,7 @@
4243
4344 static int snd_pcsp_create(struct snd_card *card)
4445 {
45
- static struct snd_device_ops ops = { };
46
+ static const struct snd_device_ops ops = { };
4647 unsigned int resolution = hrtimer_resolution;
4748 int err, div, min_div, order;
4849
....@@ -197,7 +198,6 @@
197198 {
198199 struct snd_pcsp *chip = dev_get_drvdata(dev);
199200 pcsp_stop_beep(chip);
200
- snd_pcm_suspend_all(chip->pcm);
201201 return 0;
202202 }
203203