.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/sound/pxa2xx-ac97.c -- AC97 support for the Intel PXA2xx chip. |
---|
3 | 4 | * |
---|
4 | 5 | * Author: Nicolas Pitre |
---|
5 | 6 | * Created: Dec 02, 2004 |
---|
6 | 7 | * 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. |
---|
11 | 8 | */ |
---|
12 | 9 | |
---|
13 | 10 | #include <linux/init.h> |
---|
.. | .. |
---|
55 | 52 | ret = pxa2xx_ac97_write(ac97->num, reg, val); |
---|
56 | 53 | } |
---|
57 | 54 | |
---|
58 | | -static struct snd_ac97_bus_ops pxa2xx_ac97_ops = { |
---|
| 55 | +static const struct snd_ac97_bus_ops pxa2xx_ac97_ops = { |
---|
59 | 56 | .read = pxa2xx_ac97_legacy_read, |
---|
60 | 57 | .write = pxa2xx_ac97_legacy_write, |
---|
61 | 58 | .reset = pxa2xx_ac97_legacy_reset, |
---|
.. | .. |
---|
124 | 121 | pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; |
---|
125 | 122 | |
---|
126 | 123 | snd_power_change_state(card, SNDRV_CTL_POWER_D3cold); |
---|
127 | | - snd_pcm_suspend_all(pxa2xx_ac97_pcm); |
---|
128 | 124 | snd_ac97_suspend(pxa2xx_ac97_ac97); |
---|
129 | 125 | if (platform_ops && platform_ops->suspend) |
---|
130 | 126 | platform_ops->suspend(platform_ops->priv); |
---|
.. | .. |
---|
177 | 173 | static const struct snd_pcm_ops pxa2xx_ac97_pcm_ops = { |
---|
178 | 174 | .open = pxa2xx_ac97_pcm_open, |
---|
179 | 175 | .close = pxa2xx_ac97_pcm_close, |
---|
180 | | - .ioctl = snd_pcm_lib_ioctl, |
---|
181 | 176 | .hw_params = pxa2xx_pcm_hw_params, |
---|
182 | 177 | .hw_free = pxa2xx_pcm_hw_free, |
---|
183 | 178 | .prepare = pxa2xx_ac97_pcm_prepare, |
---|