ASoC: apple: Explain DAI startup return value handling

Add a comment explaining why .startup() must return 0 on success
to ensure the DAI is correctly marked as started and prevent
future changes from reintroducing the issue.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
Link: https://patch.msgid.link/20261016040946.521195-3-phucduc.bui@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
bui duc phuc 2026-10-16 11:09:37 +07:00 committed by Mark Brown
parent 1ba2cb30ee
commit ec2e1434c7

View File

@ -535,6 +535,11 @@ static int mca_fe_startup(struct snd_pcm_substream *substream,
if (ret < 0)
return ret;
/*
* ASoC only marks the DAI as started when .startup() returns 0.
* Since snd_pcm_hw_constraint_minmax() may return 1, explicitly
* return 0 to ensure the DAI is correctly marked as started.
*/
return 0;
}