Skip to content

ASoC: tegra: Simplify error handling

[email protected] linux-sound linux-tegra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ASoC: tegra: tegra20_das: Use dev_err_probe() for error handlingsound/soc/tegra/tegra20_das.c+3 -41 reply
2/4ASoC: tegra: tegra210_adx: Return the original error directlysound/soc/tegra/tegra210_adx.c+4 -81 reply
3/4ASoC: tegra: tegra210_amx: Return the original error directlysound/soc/tegra/tegra210_amx.c+4 -81 reply
4/4ASoC: tegra: tegra210: Use devm_clk_get_optional() for sync_input clocksound/soc/tegra/tegra210_i2s.c+5 -51 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchThierry Reding
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] ASoC: tegra: Simplify error handling

From: bui duc phuc <[email protected]>

Hi all,

This series contains a few small cleanups for the Tegra ASoC drivers.
- Use dev_err_probe() for regmap initialization failures.
- Return the original error from snd_soc_add_component_controls().
- Use devm_clk_get_optional() for the optional sync_input clock.

Overall, this simplifies the error paths and makes the code more consistent.

Best regards,
Phuc

bui duc phuc (4):
ASoC: tegra: tegra20_das: Use dev_err_probe() for error handling
ASoC: tegra: tegra210_adx: Return the original error directly
ASoC: tegra: tegra210_amx: Return the original error directly
ASoC: tegra: tegra210: Use devm_clk_get_optional() for sync_input
clock

 sound/soc/tegra/tegra20_das.c  |  7 +++----
 sound/soc/tegra/tegra210_adx.c | 12 ++++--------
 sound/soc/tegra/tegra210_amx.c | 12 ++++--------
 sound/soc/tegra/tegra210_i2s.c | 10 +++++-----
 4 files changed, 16 insertions(+), 25 deletions(-)
Signature · 1 line
2.43.0