]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: simple-card-utils: Split simple_fixup_sample_fmt func
authorMohan Kumar <mkumard@nvidia.com>
Mon, 27 May 2024 12:56:06 +0000 (12:56 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 27 May 2024 12:59:49 +0000 (13:59 +0100)
commit8cb3aeebcb86088e30232277c9bee9054837442b
treefbaa86cf01dc791e8bb91ac1438cb63cec33ad46
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
ASoC: simple-card-utils: Split simple_fixup_sample_fmt func

Split the simple_fixup_sample_fmt() into two functions by adding
one more function named simple_util_get_sample_fmt() to return
the sample format value.

This is useful for drivers that wish to simply get the sample format
without setting the mask.

Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Link: https://msgid.link/r/20240527125608.2461300-2-spujar@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/simple_card_utils.h
sound/soc/generic/simple-card-utils.c