[PATCH] ARM: imx6q: Add pll4_audio_div to clock tree

2013-08-23 Thread Nicolin Chen
There's a pll4_audio_div clock, an extra divider for pll4, missing in current clock tree, thus add it. Signed-off-by: Nicolin Chen b42...@freescale.com --- .../devicetree/bindings/clock/imx6q-clock.txt |1 + arch/arm/mach-imx/clk-imx6q.c |9 + 2 files

[PATCH v4 0/4] Add dual-fifo mode support of i.MX ssi

2013-11-08 Thread Nicolin Chen
* fifo mode. To support this mode, we need to first update sdma sciprt * list, and then enable dual fifo BIT in SSI driver, and last update DT * bindings of i.MX series. Nicolin Chen (4): dma: imx-sdma: Add sdma firmware version 2 support dma: imx-sdma: Add new dma type for ssi dual fifo

[PATCH v4 3/4] ASoC: fsl_ssi: Add dual fifo mode support

2013-11-08 Thread Nicolin Chen
By enabling dual fifo mode, it would allow SSI enter a better performance to transimit/receive data without occasional hardware underrun/overrun. Signed-off-by: Nicolin Chen b42...@freescale.com --- sound/soc/fsl/fsl_ssi.c | 27 ++- 1 file changed, 26 insertions(+), 1

[PATCH v4 4/4] ARM: dts: imx: use dual-fifo sdma script for ssi

2013-11-08 Thread Nicolin Chen
Use dual-fifo sdma scripts instead of shared scripts for ssi on i.MX series. Signed-off-by: Nicolin Chen b42...@freescale.com --- arch/arm/boot/dts/imx51.dtsi | 4 ++-- arch/arm/boot/dts/imx53.dtsi | 4 ++-- arch/arm/boot/dts/imx6qdl.dtsi | 12 ++-- arch/arm/boot/dts/imx6sl.dtsi

[PATCH v4 2/4] dma: imx-sdma: Add new dma type for ssi dual fifo script

2013-11-08 Thread Nicolin Chen
This patch adds a new DMA_TYPE for SSI dual FIFO script, included in SDMA firmware version 2. This script would allow SSI use dual fifo mode to transimit/receive data without occasional hardware underrun/overrun. Signed-off-by: Nicolin Chen b42...@freescale.com --- Documentation/devicetree

[PATCH v4 1/4] dma: imx-sdma: Add sdma firmware version 2 support

2013-11-08 Thread Nicolin Chen
On i.MX5/6 series, SDMA is using new version firmware to support SSI dual FIFO feature and HDMI Audio (i.MX6Q/DL only). Thus add it. Signed-off-by: Nicolin Chen b42...@freescale.com --- drivers/dma/imx-sdma.c | 15 ++- include/linux/platform_data/dma-imx-sdma.h

Re: [PATCH v4 0/4] Add dual-fifo mode support of i.MX ssi

2013-11-08 Thread Nicolin Chen
On Fri, Nov 08, 2013 at 06:49:32PM +0800, Nicolin Chen wrote: * ! This series of patches has a direct dependency between them. When * ! applying them, we need to apply to one single branch. Otherwise, * ! it would break currect branches. Changelog v4: * PATCH-3: Add period size

[PATCH v5 0/4] Add dual-fifo mode support of i.MX ssi

2013-11-08 Thread Nicolin Chen
for the last two patches. v1: * SSI can reduce hardware overrun/underrun possibility when using dual * fifo mode. To support this mode, we need to first update sdma sciprt * list, and then enable dual fifo BIT in SSI driver, and last update DT * bindings of i.MX series. Nicolin Chen (4): dma: imx

[PATCH v5 1/4] dma: imx-sdma: Add sdma firmware version 2 support

2013-11-08 Thread Nicolin Chen
On i.MX5/6 series, SDMA is using new version firmware to support SSI dual FIFO feature and HDMI Audio (i.MX6Q/DL only). Thus add it. Signed-off-by: Nicolin Chen b42...@freescale.com --- drivers/dma/imx-sdma.c | 15 ++- include/linux/platform_data/dma-imx-sdma.h

[PATCH v5 4/4] ARM: dts: imx: use dual-fifo sdma script for ssi

2013-11-08 Thread Nicolin Chen
Use dual-fifo sdma scripts instead of shared scripts for ssi on i.MX series. Signed-off-by: Nicolin Chen b42...@freescale.com --- arch/arm/boot/dts/imx51.dtsi | 4 ++-- arch/arm/boot/dts/imx53.dtsi | 4 ++-- arch/arm/boot/dts/imx6qdl.dtsi | 12 ++-- arch/arm/boot/dts/imx6sl.dtsi

[PATCH v5 3/4] ASoC: fsl_ssi: Add dual fifo mode support

2013-11-08 Thread Nicolin Chen
By enabling dual fifo mode, it would allow SSI enter a better performance to transimit/receive data without occasional hardware underrun/overrun. Signed-off-by: Nicolin Chen b42...@freescale.com --- sound/soc/fsl/fsl_ssi.c | 27 ++- 1 file changed, 26 insertions(+), 1

[PATCH v5 2/4] dma: imx-sdma: Add new dma type for ssi dual fifo script

2013-11-08 Thread Nicolin Chen
This patch adds a new DMA_TYPE for SSI dual FIFO script, included in SDMA firmware version 2. This script would allow SSI use dual fifo mode to transimit/receive data without occasional hardware underrun/overrun. Signed-off-by: Nicolin Chen b42...@freescale.com --- Documentation/devicetree

Re: [PATCHv1 5/8] ASoC: sgtl5000: Revise the bugs about the sgt15000 codec.

2013-10-17 Thread Nicolin Chen
), sgtl5000-supplies); + Ditto Best regards, Nicolin Chen ldo_regulator_remove(codec); return 0; -- 1.8.0 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [PATCH v7 0/4] Add dual-fifo mode support of i.MX ssi

2013-11-22 Thread Nicolin Chen
Hi all, I'm sorry to push this. But this series has been an orphan for a while. Could any one please receive and foster it? Thank you. Nicolin Chen On Wed, Nov 13, 2013 at 10:55:23PM +0800, Nicolin Chen wrote: * ! This series of patches has a direct dependency between them. When

Re: [PATCH v2] ASoC: fsl_ssi: Add monaural audio support for non-ac97 interface

2013-12-02 Thread Nicolin Chen
On Mon, Dec 02, 2013 at 11:56:17AM +, Mark Brown wrote: On Sat, Nov 16, 2013 at 12:25:29AM +0800, Nicolin Chen wrote: The normal mode of SSI allows it to send/receive data to/from the first slot of each period. So we can use this normal mode to trick I2S signal by puting/getting data

[PATCH v6 0/4] Add dual-fifo mode support of i.MX ssi

2013-11-10 Thread Nicolin Chen
, and then enable dual fifo BIT in SSI driver, and last update DT * bindings of i.MX series. Nicolin Chen (4): dma: imx-sdma: Add sdma firmware version 2 support dma: imx-sdma: Add new dma type for ssi dual fifo script ASoC: fsl_ssi: Add dual fifo mode support ARM: dts: imx: use dual-fifo

[PATCH v6 1/4] dma: imx-sdma: Add sdma firmware version 2 support

2013-11-10 Thread Nicolin Chen
On i.MX5/6 series, SDMA is using new version firmware to support SSI dual FIFO feature and HDMI Audio (i.MX6Q/DL only). Thus add it. Signed-off-by: Nicolin Chen b42...@freescale.com --- drivers/dma/imx-sdma.c | 15 ++- include/linux/platform_data/dma-imx-sdma.h

[PATCH v6 2/4] dma: imx-sdma: Add new dma type for ssi dual fifo script

2013-11-10 Thread Nicolin Chen
This patch adds a new DMA_TYPE for SSI dual FIFO script, included in SDMA firmware version 2. This script would allow SSI use dual fifo mode to transimit/receive data without occasional hardware underrun/overrun. Signed-off-by: Nicolin Chen b42...@freescale.com --- Documentation/devicetree

[PATCH v6 4/4] ARM: dts: imx: use dual-fifo sdma script for ssi

2013-11-10 Thread Nicolin Chen
Use dual-fifo sdma scripts instead of shared scripts for ssi on i.MX series. Signed-off-by: Nicolin Chen b42...@freescale.com --- arch/arm/boot/dts/imx51.dtsi | 4 ++-- arch/arm/boot/dts/imx53.dtsi | 4 ++-- arch/arm/boot/dts/imx6qdl.dtsi | 12 ++-- arch/arm/boot/dts/imx6sl.dtsi

[PATCH v6 3/4] ASoC: fsl_ssi: Add dual fifo mode support

2013-11-10 Thread Nicolin Chen
By enabling dual fifo mode, it would allow SSI enter a better performance to transimit/receive data without occasional hardware underrun/overrun. Signed-off-by: Nicolin Chen b42...@freescale.com --- sound/soc/fsl/fsl_ssi.c | 27 ++- 1 file changed, 26 insertions(+), 1

[PATCH v7 0/4] Add dual-fifo mode support of i.MX ssi

2013-11-13 Thread Nicolin Chen
possibility when using dual * fifo mode. To support this mode, we need to first update sdma sciprt * list, and then enable dual fifo BIT in SSI driver, and last update DT * bindings of i.MX series. Nicolin Chen (4): dma: imx-sdma: Add sdma firmware version 2 support dma: imx-sdma: Add new dma

[PATCH v7 1/4] dma: imx-sdma: Add sdma firmware version 2 support

2013-11-13 Thread Nicolin Chen
On i.MX5/6 series, SDMA is using new version firmware to support SSI dual FIFO feature and HDMI Audio (i.MX6Q/DL only). Thus add it. Signed-off-by: Nicolin Chen b42...@freescale.com Acked-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/dma/imx-sdma.c | 15

[PATCH v7 3/4] ASoC: fsl_ssi: Add dual fifo mode support

2013-11-13 Thread Nicolin Chen
By enabling dual fifo mode, it would allow SSI enter a better performance to transimit/receive data without occasional hardware underrun/overrun. Signed-off-by: Nicolin Chen b42...@freescale.com Acked-by: Timur Tabi ti...@tabi.org Acked-by: Mark Brown broo...@linaro.org --- sound/soc/fsl

[PATCH v7 4/4] ARM: dts: imx: use dual-fifo sdma script for ssi

2013-11-13 Thread Nicolin Chen
Use dual-fifo sdma scripts instead of shared scripts for ssi on i.MX series. Signed-off-by: Nicolin Chen b42...@freescale.com Acked-by: Shawn Guo shawn@linaro.org --- arch/arm/boot/dts/imx51.dtsi | 4 ++-- arch/arm/boot/dts/imx53.dtsi | 4 ++-- arch/arm/boot/dts/imx6qdl.dtsi | 12

[PATCH v7 2/4] dma: imx-sdma: Add new dma type for ssi dual fifo script

2013-11-13 Thread Nicolin Chen
This patch adds a new DMA_TYPE for SSI dual FIFO script, included in SDMA firmware version 2. This script would allow SSI use dual fifo mode to transimit/receive data without occasional hardware underrun/overrun. Signed-off-by: Nicolin Chen b42...@freescale.com Acked-by: Kumar Gala ga

[PATCH 1/2] ARM: dts: imx: specify the value of audmux pinctrl instead of 0x80000000

2013-11-14 Thread Nicolin Chen
(0). Signed-off-by: Nicolin Chen b42...@freescale.com --- arch/arm/boot/dts/imx6qdl.dtsi | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index 6e096ca..6b76e55 100644 --- a/arch/arm/boot

[PATCH 2/2] ASoC: fsl_ssi: Add monaural audio support for non-ac97 interface

2013-11-14 Thread Nicolin Chen
The normal mode of SSI allows it to send/receive data to/from the first slot of each period. So we can use this normal mode to trick I2S signal by puting/getting data to/from the first slot only (the left channel) so as to support monaural audio playback and recording. Signed-off-by: Nicolin Chen

[PATCH 0/2] Add monaural audio support for fsl_ssi.c

2013-11-14 Thread Nicolin Chen
i.MX platforms, just currently I don't have those boards so I drop their changes for now. Nicolin Chen (2): ARM: dts: imx: specify the value of audmux pinctrl instead of 0x8000 ASoC: fsl_ssi: Add monaural audio support for non-ac97 interface arch/arm/boot/dts/imx6qdl.dtsi | 22

Re: [PATCH 0/2] Add monaural audio support for fsl_ssi.c

2013-11-14 Thread Nicolin Chen
Hi Shawn, On Fri, Nov 15, 2013 at 11:02:49AM +0800, Shawn Guo wrote: On Thu, Nov 14, 2013 at 07:07:08PM +0800, Nicolin Chen wrote: This series of patches need to be applied into one single tree because the second patch depends on the first one. Without it, SSI would playback constant

Re: [PATCH 0/2] Add monaural audio support for fsl_ssi.c

2013-11-14 Thread Nicolin Chen
On Fri, Nov 15, 2013 at 11:22:52AM +0800, Shawn Guo wrote: On Fri, Nov 15, 2013 at 10:59:57AM +0800, Nicolin Chen wrote: Hi Shawn, On Fri, Nov 15, 2013 at 11:02:49AM +0800, Shawn Guo wrote: On Thu, Nov 14, 2013 at 07:07:08PM +0800, Nicolin Chen wrote: This series of patches need

Re: [PATCH 1/2] ARM: dts: imx: specify the value of audmux pinctrl instead of 0x80000000

2013-11-14 Thread Nicolin Chen
On Fri, Nov 15, 2013 at 02:42:01PM +0800, Shawn Guo wrote: On Thu, Nov 14, 2013 at 07:07:09PM +0800, Nicolin Chen wrote: We must specify the value of audmux pinctrl if we want to use pinctrl_pm(). Thus change bypass value 0x8000 to what we exactly need. This patch also seperately

Re: [PATCH 2/2] ASoC: fsl_ssi: Add monaural audio support for non-ac97 interface

2013-11-15 Thread Nicolin Chen
, Nicolin Chen -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v2] ASoC: fsl_ssi: Add monaural audio support for non-ac97 interface

2013-11-15 Thread Nicolin Chen
The normal mode of SSI allows it to send/receive data to/from the first slot of each period. So we can use this normal mode to trick I2S signal by puting/getting data to/from the first slot only (the left channel) so as to support monaural audio playback and recording. Signed-off-by: Nicolin Chen

[PATCH 0/3] Enhance imx-wm8962 machine driver

2013-12-06 Thread Nicolin Chen
Although there's no direct relationship between any of these three patches, I recommend to apply them in order so as to circumvent merging conflicts. Nicolin Chen (3): ASoC: fsl: imx-wm8962: Don't update bias_level in machine driver ASoC: fsl: imx-wm8962: Grant hw_params/free() permission

[PATCH 2/3] ASoC: fsl: imx-wm8962: Grant hw_params/free() permission to control FLL

2013-12-06 Thread Nicolin Chen
the bypass path feature, we make both set_bias_level() and hw_xxx() ways coexist. Signed-off-by: Nicolin Chen b42...@freescale.com --- sound/soc/fsl/imx-wm8962.c | 136 - 1 file changed, 86 insertions(+), 50 deletions(-) diff --git a/sound/soc/fsl/imx

[PATCH 1/3] ASoC: fsl: imx-wm8962: Don't update bias_level in machine driver

2013-12-06 Thread Nicolin Chen
If we update it here, the set_bias_level() of Codec driver won't be normally called and we will then miss some essential procedures in set_bias_level() of the Codec driver. Thus drop it. Signed-off-by: Nicolin Chen b42...@freescale.com --- sound/soc/fsl/imx-wm8962.c | 2 -- 1 file changed, 2

[PATCH 3/3] ASoC: fsl: imx-wm8962: Add headphone and microphone jack plugin/out detection

2013-12-06 Thread Nicolin Chen
detection feature and switchs I/O routes accordingly. Meanwhile, for those monaural input cases, we also turn on the ADC monomix features of WM8962 if needed. Signed-off-by: Nicolin Chen b42...@freescale.com --- .../devicetree/bindings/sound/imx-audio-wm8962.txt | 8 + Documentation/devicetree

[PATCH] ASoC: cs42888: Add codec driver support

2014-02-23 Thread Nicolin Chen
This patch adds support for the Cirrus Logic CS42888 Audio CODEC that has four 24-bit A/D and eight 24-bit D/A converters. [ CS42888 supports both I2C and SPI control ports. As initial patch, this patch only adds the support for I2C. ] Signed-off-by: Nicolin Chen guangyu.c...@freescale.com

Re: [PATCH] ASoC: cs42888: Add codec driver support

2014-02-24 Thread Nicolin Chen
On Mon, Feb 24, 2014 at 08:30:11PM +0900, Mark Brown wrote: On Mon, Feb 24, 2014 at 02:55:29PM +0800, Nicolin Chen wrote: This patch adds support for the Cirrus Logic CS42888 Audio CODEC that has four 24-bit A/D and eight 24-bit D/A converters. Looks generally good, some fairly small nits

Re: [PATCH] ASoC: cs42888: Add codec driver support

2014-02-24 Thread Nicolin Chen
. + if (!IS_ERR(cs42888-clk)) + clk_disable_unprepare(cs42888-clk); Does the device work without MCLK? Yes, MCLK is required. If you can’t get the clock you should error out. Will refine it as you suggest. Thank you for the comments. Nicolin Chen -- To unsubscribe from

Re: [PATCH] ASoC: cs42888: Add codec driver support

2014-02-24 Thread Nicolin Chen
SoC (DAI master) so it could be totally controlled by CPU DAI driver, ESAI for example has its own dividers to derive the HCKT clock (MCLK for Tx) from ahb clock in SoC clock tree, in which case we might not easily pass a valid clock phandle via DT. (RFC to this thought.) Thank you, Nicolin Chen

Re: [PATCH] ASoC: cs42888: Add codec driver support

2014-02-24 Thread Nicolin Chen
On Mon, Feb 24, 2014 at 04:32:06PM +, Austin, Brian wrote: On Feb 24, 2014, at 10:06 AM, Nicolin Chen guangyu.c...@freescale.com wrote: On Mon, Feb 24, 2014 at 03:52:24PM +, Austin, Brian wrote: +if (!IS_ERR(cs42888-clk)) +clk_disable_unprepare(cs42888

Re: [PATCH] ASoC: cs42888: Add codec driver support

2014-02-24 Thread Nicolin Chen
On Tue, Feb 25, 2014 at 09:00:27AM +0900, Mark Brown wrote: On Tue, Feb 25, 2014 at 12:06:49AM +0800, Nicolin Chen wrote: On Mon, Feb 24, 2014 at 03:52:24PM +, Austin, Brian wrote: Wait...Regarding this clock part, I just forgot the reason I put the code: 385 cs42888-clk

Re: [alsa-devel] [PATCH] ASoC: cs42888: Add codec driver support

2014-02-24 Thread Nicolin Chen
On Mon, Feb 24, 2014 at 06:54:09PM +0100, Lars-Peter Clausen wrote: Hi, Couple of trivial things. Will fix them all. Thanks a lot, Nicolin Chen On 02/24/2014 07:55 AM, Nicolin Chen wrote: [...] +config SND_SOC_CS42888 +tristate Cirrus Logic CS42888 CODEC +depends on I2C

Re: [PATCH] ASoC: cs42888: Add codec driver support

2014-02-24 Thread Nicolin Chen
On Tue, Feb 25, 2014 at 12:09:47PM +0900, Mark Brown wrote: On Tue, Feb 25, 2014 at 10:38:41AM +0800, Nicolin Chen wrote: Hmm...my words might not be so clear last time: we have to handle the dividers of ESAI in ESAI driver because the dividers is in the ESAI's IP, not in the SoC

Re: [PATCH] ASoC: cs42888: Add codec driver support

2014-02-24 Thread Nicolin Chen
On Tue, Feb 25, 2014 at 12:39:29PM +0900, Mark Brown wrote: On Tue, Feb 25, 2014 at 11:13:14AM +0800, Nicolin Chen wrote: On Tue, Feb 25, 2014 at 12:09:47PM +0900, Mark Brown wrote: We should be able to arrange to have the ESAI be a clock provider shouldn't we? If the clocks need

Re: [PATCH] ASoC: cs42888: Add codec driver support

2014-02-24 Thread Nicolin Chen
On Tue, Feb 25, 2014 at 12:52:32PM +0900, Mark Brown wrote: On Tue, Feb 25, 2014 at 11:46:36AM +0800, Nicolin Chen wrote: On Tue, Feb 25, 2014 at 12:39:29PM +0900, Mark Brown wrote: So register it from the ESAI driver then. Then I think I need to find a way to pass the clock to CODEC

Re: [alsa-devel] [PATCH] ASoC: cs42888: Add codec driver support

2014-02-24 Thread Nicolin Chen
On Tue, Feb 25, 2014 at 12:54:04AM -0300, Fabio Estevam wrote: Hi Nicolin, On Tue, Feb 25, 2014 at 12:46 AM, Nicolin Chen guangyu.c...@freescale.com wrote: So register it from the ESAI driver then. Then I think I need to find a way to pass the clock to CODEC driver... Does

[PATCH v2] ASoC: cs42888: Add codec driver support

2014-03-11 Thread Nicolin Chen
This patch adds support for the Cirrus Logic CS42888 Audio CODEC that has four 24-bit A/D and eight 24-bit D/A converters. [ CS42888 supports both I2C and SPI control ports. As initial patch, this patch only adds the support for I2C. ] Signed-off-by: Nicolin Chen guangyu.c...@freescale.com

Re: [PATCH v2] ASoC: cs42888: Add codec driver support

2014-03-11 Thread Nicolin Chen
On Tue, Mar 11, 2014 at 11:30:53AM +, Mark Rutland wrote: On Tue, Mar 11, 2014 at 11:19:51AM +, Nicolin Chen wrote: This patch adds support for the Cirrus Logic CS42888 Audio CODEC that has four 24-bit A/D and eight 24-bit D/A converters. [ CS42888 supports both I2C and SPI

[PATCH v3] ASoC: cs42888: Add codec driver support

2014-03-11 Thread Nicolin Chen
This patch adds support for the Cirrus Logic CS42888 Audio CODEC that has four 24-bit A/D and eight 24-bit D/A converters. [ CS42888 supports both I2C and SPI control ports. As initial patch, this patch only adds the support for I2C. ] Signed-off-by: Nicolin Chen guangyu.c...@freescale.com

[PATCH] ASoC: simple-card: overwrite DAIFMT_MASTER of cpu_dai-fmt

2014-03-11 Thread Nicolin Chen
, it'll make one of dai work in an incorrect mode. Thus this patch fixes it by overwriting the DAIFMT_MASTER bit of cpu_dai-fmt with the one of codec_dai-fmt since we defined DAIFMT_MASTER basing on CODEC at the first place. Signed-off-by: Nicolin Chen guangyu.c...@freescale.com --- sound/soc

Re: [PATCH v2] ASoC: cs42888: Add codec driver support

2014-03-11 Thread Nicolin Chen
, I'll send the CS42888 part first by the end of the day and we can add CS42488 later. Thanks all, Nicolin Chen -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

Re: [PATCH] ASoC: simple-card: overwrite DAIFMT_MASTER of cpu_dai-fmt

2014-03-11 Thread Nicolin Chen
On Tue, Mar 11, 2014 at 01:25:53PM +, Mark Brown wrote: On Tue, Mar 11, 2014 at 08:54:32PM +0800, Nicolin Chen wrote: Adding Jyri who's been looking at this as well but not added anyone else working on simple-card so you might've missed his mails. It's pretty fair to do

Re: [PATCH v2] ASoC: cs42888: Add codec driver support

2014-03-11 Thread Nicolin Chen
Hi Brian, On Wed, Mar 12, 2014 at 02:05:00AM +, Austin, Brian wrote: On Mar 11, 2014, at 13:46, Mark Brown broo...@kernel.org wrote: On Tue, Mar 11, 2014 at 04:55:58PM +0100, Lars-Peter Clausen wrote: On 03/11/2014 04:41 PM, Brian Austin wrote: So WRT the CS42888, this is

[PATCH v2] ASoC: simple-card: overwrite cpu_dai-fmt with codec_dai-fmt

2014-03-11 Thread Nicolin Chen
on CODEC at the first place while the other bits are same. Signed-off-by: Nicolin Chen guangyu.c...@freescale.com --- Changelog v2: * Keep the fmt identical for both CPU and CODEC sides. * Appended warning to binding doc. .../devicetree/bindings/sound/simple-card.txt| 6 ++ sound/soc

Re: [alsa-devel] [PATCH] ASoC: simple-card: overwrite DAIFMT_MASTER of cpu_dai-fmt

2014-03-11 Thread Nicolin Chen
though), which results people need to re-set bitclock-invert and frame-invert if they switch the DAI format from left_j to i2s for example. Thank you, Nicolin Chen -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

Re: [alsa-devel] [PATCH v2] ASoC: simple-card: overwrite cpu_dai-fmt with codec_dai-fmt

2014-03-12 Thread Nicolin Chen
On Wed, Mar 12, 2014 at 11:25:32AM +0200, Jyri Sarha wrote: On 03/12/2014 05:02 AM, Nicolin Chen wrote: The current simple-card driver separates the daimft for cpu_dai and codec_dai. So we might get different values for them (0x4003 and 0x1003 for example): asoc-simple-card sound

[PATCH v3] ASoC: fsl_esai: Add ESAI CPU DAI driver

2014-01-10 Thread Nicolin Chen
or 24bits) - Flexible selection between system clock or external oscillator as input clock source, programmable internal clock divider and frame sync generation. Signed-off-by: Nicolin Chen guangyu.c...@freescale.com --- Changelog v3: * Added monaural audio support by using Normal mode

Re: [PATCH v2] ASoC: fsl_esai: Add ESAI CPU DAI driver

2014-01-10 Thread Nicolin Chen
I just received the 'applied' mail. But still want to confirm this topic to see how to refine the driver in the step ahead. On Fri, Jan 10, 2014 at 12:04:39PM +, Mark Brown wrote: On Fri, Jan 10, 2014 at 10:35:39AM +0800, Nicolin Chen wrote: Resent this because of losing attached file

Re: [PATCH v2] ASoC: fsl_esai: Add ESAI CPU DAI driver

2014-01-10 Thread Nicolin Chen
On Fri, Jan 10, 2014 at 01:26:42PM +, Mark Brown wrote: On Fri, Jan 10, 2014 at 09:03:39PM +0800, Nicolin Chen wrote: On Fri, Jan 10, 2014 at 12:04:39PM +, Mark Brown wrote: This is about what I'd expect but then surely the next step is for the driver to choose a defualt BCLK

Re: [PATCH v2] ASoC: fsl_esai: Add ESAI CPU DAI driver

2014-01-10 Thread Nicolin Chen
On Fri, Jan 10, 2014 at 04:52:29PM +, Mark Brown wrote: On Fri, Jan 10, 2014 at 11:48:25PM +0800, Nicolin Chen wrote: I think I start to understand the point here: If a user only needs to playback the default case - 44.1KHz for example, the driver can just configure all

Re: [PATCH 2/2] ASoC: fsl: Make Freescale SAI/ESAI/SPDIF to be visible in Kconfig

2014-02-19 Thread Nicolin Chen
was revising a new CODEC driver for ESAI and meanwhile abort to plan to try simple card for this combination but being suspended due to some tough internal issues. So I think it should be a good idea for us to move towards simple card starting from this patch. Surely, Acked. Nicolin Chen

Re: [PATCH] ASoC: fsl-esai: fix ESAI TDM slot setting

2014-02-10 Thread Nicolin Chen
On Mon, Feb 10, 2014 at 02:47:17PM +0800, Xiubo Li wrote: Cc: Nicolin Chen guangyu.c...@freescale.com Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/fsl/fsl_esai.c | 4 ++-- sound/soc/fsl/fsl_esai.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sound

Re: [PATCH] ASoC: fsl-esai: fix ESAI TDM slot setting

2014-02-10 Thread Nicolin Chen
On Mon, Feb 10, 2014 at 04:24:43PM +0800, Xiubo Li-B47053 wrote: Sorry, my misunderstanding about your comment. Please ignore the last mail. I will send v2 of this patch. No, you don't need to. Just rechecked it with RM. Your patch is correct. I forgot I used A's WIDTH intentionally at

Re: [PATCH 1/2] ASoC: fsl-spdif: big-endian support

2014-02-10 Thread Nicolin Chen
On Tue, Feb 11, 2014 at 01:41:15PM +0800, Xiubo Li wrote: For most platforms, the CPU and SPDIF device is in the same endianess mode. While for the LS1 platform, the CPU is in LE mode and the SPDIF is in BE mode. Signed-off-by: Xiubo Li li.xi...@freescale.com Cc: Nicolin Chen guangyu.c

Re: [PATCH 2/2] ASoC: fsl-esai: big-endian support

2014-02-10 Thread Nicolin Chen
On Tue, Feb 11, 2014 at 01:41:16PM +0800, Xiubo Li wrote: For most platforms, the CPU and ESAI device is in the same endianess mode. While for the LS1 platform, the CPU is in LE mode and the ESAI is in BE mode. Signed-off-by: Xiubo Li li.xi...@freescale.com Cc: Nicolin Chen guangyu.c

Re: [PATCH 1/2] ASoC: fsl-spdif: big-endian support

2014-02-11 Thread Nicolin Chen
patches: Acked-by: Nicolin Chen guangyu.c...@freescale.com Thank you -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

[PATCH v4] ASoC: cs42xx8: Add codec driver support for CS42448/CS42888

2014-03-20 Thread Nicolin Chen
This patch adds support for the Cirrus Logic CS42448/CS42888 Audio CODEC that has six/four 24-bit AD and eight 24-bit DA converters. [ CS42448/CS42888 supports both I2C and SPI control ports. As initial patch, this patch only adds the support for I2C. ] Signed-off-by: Nicolin Chen guangyu.c

[PATCH 3/3] ARM: dts: imx: use dual-fifo sdma script for ssi

2013-10-29 Thread Nicolin Chen
Use dual-fifo sdma scripts instead of shared scripts for ssi on i.MX series. Signed-off-by: Nicolin Chen b42...@freescale.com --- arch/arm/boot/dts/imx51.dtsi | 4 ++-- arch/arm/boot/dts/imx53.dtsi | 4 ++-- arch/arm/boot/dts/imx6qdl.dtsi | 12 ++-- arch/arm/boot/dts/imx6sl.dtsi

[PATCH 0/3] Add dual-fifo mode support of i.MX ssi

2013-10-29 Thread Nicolin Chen
a direct dependency between them. When * ! applying them, we need to apply in one single branch. Otherwise, * ! it would break currect branches. Nicolin Chen (3): dma: imx-sdma: Add ssi dual fifo script support ASoC: fsl_ssi: Add dual fifo mode support ARM: dts: imx: use dual-fifo sdma script

[PATCH 1/3] dma: imx-sdma: Add ssi dual fifo script support

2013-10-29 Thread Nicolin Chen
There's a script for SSI missing in current sdma script list. Thus add it. This script would allow SSI use its dual fifo mode to transimit/receive data without occasional hardware underrun/overrun. This patch also fixed a counting error for total number of scripts. Signed-off-by: Nicolin Chen

[PATCH 2/3] ASoC: fsl_ssi: Add dual fifo mode support

2013-10-29 Thread Nicolin Chen
By enabling dual fifo mode, it would allow SSI enter a better performance to transimit/receive data without occasional hardware underrun/overrun. [ Passed compile-test with mpc85xx_defconfig ] Signed-off-by: Nicolin Chen b42...@freescale.com --- sound/soc/fsl/fsl_ssi.c | 24

Re: [PATCH 1/3] dma: imx-sdma: Add ssi dual fifo script support

2013-10-29 Thread Nicolin Chen
a version check and add those new scripts first? Thank you, Nicolin Chen Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49

[b42...@freescale.com: Re: [PATCH 1/3] dma: imx-sdma: Add ssi dual fifo script support]

2013-10-30 Thread Nicolin Chen
Just found that I missed Sascha's mail address in my TO list of last reply. So resend it. And sorry for the duplicated mails. - Forwarded message from Nicolin Chen b42...@freescale.com - Date: Wed, 30 Oct 2013 12:48:48 +0800 From: Nicolin Chen b42...@freescale.com Subject: Re: [PATCH 1/3

[PATCH v2 0/4] Add dual-fifo mode support of i.MX ssi

2013-10-31 Thread Nicolin Chen
. * * ! This series of patches has a direct dependency between them. When * ! applying them, we need to apply in one single branch. Otherwise, * ! it would break currect branches. Nicolin Chen (4): dma: imx-sdma: Add sdma firmware version 2 support dma: imx-sdma: Add new dma type for ssi dual fifo

[PATCH v2 4/4] ARM: dts: imx: use dual-fifo sdma script for ssi

2013-10-31 Thread Nicolin Chen
Use dual-fifo sdma scripts instead of shared scripts for ssi on i.MX series. Signed-off-by: Nicolin Chen b42...@freescale.com --- arch/arm/boot/dts/imx51.dtsi | 4 ++-- arch/arm/boot/dts/imx53.dtsi | 4 ++-- arch/arm/boot/dts/imx6qdl.dtsi | 12 ++-- arch/arm/boot/dts/imx6sl.dtsi

[PATCH v2 2/4] dma: imx-sdma: Add new dma type for ssi dual fifo script

2013-10-31 Thread Nicolin Chen
This patch adds a new DMA_TYPE for SSI dual FIFO script, included in SDMA firmware version 2. This script would allow SSI use dual fifo mode to transimit/receive data without occasional hardware underrun/overrun. Signed-off-by: Nicolin Chen b42...@freescale.com --- Documentation/devicetree

[PATCH v2 1/4] dma: imx-sdma: Add sdma firmware version 2 support

2013-10-31 Thread Nicolin Chen
On i.MX5/6 series, SDMA is using new version firmware to support SSI dual FIFO feature and HDMI Audio (i.MX6Q/DL only). Thus add it. Signed-off-by: Nicolin Chen b42...@freescale.com --- drivers/dma/imx-sdma.c | 15 ++- include/linux/platform_data/dma-imx-sdma.h

[PATCH v2 3/4] ASoC: fsl_ssi: Add dual fifo mode support

2013-10-31 Thread Nicolin Chen
By enabling dual fifo mode, it would allow SSI enter a better performance to transimit/receive data without occasional hardware underrun/overrun. [ Passed compile-test with mpc85xx_defconfig ] Signed-off-by: Nicolin Chen b42...@freescale.com --- sound/soc/fsl/fsl_ssi.c | 24

Re: [PATCH v2 3/4] ASoC: fsl_ssi: Add dual fifo mode support

2013-10-31 Thread Nicolin Chen
; ssi_private-dma_params_rx.maxburst = ~0x1; I'll use this in v3. Thank you! Nicolin Chen Regards, Philippe -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

[PATCH v3 0/4] Add dual-fifo mode support of i.MX ssi

2013-10-31 Thread Nicolin Chen
. Otherwise, * ! it would break currect branches. Nicolin Chen (4): dma: imx-sdma: Add sdma firmware version 2 support dma: imx-sdma: Add new dma type for ssi dual fifo script ASoC: fsl_ssi: Add dual fifo mode support ARM: dts: imx: use dual-fifo sdma script for ssi .../devicetree

[PATCH v3 2/4] dma: imx-sdma: Add new dma type for ssi dual fifo script

2013-10-31 Thread Nicolin Chen
This patch adds a new DMA_TYPE for SSI dual FIFO script, included in SDMA firmware version 2. This script would allow SSI use dual fifo mode to transimit/receive data without occasional hardware underrun/overrun. Signed-off-by: Nicolin Chen b42...@freescale.com --- Documentation/devicetree

[PATCH v3 3/4] ASoC: fsl_ssi: Add dual fifo mode support

2013-10-31 Thread Nicolin Chen
By enabling dual fifo mode, it would allow SSI enter a better performance to transimit/receive data without occasional hardware underrun/overrun. [ Passed compile-test with mpc85xx_defconfig ] Signed-off-by: Nicolin Chen b42...@freescale.com --- sound/soc/fsl/fsl_ssi.c | 22

[PATCH v3 4/4] ARM: dts: imx: use dual-fifo sdma script for ssi

2013-10-31 Thread Nicolin Chen
Use dual-fifo sdma scripts instead of shared scripts for ssi on i.MX series. Signed-off-by: Nicolin Chen b42...@freescale.com --- arch/arm/boot/dts/imx51.dtsi | 4 ++-- arch/arm/boot/dts/imx53.dtsi | 4 ++-- arch/arm/boot/dts/imx6qdl.dtsi | 12 ++-- arch/arm/boot/dts/imx6sl.dtsi

[PATCH v3 1/4] dma: imx-sdma: Add sdma firmware version 2 support

2013-10-31 Thread Nicolin Chen
On i.MX5/6 series, SDMA is using new version firmware to support SSI dual FIFO feature and HDMI Audio (i.MX6Q/DL only). Thus add it. Signed-off-by: Nicolin Chen b42...@freescale.com --- drivers/dma/imx-sdma.c | 15 ++- include/linux/platform_data/dma-imx-sdma.h

[PATCH][RESEND] lib/genalloc: add a helper function for DMA buffer allocation

2013-10-31 Thread Nicolin Chen
When using pool space for DMA buffer, there might be duplicated calling of gen_pool_alloc() and gen_pool_virt_to_phys() in each implementation. Thus it's better to add a simple helper function, a compatible one to the common dma_alloc_coherent(), to save some code. Signed-off-by: Nicolin Chen

[PATCH v4 2/4] dma: imx-sdma: Add new dma type for ssi dual fifo script

2013-10-31 Thread Nicolin Chen
This patch adds a new DMA_TYPE for SSI dual FIFO script, included in SDMA firmware version 2. This script would allow SSI use dual fifo mode to transimit/receive data without occasional hardware underrun/overrun. Signed-off-by: Nicolin Chen b42...@freescale.com --- Documentation/devicetree

[PATCH v4 4/4] ARM: dts: imx: use dual-fifo sdma script for ssi

2013-10-31 Thread Nicolin Chen
Use dual-fifo sdma scripts instead of shared scripts for ssi on i.MX series. Signed-off-by: Nicolin Chen b42...@freescale.com --- arch/arm/boot/dts/imx51.dtsi | 4 ++-- arch/arm/boot/dts/imx53.dtsi | 4 ++-- arch/arm/boot/dts/imx6qdl.dtsi | 12 ++-- arch/arm/boot/dts/imx6sl.dtsi

[PATCH v4 3/4] ASoC: fsl_ssi: Add dual fifo mode support

2013-10-31 Thread Nicolin Chen
By enabling dual fifo mode, it would allow SSI enter a better performance to transimit/receive data without occasional hardware underrun/overrun. [ Passed compile-test with mpc85xx_defconfig ] Signed-off-by: Nicolin Chen b42...@freescale.com --- sound/soc/fsl/fsl_ssi.c | 18

[PATCH v4 1/4] dma: imx-sdma: Add sdma firmware version 2 support

2013-10-31 Thread Nicolin Chen
On i.MX5/6 series, SDMA is using new version firmware to support SSI dual FIFO feature and HDMI Audio (i.MX6Q/DL only). Thus add it. Signed-off-by: Nicolin Chen b42...@freescale.com --- drivers/dma/imx-sdma.c | 15 ++- include/linux/platform_data/dma-imx-sdma.h

[PATCH v4 0/4] Add dual-fifo mode support of i.MX ssi

2013-10-31 Thread Nicolin Chen
of patches has a direct dependency between them. When * ! applying them, we need to apply to one single branch. Otherwise, * ! it would break currect branches. Nicolin Chen (4): dma: imx-sdma: Add sdma firmware version 2 support dma: imx-sdma: Add new dma type for ssi dual fifo script ASoC: fsl_ssi

Re: [PATCH][RESEND] lib/genalloc: add a helper function for DMA buffer allocation

2013-10-31 Thread Nicolin Chen
Sir, On Thu, Oct 31, 2013 at 02:26:19PM -0700, Andrew Morton wrote: On Thu, 31 Oct 2013 17:16:07 +0800 Nicolin Chen b42...@freescale.com wrote: When using pool space for DMA buffer, there might be duplicated calling of gen_pool_alloc() and gen_pool_virt_to_phys() in each implementation

Re: [PATCHv2 1/8] ALSA: Add SAI SoC Digital Audio Interface driver.

2013-11-01 Thread Nicolin Chen
regards, Nicolin Chen diff --git a/sound/soc/fsl/fsl-sai.h b/sound/soc/fsl/fsl-sai.h new file mode 100644 index 000..1637679 --- /dev/null +++ b/sound/soc/fsl/fsl-sai.h @@ -0,0 +1,120 @@ +/* + * Copyright 2012-2013 Freescale Semiconductor, Inc. + * + * This program is free software; you

Re: [PATCH v4 0/4] Add dual-fifo mode support of i.MX ssi

2013-11-01 Thread Nicolin Chen
for adding for me. Much obliged. On Thu, Oct 31, 2013 at 09:44:12PM +0800, Nicolin Chen wrote: Nicolin Chen (4): dma: imx-sdma: Add sdma firmware version 2 support dma: imx-sdma: Add new dma type for ssi dual fifo script ASoC: fsl_ssi: Add dual fifo mode support ARM: dts: imx: use dual

Re: [PATCHv2 5/8] ASoC: SGTL5000: Enhance the SGTL5000 codec driver about regulator.

2013-11-01 Thread Nicolin Chen
or figure out why your System would hang with current sgtl5000 driver. If it really has a critical bug in its regulator-related code, I think you can then make a greater contribution by fixing the bug rather than bypassing it. Best regards, Nicolin Chen static int ldo_regulator_register(struct

Re: [PATCHv2 6/8] ASoC: fsl: add SGTL5000 based audio machine driver.

2013-11-01 Thread Nicolin Chen
regards, Nicolin Chen +{ + int ret; + struct device *dev = rtd-card-dev; + + ret = snd_soc_dai_set_sysclk(rtd-codec_dai, SGTL5000_SYSCLK, + sysclk_rate, SND_SOC_CLOCK_IN); + if (ret) { + dev_err(dev, could not set codec driver clock

[PATCH 1/8] lib/genalloc: add a helper function for DMA buffer allocation

2013-11-01 Thread Nicolin Chen
When using pool space for DMA buffer, there might be duplicated calling of gen_pool_alloc() and gen_pool_virt_to_phys() in each implementation. Thus it's better to add a simple helper function, a compatible one to the common dma_alloc_coherent(), to save some code. Signed-off-by: Nicolin Chen

[PATCH 0/8] Add and implement gen_pool_dma_alloc()

2013-11-01 Thread Nicolin Chen
/genalloc: [Okay] ARM: davinci: [Untested] dma: mmp_tdma: [Untested] [media] coda: [Untested] uio: uio_pruss: [Untested] ALSA: memalloc: [Tested] by Nicolin Chen with i.MX6Q SabreSD ASoC: davinci: [Untested] ASoC: pxa: use [Untested] Nicolin Chen (8): lib/genalloc: add a helper function

[PATCH 5/8] uio: uio_pruss: use gen_pool_dma_alloc() to allocate sram memory

2013-11-01 Thread Nicolin Chen
Since gen_pool_dma_alloc() is introduced, we implement it to simplify code. Signed-off-by: Nicolin Chen b42...@freescale.com --- drivers/uio/uio_pruss.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/uio/uio_pruss.c b/drivers/uio/uio_pruss.c index f519da9

  1   2   3   4   5   6   7   8   9   10   >