ASoC: samsung: remove DMA filter function and data
Subsystems (5)
PATCH 1/5 ASoC: samsung: remove DMA filter function and data
From: Arnd Bergmann <[email protected]>
This data is no longer passed by the platform code, so there is no point passing it down at all.
--- include/linux/platform_data/asoc-s3c.h | 6 ------ sound/soc/samsung/dma.h | 2 +- sound/soc/samsung/dmaengine.c | 3 +-- sound/soc/samsung/i2s.c | 21 +++------------------ sound/soc/samsung/pcm.c | 11 +---------- sound/soc/samsung/spdif.c | 9 +-------- 6 files changed, 7 insertions(+), 45 deletions(-)
include/linux/platform_data/asoc-s3c.h +0 -6
@@ -30,7 +30,6 @@ struct samsung_i2s_type {#define QUIRK_SUPPORTS_IDMA (1 << 5)/* Quirks of the I2S controller */ u32 quirks; -dma_addr_t idma_addr; };/**
@@ -39,10 +38,5 @@ struct samsung_i2s_type {*/ struct s3c_audio_pdata {int (*cfg_gpio)(struct platform_device *); -dma_filter_fn dma_filter; -void *dma_playback; -void *dma_capture; -void *dma_play_sec; -void *dma_capture_mic;struct samsung_i2s_type type; };
sound/soc/samsung/dma.h +1 -1
@@ -12,7 +12,7 @@* @tx, @rx arguments can be NULL if the DMA channel names are "tx", "rx", * otherwise actual DMA channel names must be passed to this function. */ -int samsung_asoc_dma_platform_register (struct device *dev,dma_filter_fn filter, +int samsung_asoc_dma_platform_register (struct device *dev,const char *tx,const char *rx,struct device *dma_dev);#endif /* _SAMSUNG_DMA_H */
sound/soc/samsung/dmaengine.c +1 -2
@@ -14,7 +14,7 @@#include "dma.h" -int samsung_asoc_dma_platform_register (struct device *dev,dma_filter_fn filter, +int samsung_asoc_dma_platform_register (struct device *dev,const char *tx,const char *rx,struct device *dma_dev) {
@@ -25,7 +25,6 @@ int samsung_asoc_dma_platform_register(struct device *dev, dma_filter_fn filter,return -ENOMEM ; pcm_conf->prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config; - pcm_conf->compat_filter_fn = filter; pcm_conf->dma_dev = dma_dev; pcm_conf->chan_names[SNDRV_PCM_STREAM_PLAYBACK ] = tx;
sound/soc/samsung/i2s.c +3 -18
@@ -79,7 +79,6 @@ struct i2s_dai {struct snd_dmaengine_dai_dma_data dma_playback;struct snd_dmaengine_dai_dma_data dma_capture;struct snd_dmaengine_dai_dma_data idma_playback; -dma_filter_fn filter;struct samsung_i2s_priv *priv; };
@@ -1431,13 +1430,7 @@ static int samsung_i2s_probe(struct platform_device *pdev)spin_lock_init (&priv->lock);spin_lock_init (&priv->pcm_lock); -if (!np) { - pri_dai->dma_playback.filter_data = i2s_pdata->dma_playback; - pri_dai->dma_capture.filter_data = i2s_pdata->dma_capture; - pri_dai->filter = i2s_pdata->dma_filter; - - idma_addr = i2s_pdata->type.idma_addr; - }else { +if (np) {if (of_property_read_u32 (np,"samsung,idma-addr" , &idma_addr)) {if (priv->quirks &QUIRK_SUPPORTS_IDMA ) {
@@ -1475,8 +1468,7 @@ static int samsung_i2s_probe(struct platform_device *pdev)if (priv->quirks &QUIRK_PRI_6CHAN ) pri_dai->drv->playback.channels_max =6 ; - ret =samsung_asoc_dma_platform_register (&pdev->dev, pri_dai->filter, -"tx" ,"rx" ,NULL ); + ret =samsung_asoc_dma_platform_register (&pdev->dev,"tx" ,"rx" ,NULL );if (ret <0 ) goto err_disable_clk;
@@ -1485,12 +1477,6 @@ static int samsung_i2s_probe(struct platform_device *pdev) sec_dai->dma_playback.addr = regs_base +I2STXDS ; sec_dai->dma_playback.chan_name ="tx-sec" ; - -if (!np) { - sec_dai->dma_playback.filter_data = i2s_pdata->dma_play_sec; - sec_dai->filter = i2s_pdata->dma_filter; - } - sec_dai->dma_playback.addr_width =4 ; sec_dai->idma_playback.addr = idma_addr; sec_dai->pri_dai = pri_dai;
@@ -1502,8 +1488,7 @@ static int samsung_i2s_probe(struct platform_device *pdev) goto err_disable_clk; ret =samsung_asoc_dma_platform_register (&priv->pdev_sec->dev, - sec_dai->filter,"tx-sec" ,NULL , - &pdev->dev); +"tx-sec" ,NULL , &pdev->dev);if (ret <0 ) goto err_del_sec;
sound/soc/samsung/pcm.c +1 -10
@@ -489,7 +489,6 @@ static int s3c_pcm_dev_probe(struct platform_device *pdev)struct s3c_pcm_info *pcm;struct resource *mem_res;struct s3c_audio_pdata *pcm_pdata; -dma_filter_fn filter;int ret;/* Check for valid device index */
@@ -542,18 +541,10 @@ static int s3c_pcm_dev_probe(struct platform_device *pdev) s3c_pcm_stereo_in[pdev->id].addr = mem_res->start +S3C_PCM_RXFIFO ; s3c_pcm_stereo_out[pdev->id].addr = mem_res->start +S3C_PCM_TXFIFO ; - filter =NULL ; -if (pcm_pdata) { - s3c_pcm_stereo_in[pdev->id].filter_data = pcm_pdata->dma_capture; - s3c_pcm_stereo_out[pdev->id].filter_data = pcm_pdata->dma_playback; - filter = pcm_pdata->dma_filter; - } - pcm->dma_capture = &s3c_pcm_stereo_in[pdev->id]; pcm->dma_playback = &s3c_pcm_stereo_out[pdev->id]; - ret =samsung_asoc_dma_platform_register (&pdev->dev, filter, -NULL ,NULL ,NULL ); + ret =samsung_asoc_dma_platform_register (&pdev->dev,NULL ,NULL ,NULL );if (ret) {dev_err (&pdev->dev,"failed to get register DMA: %d\n" , ret); goto err_dis_pclk;
sound/soc/samsung/spdif.c +1 -8
@@ -363,7 +363,6 @@ static int spdif_probe(struct platform_device *pdev)struct s3c_audio_pdata *spdif_pdata;struct resource *mem_res;struct samsung_spdif_info *spdif; -dma_filter_fn filter;int ret; spdif_pdata = pdev->dev.platform_data;
@@ -424,15 +423,9 @@ static int spdif_probe(struct platform_device *pdev) spdif_stereo_out.addr_width =2 ; spdif_stereo_out.addr = mem_res->start +DATA_OUTBUF ; - filter =NULL ; -if (spdif_pdata) { - spdif_stereo_out.filter_data = spdif_pdata->dma_playback; - filter = spdif_pdata->dma_filter; - } spdif->dma_playback = &spdif_stereo_out; - ret =samsung_asoc_dma_platform_register (&pdev->dev, filter, -NULL ,NULL ,NULL ); + ret =samsung_asoc_dma_platform_register (&pdev->dev,NULL ,NULL ,NULL );if (ret) {dev_err (&pdev->dev,"failed to register DMA: %d\n" , ret); goto err4;
Signature · 1 line
2.39.0
PATCH 2/5 ASoC: pxa: remove snd_dmaengine_pcm_open_request_chan()
From: Arnd Bergmann <[email protected]>
The last caller was removed, so there is no longer a need for this function.
--- include/sound/dmaengine_pcm.h | 2 -- sound/core/pcm_dmaengine.c | 21 --------------------- 2 files changed, 23 deletions(-)
include/sound/dmaengine_pcm.h +0 -2
@@ -37,8 +37,6 @@ int snd_dmaengine_pcm_open(struct snd_pcm_substream *substream, struct dma_chan *chan);int snd_dmaengine_pcm_close (struct snd_pcm_substream *substream); -int snd_dmaengine_pcm_open_request_chan (struct snd_pcm_substream *substream, -dma_filter_fn filter_fn,void *filter_data);int snd_dmaengine_pcm_close_release_chan (struct snd_pcm_substream *substream); struct dma_chan *snd_dmaengine_pcm_request_channel(dma_filter_fn filter_fn,
sound/core/pcm_dmaengine.c +0 -21
@@ -328,27 +328,6 @@ int snd_dmaengine_pcm_open(struct snd_pcm_substream *substream, }EXPORT_SYMBOL_GPL (snd_dmaengine_pcm_open); -/** -* snd_dmaengine_pcm_open_request_chan - Open a dmaengine based PCM substream and request channel -* @substream: PCM substream -* @filter_fn: Filter function used to request the DMA channel -* @filter_data: Data passed to the DMA filter function -* -* This function will request a DMA channel using the passed filter function and -* data. The function should usually be called from the pcm open callback. Note -* that this function will use private_data field of the substream's runtime. So -* it is not available to your pcm driver implementation. -* -* Return: 0 on success, a negative error code otherwise -*/ -int snd_dmaengine_pcm_open_request_chan (struct snd_pcm_substream *substream, -dma_filter_fn filter_fn,void *filter_data) -{ -return snd_dmaengine_pcm_open (substream, -snd_dmaengine_pcm_request_channel (filter_fn, filter_data)); -} -EXPORT_SYMBOL_GPL (snd_dmaengine_pcm_open_request_chan); -/** * snd_dmaengine_pcm_close - Close a dmaengine based PCM substream * @substream: PCM substream
Signature · 1 line
2.39.0
Mark Brown
maintainerRe: [PATCH 2/5] ASoC: pxa: remove snd_dmaengine_pcm_open_request_chan()
Quoted 4 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The last caller was removed, so there is no longer a need for this function.
Please remember to copy me on ASoC patches...
PATCH 3/5 ASoC: ux500: remove platform_data support
In reply to Arnd BergmannFrom: Arnd Bergmann <[email protected]>
The platform data definition for ux500 sound devices was removed six years ago after the DT conversion was completed, see commit 4b483ed0be8b ("ARM: ux500: cut some platform data").
Remove some leftover bits in the ASoC driver and just assume that it always gets probed using DT.
--- include/linux/platform_data/asoc-ux500-msp.h | 20 ---------- sound/soc/ux500/mop500.c | 8 ++-- sound/soc/ux500/ux500_msp_dai.c | 33 +-------------- sound/soc/ux500/ux500_msp_i2s.c | 33 +++------------ sound/soc/ux500/ux500_msp_i2s.h | 5 +-- sound/soc/ux500/ux500_pcm.c | 42 ++------------------ 6 files changed, 15 insertions(+), 126 deletions(-) delete mode 100644 include/linux/platform_data/asoc-ux500-msp.h
include/linux/platform_data/asoc-ux500-msp.h deleted +0 -20
@@ -1,20 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -/* -* Copyright (C) ST-Ericsson SA 2010 -* -* Author: Rabin Vincent <[email protected]> for ST-Ericsson -*/ - -#ifndef __MSP_H -#define __MSP_H - -#include <linux/platform_data/dma-ste-dma40.h> - -/* Platform data structure for a MSP I2S-device */ -struct msp_i2s_platform_data { -int id; -struct stedma40_chan_cfg *msp_i2s_dma_rx; -struct stedma40_chan_cfg *msp_i2s_dma_tx; -}; - -#endif
sound/soc/ux500/mop500.c +3 -5
@@ -109,11 +109,9 @@ static int mop500_probe(struct platform_device *pdev) mop500_card.dev = &pdev->dev; -if (np) { - ret =mop500_of_probe (pdev, np); -if (ret) -return ret; - } + ret =mop500_of_probe (pdev, np); +if (ret) +return ret;dev_dbg (&pdev->dev,"%s: Card %s: Set platform drvdata.\n" , __func__, mop500_card.name);
sound/soc/ux500/ux500_msp_dai.c +2 -31
@@ -15,7 +15,6 @@#include <linux/of.h> #include <linux/regulator/consumer.h> #include <linux/mfd/dbx500-prcmu.h> -#include <linux/platform_data/asoc-ux500-msp.h> #include <sound/soc.h> #include <sound/soc-dai.h>
@@ -682,26 +681,6 @@ static int ux500_msp_dai_of_probe(struct snd_soc_dai *dai)return 0 ; } -static int ux500_msp_dai_probe (struct snd_soc_dai *dai) -{ -struct ux500_msp_i2s_drvdata *drvdata =dev_get_drvdata (dai->dev); -struct msp_i2s_platform_data *pdata = dai->dev->platform_data; -int ret; - -if (!pdata) { - ret =ux500_msp_dai_of_probe (dai); -return ret; - } - - drvdata->msp->playback_dma_data.data_size = drvdata->slot_width; - drvdata->msp->capture_dma_data.data_size = drvdata->slot_width; - -snd_soc_dai_init_dma_data (dai, - &drvdata->msp->playback_dma_data, - &drvdata->msp->capture_dma_data); -return 0 ; -} -static const struct snd_soc_dai_ops ux500_msp_dai_ops[] = { { .set_sysclk = ux500_msp_dai_set_dai_sysclk,
@@ -716,7 +695,7 @@ static const struct snd_soc_dai_ops ux500_msp_dai_ops[] = { };static struct snd_soc_dai_driver ux500_msp_dai_drv = { - .probe = ux500_msp_dai_probe, + .probe = ux500_msp_dai_of_probe, .playback.channels_min =UX500_MSP_MIN_CHANNELS , .playback.channels_max =UX500_MSP_MAX_CHANNELS , .playback.rates =UX500_I2S_RATES ,
@@ -737,15 +716,8 @@ static const struct snd_soc_component_driver ux500_msp_component = {static int ux500_msp_drv_probe (struct platform_device *pdev) {struct ux500_msp_i2s_drvdata *drvdata; -struct msp_i2s_platform_data *pdata = pdev->dev.platform_data; -struct device_node *np = pdev->dev.of_node;int ret =0 ; -if (!pdata && !np) { -dev_err (&pdev->dev,"No platform data or Device Tree found\n" ); -return -ENODEV ; - } - drvdata =devm_kzalloc (&pdev->dev,sizeof (struct ux500_msp_i2s_drvdata ),GFP_KERNEL );
@@ -787,8 +759,7 @@ static int ux500_msp_drv_probe(struct platform_device *pdev)return ret; } - ret =ux500_msp_i2s_init_msp (pdev, &drvdata->msp, - pdev->dev.platform_data); + ret =ux500_msp_i2s_init_msp (pdev, &drvdata->msp);if (!drvdata->msp) { dev_err(&pdev->dev, "%s: ERROR: Failed to init MSP-struct (%d)!",
sound/soc/ux500/ux500_msp_i2s.c +5 -28
@@ -14,7 +14,6 @@#include <linux/slab.h> #include <linux/io.h> #include <linux/of.h> -#include <linux/platform_data/asoc-ux500-msp.h> #include <sound/soc.h>
@@ -640,18 +639,8 @@ int ux500_msp_i2s_close(struct ux500_msp *msp, unsigned int dir) }static int ux500_msp_i2s_of_init_msp (struct platform_device *pdev, -struct ux500_msp *msp, -struct msp_i2s_platform_data **platform_data) +struct ux500_msp *msp); { -struct msp_i2s_platform_data *pdata; - - *platform_data =devm_kzalloc (&pdev->dev, -sizeof (struct msp_i2s_platform_data ), -GFP_KERNEL ); - pdata = *platform_data; -if (!pdata) -return -ENOMEM ; - msp->playback_dma_data.dma_cfg =devm_kzalloc (&pdev->dev,sizeof (struct stedma40_chan_cfg ),GFP_KERNEL );
@@ -668,11 +657,9 @@ static int ux500_msp_i2s_of_init_msp(struct platform_device *pdev, }int ux500_msp_i2s_init_msp (struct platform_device *pdev, -struct ux500_msp **msp_p, -struct msp_i2s_platform_data *platform_data) +struct ux500_msp **msp_p) {struct resource *res =NULL ; -struct device_node *np = pdev->dev.of_node;struct ux500_msp *msp;int ret;
@@ -681,19 +668,9 @@ int ux500_msp_i2s_init_msp(struct platform_device *pdev,if (!msp)return -ENOMEM ; -if (!platform_data) { -if (np) { - ret =ux500_msp_i2s_of_init_msp (pdev, msp, - &platform_data); -if (ret) -return ret; - }else -return -EINVAL ; - }else { - msp->playback_dma_data.dma_cfg = platform_data->msp_i2s_dma_tx; - msp->capture_dma_data.dma_cfg = platform_data->msp_i2s_dma_rx; - msp->id = platform_data->id; - } + ret =ux500_msp_i2s_of_init_msp (pdev, msp); +if (ret) +return ret; msp->dev = &pdev->dev;
sound/soc/ux500/ux500_msp_i2s.h +1 -4
@@ -11,7 +11,6 @@#define UX500_MSP_I2S_H #include <linux/platform_device.h> -#include <linux/platform_data/asoc-ux500-msp.h> #define MSP_INPUT_FREQ_APB 48000000
@@ -482,10 +481,8 @@ struct ux500_msp {unsigned int f_bitclk; }; -struct msp_i2s_platform_data ;int ux500_msp_i2s_init_msp (struct platform_device *pdev, -struct ux500_msp **msp_p, -struct msp_i2s_platform_data *platform_data); +struct ux500_msp **msp_p);void ux500_msp_i2s_cleanup_msp (struct platform_device *pdev,struct ux500_msp *msp);int ux500_msp_i2s_open (struct ux500_msp *msp,struct ux500_msp_config *config);
sound/soc/ux500/ux500_pcm.c +4 -38
72 lines not on this page · raw message
Signature · 1 line
2.39.0
Re: [PATCH 3/5] ASoC: ux500: remove platform_data support
Quoted 10 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The platform data definition for ux500 sound devices was removed six years ago after the DT conversion was completed, see commit
4b483ed0be8b("ARM: ux500: cut some platform data").Remove some leftover bits in the ASoC driver and just assume that it always gets probed using DT.
Signed-off-by Arnd Bergmann <[email protected]>
Yours,
Linus Walleij
PATCH 4/5 ASoC: ux500: remove stedma40 references
In reply to Arnd BergmannFrom: Arnd Bergmann <[email protected]>
ux500_pcm_request_chan() is never called because the dma channels are already set up from DT. Remove this, along with the ux500_msp_dma_params structure.
--- sound/soc/ux500/ux500_msp_dai.c | 4 +-- sound/soc/ux500/ux500_msp_i2s.c | 41 +------------------------------ sound/soc/ux500/ux500_msp_i2s.h | 9 +------ sound/soc/ux500/ux500_pcm.c | 43 +-------------------------------- 4 files changed, 5 insertions(+), 92 deletions(-)
sound/soc/ux500/ux500_msp_dai.c +2 -2
@@ -670,8 +670,8 @@ static int ux500_msp_dai_of_probe(struct snd_soc_dai *dai)if (!capture_dma_data)return -ENOMEM ; - playback_dma_data->addr = drvdata->msp->playback_dma_data.tx_rx_addr; - capture_dma_data->addr = drvdata->msp->capture_dma_data.tx_rx_addr; + playback_dma_data->addr = drvdata->msp->tx_rx_addr; + capture_dma_data->addr = drvdata->msp->tx_rx_addr; playback_dma_data->maxburst =4 ; capture_dma_data->maxburst =4 ;
sound/soc/ux500/ux500_msp_i2s.c +1 -40
70 lines not on this page · raw message
sound/soc/ux500/ux500_msp_i2s.h +1 -8
@@ -462,18 +462,11 @@ struct ux500_msp_config {unsigned int iodelay; }; -struct ux500_msp_dma_params { -unsigned int data_size; -dma_addr_t tx_rx_addr; -struct stedma40_chan_cfg *dma_cfg; -}; -struct ux500_msp {int id;void __iomem *registers;struct device *dev; -struct ux500_msp_dma_params playback_dma_data; -struct ux500_msp_dma_params capture_dma_data; +dma_addr_t tx_rx_addr;enum msp_state msp_state;int def_elem_len;unsigned int dir_busy;
sound/soc/ux500/ux500_pcm.c +1 -42
67 lines not on this page · raw message
Signature · 1 line
2.39.0
Re: [PATCH 4/5] ASoC: ux500: remove stedma40 references
Quoted 7 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
ux500_pcm_request_chan()is never called because the dma channels are already set up from DT. Remove this, along with theux500_msp_dma_paramsstructure.Signed-off-by Arnd Bergmann <[email protected]>
Now I will try to continue my work on refreshing the Ux500 audio support on top of these patches!
Yours,
Linus Walleij
PATCH 5/5 ASoC: remove snd_dmaengine_pcm_config->compat_request_channel
In reply to Arnd BergmannFrom: Arnd Bergmann <[email protected]>
The last reference to this struct member is gone, so the caller can be removed as well.
--- include/sound/dmaengine_pcm.h | 13 ++----------- sound/soc/soc-generic-dmaengine-pcm.c | 3 --- 2 files changed, 2 insertions(+), 14 deletions(-)
include/sound/dmaengine_pcm.h +2 -11
@@ -93,8 +93,8 @@ int snd_dmaengine_pcm_refine_runtime_hwparams( struct dma_chan *chan);/* -* Try to request the DMA channel using compat_request_channel or -* compat_filter_fn if it couldn't be requested through devicetree. +* Try to request the DMA channel using compat_filter_fn if it +* couldn't be requested through devicetree. */ #define SND_DMAENGINE_PCM_FLAG_COMPAT BIT(0)/*
@@ -112,8 +112,6 @@ int snd_dmaengine_pcm_refine_runtime_hwparams(* struct snd_dmaengine_pcm_config - Configuration data for dmaengine based PCM * @prepare_slave_config: Callback used to fill in the DMA slave_config for a * PCM substream. Will be called from the PCM drivers hwparams callback. -* @compat_request_channel: Callback to request a DMA channel for platforms -* which do not use devicetree. * @process: Callback used to apply processing on samples transferred from/to * user space. * @compat_filter_fn: Will be used as the filter function when requesting a
@@ -126,18 +124,11 @@ int snd_dmaengine_pcm_refine_runtime_hwparams(* @pcm_hardware: snd_pcm_hardware struct to be used for the PCM. * @prealloc_buffer_size: Size of the preallocated audio buffer. * -* Note: If both compat_request_channel and compat_filter_fn are set -* compat_request_channel will be used to request the channel and -* compat_filter_fn will be ignored. Otherwise the channel will be requested -* using dma_request_channel with compat_filter_fn as the filter function. */ struct snd_dmaengine_pcm_config {int (*prepare_slave_config)(struct snd_pcm_substream *substream,struct snd_pcm_hw_params *params,struct dma_slave_config *slave_config); -struct dma_chan *(*compat_request_channel)( -struct snd_soc_pcm_runtime *rtd, -struct snd_pcm_substream *substream);int (*process)(struct snd_pcm_substream *substream,int channel,unsigned long hwoff,void *buf,unsigned long bytes);
sound/soc/soc-generic-dmaengine-pcm.c +0 -3
@@ -190,9 +190,6 @@ static struct dma_chan *dmaengine_pcm_compat_request_channel(if ((pcm->flags &SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX ) && pcm->chan[0 ])return pcm->chan[0 ]; -if (pcm->config->compat_request_channel) -return pcm->config->compat_request_channel (rtd, substream); -return snd_dmaengine_pcm_request_channel (pcm->config->compat_filter_fn, dma_data->filter_data); }
Signature · 1 line
2.39.0
Quoted 6 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
This data is no longer passed by the platform code, so there is no point passing it down at all.
Signed-off-by Arnd Bergmann <[email protected]>
Quoted 8 lines
--- include/linux/platform_data/asoc-s3c.h | 6 ------ sound/soc/samsung/dma.h | 2 +- sound/soc/samsung/dmaengine.c | 3 +-- sound/soc/samsung/i2s.c | 21 +++------------------ sound/soc/samsung/pcm.c | 11 +---------- sound/soc/samsung/spdif.c | 9 +-------- 6 files changed, 7 insertions(+), 45 deletions(-)
Best regards,
Krzysztof
Mark Brown
maintainerQuoted 4 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
This data is no longer passed by the platform code, so there is no point passing it down at all.
This breaks an x86 allmodconfig build:
/build/stage/linux/sound/soc/samsung/s3c24xx-i2s.c: In function ‘s3c24xx_iis_dev_probe’:
/build/stage/linux/sound/soc/samsung/s3c24xx-i2s.c:436:56: error: passing argument 4 of ‘samsung_asoc_dma_platform_register’ from incompatible pointer type [-Werror=incompatible-pointer-types]
436 | "tx", "rx", NULL);
| ^~~~
| |
| char *
In file included from /build/stage/linux/sound/soc/samsung/s3c24xx-i2s.c:21:
/build/stage/linux/sound/soc/samsung/dma.h:17:55: note: expected ‘struct device *’ but argument is of type ‘char *’
17 | struct device *dma_dev);
| ~~~~~~~~~~~~~~~^~~~~~~
/build/stage/linux/sound/soc/samsung/s3c24xx-i2s.c:435:15: error: too many arguments to function ‘samsung_asoc_dma_platform_register’
435 | ret = samsung_asoc_dma_platform_register(&pdev->dev, NULL,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/stage/linux/sound/soc/samsung/dma.h:15:5: note: declared here
15 | int samsung_asoc_dma_platform_register(struct device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Quoted 7 lines · Mark Brown
Quoted 4 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
This data is no longer passed by the platform code, so there is no point passing it down at all.
This breaks an x86 allmodconfig build:
I see, this patch still depends on the s3c24xx removal, which is in soc/for-next and I used for testing. I see a similar problem with the MMP platform in patch 2/5. The series here is mostly older patches I did a while ago and rebased on top of the boardfile removal, but it breaks when it gets applied first.
Unless there is anything in here that you really want to apply for 6.3, lets drop all five for now, and I'll resend it after the dust has settled on the boardfile removal.
Arnd
Mark Brown
maintainerQuoted 10 lines · Arnd Bergmann
I see, this patch still depends on the s3c24xx removal, which is in soc/for-next and I used for testing. I see a similar problem with the MMP platform in patch 2/5. The series here is mostly older patches I did a while ago and rebased on top of the boardfile removal, but it breaks when it gets applied first.
Unless there is anything in here that you really want to apply for 6.3, lets drop all five for now, and I'll resend it after the dust has settled on the boardfile removal.
I'd left the ux500 stuff running through my testing, no particular urgency just it saves rereviewing anything. Assuming it's fine (seems so thus far) I'll push it out.
Quoted 9 lines · Mark Brown
Quoted 6 lines · Arnd Bergmann
I see, this patch still depends on the s3c24xx removal, which is in soc/for-next and I used for testing. I see a similar problem with the MMP platform in patch 2/5. The series here is mostly older patches I did a while ago and rebased on top of the boardfile removal, but it breaks when it gets applied first.
Quoted 7 lines
Quoted 3 lines
Unless there is anything in here that you really want to apply for 6.3, lets drop all five for now, and I'll resend it after the dust has settled on the boardfile removal.
I'd left the ux500 stuff running through my testing, no particular urgency just it saves rereviewing anything. Assuming it's fine (seems so thus far) I'll push it out.
Yes, sounds good to me, I don't see any risk of missed dependencies for that.
Arnd
Mark Brown
maintainerQuoted 4 lines · Arnd Bergmann
This data is no longer passed by the platform code, so there is no point passing it down at all.
Applied to
broonie/sound.git for-next
Thanks!
[1/5] ASoC: samsung: remove DMA filter function and data
(no commit info)
[2/5] ASoC: pxa: remove snd_dmaengine_pcm_open_request_chan()
(no commit info)
[3/5] ASoC: ux500: remove platform_data support
commit: 1766ac5248063c25d1fe46e04bb936c46313ed89
[4/5] ASoC: ux500: remove stedma40 references
commit: aafe9375b386010e28614f58499d199250a16874[5/5] ASoC: remove snd_dmaengine_pcm_config->compat_request_channel
(no commit info)
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