[PATCH v2 7/7] ASoC: binding: for new properties documenting and usage

2014-01-24 Thread Xiubo Li
This add the following three new properties documenting and usage for simple card: simple-audio-card,name, simple-audio-card,widgets, simple-audio-card,tdm-slot. Signed-off-by: Xiubo Li li.xi...@freescale.com --- Documentation/devicetree/bindings/sound/simple-card.txt

[PATCH v2 3/7] ASoC: simple-card: Add snd_card's name parsing from DT node support

2014-01-24 Thread Xiubo Li
If the DT is used and the CPU DAI device has only one DAI, the card name will be like : ALSA device list: 0: 40031000.sai-sgtl5000 And this name maybe a little ugly to some customers, so here the card name parsing from DT node is supported. Signed-off-by: Xiubo Li li.xi...@freescale.com

[PATCH] regmap: fix _regmap_update_bits()

2014-01-23 Thread Xiubo Li
Since sometimes the 'config' parameter is no use, it should be NULL. Signed-off-by: Xiubo Li --- drivers/base/regmap/regmap.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index c2e0021..737b874

[PATCH] ASoC: fsl-sai: convert to use regmap API for Freeacale SAI

2014-01-23 Thread Xiubo Li
Signed-off-by: Xiubo Li Cc: Nicolin Chen --- sound/soc/fsl/fsl_sai.c | 243 +--- sound/soc/fsl/fsl_sai.h | 47 +- 2 files changed, 150 insertions(+), 140 deletions(-) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index

[PATCH] ASoC: fsl-sai: convert to use regmap API for Freeacale SAI

2014-01-23 Thread Xiubo Li
Signed-off-by: Xiubo Li li.xi...@freescale.com Cc: Nicolin Chen guangyu.c...@freescale.com --- sound/soc/fsl/fsl_sai.c | 243 +--- sound/soc/fsl/fsl_sai.h | 47 +- 2 files changed, 150 insertions(+), 140 deletions(-) diff --git a/sound/soc/fsl

[PATCH] regmap: fix _regmap_update_bits()

2014-01-23 Thread Xiubo Li
Since sometimes the 'config' parameter is no use, it should be NULL. Signed-off-by: Xiubo Li li.xi...@freescale.com --- drivers/base/regmap/regmap.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index

[PATCH 5/8] ASoC: core: set_tdm_slot() will return -ENOTSUPP if no operation provided

2014-01-22 Thread Xiubo Li
Make it easier for generic code to work with set_tdm_slot() by distinguishing between the operation not being supported and an error as is done. Signed-off-by: Xiubo Li --- sound/soc/soc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/soc-core.c b/sound/soc

[PATCH 0/8] New and Resend the old patches

2014-01-22 Thread Xiubo Li
New and Resend the old patches basing the newest code version. And this patch series has been tested based the VF610 Tower board. -- 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

[PATCH Resend 2/8] ASoC: simple-card: fix __asoc_simple_card_dai_init

2014-01-22 Thread Xiubo Li
If the CPU/CODEC DAI set_sysclk() is not support, the -ENOTSUPP will returnd. Here do the check like set_fmt(). Signed-off-by: Xiubo Li --- The VF610 Tower and VF610 LS1 platforms' ESAI and SPDIF will depend on this patch too. sound/soc/generic/simple-card.c | 17 +++-- 1

[PATCH Resend 3/8] ASoC: simple-card: simplify the daifmt code

2014-01-22 Thread Xiubo Li
before _set_fmt(). And this will be more easy to add new functions, such as supporting _set_tdm_slot(), etc. Signed-off-by: Xiubo Li --- sound/soc/generic/simple-card.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/sound/soc/generic/simple-card.c b/sou

[PATCH 1/8] ASoC: fsl: Add VF610 soc audio card Kconfig

2014-01-22 Thread Xiubo Li
Signed-off-by: Xiubo Li --- sound/soc/fsl/Kconfig | 24 1 file changed, 24 insertions(+) diff --git a/sound/soc/fsl/Kconfig b/sound/soc/fsl/Kconfig index 324988d..bc1fa9c 100644 --- a/sound/soc/fsl/Kconfig +++ b/sound/soc/fsl/Kconfig @@ -219,3 +219,27 @@ config

[PATCH Resend 7/8] ASoC: add snd_soc_of_parse_audio_simple_widgets for DeviceTree

2014-01-22 Thread Xiubo Li
le-audio-widgets = "Mic Jack", "Line In Jack", "Hp Jack", "Spk Ext", "Line Out Jack"; Signed-off-by: Xiubo Li --- Add : widgets[i].name = wname;

[PATCH 8/8] ASoC: simple-card: add off-codec widgets supports.

2014-01-22 Thread Xiubo Li
Signed-off-by: Xiubo Li --- sound/soc/generic/simple-card.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index d067e0a..4b7ef4d 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c

[PATCH 6/8] ASoC: simple-card: add tdm slot supports

2014-01-22 Thread Xiubo Li
For some CPU/CODEC DAI devices the tdm slot maybe needed. This patch adds the tdm slot supporting for simple-card driver. The style of the tdm slot in DT: For instance: simple-tdm-slot = <0xffc 0xffc 2 0>; Signed-off-by: Xiubo Li --- The VF610 Tower and VF610 LS1 pla

[PATCH Resend 4/8] ASoC: simple-card: Add snd_card's name parsing from DT node support

2014-01-22 Thread Xiubo Li
If the DT is used and the CPU DAI device has only one DAI, the card name will be like : ALSA device list: 0: 40031000.sai-sgtl5000 And this name maybe a little ugly to some customers, so here the card name parsing from DT node is supported. Signed-off-by: Xiubo Li --- sound/soc/generic/simple

[PATCH Resend 4/8] ASoC: simple-card: Add snd_card's name parsing from DT node support

2014-01-22 Thread Xiubo Li
If the DT is used and the CPU DAI device has only one DAI, the card name will be like : ALSA device list: 0: 40031000.sai-sgtl5000 And this name maybe a little ugly to some customers, so here the card name parsing from DT node is supported. Signed-off-by: Xiubo Li li.xi...@freescale.com

[PATCH 6/8] ASoC: simple-card: add tdm slot supports

2014-01-22 Thread Xiubo Li
For some CPU/CODEC DAI devices the tdm slot maybe needed. This patch adds the tdm slot supporting for simple-card driver. The style of the tdm slot in DT: For instance: simple-tdm-slot = 0xffc 0xffc 2 0; Signed-off-by: Xiubo Li li.xi...@freescale.com --- The VF610 Tower

[PATCH 8/8] ASoC: simple-card: add off-codec widgets supports.

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

[PATCH Resend 7/8] ASoC: add snd_soc_of_parse_audio_simple_widgets for DeviceTree

2014-01-22 Thread Xiubo Li
Ext, Line Out Jack; Signed-off-by: Xiubo Li li.xi...@freescale.com --- Add : widgets[i].name = wname; And this will use the widget name from DT node. include/sound/soc.h | 2 ++ sound/soc/soc-core.c | 63

[PATCH 1/8] ASoC: fsl: Add VF610 soc audio card Kconfig

2014-01-22 Thread Xiubo Li
Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/fsl/Kconfig | 24 1 file changed, 24 insertions(+) diff --git a/sound/soc/fsl/Kconfig b/sound/soc/fsl/Kconfig index 324988d..bc1fa9c 100644 --- a/sound/soc/fsl/Kconfig +++ b/sound/soc/fsl/Kconfig @@ -219,3

[PATCH 0/8] New and Resend the old patches

2014-01-22 Thread Xiubo Li
New and Resend the old patches basing the newest code version. And this patch series has been tested based the VF610 Tower board. -- 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

[PATCH Resend 2/8] ASoC: simple-card: fix __asoc_simple_card_dai_init

2014-01-22 Thread Xiubo Li
If the CPU/CODEC DAI set_sysclk() is not support, the -ENOTSUPP will returnd. Here do the check like set_fmt(). Signed-off-by: Xiubo Li li.xi...@freescale.com --- The VF610 Tower and VF610 LS1 platforms' ESAI and SPDIF will depend on this patch too. sound/soc/generic/simple-card.c | 17

[PATCH Resend 3/8] ASoC: simple-card: simplify the daifmt code

2014-01-22 Thread Xiubo Li
(). And this will be more easy to add new functions, such as supporting _set_tdm_slot(), etc. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/generic/simple-card.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/sound/soc/generic/simple

[PATCH 5/8] ASoC: core: set_tdm_slot() will return -ENOTSUPP if no operation provided

2014-01-22 Thread Xiubo Li
Make it easier for generic code to work with set_tdm_slot() by distinguishing between the operation not being supported and an error as is done. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/soc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc

[PATCHv2 2/2] of: fix of_update_property()

2014-01-21 Thread Xiubo Li
() and __of_add_property() instead and move them into lock operations. Signed-off-by: Xiubo Li Cc: Pantelis Antoniou --- drivers/of/base.c | 36 ++-- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index b86b77a..458072d

[PATCHv2 1/2] of: add __of_add_property() without lock operations

2014-01-21 Thread Xiubo Li
There two places will use the same code for adding one new property to the DT node. Adding __of_add_property() and prepare for fixing of_update_property()'s bug. Signed-off-by: Xiubo Li --- drivers/of/base.c | 38 -- 1 file changed, 24 insertions(+), 14

[PATCHv2 2/2] of: fix of_update_property()

2014-01-21 Thread Xiubo Li
() and __of_add_property() instead and move them into lock operations. Signed-off-by: Xiubo Li li.xi...@freescale.com Cc: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/of/base.c | 36 ++-- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/drivers

[PATCHv2 1/2] of: add __of_add_property() without lock operations

2014-01-21 Thread Xiubo Li
There two places will use the same code for adding one new property to the DT node. Adding __of_add_property() and prepare for fixing of_update_property()'s bug. Signed-off-by: Xiubo Li li.xi...@freescale.com --- drivers/of/base.c | 38 -- 1 file changed, 24

[PATCH] of: fix of_update_property()

2014-01-16 Thread Xiubo Li
-by: Xiubo Li --- drivers/of/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index f807d0e..d0c53bc 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -1572,6 +1572,7 @@ int of_update_property(struct device_node *np, struct

[PATCH] ASoC: core: Use devm_kzalloc() instead kzalloc()

2014-01-16 Thread Xiubo Li
Makes the code slightly shorter Signed-off-by: Xiubo Li --- sound/soc/soc-generic-dmaengine-pcm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-dmaengine-pcm.c index 5bace12..bfb012f 100644 --- a/sound/soc

[PATCH] ASoC: core: Fix possible NULL pointer dereference of pcm->config

2014-01-16 Thread Xiubo Li
Since the soc generic dmaengine pcm driver allows using the defualt settings, so the pcm->config maybe NULL. Signed-off-by: Xiubo Li --- sound/soc/soc-generic-dmaengine-pcm.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sound/soc/soc-generic-dmaengine-pcm.c

[PATCH] ASoC: core: Fix possible NULL pointer dereference of pcm-config

2014-01-16 Thread Xiubo Li
Since the soc generic dmaengine pcm driver allows using the defualt settings, so the pcm-config maybe NULL. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/soc-generic-dmaengine-pcm.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sound/soc/soc-generic

[PATCH] ASoC: core: Use devm_kzalloc() instead kzalloc()

2014-01-16 Thread Xiubo Li
Makes the code slightly shorter Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/soc-generic-dmaengine-pcm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-dmaengine-pcm.c index 5bace12..bfb012f

[PATCH] of: fix of_update_property()

2014-01-16 Thread Xiubo Li
-by: Xiubo Li li.xi...@freescale.com --- drivers/of/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index f807d0e..d0c53bc 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -1572,6 +1572,7 @@ int of_update_property(struct

[PATCHv2] ASoC: simple-card: Add snd_card's name parsing from DT node support

2014-01-15 Thread Xiubo Li
If the DT is used and the CPU DAI device has only one DAI, the card name will be like : ALSA device list: 0: 40031000.sai-sgtl5000 And this name maybe a little ugly to some customers, so here the card name parsing from DT node is supported. Signed-off-by: Xiubo Li --- Resend

[PATCH] ASoC: simple-card: Add snd_card's name parsing from DT node support

2014-01-15 Thread Xiubo Li
If the DT is used and the CPU DAI device has only one DAI, the card name will be like : ALSA device list: 0: 40031000.sai-sgtl5000 And this name maybe a little ugly to some customers, so here the card name parsing from DT node is supported. Signed-off-by: Xiubo Li --- sound/soc

[PATCH] ASoC: simple-card: simplify the daifmt code

2014-01-15 Thread Xiubo Li
before set_fmt(). Signed-off-by: Xiubo Li --- sound/soc/generic/simple-card.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index b6014fe..0e2fbdd 100644 --- a/sound/soc/generic/simple-card.c

[PATCH] ASoC: simple-card: fix __asoc_simple_card_dai_init

2014-01-15 Thread Xiubo Li
If the CPU/CODEC DAI set_sysclk() is not support, the -ENOTSUPP will returnd. Here do the check like set_fmt(). Signed-off-by: Xiubo Li --- sound/soc/generic/simple-card.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/sound/soc/generic/simple-card.c

[PATCH] ASoC: simple-card: fix __asoc_simple_card_dai_init

2014-01-15 Thread Xiubo Li
If the CPU/CODEC DAI set_sysclk() is not support, the -ENOTSUPP will returnd. Here do the check like set_fmt(). Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/generic/simple-card.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/sound/soc

[PATCH] ASoC: simple-card: simplify the daifmt code

2014-01-15 Thread Xiubo Li
(). Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/generic/simple-card.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index b6014fe..0e2fbdd 100644 --- a/sound/soc/generic

[PATCH] ASoC: simple-card: Add snd_card's name parsing from DT node support

2014-01-15 Thread Xiubo Li
If the DT is used and the CPU DAI device has only one DAI, the card name will be like : ALSA device list: 0: 40031000.sai-sgtl5000 And this name maybe a little ugly to some customers, so here the card name parsing from DT node is supported. Signed-off-by: Xiubo Li li.xi...@freescale.com

[PATCHv2] ASoC: simple-card: Add snd_card's name parsing from DT node support

2014-01-15 Thread Xiubo Li
If the DT is used and the CPU DAI device has only one DAI, the card name will be like : ALSA device list: 0: 40031000.sai-sgtl5000 And this name maybe a little ugly to some customers, so here the card name parsing from DT node is supported. Signed-off-by: Xiubo Li li.xi...@freescale.com

[PATCH] misc: sram: cleanup the code

2014-01-14 Thread Xiubo Li
Since the devm_gen_pool_create() is used, so the gen_pool_destroy() here is redundant. Signed-off-by: Xiubo Li --- drivers/misc/sram.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c index afe66571..e3e421d 100644 --- a/drivers/misc/sram.c +++ b

[PATCH] ASoC: add snd_soc_of_parse_audio_simple_widgets for DeviceTree

2014-01-14 Thread Xiubo Li
le-audio-widgets = "Mic Jack", "Line In Jack", "Hp Jack", "Spk Ext", "Line Out Jack"; Signed-off-by: Xiubo Li --- include/sound/soc.h | 2 ++ sound/soc/soc-core.c | 62 +++

[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] misc: sram: cleanup the code

2014-01-14 Thread Xiubo Li
Since the devm_gen_pool_create() is used, so the gen_pool_destroy() here is redundant. Signed-off-by: Xiubo Li li.xi...@freescale.com --- drivers/misc/sram.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c index afe66571..e3e421d 100644

[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 Signed-off-by: Xiubo Li --- include/sound/simple_card.h | 4 -- sound/soc/generic/simple-card.c | 115 +--- 2 files changed, 60 insertions(+), 59 deletions(-) diff

[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 --- Resend this patch. sound/soc/generic/simple-card.c | 40 +--- 1 file changed, 21 insertions(+), 19 deletions

[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 --- sound/soc/generic/simple-card.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/generic/simple-card.c b/sound/soc

[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

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

2014-01-12 Thread Xiubo Li
Signed-off-by: Xiubo Li --- 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..01eb2d0 100644

[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 --- arch/arm/boot/dts/vf610-twr.dts | 47 + 1 file changed, 47 insertions(+) diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch

[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

[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 --- include/sound/soc.h | 10 ++ sound/soc/soc-core.c | 39 +++ 2 files changed, 49 insertions(+) diff --git

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

2014-01-12 Thread Xiubo Li
Signed-off-by: Xiubo Li --- 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/generic/simple-card.c

[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 --- sound/soc/fsl/Kconfig | 25 ++ sound/soc/fsl/Makefile| 3 +++ sound/soc/fsl/snd-soc-simple-card-vf610.c | 43 +++ 3 files

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

[PATCH] of: Fix __of_device_is_available check

2014-01-12 Thread Xiubo Li
t state of the 'status' 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 --- drivers/of/base.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/of/base.c b/d

[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: fix simple card widgets routing property name usage

2014-01-09 Thread Xiubo Li
Fix the usage of simple card widgets routing property, and make it the same with simple card routing property name. Signed-off-by: Xiubo Li --- Documentation/devicetree/bindings/sound/simple-card.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree

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

2014-01-09 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 --- sound/soc/generic/simple-card.c | 40 +--- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/sound/soc

[PATCH] ASoC: fsl-sai: Add device tree nodes and its availiable check

2014-01-09 Thread Xiubo Li
SAIs that are not connected on the board should have a status = "disabled" property in their device tree nodes. Signed-off-by: Xiubo Li --- sound/soc/fsl/fsl_sai.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index cdd3fa

[PATCH] ASoC: simple-card: fix the cinfo error check

2014-01-09 Thread Xiubo Li
If the dt is used and the cinfo is NULL, the -ENOMEM should be return. Signed-off-by: Xiubo Li --- sound/soc/generic/simple-card.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 51a4784

[PATCH] ASoC: simple-card: fix a bug where cinfo will be NULL before using it

2014-01-09 Thread Xiubo Li
If the dt is not used, the cinfo will be always NULL before using it. Signed-off-by: Xiubo Li --- sound/soc/generic/simple-card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index c67d2db..51a4784 100644

[PATCH] ASoC: simple-card: fix a bug where cinfo will be NULL before using it

2014-01-09 Thread Xiubo Li
If the dt is not used, the cinfo will be always NULL before using it. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/generic/simple-card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index

[PATCH] ASoC: simple-card: fix the cinfo error check

2014-01-09 Thread Xiubo Li
If the dt is used and the cinfo is NULL, the -ENOMEM should be return. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/generic/simple-card.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple

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

2014-01-09 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 --- sound/soc/generic/simple-card.c | 40 +--- 1 file changed, 21 insertions(+), 19 deletions

[PATCH] ASoC: fsl-sai: Add device tree nodes and its availiable check

2014-01-09 Thread Xiubo Li
SAIs that are not connected on the board should have a status = disabled property in their device tree nodes. Signed-off-by: Xiubo Li li.xi...@freescale.com --- sound/soc/fsl/fsl_sai.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index

[PATCH] ASoC: simple-card: fix simple card widgets routing property name usage

2014-01-09 Thread Xiubo Li
Fix the usage of simple card widgets routing property, and make it the same with simple card routing property name. Signed-off-by: Xiubo Li li.xi...@freescale.com --- Documentation/devicetree/bindings/sound/simple-card.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 1/4] ASoC: simple-card: add simple audio card widgets support

2014-01-08 Thread Xiubo Li
For many audio cards there need to add some off-CODEC widgets, and this is hard to be supported by dts only, because maybe some widgets need one or more call backs, such as wevent. Signed-off-by: Xiubo Li --- .../devicetree/bindings/sound/simple-card.txt | 1 + include/sound/simple_card.h

[PATCH 3/4] ASoC: fsl: Add VF610 simple audio card widgets driver.

2014-01-08 Thread Xiubo Li
This is the SGTL5000 codec based off-CODEC widgets supports. Signed-off-by: Xiubo Li --- sound/soc/fsl/Kconfig | 25 ++ sound/soc/fsl/Makefile| 3 +++ sound/soc/fsl/snd-soc-simple-card-vf610.c | 44 +++ 3 files

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

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

[PATCH 2/4] ASoC: simple-card: simple audio card widgets getting

2014-01-08 Thread Xiubo Li
Signed-off-by: Xiubo Li --- 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 e473dc9..e7cd9bb 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c

[PATCH 2/4] ASoC: simple-card: simple audio card widgets getting

2014-01-08 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 e473dc9..e7cd9bb 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc

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

2014-01-08 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

[PATCH 3/4] ASoC: fsl: Add VF610 simple audio card widgets driver.

2014-01-08 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 | 44

[PATCH 1/4] ASoC: simple-card: add simple audio card widgets support

2014-01-08 Thread Xiubo Li
For many audio cards there need to add some off-CODEC widgets, and this is hard to be supported by dts only, because maybe some widgets need one or more call backs, such as wevent. Signed-off-by: Xiubo Li li.xi...@freescale.com --- .../devicetree/bindings/sound/simple-card.txt | 1

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

2014-01-07 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 Acked-by: Kumar Gala --- For this version I just removed the big-endian mode support, and will add it in later

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

2014-01-07 Thread Xiubo Li
Signed-off-by: Xiubo Li Reviewed-by: Sascha Hauer --- No changes since v7. 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

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

2014-01-07 Thread Xiubo Li
This adds devicetree node for VF610, and there are 8 channels supported. Signed-off-by: Xiubo Li Reviewed-by: Sascha Hauer --- No changes since v7. 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

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

2014-01-07 Thread Xiubo Li
The FTM PWM device can be found on Vybrid VF610 Tower and Layerscape LS-1 SoCs. Signed-off-by: Xiubo Li --- Hi Thierry, For this version I just removed the big-endian mode support, and will add it in later separate patches. Changes in v9: - Remove the big-endian mode support. Changes

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

2014-01-07 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 --- Hi Thierry, For this version I just removed the big-endian mode support, and will add it in later separate patches. Changes in v9: - Remove the big-endian mode

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

2014-01-07 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 --- No changes since v7. arch/arm/boot/dts/vf610.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git

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

2014-01-07 Thread Xiubo Li
Signed-off-by: Xiubo Li li.xi...@freescale.com Reviewed-by: Sascha Hauer s.ha...@pengutronix.de --- No changes since v7. 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

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

2014-01-07 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 Acked-by: Kumar Gala ga...@codeaurora.org --- For this version I just

[PATCH v2] pwm: core: Use devm_kcalloc instead of kzalloc

2014-01-06 Thread Xiubo Li
Use devm_kcalloc instead of kzalloc to free automatically and make the cleanup paths simpler and the code slightly shorter. Signed-off-by: Xiubo Li --- Changed in v2: - Use devm_kcalloc instead of devm_kzalloc. Changed in v1: - Use devm_kzalloc instead of kzalloc. drivers/pwm/core.c | 4

[PATCH] pwm: core: Use devm_kzalloc instead of kzalloc

2014-01-06 Thread Xiubo Li
Use devm_kzalloc instead of kzalloc to free automatically and make the cleanup paths simpler and the code slightly shorter. Signed-off-by: Xiubo Li --- drivers/pwm/core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index

[PATCH 2/2] ASoC: simple-card: keep the property's name the same pattern

2014-01-06 Thread Xiubo Li
-by: Xiubo Li --- Documentation/devicetree/bindings/sound/simple-card.txt | 2 +- sound/soc/generic/simple-card.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/simple-card.txt b/Documentation/devicetree

[PATCH 1/2] ASoC: simple-card: fix the DAPM routes map parsing

2014-01-06 Thread Xiubo Li
The simple-card's DAPM route maping is optional. Signed-off-by: Xiubo Li --- Resend this patch. sound/soc/generic/simple-card.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index c0d92813

[PATCH 1/2] ASoC: simple-card: fix the DAPM routes map parsing

2014-01-06 Thread Xiubo Li
The simple-card's DAPM route maping is optional. Signed-off-by: Xiubo Li li.xi...@freescale.com --- Resend this patch. sound/soc/generic/simple-card.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c

[PATCH 2/2] ASoC: simple-card: keep the property's name the same pattern

2014-01-06 Thread Xiubo Li
-by: Xiubo Li li.xi...@freescale.com --- Documentation/devicetree/bindings/sound/simple-card.txt | 2 +- sound/soc/generic/simple-card.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/simple-card.txt b

<    3   4   5   6   7   8   9   10   11   >