OSDN Git Service

soundwire: qcom: allow 16-bit sample interval for ports
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 18 Apr 2023 09:54:43 +0000 (11:54 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 8 May 2023 07:31:34 +0000 (13:01 +0530)
commita8dffaa0f826176b344f5f909d197aedd22db578
tree5675619a2e12b05a3752d4871c7cabe6310fafc9
parenta536bf5afa28420514d975f0852a778ea8291e1a
soundwire: qcom: allow 16-bit sample interval for ports

The port sample interval was always 16-bit, split into low and high
bytes.  This split was unnecessary, although harmless for older devices
because all of them used only lower byte (so values < 0xff).  With
support for Soundwire controller on Qualcomm SM8550 and its devices,
both bytes will be used, thus add a new 'qcom,ports-sinterval' property
to allow 16-bit sample intervals.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230418095447.577001-4-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/qcom.c