ASoC: SOF: ipc3-control: Merge functions to handle bytes_ext get variants
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Mon, 13 Mar 2023 11:03:39 +0000 (13:03 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 13 Mar 2023 14:06:49 +0000 (14:06 +0000)
commit76fc628aebdb452e3c620d9ff5c5e9448d316754
tree139a1f8ce53a42a1ad6a26af80fd9be0ddf0db7d
parent3eac8de3f51b3567c4ba6139736b59027da56285
ASoC: SOF: ipc3-control: Merge functions to handle bytes_ext get variants

The code for bytes_ext_get and bytes_ext_volatile_get is identical with
the only difference is that in case of volatile_get we refresh the data
from the DSP before returning it to user space.

Convert the callbacks to a simple wrapper for the same function.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20230313110344.16644-3-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc3-control.c