Re: [alsa-devel] [PATCH trivial] ASoC: fsl_esai: Spelling s/specifially/specifically/

2015-05-23 Thread Nicolin Chen
On Thu, May 21, 2015 at 02:02:18PM +0200, Geert Uytterhoeven wrote: > Signed-off-by: Geert Uytterhoeven Acked-by: Nicolin Chen Thank you > --- > sound/soc/fsl/fsl_esai.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/fsl/fsl_esai

Re: [alsa-devel][PATCH 1/3] ASoC: fsl_sai: add sai master mode support

2015-05-24 Thread Nicolin Chen
On Tue, May 12, 2015 at 03:07:39PM +0800, Zidan Wang wrote: > When sai works on master mode, set its bit clock and frame clock. > > SAI has 4 MCLK source, bus clock, MCLK1, MCLK2 and MCLK3. fsl_sai_set_bclk > will select proper MCLK source, then calculate and set the bit clock divider. > > After

[PATCH] ASoC: fsl_spdif: Don't try to round-up for clock divisor calculation

2015-05-24 Thread Nicolin Chen
to fsl_spdif driver. Signed-off-by: Nicolin Chen Cc: Fabio Estevam Cc: Zidan Wang --- Fabio and Zidan, Theoretically, it should have the same problem as fsl_ssi driver had. But I don't have an S/PDIF test environment. So I need your helps to confirm it. Thank you. sound/soc/fsl/fsl_s

Re: [PATCH] ASoC: fsl_spdif: Don't try to round-up for clock divisor calculation

2015-05-25 Thread Nicolin Chen
On Mon, May 25, 2015 at 12:58:12PM +0100, Mark Brown wrote: > On Sun, May 24, 2015 at 01:12:41AM -0700, Nicolin Chen wrote: > > As commit 6c8ca30eec7b ("ASoC: fsl_ssi: Don't try to round-up for PM > > divisor calculation") mentioned that there's no more need t

Re: [alsa-devel] [PATCH] ASoC: fsl_spdif: Don't try to round-up for clock divisor calculation

2015-05-25 Thread Nicolin Chen
On Mon, May 25, 2015 at 12:13:45PM -0300, Fabio Estevam wrote: > Hi Nicolin, > > On Mon, May 25, 2015 at 12:11 PM, Nicolin Chen wrote: > > > Hi Mark, > > > > Is that possible for you to provisionally revert this patch? > > I wanted to wait for the test resu

Re: [alsa-devel] [PATCH] ASoC: fsl_spdif: Don't try to round-up for clock divisor calculation

2015-05-26 Thread Nicolin Chen
On Tue, May 26, 2015 at 07:02:48PM +0800, Zidan Wang wrote: > On Mon, May 25, 2015 at 08:24:25AM -0700, Nicolin Chen wrote: > > On Mon, May 25, 2015 at 12:13:45PM -0300, Fabio Estevam wrote: > > > Hi Nicolin, > > > > > > On Mon, May 25, 2015 at

Re: [PATCH V1] ASoC: fsl_ssi: refine ipg clock usage in this module

2014-09-09 Thread Nicolin Chen
On Tue, Sep 09, 2014 at 12:27:50PM +0100, Mark Brown wrote: > On Tue, Sep 09, 2014 at 05:18:07PM +0800, Shengjiu Wang wrote: > > - ssi_private->clk = devm_clk_get(&pdev->dev, NULL); > > + ssi_private->clk = devm_clk_get(&pdev->dev, "ipg"); > > if (IS_ERR(ssi_private->clk)) { > >

Re: [PATCH V1] ASoC: fsl_ssi: refine ipg clock usage in this module

2014-09-09 Thread Nicolin Chen
On Tue, Sep 09, 2014 at 05:18:07PM +0800, Shengjiu Wang wrote: > @@ -1321,7 +1333,11 @@ static int fsl_ssi_probe(struct platform_device *pdev) > return -ENOMEM; > } > > - ssi_private->regs = devm_regmap_init_mmio(&pdev->dev, iomem, > + if (ssi_private->soc->imx) > +

Re: [PATCH V1] ASoC: fsl_ssi: refine ipg clock usage in this module

2014-09-09 Thread Nicolin Chen
On Tue, Sep 09, 2014 at 07:15:16PM +0100, Mark Brown wrote: > On Tue, Sep 09, 2014 at 11:03:10AM -0700, Nicolin Chen wrote: > > On Tue, Sep 09, 2014 at 12:27:50PM +0100, Mark Brown wrote: > > > On Tue, Sep 09, 2014 at 05:18:07PM +0800, Shengjiu Wang wrote: > > >

Re: [PATCH V1] ASoC: fsl_ssi: refine ipg clock usage in this module

2014-09-09 Thread Nicolin Chen
On Tue, Sep 09, 2014 at 02:37:42PM -0500, Timur Tabi wrote: > On 09/09/2014 01:38 PM, Nicolin Chen wrote: > >make sure to have the call for imx only because it seems that > >the other platforms do not depend on the clock. > > Although I doubt anyone will every add support

Re: [PATCH V1] ASoC: fsl_ssi: refine ipg clock usage in this module

2014-09-09 Thread Nicolin Chen
On Tue, Sep 09, 2014 at 03:03:53PM -0500, Timur Tabi wrote: > On 09/09/2014 02:59 PM, Nicolin Chen wrote: > >+/* > >+ * Initially mark the clock to NULL for all platforms so that later > >+ * clk_prepare_enable() will ignore and return

Re: [PATCH V1] ASoC: fsl_ssi: refine ipg clock usage in this module

2014-09-09 Thread Nicolin Chen
On Tue, Sep 09, 2014 at 03:37:26PM -0500, Timur Tabi wrote: > >However, my approach doesn't need any check. The open() or pm_resume() > >can just call clk_prepare_enable() directly. The __clk_enable() will > >then handle the 'clk == NULL' case: > > Yes, I was thinking the same thing. Because that

Re: [alsa-devel] [PATCH V1] ASoC: fsl_ssi: refine ipg clock usage in this module

2014-09-09 Thread Nicolin Chen
On Wed, Sep 10, 2014 at 08:21:18AM +0200, Markus Pargmann wrote: > On Tue, Sep 09, 2014 at 11:38:05AM -0700, Nicolin Chen wrote: > > On Tue, Sep 09, 2014 at 05:18:07PM +0800, Shengjiu Wang wrote: > > > @@ -1321,7 +1333,11 @@ static int fsl_ssi_probe(struct platform_d

Re: [PATCH V1] ASoC: fsl_ssi: refine ipg clock usage in this module

2014-09-10 Thread Nicolin Chen
On Wed, Sep 10, 2014 at 04:12:53PM +0800, Shengjiu Wang wrote: > > Then we can get a patch like: > > open() { > > + clk_prepare_enable(); > > > > } > > > > close() { > > > > + clk_disable_unprepare() > > } > what is the open() and close()? do you mean the fsl_ssi_startup() >

Re: [PATCH V2] ASoC: fsl_ssi: refine ipg clock usage in this module

2014-09-11 Thread Nicolin Chen
On Thu, Sep 11, 2014 at 01:38:29PM +0800, Shengjiu Wang wrote: > Move the ipg clock enable and disable operation to startup and shutdown, > that is only enable ipg clock when ssi is working. Keep clock is disabled > when ssi is in idle. > otherwise, _fsl_ssi_set_dai_fmt function need to be called i

Re: [PATCH V3] ASoC: fsl_ssi: refine ipg clock usage in this module

2014-09-12 Thread Nicolin Chen
On Fri, Sep 12, 2014 at 06:35:15PM +0800, Shengjiu Wang wrote: > Check if ipg clock is in clock-names property, then we can move the > ipg clock enable and disable operation to startup and shutdown, that > is only enable ipg clock when ssi is working and keep clock is disabled > when ssi is in idle

Re: [PATCH] ASoC: fsl_spdif: don't change the root clock rate of spdif in driver

2014-09-16 Thread Nicolin Chen
On Tue, Sep 16, 2014 at 07:46:34PM +0800, Shengjiu Wang wrote: > The spdif root clock may be used by other module or defined with > CLK_SET_RATE_GATE, so we can't change the clock rate in driver. > In this patch remove the clk_set_rate and clk_round_rate to protect the > clock. It's a quite conven

Re: [PATCH] ASoC: fsl_spdif: don't change the root clock rate of spdif in driver

2014-09-16 Thread Nicolin Chen
On Wed, Sep 17, 2014 at 09:32:52AM +0800, Shawn Guo wrote: > On Tue, Sep 16, 2014 at 11:19:28AM -0700, Nicolin Chen wrote: > > On Tue, Sep 16, 2014 at 07:46:34PM +0800, Shengjiu Wang wrote: > > > The spdif root clock may be used by other module or defined with > > > CLK

Re: [PATCH] ASoC: fsl_spdif: don't change the root clock rate of spdif in driver

2014-09-16 Thread Nicolin Chen
On Wed, Sep 17, 2014 at 10:31:28AM +0800, Shawn Guo wrote: > On Tue, Sep 16, 2014 at 07:24:40PM -0700, Nicolin Chen wrote: > > It's not supported in the clock API or just not implemented in our > > code? Can we just register a clock without CLK_SET_RATE_PARENT to > > ac

Re: [PATCH V4] ASoC: fsl_ssi: refine ipg clock usage in this module

2014-09-17 Thread Nicolin Chen
en ssi is in idle. > But when the checking is failed, remain the clock control as before. > > Tested-by: Markus Pargmann > Signed-off-by: Shengjiu Wang Acked-by: Nicolin Chen > --- > v4 change log: > fix the code indent issue. >

[PATCH 0/2] ASoC: fsl: Use dynamic slot width for ESAI.

2014-10-24 Thread Nicolin Chen
series on Sabre Auto for both Master and Slave cases? I'd like to wait for your Test-by. Thanks. Nicolin Chen (2): ASoC: fsl_esai: Use dynamic slot width as default ASoC: fsl-asoc-card: Add slot_width setting for cpu-dai sound/soc/fsl/fsl-asoc-card.c | 12 sound/soc/fsl/fsl_e

[PATCH] ASoC: fsl-asoc-card: Don't bypass settings if cpu-dai is Master

2014-10-24 Thread Nicolin Chen
When cpu-dai is the DAI Master (CBM_CFx), it may need some configurations, set_sysclk() call for eample, for cpu-dai side in the hw_params(), even if the set_bias_level() has already taken care of the codec-dai side. So this patch just simply adds an additional condition. Signed-off-by: Nicolin

[PATCH 1/2] ASoC: fsl_esai: Use dynamic slot width as default

2014-10-24 Thread Nicolin Chen
situation that needs a fixed width, the machine driver shall set slot_width via set_tdm_slot() so as to let the ESAI driver replace the dynamic width policy with the fixed value. Signed-off-by: Nicolin Chen --- sound/soc/fsl/fsl_esai.c | 12 +++- 1 file changed, 7 insertions(+), 5

[PATCH 2/2] ASoC: fsl-asoc-card: Add slot_width setting for cpu-dai

2014-10-24 Thread Nicolin Chen
ESAI may need to use fixed slot width to comply with external CODEC. So this set_tdm_slot() call will allow the ESAI driver to override its default dynamic slot width policy. Signed-off-by: Nicolin Chen --- sound/soc/fsl/fsl-asoc-card.c | 12 1 file changed, 12 insertions(+) diff

[PATCH] ASoC: fsl_asrc: Add reg_defaults for regmap to fix kernel dump

2014-10-24 Thread Nicolin Chen
at 2744 line, we can get that it's because regcache_rbtree_write() would call kmalloc() with GFP flag if it couldn't find an existing block to insert nodes while this kmalloc() call is inside a spin_lock_irq_save pair, i.e. IRQs disabled. Even though this may be a bug that should be fixed,

Re: [PATCH] ASoC: fsl-asoc-card: Don't bypass settings if cpu-dai is Master

2014-10-27 Thread Nicolin Chen
On Mon, Oct 27, 2014 at 05:30:31PM +, Mark Brown wrote: > On Fri, Oct 24, 2014 at 04:48:11PM -0700, Nicolin Chen wrote: > > When cpu-dai is the DAI Master (CBM_CFx), it may need some configurations, > > set_sysclk() call for eample, for cpu-dai side in the hw_params(),

Re: [PATCH] ASoC: fsl_asrc: Add reg_defaults for regmap to fix kernel dump

2014-10-27 Thread Nicolin Chen
On Tue, Oct 28, 2014 at 12:19:04AM +, Mark Brown wrote: > On Fri, Oct 24, 2014 at 07:03:57PM -0700, Nicolin Chen wrote: > > Kernel dump (WARN_ON) ocurred during system boot-up inside regmap_write(): > > > > [ cut here ] > > WARNING: CPU:

Re: [PATCH] ASoC: fsl_asrc: Add reg_defaults for regmap to fix kernel dump

2014-10-28 Thread Nicolin Chen
On Tue, Oct 28, 2014 at 10:47:42AM +, Mark Brown wrote: > On Mon, Oct 27, 2014 at 09:26:26PM -0700, Nicolin Chen wrote: > > On Tue, Oct 28, 2014 at 12:19:04AM +, Mark Brown wrote: > > > > It's not a bug, it's not reasonable to default allocations to atomic

Re: [PATCH 0/2] ASoC: fsl: Use dynamic slot width for ESAI.

2014-10-31 Thread Nicolin Chen
On Fri, Oct 31, 2014 at 06:12:24PM +, Mark Brown wrote: > On Fri, Oct 24, 2014 at 04:48:10PM -0700, Nicolin Chen wrote: > > > @Shengjiu, > > Will you be available to test this series on Sabre Auto for both > > Master and Slave cases? I'd like to wait for your Tes

[PATCH] ASoC: fsl_esai: Fix incorrect xDC field width of xCCR registers

2014-12-29 Thread Nicolin Chen
The xDC field should have 5 bit width according to Reference Manual. Thus this patch fixes it. Signed-off-by: Aurelien BOUIN Signed-off-by: Nicolin Chen --- The patch was originally submitted by Aurelien BOUIN while in an informal way. And he hasn't finished any re-submitting during the

[PATCH] ASoC: fsl: expand the size of the name in fsl_ssi_private struct

2013-05-22 Thread Nicolin Chen
strcpy(ssi_private->name, p) in probe() sets "name" by "p", gotten from dts, while the length of "p", if the devicetree node name of SSI is commonly set, would always be larger than 1 char size, so need a larger size for "name". Signed-off-by: Nicoli

[PATCH] ASoC: fsl: expand the size of the name in fsl_ssi_private struct

2013-05-23 Thread Nicolin Chen
strcpy(ssi_private->name, p) in probe() sets "name" by "p", gotten from dts, while the length of "p", if the devicetree node name of SSI is commonly set, would always be larger than 1 char size, so need a larger size for "name". Signed-off-by: Nicoli

[PATCH] ASoC: fsl: Disable SSI in trigger() if RE/TE are both cleared

2013-07-10 Thread Nicolin Chen
driver in sequence like: startup()->hw_params(S16_LE)->trigger(START)->tirgger(STOP)-> hw_params(S24_LE)->trigger(START)->tirgger(STOP)->shutdown() If we disable SSIEN in shutdown(), the second hw_params() would bypass the sample bits setting while using symmetric_rate. Signed-o

Re: [alsa-devel] [PATCH] ASoC: fsl: Disable SSI in trigger() if RE/TE are both cleared

2013-07-11 Thread Nicolin Chen
ushed it to the branch yet. Please test it for me. Thank you. Best regards, Nicolin Chen ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [alsa-devel] [PATCH] ASoC: fsl: Disable SSI in trigger() if RE/TE are both cleared

2013-07-11 Thread Nicolin Chen
On Thu, Jul 11, 2013 at 11:00:15PM -0500, Timur Tabi wrote: > I definitely want to. Unfortunately, I'm literally in the middle of > moving into a new house, and so everything is packed up. I won't be > able to look at it for another week. Oh, I see. Actually we've been using this patch for quite

Re: [alsa-devel] [PATCH] ASoC: fsl: Disable SSI in trigger() if RE/TE are both cleared

2013-07-11 Thread Nicolin Chen
test it later. I'm okay with your decision. Thanks, Nicolin Chen ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH] ASoC: fsl: Set sdma peripheral type directly

2013-07-25 Thread Nicolin Chen
Let CPU DAI drivers set SDMA periperal type directly to support more dma types(SPDIF, ESAI) other than only two for SSI. This will easily allow some non-SSI drivers to use the imx-pcm-dma as well. Signed-off-by: Nicolin Chen --- @Timur Compile-passed with mpc85xx_defconfig by using gcc-4.6.3

[PATCH 0/3] ASoC: Add Freescale i.MX S/PDIF controller driver

2013-07-31 Thread Nicolin Chen
* This series of patches add i.MX S/PDIF drivers, including CPU DAI, machine. * It also add two missing sample rates support for spdif dummy codec drivers Nicolin Chen (3): ASoC: codec: spdif: Add S20_3LE and S24_LE support for dummy codec drivers ASoC: fsl: Add S/PDIF CPU DAI driver

[PATCH 1/3] ASoC: codec: spdif: Add S20_3LE and S24_LE support for dummy codec drivers

2013-07-31 Thread Nicolin Chen
cpu_dai's formats and codec_dai's formats. Signed-off-by: Nicolin Chen --- sound/soc/codecs/spdif_receiver.c|2 ++ sound/soc/codecs/spdif_transmitter.c |5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/spdif_receiver.c b/sound/

[PATCH 3/3] ASoC: fsl: Add S/PDIF machine driver

2013-07-31 Thread Nicolin Chen
Add S/PDIF machine driver for Freescale i.MX series SoC. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/imx-audio-spdif.txt | 29 + sound/soc/fsl/Kconfig | 11 ++ sound/soc/fsl/Makefile |2 + sound/soc/fsl/imx

[PATCH 2/3] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-07-31 Thread Nicolin Chen
This patch add S/PDIF controller driver for Freescale SoC. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/fsl,spdif.txt| 63 + sound/soc/fsl/Kconfig |3 + sound/soc/fsl/Makefile |2 + sound/soc/fsl

[PATCH v2 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-04 Thread Nicolin Chen
This patch add S/PDIF controller driver for Freescale SoC. Reviewed-by: Lars-Peter Clausen Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/fsl,spdif.txt| 62 + sound/soc/fsl/Kconfig |3 + sound/soc/fsl/Makefile

[PATCH v2 0/2] Add freescale S/PDIF CPU DAI and machine drivers

2013-08-04 Thread Nicolin Chen
Changelog: v1->v2: * Dropped one applied patch for spdif dummy codec drivers. * Use generic DMA DT binding. * Let spdif controller driver calculate the clock div. * Added one optional clock source for spdif tx. * Reivsed documentation accordingly. Nicolin Chen (2): ASoC: fsl: Add S/P

[PATCH v2 2/2] ASoC: fsl: Add S/PDIF machine driver

2013-08-04 Thread Nicolin Chen
Add S/PDIF machine driver for Freescale i.MX series SoC. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/imx-audio-spdif.txt | 29 + sound/soc/fsl/Kconfig | 11 ++ sound/soc/fsl/Makefile |2 + sound/soc/fsl/imx

Re: [alsa-devel] [PATCH v2 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-05 Thread Nicolin Chen
On Mon, Aug 05, 2013 at 09:12:01AM +0200, Lars-Peter Clausen wrote: > You are supposed to only add tags (Acked-by, Reviewed-by, Signed-off-by, > etc.) for other people if they have explicitly said they are OK with it. > Reviewed-by means that the person has looked at the current patch and thinks >

[PATCH v3 0/2] Add freescale S/PDIF CPU DAI and machine drivers

2013-08-05 Thread Nicolin Chen
tation accordingly. Nicolin Chen (2): ASoC: fsl: Add S/PDIF CPU DAI driver ASoC: fsl: Add S/PDIF machine driver .../devicetree/bindings/sound/fsl,spdif.txt| 62 + .../devicetree/bindings/sound/imx-audio-spdif.txt | 29 + sound/soc/fsl/Kconfig

[PATCH v3 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-05 Thread Nicolin Chen
This patch add S/PDIF controller driver for Freescale SoC. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/fsl,spdif.txt| 62 + sound/soc/fsl/Kconfig |3 + sound/soc/fsl/Makefile |2 + sound/soc/fsl

[PATCH v3 2/2] ASoC: fsl: Add S/PDIF machine driver

2013-08-05 Thread Nicolin Chen
Add S/PDIF machine driver for Freescale i.MX series SoC. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/imx-audio-spdif.txt | 29 + sound/soc/fsl/Kconfig | 11 ++ sound/soc/fsl/Makefile |2 + sound/soc/fsl/imx

Re: [PATCH v3 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-05 Thread Nicolin Chen
Hi Philipp, Thanks for the comments! I'll revise it and send a v4. Here is my reply to some parts of your question. On Mon, Aug 05, 2013 at 12:07:02PM +0200, Philipp Zabel wrote: > This looks to me like a case of configuration data in the device tree. > Couldn't the tx/rx clock source be de

Re: [patch] ASoC: fsl: add an error check

2015-06-10 Thread Nicolin Chen
;ret" to check imx_audmux_v2_configure_port(). > > Fixes: 8de2ae2a7f1f ('ASoC: fsl: add imx-wm8962 machine driver') > Signed-off-by: Dan Carpenter Could you please use an subject like: ASoC: imx-wm8962: Add a missing error check (Since it only applies to this file) Other

Re: [alsa-devel][PATCH] ASoC: fsl: add imx-wm8960 machine driver

2015-06-10 Thread Nicolin Chen
On Wed, Jun 10, 2015 at 04:26:27PM +0800, Zidan Wang wrote: > This imx-wm8960 device-tree-only machine driver works with sai driver > and have below feature. > * support codec master and slave mode > * support headphone jack detect > * support headphone and micphone jack event > * support asrc<->sa

Re: [alsa-devel][PATCH] ASoC: fsl: add imx-wm8960 machine driver

2015-06-11 Thread Nicolin Chen
On Thu, Jun 11, 2015 at 07:10:00PM +0800, Zidan Wang wrote: > > > This imx-wm8960 device-tree-only machine driver works with sai driver > > > and have below feature. > > > * support codec master and slave mode > > > * support headphone jack detect > > > * support headphone and micphone jack event

Re: [PATCH] ASoC: fsl: Add dedicated DMA buffer size for each cpu dai

2015-06-24 Thread Nicolin Chen
> Signed-off-by: Shengjiu Wang Acked-by: Nicolin Chen Thanks > --- > sound/soc/fsl/fsl_esai.c|2 +- > sound/soc/fsl/fsl_sai.c |2 +- > sound/soc/fsl/fsl_spdif.c |2 +- > sound/soc/fsl/fsl_ssi.c |2 +- > sound/soc/fsl/imx-pcm-dma.c | 25 ++

Re: [alsa-devel] [PATCH] ASoC: fsl-ssi: Fix bitclock calculation for master mode

2015-07-03 Thread Nicolin Chen
can happen, because for some bitclock rates > 'pm' = 0 seems to be a valid choice but does not work due to hardware > restrictions. This results into a bad hardware behaviour (slow audio for > example). Feature tested on a i.MX25. > > Signed-off-by: Juergen Borleis Acked-b

[PATCH v4 2/2] ASoC: fsl: Add S/PDIF machine driver

2013-08-12 Thread Nicolin Chen
Add S/PDIF machine driver for Freescale i.MX series SoC. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/imx-audio-spdif.txt | 29 + sound/soc/fsl/Kconfig | 11 ++ sound/soc/fsl/Makefile |2 + sound/soc/fsl/imx

[PATCH v4 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-12 Thread Nicolin Chen
This patch add S/PDIF controller driver for Freescale SoC. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/fsl,spdif.txt| 100 ++ sound/soc/fsl/Kconfig |3 + sound/soc/fsl/Makefile |2 + sound/soc/fsl

[PATCH v4 0/2] Add freescale S/PDIF CPU DAI and machine drivers

2013-08-12 Thread Nicolin Chen
source for spdif tx. * Reivsed documentation accordingly. Nicolin Chen (2): ASoC: fsl: Add S/PDIF CPU DAI driver ASoC: fsl: Add S/PDIF machine driver .../devicetree/bindings/sound/fsl,spdif.txt| 100 ++ .../devicetree/bindings/sound/imx-audio-spdif.txt | 29 + so

[PATCH v4 resent 0/2] Add freescale S/PDIF CPU DAI and machine drivers

2013-08-12 Thread Nicolin Chen
source for spdif tx. * Reivsed documentation accordingly. Nicolin Chen (2): ASoC: fsl: Add S/PDIF CPU DAI driver ASoC: fsl: Add S/PDIF machine driver .../devicetree/bindings/sound/fsl,spdif.txt| 100 ++ .../devicetree/bindings/sound/imx-audio-spdif.txt | 29 + so

[PATCH v4 resent 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-12 Thread Nicolin Chen
This patch add S/PDIF controller driver for Freescale SoC. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/fsl,spdif.txt| 100 ++ sound/soc/fsl/Kconfig |3 + sound/soc/fsl/Makefile |2 + sound/soc/fsl

[PATCH v4 resent 2/2] ASoC: fsl: Add S/PDIF machine driver

2013-08-12 Thread Nicolin Chen
Add S/PDIF machine driver for Freescale i.MX series SoC. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/imx-audio-spdif.txt | 29 + sound/soc/fsl/Kconfig | 11 ++ sound/soc/fsl/Makefile |2 + sound/soc/fsl/imx

Re: [alsa-devel] [PATCH v4 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-13 Thread Nicolin Chen
Hi Fabio, Thank you for the comments. On Tue, Aug 13, 2013 at 02:58:26PM -0300, Fabio Estevam wrote: > On Mon, Aug 12, 2013 at 9:01 AM, Nicolin Chen wrote: > > +Required properties: > > + > > + - compatible : Compatible list, contains "fsl,-spdif". Using >

Re: [alsa-devel] [PATCH v4 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-13 Thread Nicolin Chen
Hi Shwan, On Wed, Aug 14, 2013 at 11:27:00AM +0800, Shawn Guo wrote: > I do not think we need this general compatible string. Device tree > compatible should be specific. So I should just use 'fsl,-spdif" and list all -spdif in compatible list? I added 'fsl,fsl-spdif' just for those not-in-list

Re: [alsa-devel] [PATCH v4 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-14 Thread Nicolin Chen
ar. Thank you for the explain. Then I think I can merely remain "fsl,imx6q-spdif" here, because all other cases should be completely compatible with this one. They are only different in the clock source names list, which's already being specified in dts file. Please correct me

Re: [PATCH v4 resent 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-14 Thread Nicolin Chen
lk else esai_hckt 0101 extal_clk 0110 spdif_clk 0111 asrc_clk 1000 spdif_extclk 1001 esai_hckt 1010 if (DPLL Locked) SPDIF_RxClk else mlb_clk ====== So the name list here basically is not being used to obtain a clock like what standardi

Re: [alsa-devel] [PATCH v4 resent 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-14 Thread Nicolin Chen
lists. And plussing another 6 I've listed in this binding doc -- thus there are totally 30 clock phanldes. But the 24 of 30 are only used to get two indexes. I think I need a little help here to understand why this is better. It looks more complicated to me. Creating the two name lis

Re: [alsa-devel] [PATCH v4 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-14 Thread Nicolin Chen
er more like SoC-specified, not the ideal way -- SoC-independent, since the clock sources are based on SoC design, not on itself. Thank you, Nicolin Chen ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH v4 resent 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-14 Thread Nicolin Chen
27;t be in the device tree at all. I understand your point. I'll put the DPLL-locking info to the driver. And I just found that the DPLL-lock condition seems to be fixed within the range -- {0x0 ~ 0x4, 0xa ~ 0xb} (I checked i.MX6Q/6SL/53/35, all of them are in such pattern.) So I don't need to put them into DT. I'll revise it in next ver. Thank you, Nicolin Chen ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [alsa-devel] [PATCH v4 resent 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-14 Thread Nicolin Chen
river. And another one for the i.MX35 > and still another one for i.MX53. I think I just have an idea for the table. I'll put them into the next version. Please take a look after I send it. Thank you, Nicolin Chen ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH v5 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-15 Thread Nicolin Chen
This patch add S/PDIF controller driver for Freescale SoC. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/fsl,spdif.txt| 76 ++ sound/soc/fsl/Kconfig |3 + sound/soc/fsl/Makefile |2 + sound/soc/fsl

[PATCH v5 0/2] Add freescale S/PDIF CPU DAI and machine drivers

2013-08-15 Thread Nicolin Chen
the commit of patch-1. v1->v2: * Dropped one applied patch for spdif dummy codec drivers. * Use generic DMA DT binding. * Let spdif controller driver calculate the clock div. * Added one optional clock source for spdif tx. * Reivsed documentation accordingly. Nicolin Chen (2): ASoC: fsl: Add S

[PATCH v5 2/2] ASoC: fsl: Add S/PDIF machine driver

2013-08-15 Thread Nicolin Chen
Add S/PDIF machine driver for Freescale i.MX series SoC. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/imx-audio-spdif.txt | 29 + sound/soc/fsl/Kconfig | 11 ++ sound/soc/fsl/Makefile |2 + sound/soc/fsl/imx

Re: [PATCH v5 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-15 Thread Nicolin Chen
ock: This is a boolean property. If present, ClkSrc_Sel > > bit + of SPDIF_SRPC would be set a clock source that cares DPLL locked > > condition. + > > This again looks like software configuration, not hardware description. > Could you elaborate a bit more on meaning of this property? I think the rx-clksrc-lock property should be included in DT as well, since it's exactly a available clock source for rx. But I guess I just need to figure out a better way or a more elaborated description. Thank you, Nicolin Chen ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH v5 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-16 Thread Nicolin Chen
xclk will be sent to other IP, ASRC on i.MX6Q for example. Quoting from the i.MX6Q reference manual that "Both the Rx clock and Tx clock are sent to the ASRC". Therefore, if 'rx-clksrc-lock' is present, that means ASRC will get a clock source indirect

Re: [PATCH v5 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-16 Thread Nicolin Chen
so much. So I would like to follow the suggestion as an expediency because I still wish this patch could be finally applied and merged into mainline :( But I still don't get why we need to be so obsessed to make this impenetrable rule of devicetree that we here have to sacrifice something we could have reasonably done. And thank you for the comments again, Sascha. Nicolin Chen ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH v5 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-16 Thread Nicolin Chen
hen > able to justify *why* more control is needed. > > This is not about getting a full featured driver into mainline. Get > a basic driver into mainline and improve it later. You'll make it > easier for us all. Thank you for explain all these to the despicable me. I'll

[PATCH v6 0/2] Add freescale S/PDIF CPU DAI and machine drivers

2013-08-16 Thread Nicolin Chen
* Added one optional clock source for spdif tx. * Reivsed documentation accordingly. Nicolin Chen (2): ASoC: fsl: Add S/PDIF CPU DAI driver ASoC: fsl: Add S/PDIF machine driver .../devicetree/bindings/sound/fsl,spdif.txt| 56 + .../devicetree/bindings/sound/imx-audio-spdif.t

[PATCH v6 2/2] ASoC: fsl: Add S/PDIF machine driver

2013-08-16 Thread Nicolin Chen
Add S/PDIF machine driver for Freescale i.MX series SoC. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/imx-audio-spdif.txt | 29 + sound/soc/fsl/Kconfig | 11 ++ sound/soc/fsl/Makefile |2 + sound/soc/fsl/imx

[PATCH v6 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-16 Thread Nicolin Chen
This patch add S/PDIF controller driver for Freescale SoC. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/fsl,spdif.txt| 56 + sound/soc/fsl/Kconfig |3 + sound/soc/fsl/Makefile |2 + sound/soc/fsl

Re: [PATCH v6 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-18 Thread Nicolin Chen
; + > > + tmp = ((tmp & 0b10101010) >> 1) | ((tmp << 1) & 0b10101010); > > + tmp = ((tmp & 0b11001100) >> 2) | ((tmp << 2) & 0b11001100); > > + tmp = ((tmp & 0b) >> 4) | ((tmp << 4) & 0b); > > What

Re: [PATCH v6 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-18 Thread Nicolin Chen
evice registers cached? Do not we program them to be > non-cacheable in core? regmap has a regcache for all the mapped registers. Set the regsiters as volatile will allow the driver to sync the regcache with physical memory each time when using regmap_read/write/update_bits(). But

Re: [PATCH v6 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-18 Thread Nicolin Chen
is from "Also add a comment describing this 'against' why cycle = 1000 is selected." Well, if you insist this extra comment for easy-understand, I'll add them Thank you. Nicolin Chen ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH v7 0/2] Add freescale S/PDIF CPU DAI and machine drivers

2013-08-19 Thread Nicolin Chen
clk_put(). v2->v3: * Removed a wrong tag from the commit of patch-1. v1->v2: * Dropped one applied patch for spdif dummy codec drivers. * Use generic DMA DT binding. * Let spdif controller driver calculate the clock div. * Added one optional clock source for spdif tx. * Reivsed docum

[PATCH v7 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-19 Thread Nicolin Chen
This patch implements a device-tree-only CPU DAI driver for Freescale S/PDIF controller that supports stereo playback and record feature. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/fsl,spdif.txt| 56 + sound/soc/fsl/Kconfig |3

[PATCH v7 2/2] ASoC: fsl: Add S/PDIF machine driver

2013-08-19 Thread Nicolin Chen
This patch implements a device-tree-only machine driver for Freescale i.MX series Soc. It works with spdif_transmitter/spdif_receiver and fsl_spdif.c drivers. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/imx-audio-spdif.txt | 29 + sound/soc/fsl/Kconfig

Re: [PATCH v7 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-19 Thread Nicolin Chen
Hi Mark, Thank you for the commenst. I'll Fix them in v8. Here are some remaining question: On Mon, Aug 19, 2013 at 10:18:09AM +0100, Mark Rutland wrote: > > +Required properties: > > + > > + - compatible : Compatible list, contains "fsl,-spdif". > > What are valid values for ? The bindi

Re: [PATCH v7 2/2] ASoC: fsl: Add S/PDIF machine driver

2013-08-19 Thread Nicolin Chen
Hi, On Mon, Aug 19, 2013 at 10:24:58AM +0100, Mark Rutland wrote: > Is this used semantically, or is it a completely arbitrary string? In > either case I don't see why the compatible string doesn't give the > driver enough to have a sensible value. > > I'm confused as to why we need this. The ph

Re: [PATCH v7 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-19 Thread Nicolin Chen
On Mon, Aug 19, 2013 at 10:54:33AM +0100, Mark Rutland wrote: > > I see, so 'Compatible list, must contains "fsl,imx35-spdif"' would be okay? > > While that needs to be mentioned, other values which might be present > (e.g. "fsl,imx6q-spdif") must be mentioned, or we can't rely on them > if we wan

Re: [PATCH v7 2/2] ASoC: fsl: Add S/PDIF machine driver

2013-08-19 Thread Nicolin Chen
On Mon, Aug 19, 2013 at 11:01:43AM +0100, Mark Rutland wrote: > > At least they are separate drivers as I mentioned in the commit comments. > > I'm not sure that the boundary of Linux drivers should necessarily > determine the way we carve up the description of IP blocks, though > presumably it's

Re: [PATCH v7 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-19 Thread Nicolin Chen
to be two groups of 8 > identical sets of clocks in systems so far? I think you can refer to the RM, since you just got it. The diagram doesn't show which one you mentioned is true. But I think we can understand in both ways. I'm going to send a v8. So I think I don't need to modify the description right? Thank you Nicolin Chen ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH v8 0/2] Add freescale S/PDIF CPU DAI and machine drivers

2013-08-19 Thread Nicolin Chen
controller driver calculate the clock div. * Added one optional clock source for spdif tx. * Reivsed documentation accordingly. Nicolin Chen (2): ASoC: fsl: Add S/PDIF CPU DAI driver ASoC: fsl: Add S/PDIF machine driver .../devicetree/bindings/sound/fsl,spdif.txt| 54 + .../devi

[PATCH v8 2/2] ASoC: fsl: Add S/PDIF machine driver

2013-08-19 Thread Nicolin Chen
This patch implements a device-tree-only machine driver for Freescale i.MX series Soc. It works with spdif_transmitter/spdif_receiver and fsl_spdif.c drivers. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/imx-audio-spdif.txt | 29 + sound/soc/fsl/Kconfig

[PATCH v8 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-19 Thread Nicolin Chen
This patch implements a device-tree-only CPU DAI driver for Freescale S/PDIF controller that supports stereo playback and record feature. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/fsl,spdif.txt| 54 + sound/soc/fsl/Kconfig |3

Re: [PATCH v8 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-19 Thread Nicolin Chen
Thank you Sascha, I'll revise them all in v9 On Mon, Aug 19, 2013 at 02:34:49PM +0200, Sascha Hauer wrote: > Hi Nicolas, > > Some misc other comments inline. > > On Mon, Aug 19, 2013 at 08:08:48PM +0800, Nicolin Chen wrote: > > This patch implements a device-tr

Re: [PATCH v8 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-19 Thread Nicolin Chen
On Mon, Aug 19, 2013 at 03:35:58PM -0600, Stephen Warren wrote: > > + "core" The core clock of spdif controller > > + "rxtx<0-7>" Clock source list for tx and rx clock. > > + This clock list should be identical to > > + the source list connecting

[PATCH v9 0/2] Add freescale S/PDIF CPU DAI and machine drivers

2013-08-19 Thread Nicolin Chen
dif tx. * Reivsed documentation accordingly. Nicolin Chen (2): ASoC: fsl: Add S/PDIF CPU DAI driver ASoC: fsl: Add S/PDIF machine driver .../devicetree/bindings/sound/fsl,spdif.txt| 54 + .../devicetree/bindings/sound/imx-audio-spdif.txt | 29 + sound/soc/fsl/Kconfig

[PATCH v9 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-19 Thread Nicolin Chen
This patch implements a device-tree-only CPU DAI driver for Freescale S/PDIF controller that supports stereo playback and record feature. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/fsl,spdif.txt| 54 + sound/soc/fsl/Kconfig |3

[PATCH v9 2/2] ASoC: fsl: Add S/PDIF machine driver

2013-08-19 Thread Nicolin Chen
This patch implements a device-tree-only machine driver for Freescale i.MX series Soc. It works with spdif_transmitter/spdif_receiver and fsl_spdif.c drivers. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/imx-audio-spdif.txt | 29 + sound/soc/fsl/Kconfig

Re: [alsa-devel] [PATCH v8 2/2] ASoC: fsl: Add S/PDIF machine driver

2013-08-20 Thread Nicolin Chen
On Tue, Aug 20, 2013 at 11:28:10PM +0100, Mark Brown wrote: > On Tue, Aug 20, 2013 at 01:53:49PM -0600, Stephen Warren wrote: > > On 08/20/2013 01:07 PM, Mark Brown wrote: > > > > The point is that it might turn into a more correct binding > > > depending on what the S/PDIF device actually is. >

[PATCH v10 1/2] ASoC: fsl: Add S/PDIF CPU DAI driver

2013-08-20 Thread Nicolin Chen
This patch implements a device-tree-only CPU DAI driver for Freescale S/PDIF controller that supports stereo playback and record feature. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/fsl,spdif.txt| 54 + sound/soc/fsl/Kconfig |3

[PATCH v10 2/2] ASoC: fsl: Add S/PDIF machine driver

2013-08-20 Thread Nicolin Chen
This patch implements a device-tree-only machine driver for Freescale i.MX series Soc. It works with spdif_transmitter/spdif_receiver and fsl_spdif.c drivers. Signed-off-by: Nicolin Chen --- .../devicetree/bindings/sound/imx-audio-spdif.txt | 29 + sound/soc/fsl/Kconfig

  1   2   3   4   5   6   7   8   >