Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
device_xiaomi_sm8350-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LMODroid-Devices
device_xiaomi_sm8350-common
Commits
bbe18b5c
Commit
bbe18b5c
authored
3 years ago
by
Cosmin Tanislav
Browse files
Options
Downloads
Patches
Plain Diff
Revert "sm8350-common: use aosp audio policy configuration"
This reverts commit
f6bdf3e6
.
parent
12d90e37
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
audio/audio_policy_configuration.xml
+36
-5
36 additions, 5 deletions
audio/audio_policy_configuration.xml
with
36 additions
and
5 deletions
audio/audio_policy_configuration.xml
+
36
−
5
View file @
bbe18b5c
...
...
@@ -142,6 +142,10 @@
</devicePort>
<devicePort
tagName=
"Telephony Tx"
type=
"AUDIO_DEVICE_OUT_TELEPHONY_TX"
role=
"sink"
>
</devicePort>
<devicePort
tagName=
"USB Device Out"
type=
"AUDIO_DEVICE_OUT_USB_DEVICE"
role=
"sink"
>
</devicePort>
<devicePort
tagName=
"USB Headset Out"
type=
"AUDIO_DEVICE_OUT_USB_HEADSET"
role=
"sink"
>
</devicePort>
<devicePort
tagName=
"BT A2DP Out"
type=
"AUDIO_DEVICE_OUT_BLUETOOTH_A2DP"
role=
"sink"
encodedFormats=
"AUDIO_FORMAT_LDAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"
>
<profile
name=
""
format=
"AUDIO_FORMAT_PCM_16_BIT"
...
...
@@ -165,6 +169,11 @@
</devicePort>
<devicePort
tagName=
"Telephony Rx"
type=
"AUDIO_DEVICE_IN_TELEPHONY_RX"
role=
"source"
>
</devicePort>
<!-- TODO: Enable multi-channel recording -->
<devicePort
tagName=
"USB Device In"
type=
"AUDIO_DEVICE_IN_USB_DEVICE"
role=
"source"
>
</devicePort>
<devicePort
tagName=
"USB Headset In"
type=
"AUDIO_DEVICE_IN_USB_HEADSET"
role=
"source"
>
</devicePort>
</devicePorts>
<routes>
<route
type=
"mix"
sink=
"Earpiece"
...
...
@@ -179,18 +188,23 @@
sources=
"primary output,deep_buffer,voip_rx"
/>
<route
type=
"mix"
sink=
"BT SCO Car Kit"
sources=
"primary output,deep_buffer,voip_rx"
/>
<route
type=
"mix"
sink=
"USB Device Out"
sources=
"primary output,deep_buffer,compressed_offload,hifi_playback,mmap_no_irq_out,voip_rx"
/>
<route
type=
"mix"
sink=
"USB Headset Out"
sources=
"primary output,deep_buffer,compressed_offload,hifi_playback,mmap_no_irq_out,voip_rx"
/>
<route
type=
"mix"
sink=
"Telephony Tx"
sources=
"voice_tx,incall_music_uplink"
/>
<route
type=
"mix"
sink=
"primary input"
sources=
"Built-In Mic,Built-In Back Mic,BT SCO Headset Mic"
/>
sources=
"Built-In Mic,Built-In Back Mic,BT SCO Headset Mic
,USB Device In,USB Headset In
"
/>
<route
type=
"mix"
sink=
"fast input"
sources=
"Built-In Mic,Built-In Back Mic,BT SCO Headset Mic"
/>
sources=
"Built-In Mic,Built-In Back Mic,BT SCO Headset Mic
,USB Device In,USB Headset In
"
/>
<route
type=
"mix"
sink=
"voice_rx"
sources=
"Telephony Rx"
/>
<route
type=
"mix"
sink=
"hifi_input"
sources=
"USB Device In,USB Headset In"
/>
<route
type=
"mix"
sink=
"mmap_no_irq_in"
sources=
"Built-In Mic,Built-In Back Mic"
/>
sources=
"Built-In Mic,Built-In Back Mic
,USB Device In,USB Headset In
"
/>
<route
type=
"mix"
sink=
"voip_tx"
sources=
"Built-In Mic,Built-In Back Mic,BT SCO Headset Mic"
/>
sources=
"Built-In Mic,Built-In Back Mic,BT SCO Headset Mic
,USB Device In,USB Headset In
"
/>
<route
type=
"mix"
sink=
"BT A2DP Out"
sources=
"primary output,deep_buffer,compressed_offload,voip_rx"
/>
<route
type=
"mix"
sink=
"BT A2DP Headphones"
...
...
@@ -223,7 +237,24 @@
</module>
<!-- Usb Audio HAL -->
<xi:include
href=
"/vendor/etc/usb_audio_policy_configuration.xml"
/>
<module
name=
"usb"
halVersion=
"2.0"
>
<mixPorts>
<mixPort
name=
"usb_accessory output"
role=
"source"
>
<profile
name=
""
format=
"AUDIO_FORMAT_PCM_16_BIT"
samplingRates=
"44100"
channelMasks=
"AUDIO_CHANNEL_OUT_STEREO"
/>
</mixPort>
</mixPorts>
<devicePorts>
<devicePort
tagName=
"USB Host Out"
type=
"AUDIO_DEVICE_OUT_USB_ACCESSORY"
role=
"sink"
>
<profile
name=
""
format=
"AUDIO_FORMAT_PCM_16_BIT"
samplingRates=
"44100"
channelMasks=
"AUDIO_CHANNEL_OUT_STEREO"
/>
</devicePort>
</devicePorts>
<routes>
<route
type=
"mix"
sink=
"USB Host Out"
sources=
"usb_accessory output"
/>
</routes>
</module>
<!-- Remote Submix Audio HAL -->
<xi:include
href=
"/vendor/etc/r_submix_audio_policy_configuration.xml"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment