Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d0bf7bea authored by Asish Bhattacharya's avatar Asish Bhattacharya
Browse files

ASoC: tlv320aic3x: Fix slot width for non tdm mode playback



For machines using tlv320aic3x for dsp based decoding of compressed
audio there is no substream structure available. If tlv320aic3x is
used in I2S mode the slot width is supposed to be equal to bit width.
However if machine supports compressed audio decode using dsp the
structure will be cstream instead of substream. this will result in
invalid access. Avoid invalid access to substream structure by setting
slot_width with bit width in hw_param.

Change-Id: I95c83aba8f6144d1659eaeb927e6bae09fd9aa09
Signed-off-by: default avatarAsish Bhattacharya <asishb@codeaurora.org>
parent 2af45396
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment