ASoC: ti: remove compat dma probing
Subsystems (6)
PATCH 1/3 ASoC: ti: remove compat dma probing
After running into a link error:
sound/soc/ti/edma-pcm.o:(.rodata+0x18): undefined reference to `edma_filter_fn'
I checked all users of this, and they have new-style 'dma_slave_map' tables, so none of them should still need it. Removing the associated lines simplifies the code and avoids the build-time dependency on the respective dmaengine drivers.
---
v2: remove header inclusions as well
I added the two dmaengine patches to the series this time, but we probably want to have those merged separately through the dmaengine tree, while this one should get merged as a bugfix through ASoC.
--- sound/soc/ti/edma-pcm.c | 5 +---- sound/soc/ti/sdma-pcm.c | 9 +++------ 2 files changed, 4 insertions(+), 10 deletions(-)
sound/soc/ti/edma-pcm.c +1 -4
@@ -23,7 +23,6 @@#include <sound/pcm_params.h> #include <sound/soc.h> #include <sound/dmaengine_pcm.h> -#include <linux/edma.h> #include "edma-pcm.h"
@@ -43,14 +42,12 @@ static const struct snd_pcm_hardware edma_pcm_hardware = {static const struct snd_dmaengine_pcm_config edma_dmaengine_pcm_config = { .pcm_hardware = &edma_pcm_hardware, .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config, - .compat_filter_fn = edma_filter_fn, .prealloc_buffer_size =128 *1024 , };int edma_pcm_platform_register (struct device *dev) { -return devm_snd_dmaengine_pcm_register (dev, &edma_dmaengine_pcm_config, -SND_DMAENGINE_PCM_FLAG_COMPAT ); +return devm_snd_dmaengine_pcm_register (dev, &edma_dmaengine_pcm_config,0 ); }EXPORT_SYMBOL_GPL (edma_pcm_platform_register);
sound/soc/ti/sdma-pcm.c +3 -6
@@ -11,7 +11,6 @@#include <sound/pcm_params.h> #include <sound/soc.h> #include <sound/dmaengine_pcm.h> -#include <linux/omap-dmaengine.h> #include "sdma-pcm.h"
@@ -31,7 +30,6 @@ static const struct snd_pcm_hardware sdma_pcm_hardware = {static const struct snd_dmaengine_pcm_config sdma_dmaengine_pcm_config = { .pcm_hardware = &sdma_pcm_hardware, .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config, - .compat_filter_fn = omap_dma_filter_fn, .prealloc_buffer_size =128 *1024 , };
@@ -39,13 +37,12 @@ int sdma_pcm_platform_register(struct device *dev, char *txdmachan, char *rxdmachan) { struct snd_dmaengine_pcm_config *config; -unsigned int flags =SND_DMAENGINE_PCM_FLAG_COMPAT ; +unsigned int flags =0 ;/* Standard names for the directions: 'tx' and 'rx' */ if (!txdmachan && !rxdmachan)return devm_snd_dmaengine_pcm_register (dev, - &sdma_dmaengine_pcm_config, - flags); + &sdma_dmaengine_pcm_config,0 ); config =devm_kzalloc (dev,sizeof (*config),GFP_KERNEL );if (!config)
@@ -65,7 +62,7 @@ int sdma_pcm_platform_register(struct device *dev, config->chan_names[0 ] = txdmachan; config->chan_names[1 ] = rxdmachan; -return devm_snd_dmaengine_pcm_register (dev, config, flags); +return devm_snd_dmaengine_pcm_register (dev, config,0 ); }EXPORT_SYMBOL_GPL (sdma_pcm_platform_register);
Signature · 1 line
2.20.0
PATCH 2/3 dmaengine: omap-dma: make omap_dma_filter_fn private
With the audio driver no longer referring to this function, it can be made private to the dmaengine driver itself, and the header file removed.
--- drivers/dma/ti/omap-dma.c | 3 ++- include/linux/omap-dma.h | 2 -- include/linux/omap-dmaengine.h | 21 --------------------- 3 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 include/linux/omap-dmaengine.h
drivers/dma/ti/omap-dma.c +2 -1
@@ -205,6 +205,7 @@ static const unsigned es_bytes[] = { [CSDP_DATA_TYPE_32] = 4, }; +static bool omap_dma_filter_fn (struct dma_chan *chan,void *param);static struct of_dma_filter_info omap_dma_info = { .filter_fn = omap_dma_filter_fn, };
@@ -1640,7 +1641,7 @@ static struct platform_driver omap_dma_driver = { }, }; -bool omap_dma_filter_fn (struct dma_chan *chan,void *param) +static bool omap_dma_filter_fn (struct dma_chan *chan,void *param) {if (chan->device->dev->driver == &omap_dma_driver.driver) {struct omap_dmadev *od =to_omap_dma_dev (chan->device);
include/linux/omap-dma.h +0 -2
@@ -1,8 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_OMAP_DMA_H#define __LINUX_OMAP_DMA_H -#include <linux/omap-dmaengine.h> -/* * Legacy OMAP DMA handling defines and functions *
include/linux/omap-dmaengine.h deleted +0 -21
@@ -1,21 +0,0 @@ -/* -* OMAP DMA Engine support -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ -#ifndef __LINUX_OMAP_DMAENGINE_H -#define __LINUX_OMAP_DMAENGINE_H - -struct dma_chan ; - -#if defined(CONFIG_DMA_OMAP ) || (defined(CONFIG_DMA_OMAP_MODULE ) && defined(MODULE )) -bool omap_dma_filter_fn (struct dma_chan *,void *); -#else -static inline bool omap_dma_filter_fn (struct dma_chan *c,void *d) -{ -return false; -} -#endif -#endif /* __LINUX_OMAP_DMAENGINE_H */
Signature · 1 line
2.20.0
Re: [PATCH 2/3] dmaengine: omap-dma: make omap_dma_filter_fn private
Quoted 3 lines · Arnd Bergmann
With the audio driver no longer referring to this function, it can be made private to the dmaengine driver itself, and the header file removed.
Quoted 60 lines
Signed-off-by Arnd Bergmann <[email protected]>--- drivers/dma/ti/omap-dma.c | 3 ++- include/linux/omap-dma.h | 2 -- include/linux/omap-dmaengine.h | 21 --------------------- 3 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 include/linux/omap-dmaengine.hdrivers/dma/ti/omap-dma.c +2
-1@@ -205,6 +205,7 @@ static const unsigned es_bytes[] = { [CSDP_DATA_TYPE_32] = 4, }; +static bool omap_dma_filter_fn (struct dma_chan *chan,void *param);static struct of_dma_filter_info omap_dma_info = { .filter_fn = omap_dma_filter_fn, };@@ -1640,7 +1641,7 @@ static struct platform_driver omap_dma_driver = { }, }; -bool omap_dma_filter_fn (struct dma_chan *chan,void *param) +static bool omap_dma_filter_fn (struct dma_chan *chan,void *param) {if (chan->device->dev->driver == &omap_dma_driver.driver) {struct omap_dmadev *od =to_omap_dma_dev (chan->device);include/linux/omap-dma.h +0
-2@@ -1,8 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_OMAP_DMA_H#define __LINUX_OMAP_DMA_H -#include <linux/omap-dmaengine.h> -/* * Legacy OMAP DMA handling defines and functions * include/linux/omap-dmaengine.h deleted +0
-11@@ -1,21 +0,0 @@ -/* -* OMAP DMA Engine support -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ -#ifndef __LINUX_OMAP_DMAENGINE_H -#define __LINUX_OMAP_DMAENGINE_H - -struct dma_chan ;
include/linux/omap-dmaengine.h line 21
Quoted 10 lines
include/linux/omap-dmaengine.h deleted +0
-10- -#if defined(CONFIG_DMA_OMAP ) || (defined(CONFIG_DMA_OMAP_MODULE ) && defined(MODULE )) -bool omap_dma_filter_fn (struct dma_chan *,void *); -#else -static inline bool omap_dma_filter_fn (struct dma_chan *c,void *d) -{ -return false; -} -#endif -#endif /* __LINUX_OMAP_DMAENGINE_H */
- Péter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Re: [PATCH 2/3] dmaengine: omap-dma: make omap_dma_filter_fn private
Quoted 6 lines · Peter Ujfalusi
Quoted 3 lines · Arnd Bergmann
With the audio driver no longer referring to this function, it can be made private to the dmaengine driver itself, and the header file removed.
Applied, thanks
Signature · 1 line
~Vinod
PATCH 3/3 dmaengine: edma: make edma_filter_fn private
In reply to Arnd BergmannWith the audio driver no longer referring to this function, it can be made private to the dmaengine driver itself, and the header file removed.
--- drivers/dma/ti/edma.c | 5 +++-- include/linux/edma.h | 29 ----------------------------- 2 files changed, 3 insertions(+), 31 deletions(-) delete mode 100644 include/linux/edma.h
drivers/dma/ti/edma.c +3 -2
@@ -15,7 +15,6 @@#include <linux/dmaengine.h> #include <linux/dma-mapping.h> -#include <linux/edma.h> #include <linux/err.h> #include <linux/init.h> #include <linux/interrupt.h>
@@ -2185,6 +2184,8 @@ static struct dma_chan *of_edma_xlate(struct of_phandle_args *dma_spec, }#endif +static bool edma_filter_fn (struct dma_chan *chan,void *param); +static int edma_probe (struct platform_device *pdev) {struct edma_soc_info *info = pdev->dev.platform_data;
@@ -2524,7 +2525,7 @@ static struct platform_driver edma_tptc_driver = { }, }; -bool edma_filter_fn (struct dma_chan *chan,void *param) +static bool edma_filter_fn (struct dma_chan *chan,void *param) {bool match = false;
include/linux/edma.h deleted +0 -29
@@ -1,29 +0,0 @@ -/* -* TI EDMA DMA engine driver -* -* Copyright 2012 Texas Instruments -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation version 2. -* -* This program is distributed "as is" WITHOUT ANY WARRANTY of any -* kind, whether express or implied; without even the implied warranty -* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ -#ifndef __LINUX_EDMA_H -#define __LINUX_EDMA_H - -struct dma_chan ; - -#if defined(CONFIG_TI_EDMA ) || defined(CONFIG_TI_EDMA_MODULE ) -bool edma_filter_fn (struct dma_chan *,void *); -#else -static inline bool edma_filter_fn (struct dma_chan *chan,void *param) -{ -return false; -} -#endif - -#endif
Signature · 1 line
2.20.0
Re: [PATCH 3/3] dmaengine: edma: make edma_filter_fn private
Quoted 3 lines · Arnd Bergmann
With the audio driver no longer referring to this function, it can be made private to the dmaengine driver itself, and the header file removed.
Quoted 64 lines
Signed-off-by Arnd Bergmann <[email protected]>--- drivers/dma/ti/edma.c | 5 +++-- include/linux/edma.h | 29 ----------------------------- 2 files changed, 3 insertions(+), 31 deletions(-) delete mode 100644 include/linux/edma.hdrivers/dma/ti/edma.c +3
-2@@ -15,7 +15,6 @@#include <linux/dmaengine.h> #include <linux/dma-mapping.h> -#include <linux/edma.h> #include <linux/err.h> #include <linux/init.h> #include <linux/interrupt.h> @@ -2185,6 +2184,8 @@ static struct dma_chan *of_edma_xlate(struct of_phandle_args *dma_spec, }#endif +static bool edma_filter_fn (struct dma_chan *chan,void *param); +static int edma_probe (struct platform_device *pdev) {struct edma_soc_info *info = pdev->dev.platform_data;@@ -2524,7 +2525,7 @@ static struct platform_driver edma_tptc_driver = { }, }; -bool edma_filter_fn (struct dma_chan *chan,void *param) +static bool edma_filter_fn (struct dma_chan *chan,void *param) {bool match = false;include/linux/edma.h deleted +0
-19@@ -1,29 +0,0 @@ -/* -* TI EDMA DMA engine driver -* -* Copyright 2012 Texas Instruments -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation version 2. -* -* This program is distributed "as is" WITHOUT ANY WARRANTY of any -* kind, whether express or implied; without even the implied warranty -* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ -#ifndef __LINUX_EDMA_H -#define __LINUX_EDMA_H - -struct dma_chan ; -
include/linux/edma.h line 29
Quoted 10 lines
include/linux/edma.h deleted +0
-10-#if defined(CONFIG_TI_EDMA ) || defined(CONFIG_TI_EDMA_MODULE ) -bool edma_filter_fn (struct dma_chan *,void *); -#else -static inline bool edma_filter_fn (struct dma_chan *chan,void *param) -{ -return false; -} -#endif - -#endif
- Péter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Re: [PATCH 3/3] dmaengine: edma: make edma_filter_fn private
In reply to Arnd BergmannQuoted 3 lines · Arnd Bergmann
With the audio driver no longer referring to this function, it can be made private to the dmaengine driver itself, and the header file removed.
Applied, thanks
Signature · 1 line
~Vinod
Mark Brown
maintainerApplied "ASoC: ti: remove compat dma probing" to the asoc tree
In reply to Arnd BergmannThe patch
ASoC: ti: remove compat dma probing
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
642aafea8889b712fe8e57aaa706d6c05d295059Mon Sep 17 00:00:00 2001
From: Arnd Bergmann <[email protected]>
Date: Thu, 7 Mar 2019 16:16:08 +0100
Subject: [PATCH] ASoC: ti: remove compat dma probing
After running into a link error:
sound/soc/ti/edma-pcm.o:(.rodata+0x18): undefined reference to `edma_filter_fn'
I checked all users of this, and they have new-style 'dma_slave_map' tables, so none of them should still need it. Removing the associated lines simplifies the code and avoids the build-time dependency on the respective dmaengine drivers.
--- sound/soc/ti/edma-pcm.c | 5 +---- sound/soc/ti/sdma-pcm.c | 9 +++------ 2 files changed, 4 insertions(+), 10 deletions(-)
sound/soc/ti/edma-pcm.c +1 -4
@@ -23,7 +23,6 @@#include <sound/pcm_params.h> #include <sound/soc.h> #include <sound/dmaengine_pcm.h> -#include <linux/edma.h> #include "edma-pcm.h"
@@ -43,14 +42,12 @@ static const struct snd_pcm_hardware edma_pcm_hardware = {static const struct snd_dmaengine_pcm_config edma_dmaengine_pcm_config = { .pcm_hardware = &edma_pcm_hardware, .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config, - .compat_filter_fn = edma_filter_fn, .prealloc_buffer_size =128 *1024 , };int edma_pcm_platform_register (struct device *dev) { -return devm_snd_dmaengine_pcm_register (dev, &edma_dmaengine_pcm_config, -SND_DMAENGINE_PCM_FLAG_COMPAT ); +return devm_snd_dmaengine_pcm_register (dev, &edma_dmaengine_pcm_config,0 ); }EXPORT_SYMBOL_GPL (edma_pcm_platform_register);
sound/soc/ti/sdma-pcm.c +3 -6
@@ -11,7 +11,6 @@#include <sound/pcm_params.h> #include <sound/soc.h> #include <sound/dmaengine_pcm.h> -#include <linux/omap-dmaengine.h> #include "sdma-pcm.h"
@@ -31,7 +30,6 @@ static const struct snd_pcm_hardware sdma_pcm_hardware = {static const struct snd_dmaengine_pcm_config sdma_dmaengine_pcm_config = { .pcm_hardware = &sdma_pcm_hardware, .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config, - .compat_filter_fn = omap_dma_filter_fn, .prealloc_buffer_size =128 *1024 , };
@@ -39,13 +37,12 @@ int sdma_pcm_platform_register(struct device *dev, char *txdmachan, char *rxdmachan) { struct snd_dmaengine_pcm_config *config; -unsigned int flags =SND_DMAENGINE_PCM_FLAG_COMPAT ; +unsigned int flags =0 ;/* Standard names for the directions: 'tx' and 'rx' */ if (!txdmachan && !rxdmachan)return devm_snd_dmaengine_pcm_register (dev, - &sdma_dmaengine_pcm_config, - flags); + &sdma_dmaengine_pcm_config,0 ); config =devm_kzalloc (dev,sizeof (*config),GFP_KERNEL );if (!config)
@@ -65,7 +62,7 @@ int sdma_pcm_platform_register(struct device *dev, config->chan_names[0 ] = txdmachan; config->chan_names[1 ] = rxdmachan; -return devm_snd_dmaengine_pcm_register (dev, config, flags); +return devm_snd_dmaengine_pcm_register (dev, config,0 ); }EXPORT_SYMBOL_GPL (sdma_pcm_platform_register);
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: ti: remove compat dma probing" to the asoc tree
In reply to Arnd BergmannThe patch
ASoC: ti: remove compat dma probing
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
642aafea8889b712fe8e57aaa706d6c05d295059Mon Sep 17 00:00:00 2001
From: Arnd Bergmann <[email protected]>
Date: Thu, 7 Mar 2019 16:16:08 +0100
Subject: [PATCH] ASoC: ti: remove compat dma probing
After running into a link error:
sound/soc/ti/edma-pcm.o:(.rodata+0x18): undefined reference to `edma_filter_fn'
I checked all users of this, and they have new-style 'dma_slave_map' tables, so none of them should still need it. Removing the associated lines simplifies the code and avoids the build-time dependency on the respective dmaengine drivers.
--- sound/soc/ti/edma-pcm.c | 5 +---- sound/soc/ti/sdma-pcm.c | 9 +++------ 2 files changed, 4 insertions(+), 10 deletions(-)
sound/soc/ti/edma-pcm.c +1 -4
@@ -23,7 +23,6 @@#include <sound/pcm_params.h> #include <sound/soc.h> #include <sound/dmaengine_pcm.h> -#include <linux/edma.h> #include "edma-pcm.h"
@@ -43,14 +42,12 @@ static const struct snd_pcm_hardware edma_pcm_hardware = {static const struct snd_dmaengine_pcm_config edma_dmaengine_pcm_config = { .pcm_hardware = &edma_pcm_hardware, .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config, - .compat_filter_fn = edma_filter_fn, .prealloc_buffer_size =128 *1024 , };int edma_pcm_platform_register (struct device *dev) { -return devm_snd_dmaengine_pcm_register (dev, &edma_dmaengine_pcm_config, -SND_DMAENGINE_PCM_FLAG_COMPAT ); +return devm_snd_dmaengine_pcm_register (dev, &edma_dmaengine_pcm_config,0 ); }EXPORT_SYMBOL_GPL (edma_pcm_platform_register);
sound/soc/ti/sdma-pcm.c +3 -6
@@ -11,7 +11,6 @@#include <sound/pcm_params.h> #include <sound/soc.h> #include <sound/dmaengine_pcm.h> -#include <linux/omap-dmaengine.h> #include "sdma-pcm.h"
@@ -31,7 +30,6 @@ static const struct snd_pcm_hardware sdma_pcm_hardware = {static const struct snd_dmaengine_pcm_config sdma_dmaengine_pcm_config = { .pcm_hardware = &sdma_pcm_hardware, .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config, - .compat_filter_fn = omap_dma_filter_fn, .prealloc_buffer_size =128 *1024 , };
@@ -39,13 +37,12 @@ int sdma_pcm_platform_register(struct device *dev, char *txdmachan, char *rxdmachan) { struct snd_dmaengine_pcm_config *config; -unsigned int flags =SND_DMAENGINE_PCM_FLAG_COMPAT ; +unsigned int flags =0 ;/* Standard names for the directions: 'tx' and 'rx' */ if (!txdmachan && !rxdmachan)return devm_snd_dmaengine_pcm_register (dev, - &sdma_dmaengine_pcm_config, - flags); + &sdma_dmaengine_pcm_config,0 ); config =devm_kzalloc (dev,sizeof (*config),GFP_KERNEL );if (!config)
@@ -65,7 +62,7 @@ int sdma_pcm_platform_register(struct device *dev, config->chan_names[0 ] = txdmachan; config->chan_names[1 ] = rxdmachan; -return devm_snd_dmaengine_pcm_register (dev, config, flags); +return devm_snd_dmaengine_pcm_register (dev, config,0 ); }EXPORT_SYMBOL_GPL (sdma_pcm_platform_register);
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: ti: remove compat dma probing" to the asoc tree
In reply to Arnd BergmannThe patch
ASoC: ti: remove compat dma probing
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
642aafea8889b712fe8e57aaa706d6c05d295059Mon Sep 17 00:00:00 2001
From: Arnd Bergmann <[email protected]>
Date: Thu, 7 Mar 2019 16:16:08 +0100
Subject: [PATCH] ASoC: ti: remove compat dma probing
After running into a link error:
sound/soc/ti/edma-pcm.o:(.rodata+0x18): undefined reference to `edma_filter_fn'
I checked all users of this, and they have new-style 'dma_slave_map' tables, so none of them should still need it. Removing the associated lines simplifies the code and avoids the build-time dependency on the respective dmaengine drivers.
--- sound/soc/ti/edma-pcm.c | 5 +---- sound/soc/ti/sdma-pcm.c | 9 +++------ 2 files changed, 4 insertions(+), 10 deletions(-)
sound/soc/ti/edma-pcm.c +1 -4
@@ -23,7 +23,6 @@#include <sound/pcm_params.h> #include <sound/soc.h> #include <sound/dmaengine_pcm.h> -#include <linux/edma.h> #include "edma-pcm.h"
@@ -43,14 +42,12 @@ static const struct snd_pcm_hardware edma_pcm_hardware = {static const struct snd_dmaengine_pcm_config edma_dmaengine_pcm_config = { .pcm_hardware = &edma_pcm_hardware, .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config, - .compat_filter_fn = edma_filter_fn, .prealloc_buffer_size =128 *1024 , };int edma_pcm_platform_register (struct device *dev) { -return devm_snd_dmaengine_pcm_register (dev, &edma_dmaengine_pcm_config, -SND_DMAENGINE_PCM_FLAG_COMPAT ); +return devm_snd_dmaengine_pcm_register (dev, &edma_dmaengine_pcm_config,0 ); }EXPORT_SYMBOL_GPL (edma_pcm_platform_register);
sound/soc/ti/sdma-pcm.c +3 -6
@@ -11,7 +11,6 @@#include <sound/pcm_params.h> #include <sound/soc.h> #include <sound/dmaengine_pcm.h> -#include <linux/omap-dmaengine.h> #include "sdma-pcm.h"
@@ -31,7 +30,6 @@ static const struct snd_pcm_hardware sdma_pcm_hardware = {static const struct snd_dmaengine_pcm_config sdma_dmaengine_pcm_config = { .pcm_hardware = &sdma_pcm_hardware, .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config, - .compat_filter_fn = omap_dma_filter_fn, .prealloc_buffer_size =128 *1024 , };
@@ -39,13 +37,12 @@ int sdma_pcm_platform_register(struct device *dev, char *txdmachan, char *rxdmachan) { struct snd_dmaengine_pcm_config *config; -unsigned int flags =SND_DMAENGINE_PCM_FLAG_COMPAT ; +unsigned int flags =0 ;/* Standard names for the directions: 'tx' and 'rx' */ if (!txdmachan && !rxdmachan)return devm_snd_dmaengine_pcm_register (dev, - &sdma_dmaengine_pcm_config, - flags); + &sdma_dmaengine_pcm_config,0 ); config =devm_kzalloc (dev,sizeof (*config),GFP_KERNEL );if (!config)
@@ -65,7 +62,7 @@ int sdma_pcm_platform_register(struct device *dev, config->chan_names[0 ] = txdmachan; config->chan_names[1 ] = rxdmachan; -return devm_snd_dmaengine_pcm_register (dev, config, flags); +return devm_snd_dmaengine_pcm_register (dev, config,0 ); }EXPORT_SYMBOL_GPL (sdma_pcm_platform_register);
Signature · 1 line
2.20.1