diff options
author | Ingyu Jang <ingyujang25@unist.ac.kr> | 2024-09-26 19:40:04 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-10-05 02:53:57 +0100 |
commit | 23fa0b04d3fd4b8277083e9a8abb1a975a05c837 (patch) | |
tree | f57c404efdec235f0beaa906b7b0de80441545dd /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 64207f8024899938f8e13c4649a060a19f18bff3 (diff) |
ASoC: uniphier: Handle regmap_write errors in aio_src_set_param()
The aio_src_set_param() function did not previously check the return
values of regmap_write() and regmap_update_bits().
If these functions fail, it could lead to silent failures when
configuring the sample rate converter (SRC), causing improper behavior
in audio processing without any indication of an error.
This patch modifies aio_src_set_param to check the return values of
regmap_write() and regmap_update_bits().
If either function returns an error, the error code is propagated back
to the caller to ensure proper error handling.
This change aligns with the existing error-handling behavior in
functions like uniphier_aio_prepare(), where a failure in a sub-function
should result in an immediate return of the error.
Signed-off-by: Ingyu Jang <ingyujang25@unist.ac.kr>
Link: https://patch.msgid.link/SE1P216MB2287F4D575CFBDC9755E896BFD6A2@SE1P216MB2287.KORP216.PROD.OUTLOOK.COM
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions