[PATCH 0/4] Add freescale ftm pwm driver for Vybrid VF610 TOWER

2013-08-20 Thread Xiubo Li
to comment the dt bindinds. This patch series is based on linux-next and has been tested on Vybrid VF610TWR board using device tree. Best Regards, Xiubo Li -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

[PATCH 3/4] ARM: dts: Enables ftm pwm device for Vybrid VF610 TOWER board.

2013-08-20 Thread Xiubo Li
Signed-off-by: Xiubo Li li.xi...@freescale.com --- arch/arm/boot/dts/vf610-twr.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts index b3905f5..6f93d8d 100644 --- a/arch/arm/boot/dts/vf610-twr.dts +++ b

[PATCH 4/4] Documentation: Add device tree bindings for Freescale FTM PWM

2013-08-20 Thread Xiubo Li
Signed-off-by: Xiubo Li li.xi...@freescale.com --- .../devicetree/bindings/pwm/fsl-ftm-pwm.txt| 52 ++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/fsl-ftm-pwm.txt diff --git a/Documentation/devicetree/bindings/pwm/fsl-ftm

[PATCH 1/4] pwm: add freescale ftm pwm driver support

2013-08-20 Thread Xiubo Li
Add freescale ftm pwm driver support. The ftm pwm device can be found on Vybrid VF610 and Layerscape LS-1 SoCs. Signed-off-by: Xiubo Li li.xi...@freescale.com Signed-off-by: Jingchang Lu b35...@freescale.com --- drivers/pwm/Kconfig | 10 + drivers/pwm/Makefile | 1 + drivers/pwm

[PATCH 2/4] ARM: dts: Add Freescale ftm pwm node for VF610.

2013-08-20 Thread Xiubo Li
Signed-off-by: Xiubo Li li.xi...@freescale.com --- arch/arm/boot/dts/vf610.dtsi | 83 +++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vf610.dtsi b/arch/arm/boot/dts/vf610.dtsi index 67d929c..b3a0b6e 100644 --- a/arch/arm

[PATCHv4 4/4] Documentation: Add device tree bindings for Freescale FTM PWM.

2013-09-13 Thread Xiubo Li
This adds the Document for Freescale FTM PWM driver under Documentation/devicetree/bindings/pwm/. Signed-off-by: Xiubo Li li.xi...@freescale.com --- .../devicetree/bindings/pwm/pwm-fsl-ftm.txt| 36 ++ 1 file changed, 36 insertions(+) create mode 100644 Documentation

[PATCHv4 1/4] pwm: Add Freescale FTM PWM driver support

2013-09-13 Thread Xiubo Li
The FTM PWM device can be found on Vybrid VF610 Tower and Layerscape LS-1 SoCs. Signed-off-by: Xiubo Li li.xi...@freescale.com Signed-off-by: Jingchang Lu b35...@freescale.com Reviewed-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/pwm/Kconfig | 10 + drivers/pwm/Makefile | 1

[PATCHv4 3/4] ARM: dts: Enables FTM PWM device for Vybrid VF610 TOWER board.

2013-09-13 Thread Xiubo Li
Selecting system clock as the counter source clock by default. Signed-off-by: Xiubo Li li.xi...@freescale.com --- arch/arm/boot/dts/vf610-twr.dts | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts index

[PATCHv4 0/4] Add Freescale FTM PWM driver.

2013-09-13 Thread Xiubo Li
Hello, This patch series is the Freescale FTM PWM implementation. And there are 8 channels most supported by the FTM PWM. This implementation is only compatible with device tree definition. This patch series is based on linux-next and has been tested on Vybrid VF610 Tower board using device

[PATCHv4 2/4] ARM: dts: Add Freescale FTM PWM node for VF610.

2013-09-13 Thread Xiubo Li
This adds devicetree node for VF610, and there are 8 channels supported by default. Signed-off-by: Xiubo Li li.xi...@freescale.com --- arch/arm/boot/dts/vf610.dtsi | 83 +++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts

[PATCHv1 0/8] ALSA: Add SAI driver and enable SGT15000 codec.

2013-10-17 Thread Xiubo Li
This patch series is mostly Freescale's SAI SoC Digital Audio Interface driver implementation. And the implementation is only compatible with device tree definition. This patch series is based on linux-next and has been tested on Vybrid VF610 Tower board using device tree. Added in v1: - Add

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

2013-10-17 Thread Xiubo Li
-by: Xiubo Li li.xi...@freescale.com --- sound/soc/fsl/Kconfig | 19 ++ sound/soc/fsl/Makefile | 7 + sound/soc/fsl/fsl-pcm-dma.c | 51 + sound/soc/fsl/fsl-sai.c | 515 sound/soc/fsl/fsl-sai.h | 127 +++ 5 files changed

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

2013-10-17 Thread Xiubo Li
When the CONFIG_REGULATOR is disabled there will be some warnings printed out. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/codecs/sgtl5000.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000

[PATCHv1 2/8] ARM: dts: Add Freescale SAI ALSA SoC Digital Audio Interface node for VF610.

2013-10-17 Thread Xiubo Li
This patch add the SAI's edma mux Tx and Rx support. Signed-off-by: Jingchang Lu b35...@freescale.com Signed-off-by: Xiubo Li li.xi...@freescale.com --- arch/arm/boot/dts/vf610.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vf610.dtsi b/arch/arm

[PATCHv1 4/8] Documentation: Add device tree bindings for Freescale SAI.

2013-10-17 Thread Xiubo Li
This adds the Document for Freescale SAI driver under Documentation/devicetree/bindings/sound/. Signed-off-by: Xiubo Li li.xi...@freescale.com --- .../devicetree/bindings/sound/fsl-sai.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644 Documentation

[PATCHv1 6/8] ASoC: fsl: add SGT15000 based audio machine driver.

2013-10-17 Thread Xiubo Li
This is the SGTl5000 codec based audio driver supported with both playback and capture dai link implemention. This implementation is only compatible with device tree definition. Signed-off-by: Alison Wang b18...@freescale.com Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/fsl

[PATCHv1 8/8] Documentation: Add device tree bindings for Freescale VF610 sound.

2013-10-17 Thread Xiubo Li
This adds the Document for Freescale VF610 sound driver under Documentation/devicetree/bindings/sound/. Signed-off-by: Xiubo Li li.xi...@freescale.com --- .../devicetree/bindings/sound/fsl-sgtl5000.txt | 52 ++ 1 file changed, 52 insertions(+) create mode 100644

[PATCHv1 7/8] ARM: dts: Enable SGT15000 codec based audio driver node for VF610.

2013-10-17 Thread Xiubo Li
This patch add and enable SGT15000 codec support, and also specified the corresponding SAI node. Signed-off-by: Xiubo Li li.xi...@freescale.com Signed-off-by: Alison Wang b18...@freescale.com --- arch/arm/boot/dts/vf610-twr.dts | 19 +++ 1 file changed, 19 insertions(+) diff

[PATCHv1 3/8] ARM: dts: Enables SAI ALSA SoC DAI device for Vybrid VF610 TOWER board.

2013-10-17 Thread Xiubo Li
This patch add and enable SAI device. Signed-off-by: Xiubo Li li.xi...@freescale.com --- arch/arm/boot/dts/vf610-twr.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts index 1a58678..e4106dd 100644 --- a/arch/arm/boot

[PATCHv1] ASoC: SGTL5000: Fix kernel failed while getting regulator consumers

2013-11-26 Thread Xiubo Li
-000a: Failed to get supply 'VDDD': -19 Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/codecs/sgtl5000.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 1f4093f..1a2d35a 100644

[PATCH v2] ASoC: SGTL5000: Fix kernel failed while trying to get optional VDDD supply.

2013-11-27 Thread Xiubo Li
device. sgtl5000 0-000a: Failed to get supply 'VDDD': -19 Here use regulator_get_optional() trying to look at the fact that whether the external VDDD supply is used or not. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/codecs/sgtl5000.c | 25 ++--- 1 file changed

[RFC] pwm: Add Freescale FTM PWM driver support

2013-12-02 Thread Xiubo Li
The FTM PWM device can be found on Vybrid VF610 Tower and Layerscape LS-1 SoCs. Signed-off-by: Xiubo Li li.xi...@freescale.com Signed-off-by: Alison Wang b18...@freescale.com Signed-off-by: Jingchang Lu b35...@freescale.com --- I'm sending the RFC patch about the FTM IP block registers read

[PATCHv6 1/4] pwm: Add Freescale FTM PWM driver support

2013-11-11 Thread Xiubo Li
The FTM PWM device can be found on Vybrid VF610 Tower and Layerscape LS-1 SoCs. Signed-off-by: Xiubo Li li.xi...@freescale.com Signed-off-by: Alison Wang b18...@freescale.com Signed-off-by: Jingchang Lu b35...@freescale.com Reviewed-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/pwm/Kconfig

[PATCHv6 2/4] ARM: dts: Add Freescale FTM PWM node for VF610.

2013-11-11 Thread Xiubo Li
This adds devicetree node for VF610, and there are 8 channels supported by default. Signed-off-by: Xiubo Li li.xi...@freescale.com Reviewed-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/boot/dts/vf610.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts

[PATCHv6 4/4] Documentation: Add device tree bindings for Freescale FTM PWM.

2013-11-11 Thread Xiubo Li
This adds the Document for Freescale FTM PWM driver under Documentation/devicetree/bindings/pwm/. Signed-off-by: Xiubo Li li.xi...@freescale.com Reviewed-by: Sascha Hauer s.ha...@pengutronix.de Acked-by: Kumar Gala ga...@codeaurora.org --- .../devicetree/bindings/pwm/pwm-fsl-ftm.txt| 29

[PATCHv6 0/4] Add Freescale FTM PWM driver.

2013-11-11 Thread Xiubo Li
Hello Therry, The series of patches for this version has been reviewed and acked already. To see each patch for detail. -- -- This patch series is the Freescale FTM PWM implementation. And there are 8 channels most supported by the FTM PWM. This implementation

[PATCHv6 3/4] ARM: dts: Enables FTM PWM device for Vybrid VF610 TOWER board.

2013-11-11 Thread Xiubo Li
Selecting system clock as the counter source clock by default. Signed-off-by: Xiubo Li li.xi...@freescale.com Reviewed-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/boot/dts/vf610-twr.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm

[PATCH] ASoC: core: add snd_soc_dai_set_tdm_slot_xlate()

2014-02-23 Thread Xiubo Li
The parameters of rx_mask and tx_mask has no use for snd_soc_dai_set_tdm_slot(), because they could be generated by {XXX_ .}of_xlate_tdm_slot_mask(). This patch add snd_soc_dai_set_tdm_slot_xlate() which will replace the snd_soc_dai_set_tdm_slot() eventually. Signed-off-by: Xiubo Li li.xi

[PATCH] ASoC: fsl-sai: fix Freescale SAI DAI format setting.

2014-02-25 Thread Xiubo Li
o Fix some bugs of fsl_sai_set_dai_fmt_tr(). o Add SND_SOC_DAIFMT_LEFT_J support. o Add SND_SOC_DAIFMT_CBS_CFM support. o Add SND_SOC_DAIFMT_CBM_CFS support. o And SND_SOC_DAIFMT_RIGHT_J need to be done in the future. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/fsl/fsl_sai.c

[PATCH 00/10] Simplify the code of TDM slot setting

2014-02-25 Thread Xiubo Li
Xiubo Li (10): ASoC: core: Add snd_soc_dai_set_tdm_slot_xlate(). ASoC: fsl-utils: Add fsl_asoc_of_xlate_tdm_slot_mask() support. ASoC: fsl-esai: Add .of_xlate_tdm_slot_mask() support. ASoC: fsl-ssi: Add .of_xlate_tdm_slot_mask() support. ASoC: imx-ssi: Add .of_xlate_tdm_slot_mask

[PATCH 03/10] ASoC: fsl-esai: Add .of_xlate_tdm_slot_mask() support.

2014-02-25 Thread Xiubo Li
This patch add .of_xlate_tdm_slot_mask support for ESAI, and this will generate the TDM slot TX and RX masks. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/fsl/Kconfig| 1 + sound/soc/fsl/fsl_esai.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/sound/soc/fsl/Kconfig b

[PATCH 02/10] ASoC: fsl-utils: Add fsl_asoc_of_xlate_tdm_slot_mask() support.

2014-02-25 Thread Xiubo Li
-by: Xiubo Li li.xi...@freescale.com --- sound/soc/fsl/fsl_utils.c | 27 +++ sound/soc/fsl/fsl_utils.h | 4 +++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_utils.c b/sound/soc/fsl/fsl_utils.c index b9e42b5..b536eb1 100644 --- a/sound/soc/fsl

[PATCH 01/10] ASoC: core: Add snd_soc_dai_set_tdm_slot_xlate().

2014-02-25 Thread Xiubo Li
. And for some CODECs or CPU DAI devices there needed much more work to support the .of_xlate_tdm_slot_mask feature. This patch can be applied to most use case of the current DAI drivers. Signed-off-by: Xiubo Li li.xi...@freescale.com --- include/sound/soc-dai.h | 3 +++ sound/soc/soc-core.c

[PATCH 08/10] ASoC: blackfin: bf5xx-ad193x: Use snd_soc_dai_set_tdm_slot_xlate()

2014-02-25 Thread Xiubo Li
Use snd_soc_dai_set_tdm_slot_xlate instead of snd_soc_dai_set_tdm_slot. This will use the default snd_soc_of_xlate_tdm_slot_mask to generate the TDM slot TX/RX mask using the slot parameter. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/blackfin/bf5xx-ad193x.c | 4 ++-- 1 file

[PATCH 05/10] ASoC: imx-ssi: Add .of_xlate_tdm_slot_mask() support.

2014-02-25 Thread Xiubo Li
This patch add .of_xlate_tdm_slot_mask support for IMX SSI, and this will generate the TDM slot TX and RX masks. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/fsl/Kconfig | 1 + sound/soc/fsl/imx-ssi.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/sound/soc/fsl/Kconfig

[PATCH 06/10] ASoC: simple-card: Use snd_soc_dai_set_tdm_slot_xlate()

2014-02-25 Thread Xiubo Li
Use snd_soc_dai_set_tdm_slot_xlate instead of snd_soc_dai_set_tdm_slot. This will use the DAI driver specified .of_xlate_tdm_slot_mask to generate the TDM slot TX/RX mask, or the default snd_soc_of_xlate_tdm_slot_mask will be used instead if it's absent. Signed-off-by: Xiubo Li li.xi

[PATCH 04/10] ASoC: fsl-ssi: Add .of_xlate_tdm_slot_mask() support.

2014-02-25 Thread Xiubo Li
This patch add .of_xlate_tdm_slot_mask support for SSI, and this will generate the TDM slot TX and RX masks. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/fsl/Kconfig | 1 + sound/soc/fsl/fsl_ssi.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/sound/soc/fsl/Kconfig b

[PATCH 10/10] ASoC: fsl: wm1133-ev1: Use snd_soc_dai_set_tdm_slot_xlate()

2014-02-25 Thread Xiubo Li
Use snd_soc_dai_set_tdm_slot_xlate instead of snd_soc_dai_set_tdm_slot. This will use the default snd_soc_of_xlate_tdm_slot_mask to generate the TDM slot TX/RX mask using the slot parameter. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/fsl/wm1133-ev1.c | 11 +-- 1 file

[PATCH 09/10] ASoC: fsl: eukrea-tlv320: Use snd_soc_dai_set_tdm_slot_xlate()

2014-02-25 Thread Xiubo Li
Use snd_soc_dai_set_tdm_slot_xlate instead of snd_soc_dai_set_tdm_slot. This will use the default snd_soc_of_xlate_tdm_slot_mask to generate the TDM slot TX/RX mask using the slot parameter. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/fsl/eukrea-tlv320.c | 2 +- 1 file changed

[PATCH 07/10] ASoC: blackfin: bf5xx-ad1836: Use snd_soc_dai_set_tdm_slot_xlate()

2014-02-25 Thread Xiubo Li
Use snd_soc_dai_set_tdm_slot_xlate instead of snd_soc_dai_set_tdm_slot. This will use the default snd_soc_of_xlate_tdm_slot_mask to generate the TDM slot TX/RX mask using the slot parameter. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/blackfin/bf5xx-ad1836.c | 2 +- 1 file

[PATCH] ASoC: fsl-sai: Add SND_SOC_DAIFMT_DSP_A/B support.

2014-02-26 Thread Xiubo Li
o Add SND_SOC_DAIFMT_DSP_A support. o Add SND_SOC_DAIFMT_DSP_B support. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/fsl/fsl_sai.c | 45 ++--- sound/soc/fsl/fsl_sai.h | 1 + 2 files changed, 43 insertions(+), 3 deletions(-) diff --git

[PATCH] ASoC: io: Clean up snd_soc_codec_set_cache_io()

2014-02-26 Thread Xiubo Li
Now that all users have been converted to regmap and the config.reg_bits and config.val_bits can be setted by each user through regmap core API. So these two params are redundant here. Signed-off-by: Xiubo Li li.xi...@freescale.com --- @Mark and All I'm also thinking could we just discard

[PATCHv10 3/4] ARM: dts: vf610-twr: Enables FTM PWM device.

2014-02-27 Thread Xiubo Li
Signed-off-by: Xiubo Li li.xi...@freescale.com Reviewed-by: Sascha Hauer s.ha...@pengutronix.de Reviewed-by: Yuan Yao yao.y...@freescale.com --- arch/arm/boot/dts/vf610-twr.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610

[PATCHv10 4/4] Documentation: Add device tree bindings for Freescale FTM PWM.

2014-02-27 Thread Xiubo Li
This adds the binding documentation for Freescale FlexTimer Module (FTM) PWM driver under Documentation/devicetree/bindings/pwm/. Signed-off-by: Xiubo Li li.xi...@freescale.com Reviewed-by: Sascha Hauer s.ha...@pengutronix.de Reviewed-by: Yuan Yao yao.y...@freescale.com Acked-by: Kumar Gala ga

[PATCHv10 0/4] Add Freescale FTM PWM support

2014-02-27 Thread Xiubo Li
Changed in V10: Fix some bugs and adjust the code from Thierry's comments. Xiubo Li (4): pwm: Add Freescale FTM PWM driver support ARM: dts: vf610: Add Freescale FTM PWM node. ARM: dts: vf610-twr: Enables FTM PWM device. Documentation: Add device tree bindings for Freescale FTM PWM

[PATCHv10 2/4] ARM: dts: vf610: Add Freescale FTM PWM node.

2014-02-27 Thread Xiubo Li
This adds devicetree node for VF610, and there are 8 channels supported. Signed-off-by: Xiubo Li li.xi...@freescale.com Reviewed-by: Sascha Hauer s.ha...@pengutronix.de Reviewed-by: Yuan Yao yao.y...@freescale.com --- arch/arm/boot/dts/vf610.dtsi | 13 + 1 file changed, 13 insertions

[PATCHv10 1/4] pwm: Add Freescale FTM PWM driver support

2014-02-27 Thread Xiubo Li
The FTM PWM device can be found on Vybrid VF610 Tower and Layerscape LS-1 SoCs. Signed-off-by: Xiubo Li li.xi...@freescale.com Signed-off-by: Alison Wang b18...@freescale.com Signed-off-by: Jingchang Lu b35...@freescale.com Reviewed-by: Sascha Hauer s.ha...@pengutronix.de Reviewed-by: Yuan Yao

[PATCH 3/3] ASoC: SGTL5000: Simplify ASoC probe code.

2014-02-27 Thread Xiubo Li
Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/codecs/sgtl5000.c | 8 1 file changed, 8 deletions(-) diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index ab4754a..d3ed1be 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c

[PATCH 1/3] ASoC: io: Clean up snd_soc_codec_set_cache_io()

2014-02-27 Thread Xiubo Li
Now that all users have been converted to regmap and the config.reg_bits and config.val_bits can be setted by each user through regmap core API. So these two params are redundant here. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/soc-io.c | 5 - 1 file changed, 5 deletions

[PATCH 2/3] ASoC: core: Set the default I/O up try regmap.

2014-02-27 Thread Xiubo Li
of snd_soc_codec_set_cache_io() will be redundant, while if one CODEC driver needed to set it's own I/O, then it can rewrite the default ones. Then could we just discard the snd_soc_codec_set_cache_io() from the CODEC drivers' ASoC probe to simplify the code. Signed-off-by: Xiubo Li li.xi...@freescale.com

[PATCH 0/3] To simplify the code for ASoC probe.

2014-02-27 Thread Xiubo Li
Xiubo Li (3): ASoC: io: Clean up snd_soc_codec_set_cache_io() ASoC: core: Set the default I/O up try regmap. ASoC: SGTL5000: Simplify ASoC probe code. sound/soc/codecs/sgtl5000.c | 8 sound/soc/soc-core.c| 8 sound/soc/soc-io.c | 5 - 3 files changed

[PATCH] ASoC: cache: Do the codec-reg_cache zero pionter check

2014-02-27 Thread Xiubo Li
doing the zero pionter check of it. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/soc-cache.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sound/soc/soc-cache.c b/sound/soc/soc-cache.c index 375dc6d..bfed3e4 100644 --- a/sound/soc/soc-cache.c

[PATCH 0/2] Simplify the CODEC ASoC probe code.

2014-02-27 Thread Xiubo Li
Most of the CODECs' ASoC probe code could be simplified directly, while for wm5110 and wm8997 CODEC drivers need much more research and examination. Xiubo Li (2): ASoC: codec: Simplify ASoC probe code. ASoC: io: Remove reduntant params of snd_soc_codec_set_cache_io() include/sound/soc.h

[PATCH 1/2] ASoC: codec: Simplify ASoC probe code.

2014-02-27 Thread Xiubo Li
Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/codecs/ad193x.c| 7 --- sound/soc/codecs/adau1373.c | 6 -- sound/soc/codecs/adav80x.c | 6 -- sound/soc/codecs/ak4535.c| 6 -- sound/soc/codecs/ak4641.c| 6 -- sound/soc

[PATCH 2/2] ASoC: io: Remove reduntant params of snd_soc_codec_set_cache_io()

2014-02-27 Thread Xiubo Li
Now that all users have been converted to regmap and the config.reg_bits and config.val_bits can be setted by each user through regmap core API. So these two params are redundant here. Signed-off-by: Xiubo Li li.xi...@freescale.com --- include/sound/soc.h | 1 - sound/soc/codecs/wm5110.c

[PATCHv2 2/3] ASoC: io: New signature for snd_soc_codec_set_cache_io()

2014-02-28 Thread Xiubo Li
regmap *regmap to simplify the code. Signed-off-by: Xiubo Li li.xi...@freescale.com --- include/sound/soc.h| 7 +-- sound/soc/codecs/cq93vc.c | 3 +-- sound/soc/codecs/mc13783.c | 4 ++-- sound/soc/codecs/tlv320dac33.c | 1 - sound/soc/codecs/wm5102.c | 4

[PATCHv2 3/3] ASoC: core: Fix check before setting default I/O up try regmap

2014-02-28 Thread Xiubo Li
things get confused by the attempt to default.) Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/soc-core.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 6880fad..a14155b 100644 --- a/sound/soc/soc-core.c

[PATCHv2 1/3] ASoC: codec: Simplify ASoC probe code.

2014-02-28 Thread Xiubo Li
Signed-off-by: Xiubo Li li.xi...@freescale.com --- @Mark, @Lars, @All, I have checked for each driver about the following issue from Lars: Just removing the set_cache_io() call will not work for all drivers. There are some MFD child devices which use regmap from the parent device. So

[PATCHv2 0/3] Simplify the CODEC ASoC probe code.

2014-02-28 Thread Xiubo Li
Xiubo Li (3): ASoC: codec: Simplify ASoC probe code. ASoC: io: New signature for snd_soc_codec_set_cache_io() ASoC: core: Fix check before setting default I/O up try regmap include/sound/soc.h | 7 +- sound/soc/codecs/ad193x.c| 7 -- sound/soc/codecs/adau1373

[PATCHv3 2/3] ASoC: io: New signature for snd_soc_codec_set_cache_io()

2014-03-02 Thread Xiubo Li
regmap *regmap to simplify the code. Signed-off-by: Xiubo Li li.xi...@freescale.com --- include/sound/soc.h| 7 +-- sound/soc/codecs/cq93vc.c | 3 +-- sound/soc/codecs/mc13783.c | 4 ++-- sound/soc/codecs/tlv320dac33.c | 1 - sound/soc/codecs/wm5102.c | 4

[PATCHv3 3/3] ASoC: core: Fix check before setting default I/O up try regmap

2014-03-02 Thread Xiubo Li
Since the CODEC driver could specify its own I/O(read and write) while registering the CODEC for some reason, maybe the MFDs is used, etc. So just do check it, if they are not specified by CODEC driver then try to set up the default regmap I/O if regmap is used. Signed-off-by: Xiubo Li li.xi

[PATCHv3 1/3] ASoC: codec: Simplify ASoC probe code.

2014-03-02 Thread Xiubo Li
For some CODEC drivers like who act as the MFDs children are ignored by this patch. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/codecs/ad193x.c| 10 +- sound/soc/codecs/adau1373.c | 7 --- sound/soc/codecs/adav80x.c | 7 --- sound/soc/codecs

[PATCHv3 0/3] Simplify the CODEC ASoC probe code.

2014-03-02 Thread Xiubo Li
Mainly fix the warnings about unused variables caused by the first patch. Xiubo Li (3): ASoC: codec: Simplify ASoC probe code. ASoC: io: New signature for snd_soc_codec_set_cache_io() ASoC: core: Fix check before setting default I/O up try regmap include/sound/soc.h | 7

[PATCHv3 3/3] ASoC: core: Fix check before setting default I/O up try regmap

2014-03-02 Thread Xiubo Li
Since the CODEC driver could specify its own I/O(read and write) while registering the CODEC for some reason, maybe the MFDs is used, etc. So just do check it, if they are not specified by CODEC driver then try to set up the default regmap I/O if regmap is used. Signed-off-by: Xiubo Li li.xi

[PATCHv3 2/3] ASoC: io: New signature for snd_soc_codec_set_cache_io()

2014-03-02 Thread Xiubo Li
regmap *regmap to simplify the code. Signed-off-by: Xiubo Li li.xi...@freescale.com --- include/sound/soc.h| 7 +-- sound/soc/codecs/cq93vc.c | 3 +-- sound/soc/codecs/mc13783.c | 4 ++-- sound/soc/codecs/tlv320dac33.c | 1 - sound/soc/codecs/wm5102.c | 4

[PATCHv3 1/3] ASoC: codec: Simplify ASoC probe code.

2014-03-02 Thread Xiubo Li
For some CODEC drivers like who act as the MFDs children are ignored by this patch. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/codecs/ad193x.c| 10 +- sound/soc/codecs/adau1373.c | 7 --- sound/soc/codecs/adav80x.c | 7 --- sound/soc/codecs

[PATCHv3 0/3] Simplify the CODEC ASoC probe code.

2014-03-02 Thread Xiubo Li
Mainly fix the warnings about unused variables caused by the first patch. Xiubo Li (3): ASoC: codec: Simplify ASoC probe code. ASoC: io: New signature for snd_soc_codec_set_cache_io() ASoC: core: Fix check before setting default I/O up try regmap include/sound/soc.h | 7

[RFC][PATCH 0/3] Remove set_cache_io entirely from ASoC probe

2014-03-04 Thread Xiubo Li
Xiubo Li (3): ASoC: core: Move the default regmap I/O setting to snd_soc_register_codec() ASoc: codec: remove the set_cache_io() entirely from CODEC ASoC probe. ASoC: core: remove the default regmap I/O setting up from soc_probe_codec() include/sound/soc.h| 3 +++ sound

[RFC][PATCH 2/3] ASoc: codec: remove the set_cache_io() entirely from CODEC ASoC probe.

2014-03-04 Thread Xiubo Li
As we can set the CODEC I/O while snd_soc_register_codec(), so the calling of set_cache_io() from CODEC ASoC probe could be removed entirely. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/codecs/cq93vc.c | 6 -- sound/soc/codecs/mc13783.c | 10 ++ sound/soc/codecs

[RFC][PATCH 3/3] ASoC: core: remove the default regmap I/O setting up from soc_probe_codec()

2014-03-04 Thread Xiubo Li
Since all the CODEC drivers has using the snd_soc_register_codec() to set up the CODEC I/O while the CODEC probing, so this could be removed entirely. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/soc-core.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/sound/soc

[RFC][PATCH 1/3] ASoC: core: Move the default regmap I/O setting to snd_soc_register_codec()

2014-03-04 Thread Xiubo Li
Add the default regmap I/O setting to snd_soc_register_codec() while the CODEC is initialising, which will be called by CODEC driver device probe(), and then we can make set_cache_io() go away entirely from each CODEC ASoC probe. Signed-off-by: Xiubo Li li.xi...@freescale.com --- include/sound

[PATCH] drm/fb-helper: Do the mode_set.connectors ZERO_SIZE_PTR check

2014-03-06 Thread Xiubo Li
Since we cannot make sure the 'max_conn_count' will always be none zero from the users, and then if max_conn_count equals to zero, the kcalloc() will return ZERO_SIZE_PTR, which equals to ((void *)16). So this patch fix this via doing the zero pionter check of it. Signed-off-by: Xiubo Li li.xi

[PATCH v2] drm/fb-helper: Do the 'max_conn_count' zero check

2014-03-09 Thread Xiubo Li
of drm_fb_helper_init(). Signed-off-by: Xiubo Li li.xi...@freescale.com CC: Jani Nikula jani.nik...@linux.intel.com --- drivers/gpu/drm/drm_fb_helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 3d13ca6e2..a0d286c 100644

[PATCHv3 resend 2/3] ASoC: io: New signature for snd_soc_codec_set_cache_io()

2014-03-10 Thread Xiubo Li
regmap *regmap to simplify the code. Signed-off-by: Xiubo Li li.xi...@freescale.com --- This patch adds si476x.c and 88pm860x-codec.c. include/sound/soc.h | 7 +- sound/soc/codecs/88pm860x-codec.c | 3 +-- sound/soc/codecs/cq93vc.c | 3 +-- sound/soc/codecs/mc13783

[PATCHv3 resend 0/3] Simplify the CODEC ASoC probe code.

2014-03-10 Thread Xiubo Li
Resend this patch series, and this resend ones are based Lars's following patches: http://mailman.alsa-project.org/pipermail/alsa-devel/2014-March/073785.html http://mailman.alsa-project.org/pipermail/alsa-devel/2014-March/073786.html Xiubo Li (3): ASoC: codec: Simplify ASoC probe code

[PATCHv3 resend 1/3] ASoC: codec: Simplify ASoC probe code.

2014-03-10 Thread Xiubo Li
For some CODEC drivers like who act as the MFDs children are ignored by this patch. Signed-off-by: Xiubo Li li.xi...@freescale.com --- This patch has nothing changed. sound/soc/codecs/ad193x.c| 10 +- sound/soc/codecs/adau1373.c | 7 --- sound/soc/codecs

[PATCHv3 resend 3/3] ASoC: core: Fix check before setting default I/O up try regmap

2014-03-10 Thread Xiubo Li
Since the CODEC driver could specify its own I/O(read and write) while registering the CODEC for some reason, maybe the MFDs is used, etc. So just do check it, if they are not specified by CODEC driver then try to set up the default regmap I/O if regmap is used. Signed-off-by: Xiubo Li li.xi

[PATCH] of: Fix __of_device_is_available check

2014-01-12 Thread Xiubo Li
' property. So this add the device node check before checking the 'status' property's state, and if the device node is not exist, 0 will be returned. Signed-off-by: Xiubo Li li.xi...@freescale.com --- drivers/of/base.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/of/base.c b

[PATCHv2 2/6] ASoC: core: add snd_soc_get_widgets

2014-01-12 Thread Xiubo Li
Add widgets list getting. Signed-off-by: Xiubo Li li.xi...@freescale.com --- include/sound/soc.h | 1 + sound/soc/soc-core.c | 31 +++ 2 files changed, 32 insertions(+) diff --git a/include/sound/soc.h b/include/sound/soc.h index 23f9572..f352333 100644

[PATCHv2 5/6] ASoC: fsl: Add VF610 simple audio card widgets driver.

2014-01-12 Thread Xiubo Li
This is the SGTL5000 codec based off-CODEC widgets supports. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/fsl/Kconfig | 25 ++ sound/soc/fsl/Makefile| 3 +++ sound/soc/fsl/snd-soc-simple-card-vf610.c | 43

[PATCHv2 1/6] ASoC: core: add off-CODEC widgets list register/unregister

2014-01-12 Thread Xiubo Li
This will be need for some audio card, which maybe using the simple card and the off-CODEC widgets is needed. Signed-off-by: Xiubo Li li.xi...@freescale.com --- include/sound/soc.h | 10 ++ sound/soc/soc-core.c | 39 +++ 2 files changed, 49 insertions

[PATCHv2 3/6] ASoC: simple-card: simple audio card widgets getting

2014-01-12 Thread Xiubo Li
Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/generic/simple-card.c | 9 + 1 file changed, 9 insertions(+) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index b7dc63e..dbd93cc 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc

[PATCHv2 4/6] ASoC: simple-card: add sound-widgets usage

2014-01-12 Thread Xiubo Li
Signed-off-by: Xiubo Li li.xi...@freescale.com --- Documentation/devicetree/bindings/sound/simple-card.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/simple-card.txt b/Documentation/devicetree/bindings/sound/simple-card.txt index e9e20ec

[PATCHv2 6/6] ARM: dts: Enable SGTL5000 codec based audio driver node for VF610 TOWER.

2014-01-12 Thread Xiubo Li
This patch adds and enables SGTL5000 codec support, and also specified the corresponding SAI node. Signed-off-by: Xiubo Li li.xi...@freescale.com --- arch/arm/boot/dts/vf610-twr.dts | 47 + 1 file changed, 47 insertions(+) diff --git a/arch/arm/boot/dts

[PATCHv2 0/6] One simple card use case

2014-01-12 Thread Xiubo Li
This patch series is one use case of simple card driver based on dts. For some audio cards they need to add some off-CODEC widgets. For the audio card, if it needs off-CODEC widgets, some explict code for a simple audio is needed, if not, just ignore of this. This can make the audio card driver

[PATCH] ASoC: simple-card: use snd_soc_card_set/get_drvdata

2014-01-13 Thread Xiubo Li
Remove asoc_simple_get_card_info macro and use snd_soc_card_set_drvdata and snd_soc_card_get_drvdata instead. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/generic/simple-card.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/generic/simple

[PATCH resend] ASoC: simple-card: fix one bug to writing to the platform data

2014-01-13 Thread Xiubo Li
It's a bug that writing to the platform data directly, for it should be constant. So just copy it before writing. Signed-off-by: Xiubo Li li.xi...@freescale.com --- Resend this patch. sound/soc/generic/simple-card.c | 40 +--- 1 file changed, 21 insertions

[RFC][PATCH] ASoC: simple-card: Add asoc_simple_card_data for the simple card driver data

2014-01-13 Thread Xiubo Li
. And now only one DAI link is supported for simple card. Suggested-by: Jean-Francois Moine moin...@free.fr Signed-off-by: Xiubo Li li.xi...@freescale.com --- include/sound/simple_card.h | 4 -- sound/soc/generic/simple-card.c | 115 +--- 2 files changed, 60

[PATCH] ASoC: add snd_soc_of_parse_audio_simple_widgets for DeviceTree

2014-01-14 Thread Xiubo Li
Ext, Line Out Jack; Signed-off-by: Xiubo Li li.xi...@freescale.com --- include/sound/soc.h | 2 ++ sound/soc/soc-core.c | 62 2 files changed, 64 insertions(+) diff --git a/include/sound/soc.h b/include/sound/soc.h index 03ce45b

[PATCH v3 0/3] Add TDM slot info OF parsing supports

2014-02-13 Thread Xiubo Li
Change in v3: - Add .of_xlate_tdm_slot_mask(). - Add snd_soc_of_xlate_tdm_slot_mask(). - Remove TDM slot masks OF parsing... - Split the TDM infomation into two properties. Xiubo Li (3): ASoC: binding: add tdm-slot.txt ASoC: core: add TDM slot parsing from DT supports ASoC

[PATCH v3 1/3] ASoC: binding: add tdm-slot.txt

2014-02-13 Thread Xiubo Li
Signed-off-by: Xiubo Li li.xi...@freescale.com Cc: Lars-Peter Clausen l...@metafoo.de Cc: Mark Brown broo...@linaro.org --- Documentation/devicetree/bindings/sound/tdm-slot.txt | 20 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound

[PATCH v3 2/3] ASoC: core: add TDM slot parsing from DT supports

2014-02-13 Thread Xiubo Li
(), the tx and rx masks will use a 1 bit for an active slot as default, and the default active bits are at the LSB of the masks. Signed-off-by: Xiubo Li li.xi...@freescale.com Cc: Lars-Peter Clausen l...@metafoo.de Cc: Mark Brown broo...@linaro.org --- include/sound/soc-dai.h | 2 ++ include/sound

[PATCH v3 3/3] ASoC: simple-card: add slot information parsing supports

2014-02-13 Thread Xiubo Li
For some CPU/CODEC DAI devices the slot information maybe needed. This patch adds the slot information parsing for simple-card driver. Signed-off-by: Xiubo Li li.xi...@freescale.com Cc: Lars-Peter Clausen l...@metafoo.de Cc: Mark Brown broo...@linaro.org --- .../devicetree/bindings/sound/simple

[PATCH 2/4] ARM: dts: Enable SAI ALSA SoC DAI device for Vybrid VF610 TOWER board.

2014-02-18 Thread Xiubo Li
This patch adds and enables the SAI device. Signed-off-by: Xiubo Li li.xi...@freescale.com --- arch/arm/boot/dts/vf610-twr.dts | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts index e3a3805..8217854 100644

[PATCH 0/4] Add audio card support for Vybird-TWR board

2014-02-18 Thread Xiubo Li
Add audio card support for Vybird-TWR board Xiubo Li (4): ARM: dts: Add Freescale SAI ALSA SoC Digital Audio Interface node for VF610. ARM: dts: Enable SAI ALSA SoC DAI device for Vybrid VF610 TOWER board. ARM: dts: Enable SGTL5000 codec based audio driver node for VF610 TOWER

[PATCH 1/4] ARM: dts: Add Freescale SAI ALSA SoC Digital Audio Interface node for VF610.

2014-02-18 Thread Xiubo Li
This patch adds the SAI's edma mux Tx and Rx support. Signed-off-by: Xiubo Li li.xi...@freescale.com --- arch/arm/boot/dts/vf610.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/vf610.dtsi b/arch/arm/boot/dts/vf610.dtsi index 91a7757..f08df47 100644 --- a/arch/arm

[PATCH 3/4] ARM: dts: Enable SGTL5000 codec based audio driver node for VF610 TOWER.

2014-02-18 Thread Xiubo Li
This patch adds and enables SGTL5000 codec support. Signed-off-by: Xiubo Li li.xi...@freescale.com --- arch/arm/boot/dts/vf610-twr.dts | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts index 8217854..29790c9

[PATCH 4/4] ARM: dts: Add simple-card support for Vybird-TWR board

2014-02-18 Thread Xiubo Li
This patch adds and enables simple-card support in DT node. Signed-off-by: Xiubo Li li.xi...@freescale.com --- arch/arm/boot/dts/vf610-twr.dts | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts

[PATCH v2 0/4] Add audio card DT node support for Vybird-TWR board

2014-02-19 Thread Xiubo Li
Add audio card DT node support for Vybird-TWR board. Xiubo Li (4): ARM: dts: vf610: Add edma mux Tx and Rx support for SAI node. ARM: dts: vf610-twr: Enable SAI ALSA SoC DAI device ARM: dts: vf610-twr: Enable SGTL5000 codec. ARM: dts: vf610-twr: Add simple-card support. arch/arm/boot

[PATCH v2 1/4] ARM: dts: vf610: Add edma mux Tx and Rx support for SAI node.

2014-02-19 Thread Xiubo Li
This patch adds the SAI's edma mux Tx and Rx support. Signed-off-by: Xiubo Li li.xi...@freescale.com Cc: Shawn Guo shawn@linaro.org --- arch/arm/boot/dts/vf610.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/vf610.dtsi b/arch/arm/boot/dts/vf610.dtsi index

  1   2   3   4   5   6   7   8   9   10   >