forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/sound/soc/pxa/pxa2xx-pcm.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/sound/arm/pxa2xx-pcm.c -- ALSA PCM interface for the Intel PXA2xx chip
34 *
45 * Author: Nicolas Pitre
56 * Created: Nov 30, 2004
67 * Copyright: (C) 2004 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/dma-mapping.h>
....@@ -21,9 +18,16 @@
2118 #include <sound/dmaengine_pcm.h>
2219
2320 static const struct snd_soc_component_driver pxa2xx_soc_platform = {
24
- .ops = &pxa2xx_pcm_ops,
25
- .pcm_new = pxa2xx_soc_pcm_new,
26
- .pcm_free = pxa2xx_pcm_free_dma_buffers,
21
+ .pcm_construct = pxa2xx_soc_pcm_new,
22
+ .pcm_destruct = pxa2xx_soc_pcm_free,
23
+ .open = pxa2xx_soc_pcm_open,
24
+ .close = pxa2xx_soc_pcm_close,
25
+ .hw_params = pxa2xx_soc_pcm_hw_params,
26
+ .hw_free = pxa2xx_soc_pcm_hw_free,
27
+ .prepare = pxa2xx_soc_pcm_prepare,
28
+ .trigger = pxa2xx_soc_pcm_trigger,
29
+ .pointer = pxa2xx_soc_pcm_pointer,
30
+ .mmap = pxa2xx_soc_pcm_mmap,
2731 };
2832
2933 static int pxa2xx_soc_platform_probe(struct platform_device *pdev)