[ROM][9.0][UNOFFICIAL] [G800F/M/Y] crDroid 5.12 (P) [2020-12-23]

fankool

Senior Member
Feb 1, 2013
202
38
58
Puglia
Hi Mongo0,

can you please let me know how can I change the min and max range for the volume? Usually the volume on my phones are to high for me, expecially for headset. In my old s4 mini I've found mixer_paths in /system/vendor/etc/ but on this release this file is not present. Where I can find it? Or does it change name?
 

mongo0

Senior Member
Nov 7, 2013
173
102
63
Hi Mongo0,

can you please let me know how can I change the min and max range for the volume? Usually the volume on my phones are to high for me, expecially for headset. In my old s4 mini I've found mixer_paths in /system/vendor/etc/ but on this release this file is not present. Where I can find it? Or does it change name?
I don't know where the file resides on a running android, but before compiling it should be this file: device/samsung/smdk3470-common/audio/source/mixer_paths.xml.
Maybe you can search for mixer_paths.xml although I'm not sure if it's copied over with the same name. Anyway, this is the content:
Code:
<mixer>
  <!-- These are commonly used control sequences -->
  <path name="dac1">
    <ctl name="DAC1R Mixer AIF1.1 Switch" value="1" />
    <ctl name="DAC1L Mixer AIF1.1 Switch" value="1" />
    <ctl name="DAC1 Switch" value="1" />
  </path>

  <path name="headphones">
    <path name="dac1" />
    <ctl name="Headphone Switch" value="1" />
    <ctl name="Left Output Mixer DAC Switch" value="1" />
    <ctl name="Right Output Mixer DAC Switch" value="1" />
  </path>

  <path name="speaker">
    <path name="dac1" />
    <ctl name="Speaker Switch" value="1" />
    <ctl name="SPKR DAC1 Switch" value="1" />
    <ctl name="SPKL DAC1 Switch" value="1" />
    <ctl name="Speaker Mixer Volume" value="3" />
    <ctl name="Speaker Boost Volume" value="5" />
  </path>

  <!-- TODO: these values are for lunchbox Mic wiring. Must be changed for Alpha HW -->

  <path name="adc-to-aif1adc">
    <ctl name="AIF1ADC1L Mixer ADC/DMIC Switch" value="1" />
    <ctl name="AIF1ADC1R Mixer ADC/DMIC Switch" value="1" />
  </path>

  <path name="main-mic">
    <ctl name="MIXINR IN2R Switch" value="1" />
    <ctl name="IN2R PGA IN2RN Switch" value="1" />
    <ctl name="IN2R Switch" value="1" />
    <ctl name="AIF1ADCL Source" value="Right" />
    <path name="adc-to-aif1adc" />
  </path>

  <!-- Playback paths -->

  <path name="media-speaker">
    <path name="speaker" />
    <ctl name="Speaker Volume" id="0" value="61" />
    <ctl name="Speaker Volume" id="1" value="62" />
  </path>

  <path name="media-headphones">
    <path name="headphones" />
    <ctl name="Headphone Volume" value="55" />
  </path>

  <path name="speaker-and-headphones">
    <path name="dac1" />
    <ctl name="Headphone Switch" value="1" />
    <ctl name="Left Output Mixer DAC Switch" value="1" />
    <ctl name="Right Output Mixer DAC Switch" value="1" />
    <ctl name="Speaker Switch" value="1" />
    <ctl name="SPKR DAC1 Switch" value="1" />
    <ctl name="SPKL DAC1 Switch" value="1" />
    <ctl name="Speaker Mixer Volume" value="3" />
    <ctl name="Speaker Boost Volume" value="5" />
    <ctl name="Speaker Volume" id="0" value="61" />
    <ctl name="Speaker Volume" id="1" value="62" />
  </path>

  <!-- Capture paths -->

  <path name="media-main-mic">
    <path name="main-mic" />
    <ctl name="IN2R Volume" value="16" />
    <ctl name="AIF1ADC1 HPF Switch" value="1" />
    <ctl name="AIF1ADC1 HPF Mode" value="HiFi" />
  </path>

</mixer>
You could also tell me, which values I should change for the next release...
 

ToniToshibo

Member
Sep 20, 2019
13
2
0
Hi, NFC is working great. THANK. Could you enable cpu 1500 in the next build? for testing. There is a problem with the speakerphone ... the subscriber does not hear me.

---------- Post added at 05:34 AM ---------- Previous post was at 05:25 AM ----------

yes tried 256gb sdcard works fine.

---------- Post added at 05:37 AM ---------- Previous post was at 05:34 AM ----------

I have been using this phone for 5+ years and it makes me happy.

---------- Post added at 05:40 AM ---------- Previous post was at 05:37 AM ----------

he is simply not being killed. and drowning and falling and still work !!!
 

mongo0

Senior Member
Nov 7, 2013
173
102
63
Hi, NFC is working great. THANK. Could you enable cpu 1500 in the next build? for testing. There is a problem with the speakerphone ... the subscriber does not hear me.

---------- Post added at 05:34 AM ---------- Previous post was at 05:25 AM ----------

yes tried 256gb sdcard works fine.

---------- Post added at 05:37 AM ---------- Previous post was at 05:34 AM ----------

I have been using this phone for 5+ years and it makes me happy.


thanks for feedback. I was also thinking about overclocking to 1.5. Maybe GPU a little bit as well.
However, it might cause the temperature to raise even further..

I already had a inflated battery but I don't know whether OC was the cause or a bad charger..
 

aelfinn

Senior Member
Jun 3, 2012
613
172
63
Just tried this ROM on a spare S5mini I have lying around. Very nice ROM, no obvious bugs AFAICS, but idle battery consumption seems atrocious: three days just sitting on my desk in airplane mode and the battery is completely drained. With other ROMs, that would be between 14 and 25 days. No mods except changed CPU gov to zzmove; deep sleep is working as per SmartPack Kernel Manager 11.1.
 

mongo0

Senior Member
Nov 7, 2013
173
102
63
Just tried this ROM on a spare S5mini I have lying around. Very nice ROM, no obvious bugs AFAICS, but idle battery consumption seems atrocious: three days just sitting on my desk in airplane mode and the battery is completely drained. With other ROMs, that would be between 14 and 25 days. No mods except changed CPU gov to zzmove; deep sleep is working as per SmartPack Kernel Manager 11.1.
Thanks for your feedback! Did you try a different launcher / Home app?
 

mongo0

Senior Member
Nov 7, 2013
173
102
63
Not yet. What would you suggest?
I'd suggest disabling crdroid home alltogether. .. So it doesn't run the service and the bug report service (dk why it's doing that in the first place) however, the only way achieving it is by switching the recent app switcher to AOSP style I believe. (Then you can remove phone and location permissions too)
Maybe try OpenLauncher or I can recommend Last Launcher from fdroid ...
 
Last edited:
  • Like
Reactions: aelfinn

SirRGB

Senior Member
Jun 29, 2019
129
16
28
I probably just go with this (1600/600) since it seems to work, and I don't know how much max voltage is needed for a more conservative oc, like 1500/533.
What are the stock speeds of the GPU?
I know, that the CPU runs (depending in the model) at 1.4 or 1.5 GHz.
 

fankool

Senior Member
Feb 1, 2013
202
38
58
Puglia
I don't know where the file resides on a running android, but before compiling it should be this file: device/samsung/smdk3470-common/audio/source/mixer_paths.xml.

You could also tell me, which values I should change for the next release...
Thank you for your willingness, but the mixer_files.xml seems to be missing also searching in different folder. I
n my old s4 mini was always located on /system/vendor/etc/ anyway I wildly tried to add this file, but nothing happened.
Anyway the content on s4 mini was a bit different. This is an extract:
Code:
    <path name="headphones">
        <ctl name="PRI_RX Channels" value="Two" />
        <ctl name="SLIM RX1 MUX" value="AIF1_PB" />
        <ctl name="SLIM RX2 MUX" value="AIF1_PB" />
        <ctl name="RX1 MIX1 INP1" value="RX1" />
        <ctl name="RX2 MIX1 INP1" value="RX2" />
        <ctl name="HPHL DAC Switch" value="1" />
        <ctl name="HPHL Volume" value="20" />
        <ctl name="HPHR Volume" value="20" />
#        <ctl name="RX1 Digital Volume" value="78" />
#        <ctl name="RX2 Digital Volume" value="78" />
        <ctl name="RX1 Digital Volume" value="60" />
        <ctl name="RX2 Digital Volume" value="60" />
        <ctl name="COMP1 Switch" value="1" />
    </path>
I've add # on the original lines. The value "60" I've set is lower than the standard "78", and I think it's acceptable for everyone. Do you mind if I ask you to recompile the rom using this parameter to see which file is changed? In this way I can create a patch, as I made for my s4 mini, to decrease the volume only if necessary.
 

mongo0

Senior Member
Nov 7, 2013
173
102
63
What are the stock speeds of the GPU?
I know, that the CPU runs (depending in the model) at 1.4 or 1.5 GHz.
my cpu is/was running at 1.4 ghz max. I don't recall that any of the device I had were running higher per default. But the code for the 1.5 frequency is already in the sources.
GPU is 450 mhz per default.

these should be all the relevant commits by @spookcity138: (for voltage info)
CPU OC
GPU to 533
GPU to 600
 

SirRGB

Senior Member
Jun 29, 2019
129
16
28
I meant on stock roms there were different frequencies, but on my device I use the Spookcity Kernel with 1.6Ghz OC.

But thanks for replying.
 

fankool

Senior Member
Feb 1, 2013
202
38
58
Puglia
I don't know where the file resides on a running android, but before compiling it should be this file: device/samsung/smdk3470-common/audio/source/mixer_paths.xml. [...]
Solution found! The file is in /system/etc/ and the name is default_gain.conf ! The structure is almost the same, I've reduced the lowest level of volume and it seems to work on headphone (what's the difference with earpiece?), on headset I can't check now. I can create a patch using as template the one I made for my S4 mini, in the meantime the version I'm using now, for the people with delicate ears and with the comment on the original version, is attached.

P.S.: I've noticed something not very clear on some parts of your original default_gain.conf, often "Speaker_Volume" is higher in "enable" section and lower in "disable" section. But sometimes is oppositely. How it works?
 

Attachments

mongo0

Senior Member
Nov 7, 2013
173
102
63
Solution found! The file is in /system/etc/ and the name is default_gain.conf ! The structure is almost the same, I've reduced the lowest level of volume and it seems to work on headphone (what's the difference with earpiece?), on headset I can't check now. I can create a patch using as template the one I made for my S4 mini, in the meantime the version I'm using now, for the people with delicate ears and with the comment on the original version, is attached.

P.S.: I've noticed something not very clear on some parts of your original default_gain.conf, often "Speaker_Volume" is higher in "enable" section and lower in "disable" section. But sometimes is oppositely. How it works?
uh great, I've done a little research myself and it seems the mixer_path.xml is indeed obsolete.

So the four lines you highlighted with ## should be adapted?

I'm sorry I don't know how it works / what the difference is with enabled/disabled... I never made any changes to that file...
 

ToniToshibo

Member
Sep 20, 2019
13
2
0
Hey. Put an update. Thanks for overclocking cpu. They are testing. At a frequency of 1500mg it works fine. At 1600mg it freezes. There is an opinion that at 1600mg it is necessary to raise the pressure, perhaps this will correct the situation. I tried to raise the voltage myself with the help of kernel auditor :(. Gpu did you also disperse?
 

mongo0

Senior Member
Nov 7, 2013
173
102
63
Hey. Put an update. Thanks for overclocking cpu. They are testing. At a frequency of 1500mg it works fine. At 1600mg it freezes. There is an opinion that at 1600mg it is necessary to raise the pressure, perhaps this will correct the situation. I tried to raise the voltage myself with the help of kernel auditor :(. Gpu did you also disperse?
thanks for the feedback. sorry to hear that 1.6 does not work for you. What pressure do you mean? Voltage?
GPU is now at 600 mhz (before 450 mhz)......
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone