avicii: audio: Set correct pulse-code modulation format for primary output
* OnePlus had made the corresponding change in the IO policy config but however it seems that policy side configuration was left as is due to which format routing to device was broken as the IO policy specificed a 24bit PCM format for primary audio meanwhile the policy config marked 16bit PCM as the format causing backend failures. * This will also align to OnePlus's 24 bit width audio enforcement. Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com> Change-Id: Ic5e715311c6d3c46579b93346a9ffd814e022e91
This commit is contained in:
committed by
AmolAmrit
parent
2005df938c
commit
86526d0bb7
@@ -89,7 +89,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
<defaultOutputDevice>Speaker</defaultOutputDevice>
|
<defaultOutputDevice>Speaker</defaultOutputDevice>
|
||||||
<mixPorts>
|
<mixPorts>
|
||||||
<mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_PRIMARY">
|
<mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_PRIMARY">
|
||||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
<profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED"
|
||||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||||
</mixPort>
|
</mixPort>
|
||||||
<mixPort name="deep_buffer" role="source"
|
<mixPort name="deep_buffer" role="source"
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
<defaultOutputDevice>Speaker</defaultOutputDevice>
|
<defaultOutputDevice>Speaker</defaultOutputDevice>
|
||||||
<mixPorts>
|
<mixPorts>
|
||||||
<mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_PRIMARY">
|
<mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_PRIMARY">
|
||||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
<profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED"
|
||||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||||
</mixPort>
|
</mixPort>
|
||||||
<mixPort name="deep_buffer" role="source"
|
<mixPort name="deep_buffer" role="source"
|
||||||
|
|||||||
Reference in New Issue
Block a user