From: Srinivas Kandagatla <[email protected]> Some I2S hosts, like the Qualcomm Q6 DSP on QRB2210, run the link with 32-bit slots. The ANX7625 handles this: it takes up to 24 valid bits from each slot. Right now hw_params turns down a 32-bit width with -EINVAL, so these hosts get no audio at all.
Treat a 32-bit width like 24 bits and program AUDIO_W_LEN_24_24MAX, the widest word length the chip has. Signed-off-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Riccardo Mereu <[email protected]> --- drivers/gpu/drm/bridge/analogix/anx7625.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c index c3af88e14f8b..cc76000c0888 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.c +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -2044,6 +2044,7 @@ static int anx7625_audio_hw_params(struct device *dev, void *data, wl = AUDIO_W_LEN_20_20MAX; break; case 24: + case 32: wl = AUDIO_W_LEN_24_24MAX; break; default: -- 2.56.1 -- Privacy and Confidentiality Notice: This email and all attachments are confidential and for the designated recipient(s) only. They may also be privileged. If you are not the intended recipient or among the intended recipients, you may not use, read, retransmit, disseminate, store/copy the information in any medium or take any action in reliance upon it. Please notify the sender that you have received it in error and immediately delete the entire communication, including any attachments.
