ASoC: amd: ps: fix byte count return value for invalid SoundWire manager instance
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Mon, 26 Jun 2023 10:53:53 +0000 (16:23 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 26 Jun 2023 12:29:00 +0000 (13:29 +0100)
commit68a653ab864ccf7874fe622f3af20fe7345c39be
treefbe881b3a9b95cdeccfa03042be36230e8419093
parent46b50e514b191ae15789cccabace5b6040c9278e
ASoC: amd: ps: fix byte count return value for invalid SoundWire manager instance

acp_get_byte_count() function should return zero bytes instead of
-EINVAL for invalid SoundWire manager instance.

Fixes: f722917350ee ("ASoC: amd: ps: add SoundWire dma driver dma ops")
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20230626105356.2580125-5-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/ps/ps-sdw-dma.c