[PATCH 02/14] ASoC: qcom: SC7280: audioreach: Add sc7280 hardware param fixup callback
Mark Brown
broonie at kernel.org
Wed Feb 1 15:40:46 CET 2023
On Wed, Feb 01, 2023 at 07:19:35PM +0530, Mohammad Rafi Shaik wrote:
> +#define DEFAULT_SAMPLE_RATE_48K 48000
Why are we bothering with a define here given that the define also
encodes the value and it's only used in once place?
> for_each_card_prelinks(card, i, link) {
> link->init = sc7280_init;
> link->ops = &sc7280_ops;
> + if (link->no_pcm == 1)
> + link->be_hw_params_fixup = sc7280_snd_be_hw_params_fixup;
We only set the fixup in the case where there's no PCM but we removed
the constraint in all cases - isn't the constraint needed otherwise?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20230201/35bb0ff0/attachment.sig>
More information about the Alsa-devel
mailing list