hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/sound/arm/pxa2xx-ac97.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/sound/pxa2xx-ac97.c -- AC97 support for the Intel PXA2xx chip.
34 *
45 * Author: Nicolas Pitre
56 * Created: Dec 02, 2004
67 * Copyright: MontaVista Software Inc.
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/init.h>
....@@ -55,7 +52,7 @@
5552 ret = pxa2xx_ac97_write(ac97->num, reg, val);
5653 }
5754
58
-static struct snd_ac97_bus_ops pxa2xx_ac97_ops = {
55
+static const struct snd_ac97_bus_ops pxa2xx_ac97_ops = {
5956 .read = pxa2xx_ac97_legacy_read,
6057 .write = pxa2xx_ac97_legacy_write,
6158 .reset = pxa2xx_ac97_legacy_reset,
....@@ -124,7 +121,6 @@
124121 pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data;
125122
126123 snd_power_change_state(card, SNDRV_CTL_POWER_D3cold);
127
- snd_pcm_suspend_all(pxa2xx_ac97_pcm);
128124 snd_ac97_suspend(pxa2xx_ac97_ac97);
129125 if (platform_ops && platform_ops->suspend)
130126 platform_ops->suspend(platform_ops->priv);
....@@ -177,7 +173,6 @@
177173 static const struct snd_pcm_ops pxa2xx_ac97_pcm_ops = {
178174 .open = pxa2xx_ac97_pcm_open,
179175 .close = pxa2xx_ac97_pcm_close,
180
- .ioctl = snd_pcm_lib_ioctl,
181176 .hw_params = pxa2xx_pcm_hw_params,
182177 .hw_free = pxa2xx_pcm_hw_free,
183178 .prepare = pxa2xx_ac97_pcm_prepare,