[PATCH] ASoC: compress: Set reasonable compress id string

2017-08-16 Thread Peng Donglin
For dynamic compress rtd, the codec_dai may not have any actual meaning(like snd-soc-dummy-dai), so compress id can just use the value of dai_link->stream_name. But for others, its codec_dai has actual meaning, so compress id can include codec_dai name. Signed-off-by: Peng Donglin <dol

[PATCH 00/12] Remove unnecessary function call

2017-08-19 Thread Peng Donglin
n,so i think that the former copy operation can be removed. Peng Donglin (12): ASoC: s3c24xx_uda134x: Remove unnecessary function call ASoC: mediatek: Remove unnecessary function call ASoC: Intel: Remove unnecessary function call ASoC: atmel: Remove unnecessary function call ASoC: a

[PATCH 01/12] ASoC: s3c24xx_uda134x: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
n,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/samsung/s3c24xx_uda134x.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/samsung/s3c24xx_uda134x.c b/sound/soc/samsung/s3c24xx_uda134x.c index 55538

[PATCH 02/12] ASoC: mediatek: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
n,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c | 1 - sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c | 1 - sound/soc/mediatek/mt8173/mt8173-rt5650.c| 1 - 3 files ch

[PATCH 04/12] ASoC: atmel: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
y operation, so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/atmel/atmel-classd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel/atmel-classd.c index b7

[PATCH 03/12] ASoC: Intel: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
ion, so i think that the latter copy operation can be removed. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/intel/boards/bytcht_da7213.c | 1 - sound/soc/intel/boards/bytcht_es8316.c | 1 - sound/soc/intel/boards/bytcr_rt5651.c| 1 - sound/soc/intel/boards/

[PATCH 07/12] ASoC: mxs-sgtl5000: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
n,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/mxs/mxs-sgtl5000.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/mxs/mxs-sgtl5000.c b/sound/soc/mxs/mxs-sgtl5000.c index a96276e..2ed3240 100644 --- a

[PATCH 06/12] ASoC: rockchip: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
n,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/rockchip/rk3288_hdmi_analog.c | 2 -- sound/soc/rockchip/rk3399_gru_sound.c | 1 - 2 files changed, 3 deletions(-) diff --git a/sound/soc/rockchip/rk3288_hdmi_ana

[PATCH 05/12] ASoC: atmel: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
y operation, so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/atmel/atmel-pdmic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/atmel/atmel-pdmic.c b/sound/soc/atmel/atmel-pdmic.c index c917df7..8e3d3

[PATCH v2 04/10] ASoC: atmel: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/atmel/atmel-classd.c | 1 - sound/soc/atmel/atmel-pdmic.c | 1 - 2 files changed, 2 deletions(-) diff --git a/sound/soc/atmel/atmel-clas

[PATCH v2 03/10] ASoC: Intel: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- Changes in v2: -add missed occurrences. sound/soc/intel/boards/bytcht_da7213.c | 6 ++ sound/soc/intel/boards/bytcht_es8316.c

[PATCH v2 02/10] ASoC: mediatek: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c | 1 - sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c | 1 - sound/soc/mediatek/mt8173/mt8173-rt

[PATCH v2 00/10] Remove unnecessary function

2017-08-23 Thread Peng Donglin
When calling the function devm_snd_soc_register_card to register a sound card,the address of snd_soc_card will be assigned to dev->driver_data automatically,so there is no extra need to call platform_set_drvdata. Peng Donglin (10): ASoC: s3c24xx_uda134x: Remove unnecessary function call A

[PATCH v2 01/10] ASoC: s3c24xx_uda134x: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/samsung/s3c24xx_uda134x.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/samsung/s3c24xx_uda134x.c b/sound/soc/s

[PATCH v2 10/10] ASoC: ux500: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/ux500/mop500.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/ux500/mop500.c b/sound/soc/ux500/mop500.c index ba9fc0

[PATCH v2 09/10] ASoC: tegra: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/tegra/tegra_alc5632.c | 1 - sound/soc/tegra/tegra_max98090.c | 1 - sound/soc/tegra/tegra_rt5640.c | 1 - sound/soc/tegra/tegra_rt

[PATCH v2 05/10] ASoC: rockchip: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/rockchip/rk3288_hdmi_analog.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sound/soc/rockchip/rk3288_hdmi_an

[PATCH v2 06/10] ASoC: mxs-sgtl5000: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/mxs/mxs-sgtl5000.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sound/soc/mxs/mxs-sgtl5000.c b/sound/soc/m

[PATCH v2 07/10] ASoC: qcom: Remove useless function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Acked-by: Banajit Goswami <bgosw...@codeaurora.org> Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/qcom/apq8016_sbc.c | 1 - sound/soc/qcom/storm.c | 1 - 2 files changed,

[PATCH v2 08/10] ASoC: sun4i-codec: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/sunxi/sun4i-codec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c

[PATCH] sound: fix some checkpatch errors and warnings.

2017-08-18 Thread Peng Donglin
hould be at the same indent WARNING: Statements should start on a tabstop WARNING: Block comments use * on subsequent lines Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/last.c | 2 +- sound/sound_core.c | 163

[PATCH] ASoC: dapm: Fix typos in comment

2017-09-27 Thread Peng Donglin
Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/soc-dapm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index dcef67a..0867eaa 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -4167,7 +

[PATCH 09/12] ASoC: qcom: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
n,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/qcom/storm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/qcom/storm.c b/sound/soc/qcom/storm.c index c5207af..a9fa972 100644 --- a/sound/soc/qcom/storm

[PATCH 08/12] ASoC: qcom: Remove useless function call

2017-08-19 Thread Peng Donglin
ed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/qcom/apq8016_sbc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/qcom/apq8016_sbc.c b/sound/soc/qcom/apq8016_sbc.c index d084d74..5292591 100644 --- a/sound/soc/qcom/apq8016_sbc.c +++ b/sound/soc/qcom/apq8016_sbc

[PATCH 10/12] ASoC: sun4i-codec: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
he same copy operation,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/sunxi/sun4i-codec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 15006

[PATCH 12/12] ASoC: ux500: Remove unnecessary function call

2017-08-20 Thread Peng Donglin
tion,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/ux500/mop500.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/ux500/mop500.c b/sound/soc/ux500/mop500.c index ba9fc09..070a688 100644 --- a/sound/soc

[PATCH 11/12] ASoC: tegra: Remove unnecessary function call

2017-08-20 Thread Peng Donglin
n,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/tegra/tegra_alc5632.c | 1 - sound/soc/tegra/tegra_max98090.c | 1 - sound/soc/tegra/tegra_rt5640.c | 1 - sound/soc/tegra/tegra_rt5677.c | 1 - sound/soc/tegra/te

[PATCH 0/2] Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-06-12 Thread Peng Donglin
...instead of open coding file operations followed by custom ->open() callbacks per each attribute. Peng Donglin (2): ARM: dump: Convert to use DEFINE_SHOW_ATTRIBUTE macro ARM64: dump: Convert to use DEFINE_SHOW_ATTRIBUTE macro arch/arm/mm/ptdump_debugfs.c | 13 + arch/ar

[PATCH 2/2] ARM64: dump: Convert to use DEFINE_SHOW_ATTRIBUTE macro

2018-06-12 Thread Peng Donglin
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Peng Donglin --- arch/arm64/mm/ptdump_debugfs.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/arch/arm64/mm/ptdump_debugfs.c b/arch/arm64/mm/ptdump_debugfs.c index 02b18f8..24d786f 100644

[PATCH 1/2] ARM: dump: Convert to use DEFINE_SHOW_ATTRIBUTE macro

2018-06-12 Thread Peng Donglin
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Peng Donglin --- arch/arm/mm/ptdump_debugfs.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/arch/arm/mm/ptdump_debugfs.c b/arch/arm/mm/ptdump_debugfs.c index be8d87b..79002fe 100644

[PATCH] ASoC: use seq_file to dump the contents of dai_list, platoform_list and codec_list

2018-01-17 Thread Peng Donglin
/platform_list/codec_list. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/soc-core.c | 111 +-- 1 file changed, 37 insertions(+), 74 deletions(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index c0edac8..7b58211

[PATCH] ASoC: use DEFINE_SHOW_ATTRIBUTE() to decrease code duplication

2018-02-08 Thread Peng Donglin
There is some duplicate code in soc-core.c,and the kernel provides DEFINE_SHOW_ATTRIBUTE() helper macro to decrease it in seq_file.h. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> --- sound/soc/soc-core.c | 51 +-- 1 file chan

[PATCH v4] ASoC: use DEFINE_SHOW_ATTRIBUTE() to decrease code duplication

2018-02-14 Thread Peng Donglin
There is some duplicate code in soc-core.c, and the kernel provides DEFINE_SHOW_ATTRIBUTE() helper macro to decrease it in seq_file.h. Signed-off-by: Peng Donglin <dolinux.p...@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevche...@gmail.com> --- v4: * resend patch using outlook em

[PATCH v4] ASoC: use DEFINE_SHOW_ATTRIBUTE() to decrease code duplication

2018-02-14 Thread Peng Donglin
There is some duplicate code in soc-core.c, and the kernel provides DEFINE_SHOW_ATTRIBUTE() helper macro to decrease it in seq_file.h. Signed-off-by: Peng Donglin Reviewed-by: Andy Shevchenko --- v4: * resend patch using outlook email, because I can't disable gmail word wrap in plain text

[PATCH] sound: fix some checkpatch errors and warnings.

2017-08-18 Thread Peng Donglin
hould be at the same indent WARNING: Statements should start on a tabstop WARNING: Block comments use * on subsequent lines Signed-off-by: Peng Donglin --- sound/last.c | 2 +- sound/sound_core.c | 163 - 2 files changed, 76 inserti

[PATCH 00/12] Remove unnecessary function call

2017-08-19 Thread Peng Donglin
n,so i think that the former copy operation can be removed. Peng Donglin (12): ASoC: s3c24xx_uda134x: Remove unnecessary function call ASoC: mediatek: Remove unnecessary function call ASoC: Intel: Remove unnecessary function call ASoC: atmel: Remove unnecessary function call ASoC: a

[PATCH 02/12] ASoC: mediatek: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
n,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin --- sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c | 1 - sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c | 1 - sound/soc/mediatek/mt8173/mt8173-rt5650.c| 1 - 3 files changed, 3 deletions(-) diff -

[PATCH 01/12] ASoC: s3c24xx_uda134x: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
n,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin --- sound/soc/samsung/s3c24xx_uda134x.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/samsung/s3c24xx_uda134x.c b/sound/soc/samsung/s3c24xx_uda134x.c index 55538e3..758e46e 100644 --- a/sound

[PATCH 03/12] ASoC: Intel: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
ion, so i think that the latter copy operation can be removed. Signed-off-by: Peng Donglin --- sound/soc/intel/boards/bytcht_da7213.c | 1 - sound/soc/intel/boards/bytcht_es8316.c | 1 - sound/soc/intel/boards/bytcr_rt5651.c| 1 - sound/soc/intel/boards/cht_bsw_max98090_ti.c | 1 -

[PATCH 04/12] ASoC: atmel: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
y operation, so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin --- sound/soc/atmel/atmel-classd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel/atmel-classd.c index b7ef8c5..0cd7caa 100644 --- a/sound/

[PATCH 05/12] ASoC: atmel: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
y operation, so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin --- sound/soc/atmel/atmel-pdmic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/atmel/atmel-pdmic.c b/sound/soc/atmel/atmel-pdmic.c index c917df7..8e3d34b 100644 --- a/sound/soc/atme

[PATCH 06/12] ASoC: rockchip: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
n,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin --- sound/soc/rockchip/rk3288_hdmi_analog.c | 2 -- sound/soc/rockchip/rk3399_gru_sound.c | 1 - 2 files changed, 3 deletions(-) diff --git a/sound/soc/rockchip/rk3288_hdmi_analog.c b/sound/

[PATCH 07/12] ASoC: mxs-sgtl5000: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
n,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin --- sound/soc/mxs/mxs-sgtl5000.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/mxs/mxs-sgtl5000.c b/sound/soc/mxs/mxs-sgtl5000.c index a96276e..2ed3240 100644 --- a/sound/soc/mxs/mxs-sgtl5000.c +++

[PATCH 08/12] ASoC: qcom: Remove useless function call

2017-08-19 Thread Peng Donglin
ed-off-by: Peng Donglin --- sound/soc/qcom/apq8016_sbc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/qcom/apq8016_sbc.c b/sound/soc/qcom/apq8016_sbc.c index d084d74..5292591 100644 --- a/sound/soc/qcom/apq8016_sbc.c +++ b/sound/soc/qcom/apq8016_sbc.c @@ -191,7 +191,6 @@ stat

[PATCH 09/12] ASoC: qcom: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
n,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin --- sound/soc/qcom/storm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/qcom/storm.c b/sound/soc/qcom/storm.c index c5207af..a9fa972 100644 --- a/sound/soc/qcom/storm.c +++ b/sound/soc/qcom/stor

[PATCH 10/12] ASoC: sun4i-codec: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
he same copy operation,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin --- sound/soc/sunxi/sun4i-codec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 1500699..82beeae 100644 --- a/sound/soc

[PATCH 12/12] ASoC: ux500: Remove unnecessary function call

2017-08-20 Thread Peng Donglin
tion,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin --- sound/soc/ux500/mop500.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/ux500/mop500.c b/sound/soc/ux500/mop500.c index ba9fc09..070a688 100644 --- a/sound/soc/ux500/mop500.c +++ b/sound/

[PATCH 11/12] ASoC: tegra: Remove unnecessary function call

2017-08-20 Thread Peng Donglin
n,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin --- sound/soc/tegra/tegra_alc5632.c | 1 - sound/soc/tegra/tegra_max98090.c | 1 - sound/soc/tegra/tegra_rt5640.c | 1 - sound/soc/tegra/tegra_rt5677.c | 1 - sound/soc/tegra/tegra_sgtl5000.c | 1 - sou

[PATCH v2 00/10] Remove unnecessary function

2017-08-23 Thread Peng Donglin
When calling the function devm_snd_soc_register_card to register a sound card,the address of snd_soc_card will be assigned to dev->driver_data automatically,so there is no extra need to call platform_set_drvdata. Peng Donglin (10): ASoC: s3c24xx_uda134x: Remove unnecessary function call A

[PATCH v2 01/10] ASoC: s3c24xx_uda134x: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/samsung/s3c24xx_uda134x.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/samsung/s3c24xx_uda134x.c b/sound/soc/samsung/s3c24xx_uda134x.c index

[PATCH v2 02/10] ASoC: mediatek: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c | 1 - sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c | 1 - sound/soc/mediatek/mt8173/mt8173-rt5650.c| 1 - 3 files

[PATCH v2 03/10] ASoC: Intel: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- Changes in v2: -add missed occurrences. sound/soc/intel/boards/bytcht_da7213.c | 6 ++ sound/soc/intel/boards/bytcht_es8316.c | 6 ++ sound/soc/intel/boards

[PATCH v2 04/10] ASoC: atmel: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/atmel/atmel-classd.c | 1 - sound/soc/atmel/atmel-pdmic.c | 1 - 2 files changed, 2 deletions(-) diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel/atmel

[PATCH v2 05/10] ASoC: rockchip: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/rockchip/rk3288_hdmi_analog.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sound/soc/rockchip/rk3288_hdmi_analog.c b/sound/soc/rockchip

[PATCH v2 06/10] ASoC: mxs-sgtl5000: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/mxs/mxs-sgtl5000.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sound/soc/mxs/mxs-sgtl5000.c b/sound/soc/mxs/mxs-sgtl5000.c index

[PATCH v2 07/10] ASoC: qcom: Remove useless function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Acked-by: Banajit Goswami Signed-off-by: Peng Donglin --- sound/soc/qcom/apq8016_sbc.c | 1 - sound/soc/qcom/storm.c | 1 - 2 files changed, 2 deletions(-) diff --git a/sound/soc/qcom/apq8016_sbc.c b

[PATCH v2 08/10] ASoC: sun4i-codec: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/sunxi/sun4i-codec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 150069987c0c..82beeae8edc5

[PATCH v2 09/10] ASoC: tegra: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/tegra/tegra_alc5632.c | 1 - sound/soc/tegra/tegra_max98090.c | 1 - sound/soc/tegra/tegra_rt5640.c | 1 - sound/soc/tegra/tegra_rt5677.c | 1 - sound/soc/tegra

[PATCH v2 10/10] ASoC: ux500: Remove unnecessary function call

2017-08-23 Thread Peng Donglin
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/ux500/mop500.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/ux500/mop500.c b/sound/soc/ux500/mop500.c index ba9fc099cf67..070a6880980e 100644

[PATCH] ASoC: compress: Set reasonable compress id string

2017-08-16 Thread Peng Donglin
For dynamic compress rtd, the codec_dai may not have any actual meaning(like snd-soc-dummy-dai), so compress id can just use the value of dai_link->stream_name. But for others, its codec_dai has actual meaning, so compress id can include codec_dai name. Signed-off-by: Peng Donglin --- sound/

[PATCH] ASoC: dapm: Fix typos in comment

2017-09-27 Thread Peng Donglin
Signed-off-by: Peng Donglin --- sound/soc/soc-dapm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index dcef67a..0867eaa 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -4167,7 +4167,7 @@ void

[PATCH] ASoC: use DEFINE_SHOW_ATTRIBUTE() to decrease code duplication

2018-02-08 Thread Peng Donglin
There is some duplicate code in soc-core.c,and the kernel provides DEFINE_SHOW_ATTRIBUTE() helper macro to decrease it in seq_file.h. Signed-off-by: Peng Donglin --- sound/soc/soc-core.c | 51 +-- 1 file changed, 9 insertions(+), 42 deletions

[PATCH] ASoC: use seq_file to dump the contents of dai_list, platoform_list and codec_list

2018-01-17 Thread Peng Donglin
/platform_list/codec_list. Signed-off-by: Peng Donglin --- sound/soc/soc-core.c | 111 +-- 1 file changed, 37 insertions(+), 74 deletions(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index c0edac8..7b58211 100644 --- a/sound/soc/soc

[PATCH 1/2] ARM: dump: Convert to use DEFINE_SHOW_ATTRIBUTE macro

2018-06-12 Thread Peng Donglin
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Peng Donglin --- arch/arm/mm/ptdump_debugfs.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/arch/arm/mm/ptdump_debugfs.c b/arch/arm/mm/ptdump_debugfs.c index be8d87b..79002fe 100644

[PATCH 0/2] Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-06-12 Thread Peng Donglin
...instead of open coding file operations followed by custom ->open() callbacks per each attribute. Peng Donglin (2): ARM: dump: Convert to use DEFINE_SHOW_ATTRIBUTE macro ARM64: dump: Convert to use DEFINE_SHOW_ATTRIBUTE macro arch/arm/mm/ptdump_debugfs.c | 13 + arch/ar

[PATCH 2/2] ARM64: dump: Convert to use DEFINE_SHOW_ATTRIBUTE macro

2018-06-12 Thread Peng Donglin
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Peng Donglin --- arch/arm64/mm/ptdump_debugfs.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/arch/arm64/mm/ptdump_debugfs.c b/arch/arm64/mm/ptdump_debugfs.c index 02b18f8..24d786f 100644