DO NOT MERGE ANYWHERE Fix undefined behavior configuring SCO for I2S only devices.
This is hw_sco_config. ¯\_(ツ)_/¯
hw_sco_config passed a fake command status buffer to hw_sco_i2spcm_config.
hw_sco_config requested memory and didn't zero out the command status byte.
hw_sco_config relied on undefined behavior,
hw_sco_config caused hw_sco_i2spcm_config to fail randomly.
Don't be like hw_sco_config.
Restructured so hw_sco_config doesn't need to make a fake command buffer
in the first place.
BUG: 26638976
Change-Id: Id2e87caa33998d8ffb0a5a3d1f9fe52e83ec0f9e
1 file changed