ASoC: imx sound: Add DT support
Subsystems (8)
cover ASoC: imx sound: Add DT support
Hi,
This series adds DT support for imx-ssi and phycore-ac97. It also contains some fixes for imx-ssi and phycore-ac97.
Patch 8 introduces a seperated function 'of_snd_dmaengine_pcm_open' to create a DMA PCM substream using the generic DMA DT bindings.
Regards,
Markus
Sascha Hauer (3):
imx-ssi: Fix AC97 rates
imx-ssi: Fix occasional AC97 reset failure
mx-ssi: flush fifos
Markus Pargmann (7):
ASoC: Kconfig: imx-ssi needs imx-fiq and imx-dma
ASoC: pcm030 audio fabric: remove __init from probe
ARM: soc-audio phycore-ac97: fix driver init order
ASoC: phycore-ac97: Add DT support
ASoC: dmaengine_pcm: Add open function for DT DMA
ASoC: imx-pcm-dma: Add support for DMA init by device
ASoC: imx-ssi: Add imx27 and pca100 DT support
b/Documentation/devicetree/bindings/sound/fsl-imx-ssi | 34 ++++ b/arch/arm/mach-imx/mach-pca100.c | 7 b/include/sound/dmaengine_pcm.h | 2 b/sound/soc/fsl/Kconfig | 2 b/sound/soc/fsl/imx-pcm-dma.c | 31 ++- b/sound/soc/fsl/imx-pcm.h | 6 b/sound/soc/fsl/imx-ssi.c | 2 b/sound/soc/fsl/pcm030-audio-fabric.c | 2 b/sound/soc/fsl/phycore-ac97.c | 33 ++-- b/sound/soc/soc-dmaengine-pcm.c | 89 ++++++++-- sound/soc/fsl/imx-ssi.c | 95 ++++++++++- sound/soc/fsl/phycore-ac97.c | 148 +++++++++++++++--- 12 files changed, 371 insertions(+), 80 deletions(-)
A message that is not in the archive (sent off-list or not yet received): 1362940391-8338-1-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org
PATCH 1/10 imx-ssi: Fix AC97 rates
From: Sascha Hauer <[email protected]>
This device supports multiple rates as described in later AC97 standards. This patch allows playback of different sample frequencies without conversion.
--- sound/soc/fsl/imx-ssi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/fsl/imx-ssi.c +1 -1
@@ -400,7 +400,7 @@ static struct snd_soc_dai_driver imx_ac97_dai = { .stream_name = "AC97 Playback", .channels_min = 2, .channels_max = 2, - .rates = SNDRV_PCM_RATE_48000, + .rates = SNDRV_PCM_RATE_8000_48000, .formats = SNDRV_PCM_FMTBIT_S16_LE, }, .capture = {
Signature · 1 line
1.8.1.5
A message that is not in the archive (sent off-list or not yet received): 1362940391-8338-2-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org
Re: [PATCH 01/10] imx-ssi: Fix AC97 rates
Hi Markus,
Quoted 11 lines · Markus Pargmann
From: Sascha Hauer <[email protected]>
This device supports multiple rates as described in later AC97 standards. This patch allows playback of different sample frequencies without conversion.
Signed-off-by Sascha Hauer <[email protected]>Signed-off-by Markus Pargmann <[email protected]>--- sound/soc/fsl/imx-ssi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Currently we have the following ssi drivers for imx:
sound/soc/fsl/imx-ssi.c: for i.mx SoCs running on non-dt platform sound/soc/fsl/fsl_ssi.c: for PowerPC and i.mx SoCs running on dt platforms
I see that in this series you convert sound/soc/fsl/imx-ssi.c into dt.
Shouldn't we use sound/soc/fsl/fsl_ssi.c instead and maybe even get rid of sound/soc/fsl/imx-ssi.c when all imx become converted to dt?
A message that is not in the archive (sent off-list or not yet received): CAOMZO5A8F81PzCjKHrkZ_AtGMr341d6OmYHMQvdzgunmGFDVsw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Re: [PATCH 01/10] imx-ssi: Fix AC97 rates
Hi Fabio,
Quoted 17 lines · Fabio Estevam
Hi Markus,
Quoted 11 lines · Markus Pargmann
From: Sascha Hauer <[email protected]>
This device supports multiple rates as described in later AC97 standards. This patch allows playback of different sample frequencies without conversion.
Signed-off-by Sascha Hauer <[email protected]>Signed-off-by Markus Pargmann <[email protected]>--- sound/soc/fsl/imx-ssi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Currently we have the following ssi drivers for imx:
Quoted 8 lines
sound/soc/fsl/imx-ssi.c: for i.mx SoCs running on non-dt platformsound/soc/fsl/fsl_ssi.c: for PowerPC and i.mx SoCs running on dt platformsI see that in this series you convert
sound/soc/fsl/imx-ssi.cinto dt.Shouldn't we use
sound/soc/fsl/fsl_ssi.cinstead and maybe even get rid ofsound/soc/fsl/imx-ssi.cwhen all imx become converted to dt?
At the moment fsl-ssi and imx-ssi don't seem to have very much in common. However I could try to merge the imx-ssi driver code into fsl_ssi and make it handle imx27-ssi differently.
Regards,
Markus
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Re: [PATCH 01/10] imx-ssi: Fix AC97 rates
Quoted 4 lines · Markus Pargmann
At the moment fsl-ssi and imx-ssi don't seem to have very much in common. However I could try to merge the imx-ssi driver code into
fsl_ssiand make it handle imx27-ssi differently.
imx-ssi is the legacy driver that supports older, non-DT IMX platforms. fsl-ssi is the "new" driver that supports PowerPC and IMX DT-enabled platforms.
Signature · 2 lines
Timur Tabi Linux kernel developer at Freescale
A message that is not in the archive (sent off-list or not yet received): CAOZdJXXm=jJv3zyD4j11t3BgNGyKz6V9jzShQLTk-BTiwDjvMg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Re: [PATCH 01/10] imx-ssi: Fix AC97 rates
Quoted 8 lines · Timur Tabi
Quoted 4 lines · Markus Pargmann
At the moment fsl-ssi and imx-ssi don't seem to have very much in common. However I could try to merge the imx-ssi driver code into
fsl_ssiand make it handle imx27-ssi differently.imx-ssi is the legacy driver that supports older, non-DT IMX platforms. fsl-ssi is the "new" driver that supports PowerPC and IMX DT-enabled platforms.
Okay, I will use the fsl-ssi driver then.
Thanks
Markus
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Mark Brown
AppliedRe: [PATCH 01/10] imx-ssi: Fix AC97 rates
In reply to a message not in the archiveQuoted 5 lines · Markus Pargmann
From: Sascha Hauer <[email protected]>
This device supports multiple rates as described in later AC97 standards. This patch allows playback of different sample frequencies without conversion.
Applied, but some notes about why this is already supported would be useful and *always* use subject lines appropriate for the subsystem.
_______________________________________________
devicetree-discuss mailing list devicetree-discuss-uLR06cmDAlY/[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss
PATCH 2/10 imx-ssi: Fix occasional AC97 reset failure
In reply to a message not in the archiveFrom: Sascha Hauer <[email protected]>
--- sound/soc/fsl/imx-ssi.c | 5 +++++ 1 file changed, 5 insertions(+)
sound/soc/fsl/imx-ssi.c +5 -0
@@ -496,6 +496,8 @@ static void imx_ssi_ac97_reset(struct snd_ac97 *ac97)if (imx_ssi->ac97_reset) imx_ssi->ac97_reset (ac97); +/* First read sometimes fails, do a dummy read */ +imx_ssi_ac97_read (ac97,0 ); }static void imx_ssi_ac97_warm_reset (struct snd_ac97 *ac97)
@@ -504,6 +506,9 @@ static void imx_ssi_ac97_warm_reset(struct snd_ac97 *ac97)if (imx_ssi->ac97_warm_reset) imx_ssi->ac97_warm_reset (ac97); + +/* First read sometimes fails, do a dummy read */ +imx_ssi_ac97_read (ac97,0 ); }struct snd_ac97_bus_ops soc_ac97_ops = {
Signature · 1 line
1.8.1.5
Re: [PATCH 02/10] imx-ssi: Fix occasional AC97 reset failure
Quoted 4 lines · Markus Pargmann
From: Sascha Hauer <[email protected]>
Signed-off-by Sascha Hauer <[email protected]>Signed-off-by Markus Pargmann <[email protected]>
Applied but *always* use subject lines appropriate to the subsystem and
bugfixes like this should be pulled to the front of the series as they
should be sent to mainline earlier.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130312/4c4a6c5f/attachment.sig>
PATCH 3/10 mx-ssi: flush fifos
In reply to a message not in the archiveFrom: Sascha Hauer <[email protected]>
--- sound/soc/fsl/imx-ssi.c | 5 +++++ 1 file changed, 5 insertions(+)
sound/soc/fsl/imx-ssi.c +5 -0
@@ -347,6 +347,11 @@ static int imx_ssi_trigger(struct snd_pcm_substream *substream, int cmd,/* rx/tx are always enabled to access ac97 registers */ writel (scr, ssi->base +SSI_SCR ); +if (substream->stream ==SNDRV_PCM_STREAM_PLAYBACK ) +writel (SSI_SOR_TX_CLR , ssi->base +SSI_SOR ); +else +writel (SSI_SOR_RX_CLR , ssi->base +SSI_SOR ); +writel (sier, ssi->base +SSI_SIER );return 0 ;
Signature · 1 line
1.8.1.5
A message that is not in the archive (sent off-list or not yet received): 1362940391-8338-4-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org
Re: [PATCH 03/10] mx-ssi: flush fifos
Quoted 4 lines · Markus Pargmann
From: Sascha Hauer <[email protected]>
Signed-off-by Sascha Hauer <[email protected]>Signed-off-by Markus Pargmann <[email protected]>
Why? Is this a bug fix? I'm guessing it is but...
_______________________________________________
devicetree-discuss mailing list devicetree-discuss-uLR06cmDAlY/[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss
PATCH 4/10 ASoC: Kconfig: imx-ssi needs imx-fiq and imx-dma
In reply to a message not in the archive--- sound/soc/fsl/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/fsl/Kconfig +2 -0
@@ -106,6 +106,8 @@ menuconfig SND_IMX_SOC if SND_IMX_SOC config SND_SOC_IMX_SSI + select SND_SOC_IMX_PCM_DMA + select SND_SOC_IMX_PCM_FIQ tristate config SND_SOC_IMX_PCM
Signature · 1 line
1.8.1.5
A message that is not in the archive (sent off-list or not yet received): 1362940391-8338-5-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org
Re: [PATCH 04/10] ASoC: Kconfig: imx-ssi needs imx-fiq and imx-dma
sound/soc/fsl/Kconfig menuconfig SND_IMX_SOC · line 111
Quoted 4 lines · Markus Pargmann
config
SND_SOC_IMX_SSIsound/soc/fsl/Kconfig +2
-0+ select SND_SOC_IMX_PCM_DMA + select SND_SOC_IMX_PCM_FIQ tristate
Really? I'd expect this to be an or, if we've got DMA I can't see any reason why we'd want to use the FIQ.
_______________________________________________
devicetree-discuss mailing list devicetree-discuss-uLR06cmDAlY/[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss
A message that is not in the archive (sent off-list or not yet received): 20130312185510.GV19942-yzvPICuk2AATkU/[email protected]
Re: [PATCH 04/10] ASoC: Kconfig: imx-ssi needs imx-fiq and imx-dma
Quoted 9 lines · Mark Brown
sound/soc/fsl/Kconfig menuconfig SND_IMX_SOC · line 111
Quoted 4 lines · Markus Pargmann
config
SND_SOC_IMX_SSIsound/soc/fsl/Kconfig +2
-0+ select SND_SOC_IMX_PCM_DMA + select SND_SOC_IMX_PCM_FIQ tristateReally? I'd expect this to be an or, if we've got DMA I can't see any reason why we'd want to use the FIQ.
Yes, sorry, I looked at the returncodes of the devicedrivers, but devices actually don't have to be used. So this can be dropped.
Thanks,
Markus
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
PATCH 5/10 ASoC: pcm030 audio fabric: remove __init from probe
In reply to a message not in the archiveRemove probe function from the init section.
--- sound/soc/fsl/pcm030-audio-fabric.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/fsl/pcm030-audio-fabric.c +1 -1
@@ -51,7 +51,7 @@ static struct snd_soc_card pcm030_card = { .num_links = ARRAY_SIZE(pcm030_fabric_dai), }; -static int __init pcm030_fabric_probe (struct platform_device *op) +static int pcm030_fabric_probe (struct platform_device *op) {struct device_node *np = op->dev.of_node;struct device_node *platform_np;
Signature · 1 line
1.8.1.5
A message that is not in the archive (sent off-list or not yet received): 1362940391-8338-6-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org
Mark Brown
AppliedRe: [PATCH 05/10] ASoC: pcm030 audio fabric: remove __init from probe
Quoted 3 lines · Markus Pargmann
Remove probe function from the init section.
Signed-off-by Markus Pargmann <[email protected]>
Applied, thanks.
_______________________________________________
devicetree-discuss mailing list devicetree-discuss-uLR06cmDAlY/[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss
PATCH 6/10 ARM: soc-audio phycore-ac97: fix driver init order
In reply to a message not in the archiveAdding a soc-audio sound driver internally uses snd_soc_register_device, which tries to bind it with the codec. The adding of the driver is deferred because the codec driver is not loaded.
This patch changes the order of registration. The codec driver is there before the ac97 driver, so the snd_soc_register_device call is successfull.
--- sound/soc/fsl/phycore-ac97.c | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-)
sound/soc/fsl/phycore-ac97.c +19 -14
@@ -79,35 +79,40 @@ static int __init imx_phycore_init(void)return 0 ; } - imx_phycore_snd_ac97_device =platform_device_alloc ("soc-audio" ,-1 ); -if (!imx_phycore_snd_ac97_device) + +/* +* First add codec driver, otherwise soc-audio may be deferred and fails +* to load. +*/ + imx_phycore_snd_device =platform_device_alloc ("wm9712-codec" ,-1 ); +if (!imx_phycore_snd_device)return -ENOMEM ; -platform_set_drvdata (imx_phycore_snd_ac97_device, &imx_phycore); - ret =platform_device_add (imx_phycore_snd_ac97_device); -if (ret) + ret =platform_device_add (imx_phycore_snd_device); +if (ret) { +printk (KERN_ERR "ASoC: Platform device allocation failed\n" ); goto fail1; + } - imx_phycore_snd_device =platform_device_alloc ("wm9712-codec" ,-1 ); -if (!imx_phycore_snd_device) { + imx_phycore_snd_ac97_device =platform_device_alloc ("soc-audio" ,-1 ); +if (!imx_phycore_snd_ac97_device) { ret = -ENOMEM ; goto fail2; } - ret =platform_device_add (imx_phycore_snd_device); -if (ret) { -printk (KERN_ERR "ASoC: Platform device allocation failed\n" ); +platform_set_drvdata (imx_phycore_snd_ac97_device, &imx_phycore); + ret =platform_device_add (imx_phycore_snd_ac97_device); +if (ret) goto fail3; - }return 0 ; fail3: -platform_device_put (imx_phycore_snd_device); +platform_device_put (imx_phycore_snd_ac97_device); fail2: -platform_device_del (imx_phycore_snd_ac97_device); +platform_device_del (imx_phycore_snd_device); fail1: -platform_device_put (imx_phycore_snd_ac97_device); +platform_device_put (imx_phycore_snd_device);return ret; }
Signature · 1 line
1.8.1.5
Re: [PATCH 06/10] ARM: soc-audio phycore-ac97: fix driver init order
Quoted 7 lines · Markus Pargmann
Adding a soc-audio sound driver internally uses
snd_soc_register_device, which tries to bind it with the codec. The adding of the driver is deferred because the codec driver is not loaded.This patch changes the order of registration. The codec driver is there before the ac97 driver, so the
snd_soc_register_devicecall is successfull.
You shouldn't be using soc-audio in the first place...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130311/e16ef4a2/attachment.sig>
A message that is not in the archive (sent off-list or not yet received): 20130311111011.GA10617-yzvPICuk2AATkU/[email protected]
Re: [PATCH 06/10] ARM: soc-audio phycore-ac97: fix driver init order
Quoted 10 lines · Mark Brown
Quoted 7 lines · Markus Pargmann
Adding a soc-audio sound driver internally uses
snd_soc_register_device, which tries to bind it with the codec. The adding of the driver is deferred because the codec driver is not loaded.This patch changes the order of registration. The codec driver is there before the ac97 driver, so the
snd_soc_register_devicecall is successfull.You shouldn't be using soc-audio in the first place...
Yes. This is just a fixup of the old "driver" part. The new DT driver does not use soc-audio (added in patch 7)
Regards,
Markus
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
PATCH 7/10 ASoC: phycore-ac97: Add DT support
In reply to a message not in the archiveAdd devicetree support for this audio soc fabric driver.
--- sound/soc/fsl/phycore-ac97.c | 148 ++++++++++++++++++++++++++++++++++++------- 1 file changed, 125 insertions(+), 23 deletions(-)
sound/soc/fsl/phycore-ac97.c +125 -23
@@ -21,6 +21,8 @@#include "imx-audmux.h" +#define DRV_NAME "phycore-audio-fabric" +static struct snd_soc_card imx_phycore;static struct snd_soc_ops imx_phycore_hifi_ops = {
@@ -32,8 +34,13 @@ static struct snd_soc_dai_link imx_phycore_dai_ac97[] = { .stream_name = "HiFi", .codec_dai_name = "wm9712-hifi", .codec_name = "wm9712-codec", +#ifdef CONFIG_MACH_IMX27_DT + .cpu_dai_name = "10010000.ssi", + .platform_name = "imx-fiq-pcm-audio", +#else .cpu_dai_name = "imx-ssi.0", .platform_name = "imx-fiq-pcm-audio.0", +#endif .ops = &imx_phycore_hifi_ops, }, };
@@ -45,41 +52,53 @@ static struct snd_soc_card imx_phycore = { .num_links = ARRAY_SIZE(imx_phycore_dai_ac97), }; -static struct platform_device *imx_phycore_snd_ac97_device; +static void phycore_ac97_pca100_audmux (void ) +{ +imx_audmux_v1_configure_port (MX27_AUDMUX_HPCR1_SSI0 , +IMX_AUDMUX_V1_PCR_SYN |/* 4wire mode */ +IMX_AUDMUX_V1_PCR_TFCSEL (3 ) | +IMX_AUDMUX_V1_PCR_TCLKDIR |/* clock is output */ +IMX_AUDMUX_V1_PCR_RXDSEL (3 )); +imx_audmux_v1_configure_port (3 , +IMX_AUDMUX_V1_PCR_SYN |/* 4wire mode */ +IMX_AUDMUX_V1_PCR_TFCSEL (0 ) | +IMX_AUDMUX_V1_PCR_TFSDIR | +IMX_AUDMUX_V1_PCR_RXDSEL (0 )); +} + +static void phycore_ac97_pcm043_audmux (void ) +{ +imx_audmux_v2_configure_port (3 , +IMX_AUDMUX_V2_PTCR_SYN |/* 4wire mode */ +IMX_AUDMUX_V2_PTCR_TFSEL (0 ) | +IMX_AUDMUX_V2_PTCR_TFSDIR , +IMX_AUDMUX_V2_PDCR_RXDSEL (0 )); +imx_audmux_v2_configure_port (0 , +IMX_AUDMUX_V2_PTCR_SYN |/* 4wire mode */ +IMX_AUDMUX_V2_PTCR_TCSEL (3 ) | +IMX_AUDMUX_V2_PTCR_TCLKDIR ,/* clock is output */ +IMX_AUDMUX_V2_PDCR_RXDSEL (3 )); +} +static struct platform_device *imx_phycore_snd_device; +#ifndef CONFIG_MACH_IMX27_DT + +static struct platform_device *imx_phycore_snd_ac97_device; +static int __init imx_phycore_init (void ) {int ret;if (machine_is_pca100 ()) { -imx_audmux_v1_configure_port (MX27_AUDMUX_HPCR1_SSI0 , -IMX_AUDMUX_V1_PCR_SYN |/* 4wire mode */ -IMX_AUDMUX_V1_PCR_TFCSEL (3 ) | -IMX_AUDMUX_V1_PCR_TCLKDIR |/* clock is output */ -IMX_AUDMUX_V1_PCR_RXDSEL (3 )); -imx_audmux_v1_configure_port (3 , -IMX_AUDMUX_V1_PCR_SYN |/* 4wire mode */ -IMX_AUDMUX_V1_PCR_TFCSEL (0 ) | -IMX_AUDMUX_V1_PCR_TFSDIR | -IMX_AUDMUX_V1_PCR_RXDSEL (0 )); +phycore_ac97_pca100_audmux (); }else if (machine_is_pcm043 ()) { -imx_audmux_v2_configure_port (3 , -IMX_AUDMUX_V2_PTCR_SYN |/* 4wire mode */ -IMX_AUDMUX_V2_PTCR_TFSEL (0 ) | -IMX_AUDMUX_V2_PTCR_TFSDIR , -IMX_AUDMUX_V2_PDCR_RXDSEL (0 )); -imx_audmux_v2_configure_port (0 , -IMX_AUDMUX_V2_PTCR_SYN |/* 4wire mode */ -IMX_AUDMUX_V2_PTCR_TCSEL (3 ) | -IMX_AUDMUX_V2_PTCR_TCLKDIR ,/* clock is output */ -IMX_AUDMUX_V2_PDCR_RXDSEL (3 )); +phycore_ac97_pcm043_audmux (); }else {/* return happy. We might run on a totally different machine */ return 0 ; } -/* * First add codec driver, otherwise soc-audio may be deferred and fails * to load.
@@ -125,6 +144,89 @@ static void __exit imx_phycore_exit(void)late_initcall (imx_phycore_init);module_exit (imx_phycore_exit); +#else /* !CONFIG_MACH_IMX27_DT */ + +enum dev_type { +MX27_PCA100 , +MX27_PCM043 , +}; + +static const struct of_device_id imx_phycore_ac97_of_dev_id[] = { + { + .compatible ="phytec,imx27-pca100-ac97" , + .data = (void *)MX27_PCA100 , + }, { + .compatible ="phytec,imx27-pcm043-ac97" , + .data = (void *)MX27_PCM043 + }, { +/* sentinel */ + } +}; +MODULE_DEVICE_TABLE (of, imx_phycore_ac97_of_dev_id); + +static int phycore_ac97_setup_devices (struct platform_device *pdev) +{ +int ret; + + imx_phycore_snd_device =platform_device_alloc ("wm9712-codec" ,-1 ); +if (!imx_phycore_snd_device) +return -ENOMEM ; + + ret =platform_device_add (imx_phycore_snd_device); +if (ret) { +dev_err (&pdev->dev,"ASoC: Platform device allocation failed\n" ); + goto fail1; + } + + ret =snd_soc_register_card (&imx_phycore); +if (ret) { +dev_err (&pdev->dev,"ASoC: soc card registration failed\n" ); + goto fail2; + } +return 0 ; + +fail2: +platform_device_del (imx_phycore_snd_device); +fail1: +platform_device_put (imx_phycore_snd_device); +return ret; +} + +static int imx_phycore_ac97_probe (struct platform_device *pdev) +{ +int ret; + + imx_phycore.dev = &pdev->dev; + +if (pdev->dev.of_node->data ==MX27_PCA100 ) +phycore_ac97_pca100_audmux (); +else +phycore_ac97_pcm043_audmux (); + + ret =phycore_ac97_setup_devices (pdev); +return ret; +} + +static int imx_phycore_ac97_remove (struct platform_device *pdev) +{ +platform_device_unregister (imx_phycore_snd_device); +return 0 ; +} + +static struct platform_driver imx_phycore_ac97_driver = { + .probe = imx_phycore_ac97_probe, + .remove = imx_phycore_ac97_remove, + .driver = { + .name =DRV_NAME , + .owner =THIS_MODULE , + .of_match_table = imx_phycore_ac97_of_dev_id, + }, +}; + +module_platform_driver (imx_phycore_ac97_driver); + +#endif /* CONFIG_MACH_IMX27_DT */ +MODULE_AUTHOR ("Sascha Hauer <[email protected]>" ); -MODULE_DESCRIPTION ("PhyCORE ALSA SoC driver" ); +MODULE_DESCRIPTION (DRV_NAME ": PhyCORE ALSA SoC fabric driver" );MODULE_LICENSE ("GPL" );
Signature · 1 line
1.8.1.5
A message that is not in the archive (sent off-list or not yet received): 1362940391-8338-8-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org
Re: [PATCH 07/10] ASoC: phycore-ac97: Add DT support
Quoted 6 lines · Markus Pargmann
Add devicetree support for this audio soc fabric driver.
Signed-off-by Markus Pargmann <[email protected]>--- sound/soc/fsl/phycore-ac97.c | 148 ++++++++++++++++++++++++++++++++++++------- 1 file changed, 125 insertions(+), 23 deletions(-)
A binding document is mandatory for new bindings.
sound/soc/fsl/phycore-ac97.c static struct snd_soc_dai_link imx_phycore_dai_ac97[] = { · line 40
Quoted 4 lines
sound/soc/fsl/phycore-ac97.c +4
-0+#ifdef CONFIG_MACH_IMX27_DT + .cpu_dai_name = "10010000.ssi", + .platform_name = "imx-fiq-pcm-audio", +#else
This looks wrong, at least the CPU DAI name should be being looked up via the DT.
sound/soc/fsl/phycore-ac97.c static void __exit imx_phycore_exit(void) · line 165
Quoted 12 lines
sound/soc/fsl/phycore-ac97.c +12
-0+static const struct of_device_id imx_phycore_ac97_of_dev_id[] = { + { + .compatible ="phytec,imx27-pca100-ac97" , + .data = (void *)MX27_PCA100 , + }, { + .compatible ="phytec,imx27-pcm043-ac97" , + .data = (void *)MX27_PCM043 + }, { +/* sentinel */ + } +}; +MODULE_DEVICE_TABLE (of, imx_phycore_ac97_of_dev_id);
It seems like we ought to be able to describe the properties of the boards in this class rather than just enumerating the boards. What are the differences?
sound/soc/fsl/phycore-ac97.c static void __exit imx_phycore_exit(void) · line 231
Quoted 3 lines
MODULE_AUTHOR("Sascha Hauer <[email protected]>");sound/soc/fsl/phycore-ac97.c +1
-1-MODULE_DESCRIPTION ("PhyCORE ALSA SoC driver" ); +MODULE_DESCRIPTION (DRV_NAME ": PhyCORE ALSA SoC fabric driver" );
Please don't make up terms like "fabric driver".
_______________________________________________
devicetree-discuss mailing list devicetree-discuss-uLR06cmDAlY/[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss
A message that is not in the archive (sent off-list or not yet received): 20130312185921.GX19942-yzvPICuk2AATkU/[email protected]
Re: [PATCH 07/10] ASoC: phycore-ac97: Add DT support
Quoted 10 lines · Mark Brown
Quoted 6 lines · Markus Pargmann
Add devicetree support for this audio soc fabric driver.
Signed-off-by Markus Pargmann <[email protected]>--- sound/soc/fsl/phycore-ac97.c | 148 ++++++++++++++++++++++++++++++++++++------- 1 file changed, 125 insertions(+), 23 deletions(-)A binding document is mandatory for new bindings.
Quoted 7 lines
sound/soc/fsl/phycore-ac97.c static struct snd_soc_dai_link imx_phycore_dai_ac97[] = { · line 40
Quoted 4 lines
sound/soc/fsl/phycore-ac97.c +4
-0+#ifdef CONFIG_MACH_IMX27_DT + .cpu_dai_name = "10010000.ssi", + .platform_name = "imx-fiq-pcm-audio", +#else This looks wrong, at least the CPU DAI name should be being looked up via the DT.
Yes.
Quoted 17 lines
sound/soc/fsl/phycore-ac97.c static void __exit imx_phycore_exit(void) · line 165
Quoted 13 lines
sound/soc/fsl/phycore-ac97.c +12
-0+static const struct of_device_id imx_phycore_ac97_of_dev_id[] = { + { + .compatible ="phytec,imx27-pca100-ac97" , + .data = (void *)MX27_PCA100 , + }, { + .compatible ="phytec,imx27-pcm043-ac97" , + .data = (void *)MX27_PCM043 + }, { +/* sentinel */ + } +}; +MODULE_DEVICE_TABLE (of, imx_phycore_ac97_of_dev_id);It seems like we ought to be able to describe the properties of the boards in this class rather than just enumerating the boards. What are the differences?
All right I will change it. They are actually using different audmux port configuration.
Quoted 6 lines
sound/soc/fsl/phycore-ac97.c static void __exit imx_phycore_exit(void) · line 231
Quoted 4 lines
MODULE_AUTHOR("Sascha Hauer <[email protected]>");sound/soc/fsl/phycore-ac97.c +1
-1-MODULE_DESCRIPTION ("PhyCORE ALSA SoC driver" ); +MODULE_DESCRIPTION (DRV_NAME ": PhyCORE ALSA SoC fabric driver" );Please don't make up terms like "fabric driver".
I didn't make it up. There are actually other drivers with that name, like "mpc5200 pcm030 fabric driver" or "mpc5200 Efika fabric driver" which actually do the same as this one.
Regards,
Markus
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
PATCH 8/10 ASoC: dmaengine_pcm: Add open function for DT DMA request
In reply to a message not in the archiveAdd a function to open a DMA PCM substream using devicetree data provided via the client device node. The patch introduces a public function and a private subfunction that is called by both open functions.
--- include/sound/dmaengine_pcm.h | 2 + sound/soc/soc-dmaengine-pcm.c | 89 ++++++++++++++++++++++++++++++++++--------- 2 files changed, 72 insertions(+), 19 deletions(-)
include/sound/dmaengine_pcm.h +2 -0
@@ -43,6 +43,8 @@ snd_pcm_uframes_t snd_dmaengine_pcm_pointer_no_residue(struct snd_pcm_substreamint snd_dmaengine_pcm_open (struct snd_pcm_substream *substream,dma_filter_fn filter_fn,void *filter_data); +int of_snd_dmaengine_pcm_open (struct snd_pcm_substream *substream, +struct device_node *client_node,const char *name);int snd_dmaengine_pcm_close (struct snd_pcm_substream *substream);struct dma_chan *snd_dmaengine_pcm_get_chan (struct snd_pcm_substream *substream);
sound/soc/soc-dmaengine-pcm.c +70 -19
116 lines not on this page · raw message
Signature · 1 line
1.8.1.5
Re: [PATCH 08/10] ASoC: dmaengine_pcm: Add open function for DT DMA request
Quoted 4 lines · Markus Pargmann
Add a function to open a DMA PCM substream using devicetree data provided via the client device node. The patch introduces a public function and a private subfunction that is called by both open functions.
Someone (I think it was Shawn) sent a very similar patch just recently
which appears to have fallen out of my inbox unfortunately - can you
please check what's going on there and coordinate with them? Let me
know if you can't find the patch and I'll dig it out.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130312/5a378340/attachment-0001.sig>
A message that is not in the archive (sent off-list or not yet received): 20130312190206.GY19942-yzvPICuk2AATkU/[email protected]
Re: [PATCH 08/10] ASoC: dmaengine_pcm: Add open function for DT DMA request
Quoted 10 lines · Mark Brown
Quoted 4 lines · Markus Pargmann
Add a function to open a DMA PCM substream using devicetree data provided via the client device node. The patch introduces a public function and a private subfunction that is called by both open functions.
Someone (I think it was Shawn) sent a very similar patch just recently which appears to have fallen out of my inbox unfortunately - can you please check what's going on there and coordinate with them? Let me know if you can't find the patch and I'll dig it out.
It's here, Markus.
http://thread.gmane.org/gmane.linux.alsa.devel/106027/focus=106031
Mark,
I did not see any objection from you on that patch, so I'm waiting for you to publish a branch for it, so that my mxs-dma generic binding series can move forward.
Shawn
Re: [PATCH 08/10] ASoC: dmaengine_pcm: Add open function for DT DMA request
Quoted 3 lines · Shawn Guo
I did not see any objection from you on that patch, so I'm waiting for you to publish a branch for it, so that my mxs-dma generic binding series can move forward.
I commented on the removal of the const from the name parameter (and
ideally an in order version of the patch series would be nice) but in
general I was mostly waiting for review and test from other people. DT
and dmaengine both seem endless sources of problems so I'd rather make
sure everyone's had a chance to look.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130313/99380e3e/attachment.sig>
A message that is not in the archive (sent off-list or not yet received): 20130313104945.GI25610-yzvPICuk2AATkU/[email protected]
Re: [PATCH 08/10] ASoC: dmaengine_pcm: Add open function for DT DMA request
Quoted 7 lines · Mark Brown
Quoted 3 lines · Shawn Guo
I did not see any objection from you on that patch, so I'm waiting for you to publish a branch for it, so that my mxs-dma generic binding series can move forward.
I commented on the removal of the const from the name parameter (and
I just double checked my mailbox and can only see the conversation between you and rmk, nothing particularly on the removal of the const from the name parameter. Or I'm still missing something?
Shawn
Re: [PATCH 08/10] ASoC: dmaengine_pcm: Add open function for DT DMA request
Quoted 3 lines · Shawn Guo
I just double checked my mailbox and can only see the conversation between you and rmk, nothing particularly on the removal of the const from the name parameter. Or I'm still missing something?
You're missing the bit where I complained about you doing that - you
should be adding the const to the dmaengine side, not removing it from
the client side. Unless there's some reason it should be modifiable,
but that'd be very surprising.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130315/04bedaa3/attachment.sig>
A message that is not in the archive (sent off-list or not yet received): 20130313021712.GD27461-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org
Re: [PATCH 08/10] ASoC: dmaengine_pcm: Add open function for DT DMA request
Quoted 7 lines · Shawn Guo
Quoted 6 lines · Mark Brown
Quoted 4 lines · Markus Pargmann
Add a function to open a DMA PCM substream using devicetree data provided via the client device node. The patch introduces a public function and a private subfunction that is called by both open functions.
Quoted 9 lines
Quoted 4 lines
Someone (I think it was Shawn) sent a very similar patch just recently which appears to have fallen out of my inbox unfortunately - can you please check what's going on there and coordinate with them? Let me know if you can't find the patch and I'll dig it out.
It's here, Markus.
http://thread.gmane.org/gmane.linux.alsa.devel/106027/focus=106031
Thanks. Do you already have a patch for the non-generic function which I could use instead?
Regards
Markus
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Re: [PATCH 08/10] ASoC: dmaengine_pcm: Add open function for DT DMA request
Quoted 13 lines · Markus Pargmann
Quoted 12 lines · Shawn Guo
Quoted 10 lines · Mark Brown
Quoted 4 lines · Markus Pargmann
Add a function to open a DMA PCM substream using devicetree data provided via the client device node. The patch introduces a public function and a private subfunction that is called by both open functions.
Someone (I think it was Shawn) sent a very similar patch just recently which appears to have fallen out of my inbox unfortunately - can you please check what's going on there and coordinate with them? Let me know if you can't find the patch and I'll dig it out.
Quoted 8 lines
Quoted 4 lines
It's here, Markus.
http://thread.gmane.org/gmane.linux.alsa.devel/106027/focus=106031
Thanks. Do you already have a patch for the non-generic function which I could use instead?
I do not follow. With my patch in place, there will be two dmaengine_pcm APIs.
int snd_dmaengine_pcm_open(struct snd_pcm_substream *substream,
dma_filter_fn filter_fn, void *filter_data)
int snd_dmaengine_generic_pcm_open(struct snd_pcm_substream *substream,
struct device *dev, const char *name)
The first one is for users that their dmaengine driver hasn't converted to generic device tree bindings, and the second one is for users that their dmaengine driver is converted to generic device tree bindings.
Shawn
Re: [PATCH 08/10] ASoC: dmaengine_pcm: Add open function for DT DMA request
Quoted 28 lines · Shawn Guo
Quoted 13 lines · Markus Pargmann
Quoted 12 lines · Shawn Guo
Quoted 10 lines · Mark Brown
Quoted 4 lines · Markus Pargmann
Add a function to open a DMA PCM substream using devicetree data provided via the client device node. The patch introduces a public function and a private subfunction that is called by both open functions.
Someone (I think it was Shawn) sent a very similar patch just recently which appears to have fallen out of my inbox unfortunately - can you please check what's going on there and coordinate with them? Let me know if you can't find the patch and I'll dig it out.
Quoted 8 lines
Quoted 4 lines
It's here, Markus.
http://thread.gmane.org/gmane.linux.alsa.devel/106027/focus=106031
Thanks. Do you already have a patch for the non-generic function which I could use instead?
I do not follow. With my patch in place, there will be two
dmaengine_pcmAPIs.int snd_dmaengine_pcm_open(struct
snd_pcm_substream*substream,
dma_filter_fnfilter_fn, void*filter_data)
Quoted 6 lines
int snd_dmaengine_generic_pcm_open(struct
snd_pcm_substream*substream,
struct device *dev, const char *name)The first one is for users that their dmaengine driver hasn't converted to generic device tree bindings, and the second one is for users that their dmaengine driver is converted to generic device tree bindings.
Sorry, I mixed up different patch versions and was confused.
Regards,
Markus
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
PATCH 9/10 ASoC: imx-pcm-dma: Add support for DMA init by device node
In reply to a message not in the archiveAdd support for DMA initialization using devicetree node.
This patch adds two fields to imx_pcm_dma_params to pass device node information from other imx drivers to this one. If the dma_node is set, this driver tries to initialize a PCM DMA substream based on the dma_node and name.
--- sound/soc/fsl/imx-pcm-dma.c | 31 ++++++++++++++++++++----------- sound/soc/fsl/imx-pcm.h | 6 ++++++ 2 files changed, 26 insertions(+), 11 deletions(-)
sound/soc/fsl/imx-pcm-dma.c +20 -11
@@ -101,26 +101,35 @@ static int snd_imx_open(struct snd_pcm_substream *substream) {struct snd_soc_pcm_runtime *rtd = substream->private_data;struct imx_pcm_dma_params *dma_params; -struct imx_dma_data *dma_data; +struct imx_dma_data *dma_data =NULL ;int ret;snd_soc_set_runtime_hwparams (substream, &snd_imx_hardware); dma_params =snd_soc_dai_get_dma_data (rtd->cpu_dai, substream); - dma_data =kzalloc (sizeof (*dma_data),GFP_KERNEL ); -if (!dma_data) -return -ENOMEM ; +if (dma_params->dma_client_node) { + ret =of_snd_dmaengine_pcm_open (substream, + dma_params->dma_client_node, + dma_params->dma_req_name); +if (ret) +return ret; + }else { + dma_data =kzalloc (sizeof (*dma_data),GFP_KERNEL ); +if (!dma_data) +return -ENOMEM ; - dma_data->peripheral_type = dma_params->shared_peripheral ? + dma_data->peripheral_type = dma_params->shared_peripheral ?IMX_DMATYPE_SSI_SP :IMX_DMATYPE_SSI ; - dma_data->priority =DMA_PRIO_HIGH ; - dma_data->dma_request = dma_params->dma; + dma_data->priority =DMA_PRIO_HIGH ; + dma_data->dma_request = dma_params->dma; - ret =snd_dmaengine_pcm_open (substream, filter, dma_data); -if (ret) { -kfree (dma_data); -return ret; + ret =snd_dmaengine_pcm_open (substream, filter, dma_data); + +if (ret) { +kfree (dma_data); +return ret; + } }snd_dmaengine_pcm_set_data (substream, dma_data);
sound/soc/fsl/imx-pcm.h +6 -0
@@ -23,6 +23,12 @@ struct imx_pcm_dma_params {unsigned long dma_addr;int burstsize;bool shared_peripheral;/* The peripheral is on SPBA bus */ + +/* If set, the DMA channel is requested using this devicetree node while +* ignoring fields 'dma' and 'shared_peripheral'. They have to be set +* in devicetree according to the DMA Controller devicetree bindings. */ +struct device_node *dma_client_node; +const char *dma_req_name;/* DMA Request name from devicetree */ }; int snd_imx_pcm_mmap(struct snd_pcm_substream *substream,
Signature · 1 line
1.8.1.5
PATCH 10/10 ASoC: imx-ssi: Add imx27 and pca100 DT support
In reply to a message not in the archiveAdd devicetree bindings for generic imx-ssi support and specifically for pca100 with two custom reset functions. At the moment those functions are defined in mach-pca100.c. So until DT is the only method for booting, the ac97 reset functions have to be exported in mach-pca100.c.
--- .../devicetree/bindings/sound/fsl-imx-ssi | 34 +++++++++ arch/arm/mach-imx/mach-pca100.c | 7 +- sound/soc/fsl/imx-ssi.c | 85 +++++++++++++++++++--- 3 files changed, 115 insertions(+), 11 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/fsl-imx-ssi
Documentation/devicetree/bindings/sound/fsl-imx-ssi new file +34 -0
@@ -0,0 +1,34 @@ +Freescale imx ssi driver + +Required properties: +- compatible : "fsl,imx27-ssi" or "phytec,imx27-pca100-ssi" +- reg : Should contain registers location and length +- interrupts : Should be the ssi interrupt +- clocks : Define at least one clock to be used. + +Optional properties: +- dmas : DMA client request phandle list with arguements as defined by the DMA + controller used. See generic DMA devicetree bindings for more information. +- dma-names : Names of the defined DMA client requests. "rx0" and "tx0" have to + be defined. +- imx-ssi-ac97 : Use AC97 +- imx-ssi-i2s-slave : Use I2S slave +- imx-ssi-net +- imx-ssi-syn + + +Example: +ssi1: ssi@10010000 { + compatible = "fsl,imx27-ssi"; + reg = <0x10010000 0x1000>; + interrupts = <14>; + dmas = <&dma 8 + &dma 9 + &dma 10 + &dma 11>; + dma-names = "rx0", "tx0", "rx1", "tx1"; + clocks = <&clks 25>; + clock-names = "ipg"; + imx-ssi-ac97; + status = "disabled"; +};
arch/arm/mach-imx/mach-pca100.c +5 -2
@@ -25,6 +25,7 @@#include <linux/spi/spi.h> #include <linux/spi/eeprom.h> #include <linux/irq.h> +#include <linux/export.h> #include <linux/delay.h> #include <linux/gpio.h> #include <linux/usb/otg.h>
@@ -208,7 +209,7 @@ static const struct spi_imx_master pca100_spi0_data __initconst = { .num_chipselect = ARRAY_SIZE(pca100_spi_cs), }; -static void pca100_ac97_warm_reset (struct snd_ac97 *ac97) +void pca100_ac97_warm_reset (struct snd_ac97 *ac97) {mxc_gpio_mode (GPIO_PORTC |20 |GPIO_GPIO |GPIO_OUT );gpio_set_value (GPIO_PORTC +20 ,1 );
@@ -217,8 +218,9 @@ static void pca100_ac97_warm_reset(struct snd_ac97 *ac97)mxc_gpio_mode (PC20_PF_SSI1_FS );msleep (2 ); } +EXPORT_SYMBOL (pca100_ac97_warm_reset); -static void pca100_ac97_cold_reset (struct snd_ac97 *ac97) +void pca100_ac97_cold_reset (struct snd_ac97 *ac97) {mxc_gpio_mode (GPIO_PORTC |20 |GPIO_GPIO |GPIO_OUT );/* FS */ gpio_set_value (GPIO_PORTC +20 ,0 );
@@ -232,6 +234,7 @@ static void pca100_ac97_cold_reset(struct snd_ac97 *ac97)mxc_gpio_mode (PC22_PF_SSI1_TXD );msleep (2 ); } +EXPORT_SYMBOL (pca100_ac97_cold_reset);static const struct imx_ssi_platform_data pca100_ssi_pdata__initconst = { .ac97_reset = pca100_ac97_cold_reset,
sound/soc/fsl/imx-ssi.c +76 -9
126 lines not on this page · raw message
Signature · 1 line
1.8.1.5
Re: [PATCH 10/10] ASoC: imx-ssi: Add imx27 and pca100 DT support
Hello.
Quoted 6 lines
Add devicetree bindings for generic imx-ssi support and specifically for pca100 with two custom reset functions. At the moment those functions are defined in
mach-pca100.c. So until DT is the only method for booting, the ac97 reset functions have to be exported inmach-pca100.c.Signed-off-by Markus Pargmann <[email protected]>
...
sound/soc/fsl/imx-ssi.c static int imx_ssi_probe(struct platform_device *pdev) · line 595
Quoted 2 lines
sound/soc/fsl/imx-ssi.c +2
-0+if (of_property_read_bool (pdev->dev.of_node,"imx-ssi-net" )) + ssi->flags |=IMX_SSI_NET ;
This line does not make sense until the patch is not applied:
http://lists.infradead.org/pipermail/linux-arm-kernel/2012-June/106482.html
---
Quoted 4 lines · Markus Pargmann
This series adds DT support for imx-ssi and phycore-ac97. It also contains some fixes for imx-ssi and phycore-ac97.
I'm confused. We already have an SSI driver that has device tree support.
Signature · 2 lines
Timur Tabi Linux kernel developer at Freescale