Project

General

Profile

Files » sb30_hdmi_audio.patch

Enable HDMI output with audio - Lion Wang, 08/06/2021 10:10 AM

View differences:

device/inoco/sb30/audio_policy_config/audio_policy_configuration.xml
59 59
                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
60 60
                             samplingRates="44100,48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
61 61
                </mixPort>
62
                <mixPort name="hdmi stereo" role="source">
63
                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
64
                             samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
65
                </mixPort>
66
                <mixPort name="hdmi multi-ch" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT">
67
                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
68
                             samplingRates="32000,44100,48000"/>
69
                </mixPort>
62 70
                <mixPort name="primary input" role="sink">
63 71
                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
64 72
                             samplingRates="8000,16000,32000,44100,48000"
......
79 87
                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
80 88
                             samplingRates="44100,48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
81 89
                </devicePort>
90
                <devicePort tagName="HDMI Out" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink">
91
                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
92
                             samplingRates="32000,44100,48000"/>
93
                </devicePort>
82 94
                <devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink">
83 95
                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
84 96
                             samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
......
115 127
                       sources="primary output,fast"/>
116 128
                <route type="mix" sink="Wired Headphones"
117 129
                       sources="primary output,fast"/>
130
                <route type="mix" sink="HDMI Out"
131
                       sources="hdmi stereo,hdmi multi-ch"/>
118 132
                <route type="mix" sink="BT SCO"
119 133
                       sources="primary output"/>
120 134
                <route type="mix" sink="BT SCO Headset"
(2-2/9)