ASoC: SDCA: Add a helper to get the SoundWire port number
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 7 Jul 2025 12:41:54 +0000 (13:41 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 15 Jul 2025 18:45:50 +0000 (19:45 +0100)
commit264d3d776fb1a428706b0ca0f679bbed876fe7c9
tree8aee33344636b214b389b078f070503644744917
parent7b0d60dbb468fa82e9053292cdc8a5436400bfaf
ASoC: SDCA: Add a helper to get the SoundWire port number

Add a helper function to extract the SoundWire hardware port number
from the SDCA DataPort Selector Control. Typically this would be
called from hw_params() and used to call sdw_stream_add_slave().

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Link: https://patch.msgid.link/20250707124155.2596744-7-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/sdca_asoc.h
include/sound/sdca_function.h
sound/soc/sdca/sdca_asoc.c