* [PATCH v5 0/2] ASoC: omap: Deprecate omap-pcm for sdma-pcm
@ 2018-05-09 11:03 Peter Ujfalusi
2018-05-09 11:03 ` [PATCH v5 1/2] ASoC: davinci-mcasp: Convert to use the sdma-pcm instead of omap-pcm Peter Ujfalusi
2018-05-09 11:03 ` [PATCH v5 2/2] ASoC: omap: Delete the obsolete omap-pcm Peter Ujfalusi
0 siblings, 2 replies; 4+ messages in thread
From: Peter Ujfalusi @ 2018-05-09 11:03 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood, jarkko.nikula
Cc: alsa-devel, linux-omap, aaro.koskinen
Hi,
Changes since v4:
- Really rebased on a clean tree
- Dropped the already applied patches
Changes since v3:
- Rebased to make sure it applies cleanly (I had one local Kconfig patch)
Changes since v2:
- Return -ENODEV from sdma_pcm_platform_register() in case !CONFIG_SND_SDMA_SOC
Changes since v1:
- Rebased on the n810 patches (Kconfig conflict)
- Delete the omap-pcm as the last step instead of keeping the .c/.h file.
If there is a need it can be resurrected with a simple revert.
- I left out the Acked-by from Jarkko for the last patch since I have changed it
omap-pcm served us well over the years, but there is no reason to keep it around
as we can rely on generic dmaengine_pcm code without the need to maintain custom
code.
The series has been tested on:
omap2 n810, omap3 beagle-xm, omap4 PandaES, omap4 Blaze (SDP),
am57xx beagle-x15, dra7 evm.
McBSP, McASP, McPDM, DMIC and HDMI audio was tested and I have found no issue
with them.
I was not able to test on OMAP1 for various reasons, but mainly because the
Nokia 770 audio is not supported in mainline...
Regards,
Peter
---
Peter Ujfalusi (2):
ASoC: davinci-mcasp: Convert to use the sdma-pcm instead of omap-pcm
ASoC: omap: Delete the obsolete omap-pcm
include/sound/omap-pcm.h | 30 ----
sound/soc/davinci/Kconfig | 2 +-
sound/soc/davinci/davinci-mcasp.c | 8 +-
sound/soc/omap/Kconfig | 3 +-
sound/soc/omap/Makefile | 2 -
sound/soc/omap/omap-pcm.c | 262 ------------------------------
6 files changed, 6 insertions(+), 301 deletions(-)
delete mode 100644 include/sound/omap-pcm.h
delete mode 100644 sound/soc/omap/omap-pcm.c
--
Peter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v5 1/2] ASoC: davinci-mcasp: Convert to use the sdma-pcm instead of omap-pcm
2018-05-09 11:03 [PATCH v5 0/2] ASoC: omap: Deprecate omap-pcm for sdma-pcm Peter Ujfalusi
@ 2018-05-09 11:03 ` Peter Ujfalusi
2018-05-11 2:38 ` Applied "ASoC: davinci-mcasp: Convert to use the sdma-pcm instead of omap-pcm" to the asoc tree Mark Brown
2018-05-09 11:03 ` [PATCH v5 2/2] ASoC: omap: Delete the obsolete omap-pcm Peter Ujfalusi
1 sibling, 1 reply; 4+ messages in thread
From: Peter Ujfalusi @ 2018-05-09 11:03 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood, jarkko.nikula
Cc: alsa-devel, linux-omap, aaro.koskinen
Use the new platform driver in case of sDMA.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
sound/soc/davinci/Kconfig | 2 +-
sound/soc/davinci/davinci-mcasp.c | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/sound/soc/davinci/Kconfig b/sound/soc/davinci/Kconfig
index 6b732d8e5896..778faff28e0e 100644
--- a/sound/soc/davinci/Kconfig
+++ b/sound/soc/davinci/Kconfig
@@ -24,7 +24,7 @@ config SND_DAVINCI_SOC_I2S
config SND_DAVINCI_SOC_MCASP
tristate "Multichannel Audio Serial Port (McASP) support"
- depends on SND_OMAP_SOC || SND_EDMA_SOC
+ depends on SND_SDMA_SOC || SND_EDMA_SOC
help
Say Y or M here if you want to have support for McASP IP found in
various Texas Instruments SoCs like:
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c
index 03ba218160ca..79fc4aa2fa29 100644
--- a/sound/soc/davinci/davinci-mcasp.c
+++ b/sound/soc/davinci/davinci-mcasp.c
@@ -36,9 +36,9 @@
#include <sound/initval.h>
#include <sound/soc.h>
#include <sound/dmaengine_pcm.h>
-#include <sound/omap-pcm.h>
#include "edma-pcm.h"
+#include "../omap/sdma-pcm.h"
#include "davinci-mcasp.h"
#define MCASP_MAX_AFIFO_DEPTH 64
@@ -2048,10 +2048,10 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
#endif
break;
case PCM_SDMA:
-#if IS_BUILTIN(CONFIG_SND_OMAP_SOC) || \
+#if IS_BUILTIN(CONFIG_SND_SDMA_SOC) || \
(IS_MODULE(CONFIG_SND_DAVINCI_SOC_MCASP) && \
- IS_MODULE(CONFIG_SND_OMAP_SOC))
- ret = omap_pcm_platform_register(&pdev->dev);
+ IS_MODULE(CONFIG_SND_SDMA_SOC))
+ ret = sdma_pcm_platform_register(&pdev->dev, NULL, NULL);
#else
dev_err(&pdev->dev, "Missing SND_SDMA_SOC\n");
ret = -EINVAL;
--
Peter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v5 2/2] ASoC: omap: Delete the obsolete omap-pcm
2018-05-09 11:03 [PATCH v5 0/2] ASoC: omap: Deprecate omap-pcm for sdma-pcm Peter Ujfalusi
2018-05-09 11:03 ` [PATCH v5 1/2] ASoC: davinci-mcasp: Convert to use the sdma-pcm instead of omap-pcm Peter Ujfalusi
@ 2018-05-09 11:03 ` Peter Ujfalusi
1 sibling, 0 replies; 4+ messages in thread
From: Peter Ujfalusi @ 2018-05-09 11:03 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood, jarkko.nikula
Cc: alsa-devel, linux-omap, aaro.koskinen
^ permalink raw reply [flat|nested] 4+ messages in thread
* Applied "ASoC: davinci-mcasp: Convert to use the sdma-pcm instead of omap-pcm" to the asoc tree
2018-05-09 11:03 ` [PATCH v5 1/2] ASoC: davinci-mcasp: Convert to use the sdma-pcm instead of omap-pcm Peter Ujfalusi
@ 2018-05-11 2:38 ` Mark Brown
0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2018-05-11 2:38 UTC (permalink / raw)
To: Peter Ujfalusi
Cc: alsa-devel, aaro.koskinen, Liam Girdwood, Mark Brown, linux-omap,
jarkko.nikula
The patch
ASoC: davinci-mcasp: Convert to use the sdma-pcm instead of omap-pcm
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
>From 077a403d86207080a32b5e5d60e33ee0cb628cf6 Mon Sep 17 00:00:00 2001
From: Peter Ujfalusi <peter.ujfalusi@ti.com>
Date: Wed, 9 May 2018 14:03:55 +0300
Subject: [PATCH] ASoC: davinci-mcasp: Convert to use the sdma-pcm instead of
omap-pcm
Use the new platform driver in case of sDMA.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/davinci/Kconfig | 2 +-
sound/soc/davinci/davinci-mcasp.c | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/sound/soc/davinci/Kconfig b/sound/soc/davinci/Kconfig
index 6b732d8e5896..778faff28e0e 100644
--- a/sound/soc/davinci/Kconfig
+++ b/sound/soc/davinci/Kconfig
@@ -24,7 +24,7 @@ config SND_DAVINCI_SOC_I2S
config SND_DAVINCI_SOC_MCASP
tristate "Multichannel Audio Serial Port (McASP) support"
- depends on SND_OMAP_SOC || SND_EDMA_SOC
+ depends on SND_SDMA_SOC || SND_EDMA_SOC
help
Say Y or M here if you want to have support for McASP IP found in
various Texas Instruments SoCs like:
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c
index 03ba218160ca..79fc4aa2fa29 100644
--- a/sound/soc/davinci/davinci-mcasp.c
+++ b/sound/soc/davinci/davinci-mcasp.c
@@ -36,9 +36,9 @@
#include <sound/initval.h>
#include <sound/soc.h>
#include <sound/dmaengine_pcm.h>
-#include <sound/omap-pcm.h>
#include "edma-pcm.h"
+#include "../omap/sdma-pcm.h"
#include "davinci-mcasp.h"
#define MCASP_MAX_AFIFO_DEPTH 64
@@ -2048,10 +2048,10 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
#endif
break;
case PCM_SDMA:
-#if IS_BUILTIN(CONFIG_SND_OMAP_SOC) || \
+#if IS_BUILTIN(CONFIG_SND_SDMA_SOC) || \
(IS_MODULE(CONFIG_SND_DAVINCI_SOC_MCASP) && \
- IS_MODULE(CONFIG_SND_OMAP_SOC))
- ret = omap_pcm_platform_register(&pdev->dev);
+ IS_MODULE(CONFIG_SND_SDMA_SOC))
+ ret = sdma_pcm_platform_register(&pdev->dev, NULL, NULL);
#else
dev_err(&pdev->dev, "Missing SND_SDMA_SOC\n");
ret = -EINVAL;
--
2.17.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-05-11 2:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-09 11:03 [PATCH v5 0/2] ASoC: omap: Deprecate omap-pcm for sdma-pcm Peter Ujfalusi
2018-05-09 11:03 ` [PATCH v5 1/2] ASoC: davinci-mcasp: Convert to use the sdma-pcm instead of omap-pcm Peter Ujfalusi
2018-05-11 2:38 ` Applied "ASoC: davinci-mcasp: Convert to use the sdma-pcm instead of omap-pcm" to the asoc tree Mark Brown
2018-05-09 11:03 ` [PATCH v5 2/2] ASoC: omap: Delete the obsolete omap-pcm Peter Ujfalusi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.