Enable VGA (640x480) recording on the camera CM 7.2
using the standard application for recording programs,
by the way now you can record using a codec H.263, H.264 and a resolution of 640x480 (using LGCamera or DoubleShot)
Maximum number of fps to> 30 if attained
video output format 3gp (or mp4 when you change a parameter in the file media_profiles.xml)
recording in 100 (previously 90%)
bitrate of 10Mbit (17Mbit earlier)
And now the most important or edit
system/etc/media_profiles.xml
New
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE MediaSettings [
<!ELEMENT MediaSettings (CamcorderProfiles,
EncoderOutputFileFormat+,
VideoEncoderCap+,
AudioEncoderCap+,
VideoDecoderCap,
AudioDecoderCap)>
<!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)>
<!ELEMENT EncoderProfile (Video, Audio)>
<!ATTLIST EncoderProfile quality (high|low) #REQUIRED>
<!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED>
<!ATTLIST EncoderProfile duration (30|60) #REQUIRED>
<!ELEMENT Video EMPTY>
<!ATTLIST Video codec (h264|h263|m4v) #REQUIRED>
<!ATTLIST Video bitRate CDATA #REQUIRED>
<!ATTLIST Video width CDATA #REQUIRED>
<!ATTLIST Video height CDATA #REQUIRED>
<!ATTLIST Video frameRate CDATA #REQUIRED>
<!ELEMENT Audio EMPTY>
<!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED>
<!ATTLIST Audio bitRate CDATA #REQUIRED>
<!ATTLIST Audio sampleRate CDATA #REQUIRED>
<!ATTLIST Audio channels (1|2) #REQUIRED>
<!ELEMENT ImageEncoding EMPTY>
<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>
<!ELEMENT ImageDecoding EMPTY>
<!ATTLIST ImageDecoding memCap CDATA #REQUIRED>
<!ELEMENT Camera EMPTY>
<!ATTLIST Camera previewFrameRate CDATA #REQUIRED>
<!ELEMENT EncoderOutputFileFormat EMPTY>
<!ATTLIST EncoderOutputFileFormat name (mp4|3gp) #REQUIRED>
<!ELEMENT VideoEncoderCap EMPTY>
<!ATTLIST VideoEncoderCap name (h264|h263|m4v|wmv) #REQUIRED>
<!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED>
<!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED>
<!ELEMENT AudioEncoderCap EMPTY>
<!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma) #REQUIRED>
<!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED>
<!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap minChannels (1|2) #REQUIRED>
<!ATTLIST AudioEncoderCap maxChannels (1|2) #REQUIRED>
<!ELEMENT VideoDecoderCap EMPTY>
<!ATTLIST VideoDecoderCap name (wmv) #REQUIRED>
<!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED>
<!ELEMENT AudioDecoderCap EMPTY>
<!ATTLIST AudioDecoderCap name (wma) #REQUIRED>
<!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED>
]>
<!--
This file is used to declare the multimedia profiles and capabilities
on an android-powered device.
-->
<MediaSettings>
<!-- Each camcorder profile defines a set of predefined configuration parameters -->
<CamcorderProfiles>
<EncoderProfile quality="high" fileFormat="3gp" duration="60">
<Video codec="m4v"
bitRate="10000000"
width="640"
height="480"
frameRate="30" />
<Audio codec="amrnb"
bitRate="23450"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="low" fileFormat="3gp" duration="30">
<Video codec="m4v"
bitRate="161000"
width="176"
height="144"
frameRate="15" />
<Audio codec="amrnb"
bitRate="23450"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<ImageEncoding quality="100" />
<ImageEncoding quality="95" />
<ImageEncoding quality="90" />
<ImageDecoding memCap="26000000" />
<Camera previewFrameRate="0" />
</CamcorderProfiles>
<EncoderOutputFileFormat name="3gp" />
<EncoderOutputFileFormat name="mp4" />
<!--
If a codec is not enabled, it is invisible to the applications
In other words, the applications won't be able to use the codec
or query the capabilities of the codec at all if it is disabled
-->
<VideoEncoderCap name="h264" enabled="true"
minBitRate="64000" maxBitRate="10000000"
minFrameWidth="176" maxFrameWidth="640"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="30" />
<VideoEncoderCap name="h263" enabled="true"
minBitRate="64000" maxBitRate="6000000"
minFrameWidth="176" maxFrameWidth="640"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="30" />
<VideoEncoderCap name="m4v" enabled="true"
minBitRate="64000" maxBitRate="10000000"
minFrameWidth="176" maxFrameWidth="640"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="30" />
<AudioEncoderCap name="amrnb" enabled="true"
minBitRate="5525" maxBitRate="23450"
minSampleRate="8000" maxSampleRate="8000"
minChannels="1" maxChannels="1" />
<AudioEncoderCap name="aac" enabled="true"
minBitRate="5525" maxBitRate="62900"
minSampleRate="8000" maxSampleRate="48000"
minChannels="1" maxChannels="1" />
<!--
FIXME:
We do not check decoder capabilities at present
At present, we only check whether windows media is visible
for TEST applications. For other applications, we do
not perform any checks at all.
-->
<VideoDecoderCap name="wmv" enabled="true"/>
<AudioDecoderCap name="wma" enabled="true"/>
</MediaSettings>
Old>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE MediaSettings [
<!ELEMENT MediaSettings (CamcorderProfiles,
EncoderOutputFileFormat+,
VideoEncoderCap+,
AudioEncoderCap+,
VideoDecoderCap,
AudioDecoderCap)>
<!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)>
<!ELEMENT EncoderProfile (Video, Audio)>
<!ATTLIST EncoderProfile quality (high|low) #REQUIRED>
<!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED>
<!ATTLIST EncoderProfile duration (30|60) #REQUIRED>
<!ELEMENT Video EMPTY>
<!ATTLIST Video codec (h264|h263|m4v) #REQUIRED>
<!ATTLIST Video bitRate CDATA #REQUIRED>
<!ATTLIST Video width CDATA #REQUIRED>
<!ATTLIST Video height CDATA #REQUIRED>
<!ATTLIST Video frameRate CDATA #REQUIRED>
<!ELEMENT Audio EMPTY>
<!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED>
<!ATTLIST Audio bitRate CDATA #REQUIRED>
<!ATTLIST Audio sampleRate CDATA #REQUIRED>
<!ATTLIST Audio channels (1|2) #REQUIRED>
<!ELEMENT ImageEncoding EMPTY>
<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>
<!ELEMENT ImageDecoding EMPTY>
<!ATTLIST ImageDecoding memCap CDATA #REQUIRED>
<!ELEMENT Camera EMPTY>
<!ATTLIST Camera previewFrameRate CDATA #REQUIRED>
<!ELEMENT EncoderOutputFileFormat EMPTY>
<!ATTLIST EncoderOutputFileFormat name (mp4|3gp) #REQUIRED>
<!ELEMENT VideoEncoderCap EMPTY>
<!ATTLIST VideoEncoderCap name (h264|h263|m4v|wmv) #REQUIRED>
<!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED>
<!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED>
<!ELEMENT AudioEncoderCap EMPTY>
<!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma) #REQUIRED>
<!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED>
<!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap minChannels (1|2) #REQUIRED>
<!ATTLIST AudioEncoderCap maxChannels (1|2) #REQUIRED>
<!ELEMENT VideoDecoderCap EMPTY>
<!ATTLIST VideoDecoderCap name (wmv) #REQUIRED>
<!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED>
<!ELEMENT AudioDecoderCap EMPTY>
<!ATTLIST AudioDecoderCap name (wma) #REQUIRED>
<!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED>
]>
<!--
This file is used to declare the multimedia profiles and capabilities
on an android-powered device.
-->
<MediaSettings>
<!-- Each camcorder profile defines a set of predefined configuration parameters -->
<CamcorderProfiles>
<EncoderProfile quality="high" fileFormat="mp4" duration="60">
<Video codec="m4v"
bitRate="1600000"
width="640"
height="480"
frameRate="24" />
<Audio codec="amrnb"
bitRate="23450"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="low" fileFormat="3gp" duration="30">
<Video codec="m4v"
bitRate="161000"
width="176"
height="144"
frameRate="15" />
<Audio codec="amrnb"
bitRate="23450"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<ImageEncoding quality="90" />
<ImageEncoding quality="80" />
<ImageEncoding quality="70" />
<ImageDecoding memCap="20000000" />
<Camera previewFrameRate="0" />
</CamcorderProfiles>
<EncoderOutputFileFormat name="3gp" />
<EncoderOutputFileFormat name="mp4" />
<!--
If a codec is not enabled, it is invisible to the applications
In other words, the applications won't be able to use the codec
or query the capabilities of the codec at all if it is disabled
-->
<VideoEncoderCap name="h264" enabled="true"
minBitRate="96100" maxBitRate="1600000"
minFrameWidth="176" maxFrameWidth="640"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="15" />
<VideoEncoderCap name="h263" enabled="true"
minBitRate="96100" maxBitRate="1600000"
minFrameWidth="176" maxFrameWidth="640"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="24" />
<VideoEncoderCap name="m4v" enabled="true"
minBitRate="96100" maxBitRate="1600000"
minFrameWidth="176" maxFrameWidth="640"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="24" />
<AudioEncoderCap name="amrnb" enabled="true"
minBitRate="5525" maxBitRate="23450"
minSampleRate="8000" maxSampleRate="8000"
minChannels="1" maxChannels="1" />
<AudioEncoderCap name="aac" enabled="true"
minBitRate="5525" maxBitRate="62900"
minSampleRate="8000" maxSampleRate="48000"
minChannels="1" maxChannels="1" />
<!--
FIXME:
We do not check decoder capabilities at present
At present, we only check whether windows media is visible
for TEST applications. For other applications, we do
not perform any checks at all.
-->
<VideoDecoderCap name="wmv" enabled="true"/>
<AudioDecoderCap name="wma" enabled="true"/>
</MediaSettings>
or
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE MediaSettings [
<!ELEMENT MediaSettings (CamcorderProfiles,
EncoderOutputFileFormat+,
VideoEncoderCap+,
AudioEncoderCap+,
VideoDecoderCap,
AudioDecoderCap)>
<!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)>
<!ELEMENT EncoderProfile (Video, Audio)>
<!ATTLIST EncoderProfile quality (high|low) #REQUIRED>
<!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED>
<!ATTLIST EncoderProfile duration (30|60) #REQUIRED>
<!ELEMENT Video EMPTY>
<!ATTLIST Video codec (h264|h263|m4v) #REQUIRED>
<!ATTLIST Video bitRate CDATA #REQUIRED>
<!ATTLIST Video width CDATA #REQUIRED>
<!ATTLIST Video height CDATA #REQUIRED>
<!ATTLIST Video frameRate CDATA #REQUIRED>
<!ELEMENT Audio EMPTY>
<!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED>
<!ATTLIST Audio bitRate CDATA #REQUIRED>
<!ATTLIST Audio sampleRate CDATA #REQUIRED>
<!ATTLIST Audio channels (1|2) #REQUIRED>
<!ELEMENT ImageEncoding EMPTY>
<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>
<!ELEMENT ImageDecoding EMPTY>
<!ATTLIST ImageDecoding memCap CDATA #REQUIRED>
<!ELEMENT Camera EMPTY>
<!ATTLIST Camera previewFrameRate CDATA #REQUIRED>
<!ELEMENT EncoderOutputFileFormat EMPTY>
<!ATTLIST EncoderOutputFileFormat name (mp4|3gp) #REQUIRED>
<!ELEMENT VideoEncoderCap EMPTY>
<!ATTLIST VideoEncoderCap name (h264|h263|m4v|wmv) #REQUIRED>
<!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED>
<!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED>
<!ELEMENT AudioEncoderCap EMPTY>
<!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma) #REQUIRED>
<!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED>
<!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap minChannels (1|2) #REQUIRED>
<!ATTLIST AudioEncoderCap maxChannels (1|2) #REQUIRED>
<!ELEMENT VideoDecoderCap EMPTY>
<!ATTLIST VideoDecoderCap name (wmv) #REQUIRED>
<!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED>
<!ELEMENT AudioDecoderCap EMPTY>
<!ATTLIST AudioDecoderCap name (wma) #REQUIRED>
<!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED>
]>
<!--
This file is used to declare the multimedia profiles and capabilities
on an android-powered device.
-->
<MediaSettings>
<!-- Each camcorder profile defines a set of predefined configuration parameters -->
<CamcorderProfiles>
<EncoderProfile quality="high" fileFormat="3gp" duration="60">
<Video codec="m4v"
bitRate="3078000"
width="640"
height="480"
frameRate="30" />
<Audio codec="amrnb"
bitRate="23450"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="low" fileFormat="3gp" duration="30">
<Video codec="m4v"
bitRate="161000"
width="176"
height="144"
frameRate="15" />
<Audio codec="amrnb"
bitRate="23450"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<ImageEncoding quality="90" />
<ImageEncoding quality="80" />
<ImageEncoding quality="70" />
<ImageDecoding memCap="20000000" />
<Camera previewFrameRate="0" />
</CamcorderProfiles>
<EncoderOutputFileFormat name="3gp" />
<EncoderOutputFileFormat name="mp4" />
<!--
If a codec is not enabled, it is invisible to the applications
In other words, the applications won't be able to use the codec
or query the capabilities of the codec at all if it is disabled
-->
<VideoEncoderCap name="h264" enabled="true"
minBitRate="96100" maxBitRate="12000000"
minFrameWidth="176" maxFrameWidth="320"
minFrameHeight="144" maxFrameHeight="240"
minFrameRate="1" maxFrameRate="30" />
<VideoEncoderCap name="h263" enabled="true"
minBitRate="96100" maxBitRate="12000000"
minFrameWidth="176" maxFrameWidth="320"
minFrameHeight="144" maxFrameHeight="240"
minFrameRate="1" maxFrameRate="30" />
<VideoEncoderCap name="m4v" enabled="true"
minBitRate="96100" maxBitRate="12000000"
minFrameWidth="176" maxFrameWidth="1920"
minFrameHeight="144" maxFrameHeight="1080"
minFrameRate="1" maxFrameRate="30" />
<AudioEncoderCap name="amrnb" enabled="true"
minBitRate="5525" maxBitRate="23450"
minSampleRate="8000" maxSampleRate="8000"
minChannels="1" maxChannels="1" />
<AudioEncoderCap name="aac" enabled="true"
minBitRate="5525" maxBitRate="62900"
minSampleRate="8000" maxSampleRate="48000"
minChannels="1" maxChannels="1" />
<!--
FIXME:
We do not check decoder capabilities at present
At present, we only check whether windows media is visible
for TEST applications. For other applications, we do
not perform any checks at all.
-->
<VideoDecoderCap name="wmv" enabled="false"/>
<AudioDecoderCap name="wma" enabled="false"/>
</MediaSettings>
This modification to the operation, restart the phone.
NOTE: If someone independently edited or added anything to the file it is possible that after restarting our mini will be hung on a string :/ android
Rather not recommend using this mod and use at the same time high-OC (which can cause various types of anomalies in a third image is of a different color, brightness)
Maybe someone more optimize the recording!?
its better to use lg camera app from android market to record 480p videos
Can i use these on stock rom ?
I do not know. The first would have to know how to look at stockrom.
I test only CM 7.2.
I edited the file so I do not use LGCamera , but now I can us codec h.263 and h264 and recorded in 640x480
This file enables earpiece speaker to have stereo sound. And overall it sounds a lot better than original configuration.
Tested only with H850 and H830, do it at your own risk!
You'll need some file manager, I'm using Total Commander in this example. First, go to /system/etc and backup your mixer_paths_tasha.xml file, (it will ask to give root permissions to do that), then delete it.
Paste new file into system/etc and change permissions to 644
Reboot and enjoy stereo!
Download V1.1 for stock
mixer_paths.xml v1.1 for CM 13 -credtis to @nima0003
mixer_paths.xml v1.1 for CM 14.1 -credtis to @nima0003
CM14.1 instructions by @nima0003:
1. Remove mixer_paths_tasha.xml from the etc folder
2. Paste the mixer_paths.xml file (don't worry about the name)
3. Set permissions
4. Reboot
Revert back
If you want to test out with different G5 version, download this file and do the same steps (you may need to rename the file to match your mixer_paths file name) and report if it does work on your model.
Man this is awesome . Works perfectly on my H850.
OK, in order to make it work with CM 13 I had to modify a few things, otherwise it would give no audio. Do you want to post it in the OP or do you want me to make a new thread?
Works perfectly thanks a lot makes it sound a lot better biggest question is lets hope it cannot cause no damage to the earpiece speaker
Great work
nima0003 said:
OK, in order to make it work with CM 13 I had to modify a few things, otherwise it would give no audio. Do you want to post it in the OP or do you want me to make a new thread?
Click to expand...
Click to collapse
I can post it to OP and give you the credits
ashirviskas said:
I can post it to OP and give you the credits
Click to expand...
Click to collapse
Sure, I will attach the file.
brockyneo said:
Works perfectly thanks a lot makes it sound a lot better biggest question is lets hope it cannot cause no damage to the earpiece speaker
Great work
Click to expand...
Click to collapse
It won't damage it it's a speaker it's not that sensitive.
nima0003 said:
Sure, I will attach the file.
Click to expand...
Click to collapse
Added!
einhuman197 said:
It won't damage it it's a speaker it's not that sensitive.
Click to expand...
Click to collapse
Ok thanks that was my first worry even on my s7 too and it was only today I was going to swap my g5 with the gf for her iphone 6s as Well lol
ashirviskas said:
Added!
Click to expand...
Click to collapse
Not trying to be rude or anything, but can you please ad an "@" symbol before my name in the OP, like this: "@nima0003" thanks!
Wow! Sounds great. Good work m8!
works well
So awesome, thank you very much hope this will be incorporated in to muistones patch and the other roms
works perfect with AICP ??
gesendet von meinem LG G5 H850 AICP11.0
Thanks it work perfectly
Just gave it a quick test yesterday. Seems to work very well! Usually use headphones most of the time though and just restored my backup. Just a quick heads up incase it happens to anyone else. After I restored the file I couldn't play videos at all. Kept getting errors in youtube and netflix and such. Needed to change the permissions of the file after restore aswell. Working fine now
amazing sound is like a HTC10 now,I wait this for a time,but now is perfect!
Works great! :laugh:
if any interested, here the patch what all modified (CM13 only)
Code:
From e5b738f1d895ff3a68098f1f285d05d9de968867 Mon Sep 17 00:00:00 2001
From: nima0003
Date: Mon, 31 Oct 2016 13:18:13 +0100
Subject: [PATCH 1/1] CM Stereo hack
---
configs/mixer_paths.xml | 52 ++++++++++++++++++++++++++++++++++++-------------
1 file changed, 38 insertions(+), 14 deletions(-)
diff --git a/configs/mixer_paths.xml b/configs/mixer_paths.xml
index 8308332..f33c468 100755
--- a/configs/mixer_paths.xml
+++ b/configs/mixer_paths.xml
@@ -512,8 +512,6 @@
<ctl name="LSM7 MUX" value="None" />
<ctl name="LSM8 MUX" value="None" />
<ctl name="SLIMBUS_5_TX LSM Function" value="None" />
- <ctl name="MADONOFF Switch" value="0" />
- <ctl name="MAD Input" value="DMIC0" />
<!-- listen end-->
<!-- ADSP testfwk -->
@@ -1625,30 +1623,30 @@
</path>
<!-- For Tasha, DMIC numbered from 0 to 5 -->
- <path name="dmic1">
+ <path name="dmic3">
<ctl name="AIF1_CAP Mixer SLIM TX7" value="1"/>
<ctl name="SLIM_0_TX Channels" value="One" />
<ctl name="SLIM TX7 MUX" value="DEC7" />
<ctl name="ADC MUX7" value="DMIC" />
- <ctl name="DMIC MUX7" value="DMIC0" />
+ <ctl name="DMIC MUX7" value="DMIC2" />
<ctl name="IIR0 INP0 MUX" value="DEC7" />
</path>
- <path name="dmic2">
+ <path name="dmic1">
<ctl name="AIF1_CAP Mixer SLIM TX7" value="1"/>
<ctl name="SLIM_0_TX Channels" value="One" />
<ctl name="SLIM TX7 MUX" value="DEC7" />
<ctl name="ADC MUX7" value="DMIC" />
- <ctl name="DMIC MUX7" value="DMIC1" />
+ <ctl name="DMIC MUX7" value="DMIC0" />
<ctl name="IIR0 INP0 MUX" value="DEC7" />
</path>
- <path name="dmic3">
+ <path name="dmic2">
<ctl name="AIF1_CAP Mixer SLIM TX7" value="1"/>
<ctl name="SLIM_0_TX Channels" value="One" />
<ctl name="SLIM TX7 MUX" value="DEC7" />
<ctl name="ADC MUX7" value="DMIC" />
- <ctl name="DMIC MUX7" value="DMIC2" />
+ <ctl name="DMIC MUX7" value="DMIC1" />
<ctl name="IIR0 INP0 MUX" value="DEC7" />
</path>
@@ -1680,23 +1678,49 @@
</path>
<path name="speaker-fluid">
- <ctl name="SLIM RX0 MUX" value="AIF_MIX1_PB" />
- <ctl name="SLIM_0_RX Channels" value="One" />
- <ctl name="RX INT7_1 MIX1 INP0" value="RX0" />
+ <ctl name="RX HPH Mode" value="CLS_H_LP" />
+ <ctl name="SLIM RX0 MUX" value="AIF_MIX1_PB" />
+ <ctl name="SLIM RX1 MUX" value="AIF_MIX1_PB" />
+ <ctl name="SLIM_0_RX Channels" value="Two" />
+ <ctl name="RX INT0_1 MIX1 INP0" value="RX0" />
+ <ctl name="RX INT7_1 MIX1 INP0" value="RX1" />
<ctl name="SpkrLeft COMP Switch" value="1" />
<ctl name="SpkrLeft BOOST Switch" value="1" />
<ctl name="SpkrLeft VISENSE Switch" value="1" />
<ctl name="SpkrLeft SWR DAC_Port Switch" value="1" />
+ <ctl name="SpkrRight COMP Switch" value="1" />
+ <ctl name="SpkrRight BOOST Switch" value="1" />
+ <ctl name="SpkrRight VISENSE Switch" value="1" />
+ <ctl name="SpkrRight SWR DAC_Port Switch" value="1" />
+ <ctl name="RX INT0 DEM MUX" value="CLSH_DSM_OUT" />
+ <ctl name="RX INT1 DEM MUX" value="CLSH_DSM_OUT" />
+ <ctl name="EAR PA Gain" value="G_6_DB" />
+ <ctl name="HPHL DAC Switch" value="1" />
+ <ctl name="RX7 Digital Volume" value="86" />
+ <ctl name="RX0 Digital Volume" value="86" />
</path>
<path name="speaker-mono">
- <ctl name="SLIM RX0 MUX" value="AIF_MIX1_PB" />
- <ctl name="SLIM_0_RX Channels" value="One" />
- <ctl name="RX INT7_1 MIX1 INP0" value="RX0" />
+ <ctl name="RX HPH Mode" value="CLS_H_LP" />
+ <ctl name="SLIM RX0 MUX" value="AIF_MIX1_PB" />
+ <ctl name="SLIM RX1 MUX" value="AIF_MIX1_PB" />
+ <ctl name="SLIM_0_RX Channels" value="Two" />
+ <ctl name="RX INT0_1 MIX1 INP0" value="RX0" />
+ <ctl name="RX INT7_1 MIX1 INP0" value="RX1" />
<ctl name="SpkrLeft COMP Switch" value="1" />
<ctl name="SpkrLeft BOOST Switch" value="1" />
<ctl name="SpkrLeft VISENSE Switch" value="1" />
<ctl name="SpkrLeft SWR DAC_Port Switch" value="1" />
+ <ctl name="SpkrRight COMP Switch" value="1" />
+ <ctl name="SpkrRight BOOST Switch" value="1" />
+ <ctl name="SpkrRight VISENSE Switch" value="1" />
+ <ctl name="SpkrRight SWR DAC_Port Switch" value="1" />
+ <ctl name="RX INT0 DEM MUX" value="CLSH_DSM_OUT" />
+ <ctl name="RX INT1 DEM MUX" value="CLSH_DSM_OUT" />
+ <ctl name="EAR PA Gain" value="G_6_DB" />
+ <ctl name="HPHL DAC Switch" value="1" />
+ <ctl name="RX7 Digital Volume" value="84" />
+ <ctl name="RX0 Digital Volume" value="87" />
</path>
<path name="speaker">
--
1.9.1
can be used when build your own CM13 based Rom with Stereo Hack included. Credits to @nima0003
work excellent
UPDATE: I made it work! I'll add a reply below.
This might be a bit of a stretch, but I don't suppose anyone has managed to get bluetooth hearing aids (that support the ASHA protocol) working properly on this phone, either with OxygenOS or an aftermarket mod? I'm at my wits' end trying to work out why my mum's aren't working for calls while media audio is completely fine.
Stuff we've tried:
I've tested her hearing aids on my own OnePlus 7 Pro and they work absolutely perfectly. Media audio is fine, call audio is fine.
I tried looking at her phone's logcat output, from vanilla OxygenOS, and there were a *lot* of exceptions being thrown from the BluetoothAdapter constructor, from all sorts of apps. It seems that the static getDefaultAdapter() method was constructing a BluetoothAdapter incorrectly, which implied it was an OxygenOS bug.
And so we've just installed the LineageOS build from here, which I was certain would work - no joy. The issue is exactly the same; when the hearing aids are selected as the output device, no sound comes out of them, and the phone's microphone is disabled. With my own phone, it (correctly) uses the phone's microphone as the audio input.
Since media audio is fine, I presume it's not a hardware problem with the bluetooth adapter in the phone? But since the hearing aids work fine with my phone, running vanilla OxygenOS, it can't be an issue with the hearing aids, and since LineageOS fails in exactly the same way as OxygenOS, it surely can't be an issue with the operating system. I'm really out of ideas.
I managed to make it work!
Apparently OnePlus in their infinite wisdom didn't bother to put the hearing-aid and hearing-aid-mic audio route paths in /vendor/etc/mixer_paths_lagoonqrd.xml (that file name might be LineageOS specific - my own phone has two mixer_paths_*.xml files and neither of them are called that). I've attached a Magisk module with my fix in case it's useful for anyone else.
Please note: I've only tested this with LineageOS 18.1 and it's a modification of the LineageOS file I pulled from my mum's phone; I have absolutely no idea whether it'll work on OxygenOS.
Update: I've now tested on stock OxygenOS 11.0.16 (EU flavour) and it needed an extra line added, which I've now added and I've replaced the download here. Now it works perfectly on both OxygenOS and LineageOS!
I have absolutely no idea what I'm doing and this is provided "as-is" and nothing is my fault etc.
(É”) no rights reserved (by me, but other people might have rights, I don't know - look it up if you care)
Qualx said:
I managed to make it work!
Apparently OnePlus in their infinite wisdom didn't bother to put the hearing-aid and hearing-aid-mic audio route paths in /vendor/etc/mixer_paths_lagoonqrd.xml (that file name might be LineageOS specific - my own phone has two mixer_paths_*.xml files and neither of them are called that). I've attached a Magisk module with my fix in case it's useful for anyone else.
Please note: I've only tested this with LineageOS 18.1 and it's a modification of the LineageOS file I pulled from my mum's phone; I have absolutely no idea whether it'll work on OxygenOS.
Update: I've now tested on stock OxygenOS 11.0.16 (EU flavour) and it needed an extra line added, which I've now added and I've replaced the download here. Now it works perfectly on both OxygenOS and LineageOS!
I have absolutely no idea what I'm doing and this is provided "as-is" and nothing is my fault etc.
(É”) no rights reserved (by me, but other people might have rights, I don't know - look it up if you care)
Click to expand...
Click to collapse
Hi,
I have the same problem with my nord 2 and oxygen 11, so do you think that if I root my device, and install your magisk module it they will work?
Thanks
Andrea
andrea7376 said:
Hi,
I have the same problem with my nord 2 and oxygen 11, so do you think that if I root my device, and install your magisk module it they will work?
Thanks
Andrea
Click to expand...
Click to collapse
Almost certainly not, sorry! The files seem extremely device-specific - but by all means give it a go; if your device happens to use the same mixer_paths file I'd expect it would work, and it certainly won't do any harm, apart from needing to wipe your device in the process of rooting it.
I'd be happy to try and make a module for you though if you can work out which mixer_paths file your device is loading and give me a copy of it. I should probably have written down my method in more detail for people with other devices...
I'll check exact commands and update this post with them later on, but essentially, if you restart your device and immediately dump adb logcat output to a file, you should be able to ctrl+F for the string "mixer_paths" and you'll find the phone loading audio routes from one specific mixer_paths_something.xml file during startup. If you then pull that file to your computer with adb (it's located in /vendor/etc, I can't remember if that logcat line has the full path or not) and post it here or DM it to me, I'll make the modifications for you. (And I'll actually document my method this time for future people.)
Also, if you need help with any of the above then please ask! I'm trying not to make assumptions about your level of expertise.
Qualx said:
Almost certainly not, sorry! The files seem extremely device-specific - but by all means give it a go; if your device happens to use the same mixer_paths file I'd expect it would work, and it certainly won't do any harm, apart from needing to wipe your device in the process of rooting it.
I'd be happy to try and make a module for you though if you can work out which mixer_paths file your device is loading and give me a copy of it. I should probably have written down my method in more detail for people with other devices...
I'll check exact commands and update this post with them later on, but essentially, if you restart your device and immediately dump adb logcat output to a file, you should be able to ctrl+F for the string "mixer_paths" and you'll find the phone loading audio routes from one specific mixer_paths_something.xml file during startup. If you then pull that file to your computer with adb (it's located in /vendor/etc, I can't remember if that logcat line has the full path or not) and post it here or DM it to me, I'll make the modifications for you. (And I'll actually document my method this time for future people.)
Also, if you need help with any of the above then please ask! I'm trying not to make assumptions about your level of expertise.
Click to expand...
Click to collapse
Hi, thanks for your support,
first of all... my symptom are: the bluetooth connect to my hearing aid through the Hearing aid helper in the settings but there don't show nothing connected, but from this point ahead, I can't hear nothing from the phone and no one can hear me through the mic in a call, for this reason I thought it's the same bug, what do you think?
The problem is that I don't have the phone rooted yet, also it's coming the first open beta OS12 for the nord 2, even if it's for the indian version, if it will work I would get a try, but if it is not , I'm will stuck with that beta until it will output the Final OS12.
Anyway I have got from my non rooted phone the LogCat.
andrea7376 said:
Hi, thanks for your support,
first of all... my symptom are: the bluetooth connect to my hearing aid through the Hearing aid helper in the settings but there don't show nothing connected, but from this point ahead, I can't hear nothing from the phone and no one can hear me through the mic in a call, for this reason I thought it's the same bug, what do you think?
The problem is that I don't have the phone rooted yet, also it's coming the first open beta OS12 for the nord 2, even if it's for the indian version, if it will work I would get a try, but if it is not , I'm will stuck with that beta until it will output the Final OS12.
Anyway I have got from my non rooted phone the LogCat.
Click to expand...
Click to collapse
It definitely does sound like the same issue!
Cynically, I think it's very unlikely OnePlus will get it working with the OxygenOS 12 beta - they don't care about anything besides whatever current flagship is. Honestly, given my experiences with my own OP7Pro I wouldn't dare to install a OnePlus beta; even their actual releases are barely fit to be called betas.
Your logcat output doesn't seem to have the line specifying the mixer_paths file. You need to restart your phone with it already connected to your PC, since the line appears right at the start while it's booting up, and I think it gets flooded out of the logcat log very soon after the phone has booted up. You definitely don't need a rooted phone to get this info - my own phone's not rooted.
Here's what I did:
Connect phone to PC, get ADB connected and make sure that the phone is set to always allow USB debugging from this PC.
Restart phone.
As soon as the computer registered the phone as disconnected (I was going by the "USB device disconnected" sound but if you're deaf or hard of hearing I think it's when the screen has gone black), I started logcat piped through grep. (I'll explain that last bit in a sec)
ADB should wait for a device to connect.
Around when the OnePlus bootup animation starts, the phone should connect to the computer and almost immediately you should get a line from logcat.
If you're using Windows, this Powershell command will filter logcat output and it'll just output the line you need:
Code:
adb logcat | Select-String 'mixer_paths'
If you're using Linux (or MacOS, probably), you can use grep instead of Select-String:
Code:
adb logcat | grep 'mixer_paths'
The output line you're looking for should look like this (generated from my OP7Pro):
Code:
04-27 14:36:30.932 907 969 D msm8974_platform: platform_init: Loading mixer file: /vendor/etc/mixer_paths_tavil.xml
So in my case, you can see the file I'm looking for is /vendor/etc/mixer_paths_tavil.xml and I can pull it from the device using ADB:
Code:
adb pull /vendor/etc/mixer_paths_tavil.xml
The mixer file your device loads will almost certainly be called something different, but obviously just replace the "tavil" bit with whatever your one is called. If you post that XML file, I'll try and fix it and put the fixed version into a Magisk module for you.
Note: If your file is called mixer_paths_lagoonqrd.xml then that's the same as the Nord CE so the Magisk module I already posted should work for you.
Bad news,
There isn' that file, and of course isn't called from the boot process.
I have got the all the boot log, but i don't know if there are sensible data inside, and anyway even if there aren't I would send to you directly.
I'm contacting you in private.
hi Qualx ,
you can help me for the the Hearing aid , i have onePlus5T android 10 OxygenOS 10.0.1 , root with twrp and magisk.
Thanks a lot ( sorry for my bad english )
Hi Qualx,
thanks for adding instructions on how to extract the mixer_paths file. I've attached mine from my OnePlus 6 running crDroid Android 12. I tried copy-pasting the 3 hearing-aid entries to the file, re-zipping the magisk module with my modified .xml and installing the module, but had no difference in functionality. Could you take a look at the original file and work your magic?
Many thanks!
Qualx said:
UPDATE: I made it work! I'll add a reply below.
This might be a bit of a stretch, but I don't suppose anyone has managed to get bluetooth hearing aids (that support the ASHA protocol) working properly on this phone, either with OxygenOS or an aftermarket mod? I'm at my wits' end trying to work out why my mum's aren't working for calls while media audio is completely fine.
Stuff we've tried:
I've tested her hearing aids on my own OnePlus 7 Pro and they work absolutely perfectly. Media audio is fine, call audio is fine.
I tried looking at her phone's logcat output, from vanilla OxygenOS, and there were a *lot* of exceptions being thrown from the BluetoothAdapter constructor, from all sorts of apps. It seems that the static getDefaultAdapter() method was constructing a BluetoothAdapter incorrectly, which implied it was an OxygenOS bug.
And so we've just installed the LineageOS build from here, which I was certain would work - no joy. The issue is exactly the same; when the hearing aids are selected as the output device, no sound comes out of them, and the phone's microphone is disabled. With my own phone, it (correctly) uses the phone's microphone as the audio input.
Since media audio is fine, I presume it's not a hardware problem with the bluetooth adapter in the phone? But since the hearing aids work fine with my phone, running vanilla OxygenOS, it can't be an issue with the hearing aids, and since LineageOS fails in exactly the same way as OxygenOS, it surely can't be an issue with the operating system. I'm really out of ideas.
Click to expand...
Click to collapse
Hello, recently after 5 years of using the hearing aid, took a new one for testing, with bluetooth function. Oticon hearing aid. It suits me very well, but there is a small but, Audio Sharing does not work on my phone Xiaomi Redmi 8 Note Pro. My android version 10.0 and bluetooth version 5.0, all as required. I have read the forum and found out that changing the operating system on the phone can help, but I don't know what exactly needs to be done. I plan to try putting ArrowOS and see if ASHA will be supported.
harturicko said:
Hello, recently after 5 years of using the hearing aid, took a new one for testing, with bluetooth function. Oticon hearing aid. It suits me very well, but there is a small but, Audio Sharing does not work on my phone Xiaomi Redmi 8 Note Pro. My android version 10.0 and bluetooth version 5.0, all as required. I have read the forum and found out that changing the operating system on the phone can help, but I don't know what exactly needs to be done. I plan to try putting ArrowOS and see if ASHA will be supported.
Click to expand...
Click to collapse
Hi, most success I have noticed are
ported OOS 11 ROM if available for your device
if not available you need to try with Android 12/13 custom ROM(s). [i prefer A13]
Please note its just not ROM which need ASHA feature enabled but also config needs to be set in source Device tree (Device specific configs to enable BLE options).
Also most imp hearing aid option dont appear under Accessibility until and unless you enabled the Bluetooth meaning if BT is turned off then option will disappear automatically and you dont find it anywhere.. turn-on then it will come under Accessibility.
Please go thru this link, recently I helped few to get the Audio streaming fixed.
hi @Qualx ,
i send message but no answer.
Hi, I have a OnePlus 6 and tried to modify the mixer file, but it doesn't work.
There is no sound when calling.
How do you know what to put in the path entries?
Edit: The file (mixer_paths_tavil.xml) won't attach. So here is the first part of the file. I hope that is enough to get the necessary info
Spoiler: mixer_paths_tavil.xml
XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. -->
<!-- -->
<!-- Redistribution and use in source and binary forms, with or without -->
<!-- modification, are permitted provided that the following conditions are -->
<!-- met: -->
<!-- * Redistributions of source code must retain the above copyright -->
<!-- notice, this list of conditions and the following disclaimer. -->
<!-- * Redistributions in binary form must reproduce the above -->
<!-- copyright notice, this list of conditions and the following -->
<!-- disclaimer in the documentation and/or other materials provided -->
<!-- with the distribution. -->
<!-- * Neither the name of The Linux Foundation nor the names of its -->
<!-- contributors may be used to endorse or promote products derived -->
<!-- from this software without specific prior written permission. -->
<!-- -->
<!-- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
<!-- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
<!-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
<!-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
<!-- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
<!-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
<!-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
<!-- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
<!-- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
<!-- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
<mixer>
<!-- These are the initial mixer settings -->
<ctl name="Voice Rx Device Mute" id="0" value="0" />
<ctl name="Voice Rx Device Mute" id="1" value="-1" />
<ctl name="Voice Rx Device Mute" id="2" value="20" />
<ctl name="Voice Tx Mute" id="0" value="0" />
<ctl name="Voice Tx Mute" id="1" value="-1" />
<ctl name="Voice Tx Mute" id="2" value="500" />
<ctl name="Voice Rx Gain" id="0" value="0" />
<ctl name="Voice Rx Gain" id="1" value="-1" />
<ctl name="Voice Rx Gain" id="2" value="20" />
<ctl name="Voice Sidetone Enable" value="0" />
<ctl name="Voip Tx Mute" id="0" value="0" />
<ctl name="Voip Tx Mute" id="1" value="500" />
<ctl name="Voip Rx Gain" id="0" value="0" />
<ctl name="Voip Rx Gain" id="1" value="20" />
<ctl name="Voip Mode Config" value="12" />
<ctl name="Voip Rate Config" value="0" />
<ctl name="Voip Evrc Min Max Rate Config" id="0" value="1" />
<ctl name="Voip Evrc Min Max Rate Config" id="1" value="4" />
<ctl name="Voip Dtx Mode" value="0" />
<ctl name="TTY Mode" value="OFF" />
<ctl name="SLIMBUS_0_RX Port Mixer SLIM_0_TX" value="0" />
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia1" value="0" />
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia4" value="0" />
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia5" value="0" />
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia7" value="0" />
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia8" value="0" />
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia10" value="0" />
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia11" value="0" />
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia12" value="0" />
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia13" value="0" />
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia14" value="0" />
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia15" value="0" />
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia16" value="0" />
<ctl name="SLIMBUS_6_RX Port Mixer SLIM_0_TX" value="0" />
<ctl name="SLIMBUS_4_RX Audio Mixer MultiMedia1" value="0" />
<ctl name="SLIMBUS_4_RX Audio Mixer MultiMedia2" value="0" />
<ctl name="MultiMedia5 Mixer SLIM_0_TX" value="0" />
<ctl name="MultiMedia5 Mixer AFE_PCM_TX" value="0" />
<ctl name="MultiMedia5 Mixer SLIM_8_TX" value="0" />
<ctl name="MultiMedia5 Mixer SLIM_7_TX" value="0" />
<ctl name="MultiMedia1 Mixer SLIM_0_TX" value="0" />
<ctl name="MultiMedia1 Mixer SLIM_4_TX" value="0" />
<ctl name="MultiMedia1 Mixer SLIM_7_TX" value="0" />
<ctl name="MultiMedia8 Mixer SLIM_0_TX" value="0" />
<ctl name="MultiMedia8 Mixer SLIM_4_TX" value="0" />
<ctl name="MultiMedia8 Mixer SLIM_7_TX" value="0" />
<ctl name="MultiMedia10 Mixer SLIM_0_TX" value="0" />
<ctl name="MultiMedia10 Mixer SLIM_7_TX" value="0" />
<ctl name="MultiMedia10 Mixer AFE_PCM_TX" value="0" />
<ctl name="DISPLAY_PORT Mixer MultiMedia1" value="0" />
<ctl name="DISPLAY_PORT Mixer MultiMedia2" value="0" />
<ctl name="DISPLAY_PORT Mixer MultiMedia3" value="0" />
<ctl name="DISPLAY_PORT Mixer MultiMedia4" value="0" />
<ctl name="DISPLAY_PORT Mixer MultiMedia5" value="0" />
<ctl name="DISPLAY_PORT Mixer MultiMedia6" value="0" />
<ctl name="DISPLAY_PORT Mixer MultiMedia7" value="0" />
<ctl name="DISPLAY_PORT Mixer MultiMedia8" value="0" />
<ctl name="DISPLAY_PORT Mixer MultiMedia9" value="0" />
<ctl name="DISPLAY_PORT Mixer MultiMedia10" value="0" />
<ctl name="DISPLAY_PORT Mixer MultiMedia11" value="0" />
<ctl name="DISPLAY_PORT Mixer MultiMedia12" value="0" />
<ctl name="DISPLAY_PORT Mixer MultiMedia13" value="0" />
<ctl name="DISPLAY_PORT Mixer MultiMedia14" value="0" />
<ctl name="DISPLAY_PORT Mixer MultiMedia15" value="0" />
<ctl name="DISPLAY_PORT Mixer MultiMedia16" value="0" />
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia1" value="0" />
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia1" value="0" />
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia2" value="0" />
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia2" value="0" />
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia3" value="0" />
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia3" value="0" />
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia4" value="0" />
<ctl name="SLIMBUS_2_RX Audio Mixer MultiMedia4" value="0" />
<ctl name="SLIMBUS_5_RX Audio Mixer MultiMedia4" value="0" />
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia4" value="0" />
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia5" value="0" />
<ctl name="SLIMBUS_2_RX Audio Mixer MultiMedia5" value="0" />
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia5" value="0" />
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia7" value="0" />
<ctl name="SLIMBUS_5_RX Audio Mixer MultiMedia7" value="0" />
<ctl name="SLIMBUS_2_RX Audio Mixer MultiMedia7" value="0" />
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia7" value="0" />
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia8" value="0" />
<ctl name="SLIMBUS_5_RX Audio Mixer MultiMedia8" value="0" />
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia8" value="0" />
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia10" value="0" />
<ctl name="SLIMBUS_5_RX Audio Mixer MultiMedia10" value="0" />
<ctl name="SLIMBUS_2_RX Audio Mixer MultiMedia10" value="0" />
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia10" value="0" />
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia11" value="0" />
<ctl name="SLIMBUS_5_RX Audio Mixer MultiMedia11" value="0" />
<ctl name="SLIMBUS_2_RX Audio Mixer MultiMedia11" value="0" />
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia11" value="0" />
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia12" value="0" />
<ctl name="SLIMBUS_5_RX Audio Mixer MultiMedia12" value="0" />
<ctl name="SLIMBUS_2_RX Audio Mixer MultiMedia12" value="0" />
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia12" value="0" />
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia13" value="0" />
<ctl name="SLIMBUS_5_RX Audio Mixer MultiMedia13" value="0" />
<ctl name="SLIMBUS_2_RX Audio Mixer MultiMedia13" value="0" />
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia13" value="0" />
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia14" value="0" />
<ctl name="SLIMBUS_5_RX Audio Mixer MultiMedia14" value="0" />
<ctl name="SLIMBUS_2_RX Audio Mixer MultiMedia14" value="0" />
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia14" value="0" />
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia15" value="0" />
<ctl name="SLIMBUS_5_RX Audio Mixer MultiMedia15" value="0" />
<ctl name="SLIMBUS_2_RX Audio Mixer MultiMedia15" value="0" />
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia15" value="0" />
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia16" value="0" />
<ctl name="SLIMBUS_5_RX Audio Mixer MultiMedia16" value="0" />
<ctl name="SLIMBUS_2_RX Audio Mixer MultiMedia16" value="0" />
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia16" value="0" />
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia1" value="0" />
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia2" value="0" />
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia3" value="0" />
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia4" value="0" />
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia5" value="0" />
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia7" value="0" />
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia8" value="0" />
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia10" value="0" />
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia11" value="0" />
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia12" value="0" />
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia13" value="0" />
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia14" value="0" />
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia15" value="0" />
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia16" value="0" />
<ctl name="MultiMedia1 Mixer USB_AUDIO_TX" value="0" />
<ctl name="MultiMedia2 Mixer USB_AUDIO_TX" value="0" />
<ctl name="MultiMedia5 Mixer USB_AUDIO_TX" value="0" />
<ctl name="MultiMedia8 Mixer USB_AUDIO_TX" value="0" />
<ctl name="MultiMedia10 Mixer USB_AUDIO_TX" value="0" />
<!-- #ifdef VENDOR_EDIT-->
<!-- #if OP_FEATURE_MM_RECORDING_SCREEN == 1-->
<!-- [email protected], 2019/07/13, add for screen record -->
<ctl name="MultiMedia1 Mixer AFE_LOOPBACK_TX" value="0" />
<ctl name="AUDIO_REF_EC_UL1 MUX" value="ZERO" />
<ctl name="EC Reference Channels" value="One" />
<ctl name="EC Reference Bit Format" value="S16_LE" />
<ctl name="EC Reference SampleRate" value="48000" />
<ctl name="USB_TX Channels" value="One" />
<ctl name="AFE_LOOPBACK_TX Channels" value="One" />
<ctl name="MultiMedia1 Channels" value="1" />
<ctl name="MultiMedia1 Channel Rule" value="2" />
<ctl name="MultiMedia1 Output Channel1" value="0 0" />
<ctl name="MultiMedia1 Channel Mixer" value="Enable" />
<ctl name="MultiMedia1 Channel1" value="USB_TX" />
<ctl name="MultiMedia1 Channel2" value="AFE_LOOPBACK_TX" />
<!-- #endif OP_FEATURE_MM_RECORDING_SCREEN-->
<!-- #endif VENDOR_EDIT-->
<ctl name="MultiMedia6 Mixer SLIM_0_TX" value="0" />
<ctl name="SLIM_2_RX Format" value="UNPACKED" />
<ctl name="SLIM_2_RX SampleRate" value="KHZ_48" />
<ctl name="SLIM_5_RX SampleRate" value="KHZ_44P1" />
<ctl name="SLIM_0_RX Channels" value="One" />
<ctl name="SLIM_5_RX Channels" value="One" />
<ctl name="SLIM_6_RX Channels" value="One" />
<ctl name="SLIM_2_RX Channels" value="One" />
<ctl name="SLIM_0_TX Channels" value="One" />
<ctl name="SLIM_1_TX Channels" value="One" />
<ctl name="AIF1_CAP Mixer SLIM TX9" value="0"/>
<ctl name="AIF1_CAP Mixer SLIM TX8" value="0"/>
<ctl name="AIF1_CAP Mixer SLIM TX7" value="0" />
<ctl name="AIF1_CAP Mixer SLIM TX6" value="0" />
<ctl name="AIF1_CAP Mixer SLIM TX5" value="0"/>
<ctl name="AIF1_CAP Mixer SLIM TX4" value="0" />
<ctl name="AIF1_CAP Mixer SLIM TX3" value="0"/>
<ctl name="AIF1_CAP Mixer SLIM TX2" value="0" />
<ctl name="AIF1_CAP Mixer SLIM TX1" value="0"/>
<ctl name="AIF1_CAP Mixer SLIM TX0" value="0"/>
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia4" value="0" />
<ctl name="SLIM0_RX_VI_FB_LCH_MUX" value="ZERO" />
<ctl name="SLIM0_RX_VI_FB_RCH_MUX" value="ZERO" />
<ctl name="VI_FEED_TX Channels" value="Two" />
<ctl name="AIF4_VI Mixer SPKR_VI_1" value="0" />
<ctl name="AIF4_VI Mixer SPKR_VI_2" value="0" />
<ctl name="SLIM_4_TX Format" value="UNPACKED" />
<ctl name="AANC_SLIM_0_RX MUX" value="ZERO" />
<!-- HFP start -->
<ctl name="HFP_PRI_AUX_UL_HL Switch" value="0" />
<ctl name="SLIMBUS_0_RX Port Mixer SLIM_7_TX" value="0" />
<!-- HFP end -->
<!-- echo reference -->
<ctl name="AUDIO_REF_EC_UL1 MUX" value="None" />
<!-- usb headset -->
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia1" value="0" />
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia2" value="0" />
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia4" value="0" />
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia7" value="0" />
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia10" value="0" />
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia11" value="0" />
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia12" value="0" />
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia13" value="0" />
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia14" value="0" />
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia15" value="0" />
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia16" value="0" />
<ctl name="MultiMedia1 Mixer AFE_PCM_TX" value="0" />
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia5" value="0" />
<!-- usb headset end -->
<!-- fm -->
<ctl name="SLIMBUS_8 LOOPBACK Volume" value="0" />
<ctl name="SLIMBUS_0_RX Port Mixer SLIM_8_TX" value="0" />
<ctl name="SLIMBUS_DL_HL Switch" value="0" />
<ctl name="SLIMBUS_6_RX Port Mixer SLIM_8_TX" value="0" />
<ctl name="SLIMBUS6_DL_HL Switch" value="0" />
<ctl name="MultiMedia1 Mixer SLIM_8_TX" value="0" />
<ctl name="MultiMedia2 Mixer SLIM_8_TX" value="0" />
<!-- fm end -->
<!-- Multimode Voice1 -->
<ctl name="SLIM_0_RX_Voice Mixer VoiceMMode1" value="0" />
<ctl name="SLIM_6_RX_Voice Mixer VoiceMMode1" value="0" />
<ctl name="VoiceMMode1_Tx Mixer SLIM_0_TX_MMode1" value="0" />
<!-- Multimode Voice1 BTSCO -->
<ctl name="SLIM_7_RX_Voice Mixer VoiceMMode1" value="0" />
<ctl name="VoiceMMode1_Tx Mixer SLIM_7_TX_MMode1" value="0" />
<!-- Multimode Voice1 USB headset -->
<ctl name="AFE_PCM_RX_Voice Mixer VoiceMMode1" value="0" />
<ctl name="VoiceMMode1_Tx Mixer AFE_PCM_TX_MMode1" value="0" />
<ctl name="USB_AUDIO_RX_Voice Mixer VoiceMMode1" value="0" />
<ctl name="VoiceMMode1_Tx Mixer USB_AUDIO_TX_MMode1" value="0" />
<!-- Multimode Voice1 Display-Port -->
<ctl name="DISPLAY_PORT_RX_Voice Mixer VoiceMMode1" value="0" />
<!-- Miltimode Voice1 end-->
<!-- Multimode Voice2 -->
<ctl name="SLIM_0_RX_Voice Mixer VoiceMMode2" value="0" />
<ctl name="SLIM_6_RX_Voice Mixer VoiceMMode2" value="0" />
<ctl name="VoiceMMode2_Tx Mixer SLIM_0_TX_MMode2" value="0" />
<!-- Multimode Voice2 BTSCO -->
<ctl name="SLIM_7_RX_Voice Mixer VoiceMMode2" value="0" />
<ctl name="VoiceMMode2_Tx Mixer SLIM_7_TX_MMode2" value="0" />
<!-- Multimode Voice2 USB headset -->
<ctl name="AFE_PCM_RX_Voice Mixer VoiceMMode2" value="0" />
<ctl name="VoiceMMode2_Tx Mixer AFE_PCM_TX_MMode2" value="0" />
<ctl name="USB_AUDIO_RX_Voice Mixer VoiceMMode2" value="0" />
<ctl name="VoiceMMode2_Tx Mixer USB_AUDIO_TX_MMode2" value="0" />
<!-- Multimode Voice2 Display-Port -->
<ctl name="DISPLAY_PORT_RX_Voice Mixer VoiceMMode2" value="0" />
<!-- Multimode Voice2 end-->
<!-- Voice external ec. reference -->
<ctl name="VOC_EXT_EC MUX" value="NONE" />
<ctl name="AIF3_CAP Mixer SLIM TX1" value="0" />
<ctl name="AIF3_CAP Mixer SLIM TX2" value="0" />
<!-- Voice external ec. reference end -->
<!-- RT Proxy Cal -->
<ctl name="RT_PROXY_1_RX SetCalMode" value="CAL_MODE_NONE" />
<ctl name="RT_PROXY_1_TX SetCalMode" value="CAL_MODE_NONE" />
<!-- RT Proxy Cal end -->
<!-- Incall Recording -->
<ctl name="MultiMedia1 Mixer VOC_REC_UL" value="0" />
<ctl name="MultiMedia1 Mixer VOC_REC_DL" value="0" />
<ctl name="MultiMedia8 Mixer VOC_REC_UL" value="0" />
<ctl name="MultiMedia8 Mixer VOC_REC_DL" value="0" />
<!-- Incall Recording End -->
<!-- Incall Music -->
<ctl name="Incall_Music Audio Mixer MultiMedia2" value="0" />
<!-- Incall Music End -->
<!-- compress-voip-call start -->
<ctl name="SLIM_0_RX_Voice Mixer Voip" value="0" />
<ctl name="SLIM_6_RX_Voice Mixer Voip" value="0" />
<ctl name="Voip_Tx Mixer SLIM_0_TX_Voip" value="0" />
<ctl name="SLIM_7_RX_Voice Mixer Voip" value="0" />
<ctl name="Voip_Tx Mixer SLIM_7_TX_Voip" value="0" />
<ctl name="AFE_PCM_RX_Voice Mixer Voip" value="0" />
<ctl name="Voip_Tx Mixer AFE_PCM_TX_Voip" value="0" />
<ctl name="USB_AUDIO_RX_Voice Mixer Voip" value="0" />
<ctl name="Voip_Tx Mixer USB_AUDIO_TX_Voip" value="0" />
<!-- compress-voip-call end-->
<!-- Audio BTSCO -->
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia1" value="0" />
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia4" value="0" />
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia5" value="0" />
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia6" value="0" />
<ctl name="MultiMedia1 Mixer SLIM_7_TX" value="0" />
<!-- audio record compress-->
<ctl name="MultiMedia8 Mixer SLIM_0_TX" value="0" />
<ctl name="MultiMedia8 Mixer SLIM_7_TX" value="0" />
<ctl name="MultiMedia8 Mixer AFE_PCM_TX" value="0" />
<!-- audio record compress end-->
<!-- split a2dp -->
<ctl name="BT SampleRate" value="KHZ_8" />
<ctl name="AFE Input Channels" value="Zero" />
<ctl name="SLIM7_RX ADM Channels" value="Zero" />
<!-- split a2dp end-->
<!-- ADSP testfwk -->
<ctl name="SLIMBUS_DL_HL Switch" value="0" />
<ctl name="SLIMBUS6_DL_HL Switch" value="0" />
<!-- ADSP testfwk end-->
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia3" value="0" />
<!-- Codec controls -->
<!-- WSA controls -->
<ctl name="SpkrLeft COMP Switch" value="0" />
<ctl name="SpkrRight COMP Switch" value="0" />
<ctl name="SpkrLeft BOOST Switch" value="0" />
<ctl name="SpkrRight BOOST Switch" value="0" />
<ctl name="SpkrLeft VISENSE Switch" value="0" />
<ctl name="SpkrRight VISENSE Switch" value="0" />
<ctl name="SpkrLeft SWR DAC_Port Switch" value="0" />
<ctl name="SpkrRight SWR DAC_Port Switch" value="0" />
<ctl name="SpkrLeft WSA PA Gain" value="G_0_DB" />
<!-- Volume controls -->
<ctl name="LINEOUT1 Volume" value="13" />
<ctl name="LINEOUT2 Volume" value="13" />
<ctl name="HPHL Volume" value="20" />
<ctl name="HPHR Volume" value="20" />
<ctl name="EAR PA Gain" value="G_6_DB" />
<ctl name="EAR SPKR PA Gain" value="G_DEFAULT" />
<ctl name="RX0 Digital Volume" value="84" />
<ctl name="RX1 Digital Volume" value="84" />
<ctl name="RX2 Digital Volume" value="84" />
<ctl name="RX3 Digital Volume" value="84" />
<ctl name="RX4 Digital Volume" value="84" />
<ctl name="RX5 Digital Volume" value="84" />
<ctl name="RX6 Digital Volume" value="84" />
<ctl name="RX7 Digital Volume" value="84" />
<ctl name="ADC1 Volume" value="12" />
<ctl name="ADC2 Volume" value="12" />
<ctl name="ADC3 Volume" value="12" />
<ctl name="ADC4 Volume" value="12" />
<ctl name="DEC0 Volume" value="84" />
<ctl name="DEC1 Volume" value="84" />
<ctl name="DEC2 Volume" value="84" />
<ctl name="DEC3 Volume" value="84" />
<ctl name="DEC4 Volume" value="84" />
<ctl name="DEC5 Volume" value="84" />
<ctl name="DEC6 Volume" value="84" />
<ctl name="DEC7 Volume" value="84" />
<ctl name="DEC8 Volume" value="84" />
<!-- Compander controls -->
<ctl name="COMP1 Switch" value="1" />
<ctl name="COMP2 Switch" value="1" />
<ctl name="COMP7 Switch" value="0" />
<ctl name="COMP8 Switch" value="0" />
<!-- ADC, DMIC and AMIC controls -->
<ctl name="ADC MUX0" value="AMIC" />
<ctl name="ADC MUX1" value="AMIC" />
<ctl name="ADC MUX2" value="AMIC" />
<ctl name="ADC MUX3" value="AMIC" />
<ctl name="ADC MUX4" value="AMIC" />
<ctl name="ADC MUX5" value="AMIC" />
<ctl name="ADC MUX6" value="AMIC" />
<ctl name="ADC MUX7" value="AMIC" />
<ctl name="ADC MUX8" value="AMIC" />
<ctl name="ADC MUX10" value="AMIC" />
<ctl name="ADC MUX11" value="AMIC" />
<ctl name="ADC MUX12" value="AMIC" />
<ctl name="ADC MUX13" value="AMIC" />
<ctl name="DMIC MUX0" value="ZERO" />
<ctl name="DMIC MUX1" value="ZERO" />
<ctl name="DMIC MUX2" value="ZERO" />
<ctl name="DMIC MUX3" value="ZERO" />
<ctl name="DMIC MUX4" value="ZERO" />
<ctl name="DMIC MUX5" value="ZERO" />
<ctl name="DMIC MUX6" value="ZERO" />
<ctl name="DMIC MUX7" value="ZERO" />
<ctl name="DMIC MUX8" value="ZERO" />
<ctl name="DMIC MUX10" value="ZERO" />
<ctl name="DMIC MUX11" value="ZERO" />
<ctl name="DMIC MUX12" value="ZERO" />
<ctl name="DMIC MUX13" value="ZERO" />
<ctl name="AMIC MUX0" value="ZERO" />
<ctl name="AMIC MUX1" value="ZERO" />
<ctl name="AMIC MUX2" value="ZERO" />
<ctl name="AMIC MUX3" value="ZERO" />
<ctl name="AMIC MUX4" value="ZERO" />
<ctl name="AMIC MUX5" value="ZERO" />
<ctl name="AMIC MUX6" value="ZERO" />
<ctl name="AMIC MUX7" value="ZERO" />
<ctl name="AMIC MUX8" value="ZERO" />
<ctl name="AMIC MUX10" value="ZERO" />
<ctl name="AMIC MUX11" value="ZERO" />
<ctl name="AMIC MUX12" value="ZERO" />
<ctl name="AMIC MUX13" value="ZERO" />
<ctl name="AMIC4_5 SEL" value="AMIC4" />
<!-- CDC_IF and SLIM controls -->
<ctl name="SLIM RX0 MUX" value="ZERO" />
<ctl name="SLIM RX1 MUX" value="ZERO" />
<ctl name="SLIM RX2 MUX" value="ZERO" />
<ctl name="SLIM RX3 MUX" value="ZERO" />
<ctl name="SLIM RX4 MUX" value="ZERO" />
<ctl name="SLIM RX5 MUX" value="ZERO" />
<ctl name="SLIM RX6 MUX" value="ZERO" />
<ctl name="SLIM RX7 MUX" value="ZERO" />
<ctl name="CDC_IF RX0 MUX" value="SLIM RX0" />
<ctl name="CDC_IF RX1 MUX" value="SLIM RX1" />
<ctl name="CDC_IF RX2 MUX" value="SLIM RX2" />
<ctl name="CDC_IF RX3 MUX" value="SLIM RX3" />
<ctl name="CDC_IF RX4 MUX" value="SLIM RX4" />
<ctl name="CDC_IF RX5 MUX" value="SLIM RX5" />
<ctl name="CDC_IF RX6 MUX" value="SLIM RX6" />
<ctl name="CDC_IF RX7 MUX" value="SLIM RX7" />
<ctl name="CDC_IF TX0 MUX" value="ZERO" />
<ctl name="CDC_IF TX1 MUX" value="ZERO" />
<ctl name="CDC_IF TX2 MUX" value="ZERO" />
<ctl name="CDC_IF TX3 MUX" value="ZERO" />
<ctl name="CDC_IF TX4 MUX" value="ZERO" />
<ctl name="CDC_IF TX5 MUX" value="ZERO" />
<ctl name="CDC_IF TX6 MUX" value="ZERO" />
<ctl name="CDC_IF TX7 MUX" value="ZERO" />
<ctl name="CDC_IF TX8 MUX" value="ZERO" />
<ctl name="CDC_IF TX9 MUX" value="ZERO" />
<ctl name="CDC_IF TX10 MUX" value="ZERO" />
<ctl name="CDC_IF TX13 MUX" value="ZERO" />
<!-- Interpolator chain controls -->
<ctl name="RX INT0_1 MIX1 INP0" value="ZERO" />
<ctl name="RX INT0_1 MIX1 INP1" value="ZERO" />
<ctl name="RX INT0_1 MIX1 INP2" value="ZERO" />
<ctl name="RX INT1_1 MIX1 INP0" value="ZERO" />
<ctl name="RX INT1_1 MIX1 INP1" value="ZERO" />
<ctl name="RX INT1_1 MIX1 INP2" value="ZERO" />
<ctl name="RX INT2_1 MIX1 INP0" value="ZERO" />
<ctl name="RX INT2_1 MIX1 INP1" value="ZERO" />
<ctl name="RX INT2_1 MIX1 INP2" value="ZERO" />
<ctl name="RX INT7_1 MIX1 INP0" value="ZERO" />
<ctl name="RX INT7_1 MIX1 INP1" value="ZERO" />
<ctl name="RX INT7_1 MIX1 INP2" value="ZERO" />
<ctl name="RX INT8_1 MIX1 INP0" value="ZERO" />
<ctl name="RX INT8_1 MIX1 INP1" value="ZERO" />
<ctl name="RX INT8_1 MIX1 INP2" value="ZERO" />
<ctl name="RX INT0_2 MUX" value="ZERO" />
<ctl name="RX INT1_2 MUX" value="ZERO" />
<ctl name="RX INT2_2 MUX" value="ZERO" />
<ctl name="RX INT7_2 MUX" value="ZERO" />
<ctl name="RX INT8_2 MUX" value="ZERO" />
<ctl name="RX INT1_1 NATIVE MUX" value="OFF" />
<ctl name="RX INT2_1 NATIVE MUX" value="OFF" />
<ctl name="RX INT1_2 NATIVE MUX" value="OFF" />
<ctl name="RX INT2_2 NATIVE MUX" value="OFF" />
<ctl name="ASRC0 MUX" value="ZERO" />
<ctl name="ASRC1 MUX" value="ZERO" />
<ctl name="RX INT1 SEC MIX HPHL Switch" value="0" />
<ctl name="RX INT2 SEC MIX HPHR Switch" value="0" />
<ctl name="DSD_L IF MUX" value="ZERO" />
<ctl name="DSD_R IF MUX" value="ZERO" />
<ctl name="RX INT1 MIX3 DSD HPHL Switch" value="0" />
<ctl name="RX INT2 MIX3 DSD HPHR Switch" value="0" />
<ctl name="RX INT0 DEM MUX" value="CLSH_DSM_OUT" />
<ctl name="RX INT1 DEM MUX" value="CLSH_DSM_OUT" />
<ctl name="RX INT2 DEM MUX" value="CLSH_DSM_OUT" />
<!-- echo reference -->
<ctl name="AUDIO_REF_EC_UL1 MUX" value="None" />
<ctl name="AUDIO_REF_EC_UL5 MUX" value="None" />
<ctl name="AUDIO_REF_EC_UL8 MUX" value="None" />
<!-- Headphone Default mode - uLP -->
<ctl name="RX HPH Mode" value="CLS_H_ULP" />
<ctl name="ASRC0 Output Mode" value="INT" />
<ctl name="ASRC1 Output Mode" value="INT" />
<!-- IIR/voice anc -->
<ctl name="IIR0 Band1" id ="0" value="268435456" />
<ctl name="IIR0 Band1" id ="1" value="0" />
<ctl name="IIR0 Band1" id ="2" value="0" />
<ctl name="IIR0 Band1" id ="3" value="0" />
<ctl name="IIR0 Band1" id ="4" value="0" />
<ctl name="IIR0 Band2" id ="0" value="268435456" />
<ctl name="IIR0 Band2" id ="1" value="0" />
<ctl name="IIR0 Band2" id ="2" value="0" />
<ctl name="IIR0 Band2" id ="3" value="0" />
<ctl name="IIR0 Band2" id ="4" value="0" />
<ctl name="IIR0 Band3" id ="0" value="268435456" />
<ctl name="IIR0 Band3" id ="1" value="0" />
<ctl name="IIR0 Band3" id ="2" value="0" />
<ctl name="IIR0 Band3" id ="3" value="0" />
<ctl name="IIR0 Band3" id ="4" value="0" />
<ctl name="IIR0 Band4" id ="0" value="268435456" />
<ctl name="IIR0 Band4" id ="1" value="0" />
<ctl name="IIR0 Band4" id ="2" value="0" />
<ctl name="IIR0 Band4" id ="3" value="0" />
<ctl name="IIR0 Band4" id ="4" value="0" />
<ctl name="IIR0 Band5" id ="0" value="268435456" />
<ctl name="IIR0 Band5" id ="1" value="0" />
<ctl name="IIR0 Band5" id ="2" value="0" />
<ctl name="IIR0 Band5" id ="3" value="0" />
<ctl name="IIR0 Band5" id ="4" value="0" />
<ctl name="IIR0 Enable Band1" value="0" />
<ctl name="IIR0 Enable Band2" value="0" />
<ctl name="IIR0 Enable Band3" value="0" />
<ctl name="IIR0 Enable Band4" value="0" />
<ctl name="IIR0 Enable Band5" value="0" />
<ctl name="IIR0 INP0 Volume" value="54" />
<ctl name="IIR0 INP0 MUX" value="ZERO" />
<ctl name="IIR0 INP1 MUX" value="ZERO" />
<ctl name="IIR0 INP2 MUX" value="ZERO" />
<ctl name="IIR1 INP0 MUX" value="ZERO" />
<ctl name="IIR1 INP1 MUX" value="ZERO" />
<ctl name="IIR1 INP2 MUX" value="ZERO" />
<!-- anc related -->
<ctl name="ANC Slot" value="0" />
<ctl name="ANC Function" value="OFF" />
<ctl name="ANC0 FB MUX" value="ZERO" />
<ctl name="ANC1 FB MUX" value="ZERO" />
<ctl name="ANC OUT EAR Enable Switch" value="0" />
<ctl name="ANC OUT EAR SPKR Enable Switch" value="0" />
<ctl name="ANC SPKR PA Enable Switch" value="0" />
<ctl name="ANC OUT HPHL Enable Switch" value="0" />
<ctl name="ANC OUT HPHR Enable Switch" value="0" />
<!-- Codec controls end -->
<!-- mixer control to disable lowlatency qos voting -->
<ctl name="MultiMedia5_RX QOS Vote" value="Disable" />
<!-- mixer control to disable lowlatency qos voting end -->
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia1" value="0" />
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia5" value="0" />
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia3" value="0" />
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia7" value="0" />
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia10" value="0" />
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia11" value="0" />
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia12" value="0" />
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia13" value="0" />
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia14" value="0" />
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia15" value="0" />
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia16" value="0" />
<ctl name="QUAT_MI2S_RX_Voice Mixer CSVoice" value="0" />
<ctl name="QUAT_MI2S_RX_Voice Mixer Voice2" value="0" />
<ctl name="QUAT_MI2S_RX_Voice Mixer VoLTE" value="0" />
<ctl name="QUAT_MI2S_RX_Voice Mixer Voip" value="0" />
<ctl name="QUAT_MI2S_RX_Voice Mixer VoWLAN" value="0" />
<ctl name="QUAT_MI2S_RX_Voice Mixer VoiceMMode1" value="0" />
<ctl name="QUAT_MI2S_RX_Voice Mixer VoiceMMode2" value="0" />
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia4" value="0" />
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia5" value="0" />
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia7" value="0" />
<!-- defaults for mmap record -->
<ctl name="MultiMedia16 Mixer SLIM_0_TX" value="0" />
<ctl name="MultiMedia16 Mixer SLIM_7_TX" value="0" />
<ctl name="MultiMedia16 Mixer SLIM_8_TX" value="0" />
<ctl name="MultiMedia16 Mixer USB_AUDIO_TX" value="0" />
<ctl name="mono Profile" value="MUSIC_48000" />
<!-- These are audio route (FE to BE) specific mixer settings -->
<path name="gsm-mode">
<ctl name="GSM mode Enable" value="ON" />
</path>
<path name="echo-reference">
<ctl name="AUDIO_REF_EC_UL1 MUX" value="QUAT_MI2S_TX" />
</path>
<path name="echo-reference-skype quat_i2s">
<ctl name="AUDIO_REF_EC_UL8 MUX" value="QUAT_MI2S_TX" />
</path>
<path name="echo-reference quat_i2s">
<ctl name="AUDIO_REF_EC_UL10 MUX" value="QUAT_MI2S_TX" />
</path>
<path name="echo-reference headphones">
<ctl name="AUDIO_REF_EC_UL1 MUX" value="SLIM_6_RX" />
</path>
<path name="echo-reference display-port">
<ctl name="AUDIO_REF_EC_UL1 MUX" value="DISPLAY_PORT" />
</path>
<path name="echo-reference headphones-44.1">
<ctl name="AUDIO_REF_EC_UL1 MUX" value="SLIM_6_RX" />
</path>
Seems I'm in the same boat. Running LineageOS 19.1 on my OP6. It seems to connect fine but no streaming, even when the BT hearing aids are selected/active as output. Sound is sent to the phone speaker instead of the hearing aid.
here's the pastebin of my mixer_paths_tavil.xml: https://pastebin.pl/view/0c6be8b8
Samms said:
Seems I'm in the same boat. Running LineageOS 19.1 on my OP6. It seems to connect fine but no streaming, even when the BT hearing aids are selected/active as output. Sound is sent to the phone speaker instead of the hearing aid.
here's the pastebin of my mixer_paths_tavil.xml: https://pastebin.pl/view/0c6be8b8
Click to expand...
Click to collapse
Finally managed to get it to work. Seems A12 just doesn't like OP6 when it comes to ASHA.
I just flashed LineageOS 20 (A13) and I can now stream audio to my hearing aids (Oticon More 2).
[ROM][OFFICIAL][enchilada][12] LineageOS 19
LineageOS is a free, community built, aftermarket firmware distribution of Android 12, which is designed to increase performance and reliability over stock Android for your device. LineageOS is based on the Android Open Source Project with extra...
forum.xda-developers.com
Samms said:
Finally managed to get it to work. Seems A12 just doesn't like OP6 when it comes to ASHA.
I just flashed LineageOS 20 (A13) and I can now stream audio to my hearing aids (Oticon More 2).
[ROM][OFFICIAL][enchilada][12] LineageOS 19
LineageOS is a free, community built, aftermarket firmware distribution of Android 12, which is designed to increase performance and reliability over stock Android for your device. LineageOS is based on the Android Open Source Project with extra...
forum.xda-developers.com
Click to expand...
Click to collapse
But can you make and receive calls?
I updated to LOS20 today, and music streaming works.
Calls are still mute (as is the phone's ear piece, only sound during calls is from speaker).
lord high executioner said:
But can you make and receive calls?
I updated to LOS20 today, and music streaming works.
Calls are still mute (as is the phone's ear piece, only sound during calls is from speaker).
Click to expand...
Click to collapse
No luck with that yet unfortunately.
Samms said:
No luck with that yet unfortunately.
Click to expand...
Click to collapse
D**
It shouldn't be that hard, now that media is played.
Since the input has to be from phone anyway, the mixer just needs to route phone output to the hearing aids -- which, in fact, the dialer pretends to do: I can select the hearing aids, but no audio (and everything gets rather sluggish until I switch back to speaker,which hints at high CPU usage, supported by logcat's innumerable lines of
Code:
E audio_hw_primary: start_input_stream: cannot set hw params: Invalid argument
).
I got the nagging feeling, @AmarnathNR is attempting exactly that.
Hi there, I have a Xiaomi note 11pro 5g (veux) Do you folks here think that I can try a similar approach to get my heating aids streaming Audio with the phone ..the phone streaming audio to my hearing aids like you successfully did?
I got asha protocol hearing aids somehow connected to my xiaomi note 11 pro 5g (veux) with a pixel experience extendet and also with the evolution X rom for veux.
Everything works but only calls are not possible with streaming support.
I find it strange that whatsapp calls via asha connected hearing aids are no problem with both roms, ringtones play, media play everything is nice but no phone calls ??
Any Ideas ?