* [PATCH 1/2] ASoC: SDCA: correct the calculation of the maximum init table size
@ 2025-07-21 11:23 shumingf
2025-07-21 14:04 ` Charles Keepax
2025-07-21 16:58 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: shumingf @ 2025-07-21 11:23 UTC (permalink / raw)
To: broonie, lgirdwood
Cc: linux-sound, lars, flove, oder_chiou, jack.yu, derek.fang,
ckeepax, Shuming Fan
From: Shuming Fan <shumingf@realtek.com>
One initial setting is 5 bytes, so num_init_writes should divide by 5.
Signed-off-by: Shuming Fan <shumingf@realtek.com>
---
sound/soc/sdca/sdca_functions.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sdca/sdca_functions.c b/sound/soc/sdca/sdca_functions.c
index 4b6da587c4ac..93767e73bc5f 100644
--- a/sound/soc/sdca/sdca_functions.c
+++ b/sound/soc/sdca/sdca_functions.c
@@ -212,7 +212,7 @@ static int find_sdca_init_table(struct device *dev,
} else if (num_init_writes % sizeof(*raw) != 0) {
dev_err(dev, "%pfwP: init table size invalid\n", function_node);
return -EINVAL;
- } else if (num_init_writes > SDCA_MAX_INIT_COUNT) {
+ } else if ((num_init_writes / sizeof(*raw)) > SDCA_MAX_INIT_COUNT) {
dev_err(dev, "%pfwP: maximum init table size exceeded\n", function_node);
return -EINVAL;
}
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/2] ASoC: SDCA: correct the calculation of the maximum init table size
2025-07-21 11:23 [PATCH 1/2] ASoC: SDCA: correct the calculation of the maximum init table size shumingf
@ 2025-07-21 14:04 ` Charles Keepax
2025-07-21 16:58 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Charles Keepax @ 2025-07-21 14:04 UTC (permalink / raw)
To: shumingf
Cc: broonie, lgirdwood, linux-sound, lars, flove, oder_chiou, jack.yu,
derek.fang
On Mon, Jul 21, 2025 at 07:23:34PM +0800, shumingf@realtek.com wrote:
> From: Shuming Fan <shumingf@realtek.com>
>
> One initial setting is 5 bytes, so num_init_writes should divide by 5.
>
> Signed-off-by: Shuming Fan <shumingf@realtek.com>
> ---
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] ASoC: SDCA: correct the calculation of the maximum init table size
2025-07-21 11:23 [PATCH 1/2] ASoC: SDCA: correct the calculation of the maximum init table size shumingf
2025-07-21 14:04 ` Charles Keepax
@ 2025-07-21 16:58 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2025-07-21 16:58 UTC (permalink / raw)
To: lgirdwood, shumingf
Cc: linux-sound, lars, flove, oder_chiou, jack.yu, derek.fang,
ckeepax
On Mon, 21 Jul 2025 19:23:34 +0800, shumingf@realtek.com wrote:
> One initial setting is 5 bytes, so num_init_writes should divide by 5.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/2] ASoC: SDCA: correct the calculation of the maximum init table size
commit: 9e55f1192648a5b327f03c60e411126b3d19c5c5
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-07-21 16:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-21 11:23 [PATCH 1/2] ASoC: SDCA: correct the calculation of the maximum init table size shumingf
2025-07-21 14:04 ` Charles Keepax
2025-07-21 16:58 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.