| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/sound/arm/pxa2xx-pcm.c -- ALSA PCM interface for the Intel PXA2xx chip |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Author: Nicolas Pitre |
|---|
| 5 | 6 | * Created: Nov 30, 2004 |
|---|
| 6 | 7 | * 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. |
|---|
| 11 | 8 | */ |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #include <linux/dma-mapping.h> |
|---|
| .. | .. |
|---|
| 21 | 18 | #include <sound/dmaengine_pcm.h> |
|---|
| 22 | 19 | |
|---|
| 23 | 20 | 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, |
|---|
| 27 | 31 | }; |
|---|
| 28 | 32 | |
|---|
| 29 | 33 | static int pxa2xx_soc_platform_probe(struct platform_device *pdev) |
|---|