43916d92 | 15-Oct-2024 |
Arnd Bergmann <arnd@arndb.de> |
ASoC: loongson: make loongson-i2s.o a separate module
An object file should not be linked into multiple modules and/or vmlinux:
scripts/Makefile.build:221: /home/arnd/arm-soc/sound/soc/loongson/Mak
ASoC: loongson: make loongson-i2s.o a separate module
An object file should not be linked into multiple modules and/or vmlinux:
scripts/Makefile.build:221: /home/arnd/arm-soc/sound/soc/loongson/Makefile: loongson_i2s.o is added to multiple modules: snd-soc-loongson-i2s-pci snd-soc-loongson-i2s-plat
Change this one to make it a library module with two exported symbols that will work in any configuration.
Fixes: ba4c5fad598c ("ASoC: loongson: Add I2S controller driver as platform device") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://patch.msgid.link/20241015150958.2294155-1-arnd@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
show more ...
|
4c22b04e | 09-Sep-2024 |
Binbin Zhou <zhoubinbin@loongson.cn> |
ASoC: loongson: Factor out loongson i2s enable clock functions
There are a few i2s clock enable operations in loongson_i2s_set_fmt(), convert them to simple helper functions called loongson_i2s_enab
ASoC: loongson: Factor out loongson i2s enable clock functions
There are a few i2s clock enable operations in loongson_i2s_set_fmt(), convert them to simple helper functions called loongson_i2s_enable_mclk() and loongson_i2s_enable_bclk().
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Link: https://patch.msgid.link/d6f6c818b0ecee87277f704b6a801cbbf5e712ce.1725844530.git.zhoubinbin@loongson.cn Signed-off-by: Mark Brown <broonie@kernel.org>
show more ...
|
ddb538a3 | 09-Sep-2024 |
Binbin Zhou <zhoubinbin@loongson.cn> |
ASoC: loongson: Factor out loongson_card_acpi_find_device() function
The operations for reading the cpu and codec nodes in loongson_card_parse_acpi() are similar, so we convert them into a simple he
ASoC: loongson: Factor out loongson_card_acpi_find_device() function
The operations for reading the cpu and codec nodes in loongson_card_parse_acpi() are similar, so we convert them into a simple helper function called loongson_card_acpi_find_device().
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Link: https://patch.msgid.link/3b7da05e5fd4326e7944aa749bf06dd44e964f6c.1725844530.git.zhoubinbin@loongson.cn Signed-off-by: Mark Brown <broonie@kernel.org>
show more ...
|
c7b626a8 | 09-Sep-2024 |
Binbin Zhou <zhoubinbin@loongson.cn> |
ASoC: loongson: Replace if with ternary operator
Replace an if statement with a ternary operator, making the code a tiny bit shorter.
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Link: https
ASoC: loongson: Replace if with ternary operator
Replace an if statement with a ternary operator, making the code a tiny bit shorter.
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Link: https://patch.msgid.link/94ec2ac178610f50af4815ef5b719695915bba31.1725844530.git.zhoubinbin@loongson.cn Signed-off-by: Mark Brown <broonie@kernel.org>
show more ...
|
e28ee1b8 | 09-Sep-2024 |
Binbin Zhou <zhoubinbin@loongson.cn> |
ASoC: loongson: Simplify if statment in loongson_card_hw_params()
Deal with illegal conditions first and put the normal process code outside the if condition to improve code readability.
Signed-off
ASoC: loongson: Simplify if statment in loongson_card_hw_params()
Deal with illegal conditions first and put the normal process code outside the if condition to improve code readability.
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Link: https://patch.msgid.link/98b71f9643970f11bc500c01599c7aeb77ff2a58.1725844530.git.zhoubinbin@loongson.cn Signed-off-by: Mark Brown <broonie@kernel.org>
show more ...
|
3d2528d6 | 09-Sep-2024 |
Binbin Zhou <zhoubinbin@loongson.cn> |
ASoC: loongson: Simplify with dev_err_probe()
Error handling in probe() can be a bit simpler with dev_err_probe().
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Link: https://patch.msgid.link
ASoC: loongson: Simplify with dev_err_probe()
Error handling in probe() can be a bit simpler with dev_err_probe().
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Link: https://patch.msgid.link/07855aa6c290ec826d63e68b898e7f4afac5e30d.1725844530.git.zhoubinbin@loongson.cn Signed-off-by: Mark Brown <broonie@kernel.org>
show more ...
|
ce3997ab | 09-Sep-2024 |
Binbin Zhou <zhoubinbin@loongson.cn> |
ASoC: loongson: Simplify probe() with local dev variable
Simplify the probe() function by using local 'dev' instead of &pdev->dev.
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Link: https://
ASoC: loongson: Simplify probe() with local dev variable
Simplify the probe() function by using local 'dev' instead of &pdev->dev.
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Link: https://patch.msgid.link/1984a20930da515e2a478b02159f83c02498f6be.1725844530.git.zhoubinbin@loongson.cn Signed-off-by: Mark Brown <broonie@kernel.org>
show more ...
|
f2bd6f5b | 09-Sep-2024 |
Binbin Zhou <zhoubinbin@loongson.cn> |
ASoC: loongson: Use BIT() macro
Where applicable, use BIT() macro instead of shift operation to improve readability.
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Link: https://patch.msgid.li
ASoC: loongson: Use BIT() macro
Where applicable, use BIT() macro instead of shift operation to improve readability.
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Link: https://patch.msgid.link/ccca555c96f18c0ecf5f1544c82945ba651d105f.1725844530.git.zhoubinbin@loongson.cn Signed-off-by: Mark Brown <broonie@kernel.org>
show more ...
|
97688a9c | 03-Sep-2024 |
tangbin <tangbin@cmss.chinamobile.com> |
ASoC: loongson: fix error release
In function loongson_card_parse_of(), when get device_node 'codec' failed, the function of_node_put(codec) should not be invoked, thus fix error release.
Fixes: d2
ASoC: loongson: fix error release
In function loongson_card_parse_of(), when get device_node 'codec' failed, the function of_node_put(codec) should not be invoked, thus fix error release.
Fixes: d24028606e76 ("ASoC: loongson: Add Loongson ASoC Sound Card Support") Signed-off-by: tangbin <tangbin@cmss.chinamobile.com> Link: https://patch.msgid.link/20240903090620.6276-1-tangbin@cmss.chinamobile.com Signed-off-by: Mark Brown <broonie@kernel.org>
show more ...
|