[PATCH 3/3] pwm: ftm-pwm: Add big-endian support

2014-03-20 Thread Xiubo Li
| No Signed-off-by: Xiubo Li li.xi...@freescale.com --- drivers/pwm/pwm-fsl-ftm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/pwm/pwm-fsl-ftm.c b/drivers/pwm/pwm-fsl-ftm.c index 5d999c1..9a82741 100644 --- a/drivers/pwm/pwm-fsl-ftm.c +++ b/drivers/pwm/pwm-fsl-ftm.c @@ -409,6 +409,7

[PATCH 0/3] FTM PWM adds regmap and endianness support.

2014-03-20 Thread Xiubo Li
Xiubo Li (3): pwm: ftm-pwm: Clean up the code. pwm: ftm-pwm: Convert to direct regmap API usage. pwm: ftm-pwm: Add big-endian support drivers/pwm/pwm-fsl-ftm.c | 96 ++- 1 file changed, 53 insertions(+), 43 deletions(-) -- 1.8.4

[PATCH 2/3] pwm: ftm-pwm: Convert to direct regmap API usage.

2014-03-20 Thread Xiubo Li
Signed-off-by: Xiubo Li li.xi...@freescale.com --- drivers/pwm/pwm-fsl-ftm.c | 83 +-- 1 file changed, 44 insertions(+), 39 deletions(-) diff --git a/drivers/pwm/pwm-fsl-ftm.c b/drivers/pwm/pwm-fsl-ftm.c index 4a4ad58..5d999c1 100644 --- a/drivers/pwm

[PATCH 1/3] pwm: ftm-pwm: Clean up the code.

2014-03-20 Thread Xiubo Li
Signed-off-by: Xiubo Li li.xi...@freescale.com --- drivers/pwm/pwm-fsl-ftm.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/pwm/pwm-fsl-ftm.c b/drivers/pwm/pwm-fsl-ftm.c index 420169e..4a4ad58 100644 --- a/drivers/pwm/pwm-fsl-ftm.c +++ b/drivers/pwm/pwm

[PATCH 2/3] ARM: dts: vf610-twr: Add PWM0's pinctrl node

2014-03-19 Thread Xiubo Li
Signed-off-by: Xiubo Li --- arch/arm/boot/dts/vf610-twr.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts index f3af8ea..3fabdb5 100644 --- a/arch/arm/boot/dts/vf610-twr.dts +++ b/arch/arm/boot/dts/vf610-twr.dts

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

2014-03-19 Thread Xiubo Li
Signed-off-by: Xiubo Li Reviewed-by: Sascha Hauer Reviewed-by: Yuan Yao --- 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 3fabdb5..c016ec8 100644 --- a/arch/arm/boot/dts/vf610

[PATCH 0/3] Add DTS node for FTM PWM

2014-03-19 Thread Xiubo Li
Hi Shawn, The FTM PWM driver has been applied by the Maintainer, so here I resend this patches based upon git://git.linaro.org/people/shawnguo/linux-2.6.git newest reporsitory. Xiubo Li (3): ARM: dts: vf610: Add Freescale FTM PWM node. ==> resend v10 ARM: dts: vf610-twr: Add PWM

[PATCH 1/3] ARM: dts: vf610: Add Freescale FTM PWM node.

2014-03-19 Thread Xiubo Li
This adds devicetree node for VF610, and there are 8 channels supported. Signed-off-by: Xiubo Li Reviewed-by: Sascha Hauer Reviewed-by: Yuan Yao --- arch/arm/boot/dts/vf610.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/vf610.dtsi b/arch/arm/boot/dts

[PATCH 1/3] ARM: dts: vf610: Add Freescale FTM PWM node.

2014-03-19 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

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

2014-03-19 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

[PATCH 0/3] Add DTS node for FTM PWM

2014-03-19 Thread Xiubo Li
Hi Shawn, The FTM PWM driver has been applied by the Maintainer, so here I resend this patches based upon git://git.linaro.org/people/shawnguo/linux-2.6.git newest reporsitory. Xiubo Li (3): ARM: dts: vf610: Add Freescale FTM PWM node. == resend v10 ARM: dts: vf610-twr: Add PWM0's pinctrl

[PATCH 2/3] ARM: dts: vf610-twr: Add PWM0's pinctrl node

2014-03-19 Thread Xiubo Li
Signed-off-by: Xiubo Li li.xi...@freescale.com --- arch/arm/boot/dts/vf610-twr.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts index f3af8ea..3fabdb5 100644 --- a/arch/arm/boot/dts/vf610-twr.dts +++ b/arch/arm

[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

[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 --- This patch has nothing changed. sound/soc/codecs/ad193x.c| 10 +- sound/soc/codecs/adau1373.c | 7 --- sound/soc/codecs/adav80x.c | 7

[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 --- 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.c| 4

[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 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 CC: Jani Nikula --- 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 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers

[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

[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

[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

[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 --- include/sound/soc.h | 3 +++ sound

[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 --- sound/soc/soc-core.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/sound/soc/soc-core.c b/sound/soc

[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 --- sound/soc/codecs/cq93vc.c | 6 -- sound/soc/codecs/mc13783.c | 10 ++ sound/soc/codecs/wm5102.c | 6

[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

[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 --- 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 +--- sound/soc/codecs/wm5110.c

[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 --- sound/soc/codecs/ad193x.c| 10 +- sound/soc/codecs/adau1373.c | 7 --- sound/soc/codecs/adav80x.c | 7 --- sound/soc/codecs/ak4535.c| 9

[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

[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 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 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 --- 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 +--- sound/soc/codecs/wm5110.c

[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

[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 --- sound/soc/codecs/ad193x.c| 10 +- sound/soc/codecs/adau1373.c | 7 --- sound/soc/codecs/adav80x.c | 7 --- sound/soc/codecs/ak4535.c| 9

[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

[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

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

2014-02-28 Thread Xiubo Li
Signed-off-by: Xiubo Li --- @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 dev_get_regmap() will r

[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 --- 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 +++ b/sound/soc/soc

[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 --- 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 +--- 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

[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 --- include/sound/soc.h | 1 - sound/soc/codecs/wm5110.c | 2 +- sound/soc

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

2014-02-27 Thread Xiubo Li
Signed-off-by: Xiubo Li --- 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/codecs/ak4642.c| 6

[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] ASoC: cache: Do the codec->reg_cache zero pionter check

2014-02-27 Thread Xiubo Li
via doing the zero pionter check of it. Signed-off-by: Xiubo Li --- 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 +++ b/sound/soc/

[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 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 --- sound/soc/soc

[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 --- sound/soc/soc-io.c | 5 - 1 file changed, 5 deletions(-) diff --git a/sound

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

2014-02-27 Thread Xiubo Li
Signed-off-by: Xiubo Li --- 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 @@ -1352,14 +1352,6

[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 Signed-off-by: Alison Wang Signed-off-by: Jingchang Lu Reviewed-by: Sascha Hauer Reviewed-by: Yuan Yao --- drivers/pwm/Kconfig | 10 + drivers/pwm/Makefile | 1 + drivers

[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 Reviewed-by: Sascha Hauer Reviewed-by: Yuan Yao --- arch/arm/boot/dts/vf610.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/vf610.dtsi b/arch/arm/boot/dts

[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 Reviewed-by: Sascha Hauer Reviewed-by: Yuan Yao Acked-by: Kumar Gala --- .../devicetree/bindings/pwm/pwm-fsl-ftm.txt| 35

[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 3/4] ARM: dts: vf610-twr: Enables FTM PWM device.

2014-02-27 Thread Xiubo Li
Signed-off-by: Xiubo Li Reviewed-by: Sascha Hauer Reviewed-by: Yuan Yao --- 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 c3a3237..d5c6a39 100644 --- a/arch/arm/boot/dts/vf610

[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

[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 --- @Mark and All I'm also thinking could we just discard snd_soc_codec_set_cache_io

[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 --- sound/soc/fsl/fsl_sai.c | 45 ++--- sound/soc/fsl/fsl_sai.h | 1 + 2 files changed, 43 insertions(+), 3 deletions(-) diff --git a/sound/soc/fsl/fsl_sai.c

[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

[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 --- sound/soc/blackfin/bf5xx-ad1836.c | 2 +- 1 file changed, 1 insertion(+), 1

[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 --- sound/soc/fsl/eukrea-tlv320.c | 2 +- 1 file changed, 1 insertion(+), 1

[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 --- sound/soc/fsl/wm1133-ev1.c | 11 +-- 1 file changed, 1 insertion

[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 --- sound/soc/fsl/Kconfig | 1 + sound/soc/fsl/imx-ssi.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/sound/soc/fsl/Kconfig b/sound/soc/fsl

[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 --- sound/soc

[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 --- 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/sound/soc/fsl/Kconfig

[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 --- sound/soc/blackfin/bf5xx-ad193x.c | 4 ++-- 1 file changed, 2 insertions

[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 --- 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/sound/soc/fsl/Kconfig

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

2014-02-25 Thread Xiubo Li
-by: Xiubo Li --- 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/fsl_utils.c +++ b

[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 --- include/sound/soc-dai.h | 3 +++ sound/soc/soc-core.c| 33

[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] 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 --- sound/soc/fsl/fsl_sai.c | 38

[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

<    1   2   3   4   5   6   7   8   9   10   >