Incall Volume fix + Crystal clear audio recording mod v3.0

Sushant9096

Member
Aug 4, 2017
17
4
0
Last edited:
  • Like
Reactions: mednazim

himfa71

Senior Member
Mar 24, 2015
477
127
0
29
Mumbai
Hello welcome all of you , I am developed this mod of crystal clear audio recording for users who loved recording and use starmaker and another applications like this.....
Let's enjoy my mod ......
Must remember your device is unlocked for install this mod...!
Steps to install this mod :
TWRP and Other recovery
then install this from recovery
reboot system and enjoy clear crystal clear recording.

Downloads :
Crystal clear recording mod v1.0:
How To Download :
1 . Search redmi 4x androidfilehost on google
2 . Go to Redmi 4x downloads
3 . find my name sushant9096
4 . go to sushant9096 files
5 . go to crystal clear recording mod
6 . then download file in this folder
Instead if this long process just give link of your file here,
 

tweakradje

Senior Member
Mar 18, 2005
1,047
532
133
Android
sites.google.com
@Sushant9096

I have looked at the new files. Can you tell me where you get all the ACDB profile id's from? From audio.primary.msm8937.so? The acdb profiles databases cannot be read without Qualcomm tools. (/etc/acdbdata/*acdb)

I don't think it is very useful to override every device's acdb id in audio_platform_info.xml
in the <acdb_id> section.

In this case you want other acdb profile for recording in stereo?

<device name="SND_DEVICE_IN_HANDSET_STEREO_DMIC" acdb_id="21"/>

Other acdb sound profiles to try: (assuming that are defaults from your audio config file)

SND_DEVICE_IN_MAIN_MIC acdb_id="4"
SND_DEVICE_IN_TOP_MIC acdb_id="11"
SND_DEVICE_IN_FRONT_MIC acdb_id="11"
SND_DEVICE_IN_HANDSET_DMIC_MUSIC acdb_id="21" <--- I took this profile
SND_DEVICE_IN_HANDSET_DMIC_VOICE acdb_id="533"
SND_DEVICE_IN_HANDSET_DMIC_INTERVIEW acdb_id="1045"
SND_DEVICE_IN_HANDSET_DMIC_HD acdb_id="2581" <--- Interesting profile


If your mappings are correct and represent the default profiles id's in your audio_platform_info.xml then acdb id 21 is the audio profile for SND_DEVICE_IN_HANDSET_DMIC_MUSIC

Of course you need to disable Fluence for audio recording too with this line in build.prop

persist.audio.fluence.audiorec=false

Please tell more about how you get this so we can learn.

Cheers
 

Sushant9096

Member
Aug 4, 2017
17
4
0
@Sushant9096

I have looked at the new files. Can you tell me where you get all the ACDB profile id's from? From audio.primary.msm8937.so? The acdb profiles databases cannot be read without Qualcomm tools. (/etc/acdbdata/*acdb)

I don't think it is very useful to override every device's acdb id in audio_platform_info.xml
in the <acdb_id> section.

In this case you want other acdb profile for recording in stereo?

<device name="SND_DEVICE_IN_HANDSET_STEREO_DMIC" acdb_id="21"/>

Other acdb sound profiles to try: (assuming that are defaults from your audio config file)

SND_DEVICE_IN_MAIN_MIC acdb_id="4"
SND_DEVICE_IN_TOP_MIC acdb_id="11"
SND_DEVICE_IN_FRONT_MIC acdb_id="11"
SND_DEVICE_IN_HANDSET_DMIC_MUSIC acdb_id="21" <--- I took this profile
SND_DEVICE_IN_HANDSET_DMIC_VOICE acdb_id="533"
SND_DEVICE_IN_HANDSET_DMIC_INTERVIEW acdb_id="1045"
SND_DEVICE_IN_HANDSET_DMIC_HD acdb_id="2581" <--- Interesting profile


If your mappings are correct and represent the default profiles id's in your audio_platform_info.xml then acdb id 21 is the audio profile for SND_DEVICE_IN_HANDSET_DMIC_MUSIC

Of course you need to disable Fluence for audio recording too with this line in build.prop

persist.audio.fluence.audiorec=false

Please tell more about how you get this so we can learn.

Cheers

@tweakradje
Fluence is needed for noiseless audio recording , Check my mod by recording something you like and see clarity and then give me feedback.
Fluence is already disabled..in build.prop
 
Last edited:

tweakradje

Senior Member
Mar 18, 2005
1,047
532
133
Android
sites.google.com
Let me share my findings to get perfect calibrated stereo professional sound recording for Redmi 4X Nougat.

in /etc/audio_platform_info.xml only add one override line in the acdb_ids section:

Code:
<!-- dual mic for video and audio recording (def 34), override with SND_DEVICE_IN_HANDSET_DMIC_MUSIC acdb_id 21 -->
<!-- with acdb id 4 set "DEC1/2 Volume" max to 94, else use 104 --> 
        <device name="SND_DEVICE_IN_HANDSET_STEREO_DMIC" acdb_id="21"/>
in /etc/mixer_paths_qrd_sku1.xml increase default recording volume. Make sure there is no extra "DEC1 Volume" lines in handset-stereo-dmic-ef or speaker-dmic-endfire path. (presuming you are not using broadside)

Code:
<!-- tweakradje increase default recording level from 84, if acdb id is 4 then max 94
    <ctl name="DEC1 Volume" value="84" />
    <ctl name="DEC2 Volume" value="84" /> -->
    <ctl name="DEC1 Volume" value="104" />
    <ctl name="DEC2 Volume" value="104" />
You can override the recording level anytime with for example:
Code:
adb shell su -c tinymix 'DEC1 Volume' 114
adb shell su -c tinymix 'DEC2 Volume' 114
Someone should build an mixer app for setting recording levels.

You can increase volume levels at any time with this for example:
Code:
adb shell su -c tinymix 'RX1 Digital Volume' 92
adb shell su -c tinymix 'RX2 Digital Volume' 92
adb shell su -c tinymix 'RX3 Digital Volume' 92
That is it. Please try and let us know.
 

Sushant9096

Member
Aug 4, 2017
17
4
0
Let me share my findings to get perfect calibrated stereo professional sound recording for Redmi 4X Nougat.

in /etc/audio_platform_info.xml only add one override line in the acdb_ids section:

Code:
<!-- dual mic for video and audio recording (def 34), override with SND_DEVICE_IN_HANDSET_DMIC_MUSIC acdb_id 21 -->
<!-- with acdb id 4 set "DEC1/2 Volume" max to 94, else use 104 --> 
        <device name="SND_DEVICE_IN_HANDSET_STEREO_DMIC" acdb_id="21"/>
in /etc/mixer_paths_qrd_sku1.xml increase default recording volume. Make sure there is no extra "DEC1 Volume" lines in handset-stereo-dmic-ef or speaker-dmic-endfire path. (presuming you are not using broadside)

Code:
<!-- tweakradje increase default recording level from 84, if acdb id is 4 then max 94
    <ctl name="DEC1 Volume" value="84" />
    <ctl name="DEC2 Volume" value="84" /> -->
    <ctl name="DEC1 Volume" value="104" />
    <ctl name="DEC2 Volume" value="104" />
You can override the recording level anytime with for example:
Code:
adb shell su -c tinymix 'DEC1 Volume' 114
adb shell su -c tinymix 'DEC2 Volume' 114
Someone should build an mixer app for setting recording levels.

You can increase volume levels at any time with this for example:
Code:
adb shell su -c tinymix 'RX1 Digital Volume' 92
adb shell su -c tinymix 'RX2 Digital Volume' 92
adb shell su -c tinymix 'RX3 Digital Volume' 92
That is it. Please try and let us know.
Thank you for this useful info I will try this In next version of my mod...