high_perf_dac icon indicating copy to clipboard operation
high_perf_dac copied to clipboard

Installation failed

Open kodein1 opened this issue 2 years ago • 20 comments

Installation failed

kodein1 avatar Oct 18 '23 11:10 kodein1

Share magisk log?

ahkehra avatar Oct 18 '23 11:10 ahkehra

Dne 18. 10. 2023 13:52 napsal uživatel Vishal Rajput @.***>: Share magisk log?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

kodein1 avatar Oct 18 '23 12:10 kodein1

I have the same issue, the log is below. V5 installs successfully, just not V6.

I also have a question, when you say "Need Kernel Support" do you mean this needs some kernel flags you would only find in a custom kernel, or would it be supported by some stock kernels?

Thank you again for your work! Can't believe this doesn't have more exposure with how crazy the audiophile community is. I'm also wondering, do you have any further insight on what this actually does? I can't find any documentation on it anywhere, especially since the original XDA thread got taken off the internet.

- Copying zip to temp directory
- Installing high_perf_dac-v6.zip
- Current boot slot: _b
- Device is system-as-root
Archive:  /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip
  inflating: module.prop
****************
 High perf DAC 
 by reallyakera 
****************
*******************
 Powered by Magisk 
*******************
Archive:  /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip
  inflating: customize.sh
Archive:  /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip
  inflating: LICENSE
  inflating: README.md
  inflating: customize.sh
  inflating: module.prop
  inflating: service.sh
- Extracting module files
/data/user/0/sq.dm.fu.ge.d/cache/flash/update-binary: /data/adb/modules_update/high_perf_dac/customize.sh: line 16: syntax error: unexpected "(" (expecting word)
! Installation failed

theduffster avatar Oct 25 '23 17:10 theduffster

Yes Need Kernel Support https://github.com/buzzcut-s/kernel_msm8996/commit/984a263fec7703c293fad6f3c014e950130ed503

Every phone powered by a Qualcomm processor has a built-in WCD9xx Audio DAC, but it's rarely configured to be used to its full potential by OEMs. ... By enabling High-Performance Mode, the audio quality of Qualcomm-powered devices will not only receive a boost in volume but will sound more clear and crisp as well.

ahkehra avatar Oct 25 '23 18:10 ahkehra

Thank you for the response! Hmmm, wonder how it works internally. Maybe it increase the amplifier gain? Not sure that would necessarily improve sound quality though.

Looking at the source code, the description is "enable/disable class AB config for hph". Definitely doesn't reveal much, so mysterious...

It looks like high performance mode enables these parameters:

WCD9XXX_CLSH_STATE_HPHR,
WCD9XXX_CLSH_REQ_ENABLE,
WCD9XXX_CLSH_EVENT_PRE_DAC)

I'm also not sure this is even possible on newer phones, looking through newer phone source code I have yet to see "high_perf_mode" as an option in WCD9335+ phones. Still, Qualcomm says on their own website "High Performance Audio Playback" exists all the way up to the 9385.

theduffster avatar Oct 25 '23 18:10 theduffster

@oiakera do you know if anyone has gotten this to work with a newer SOC like the 8 Gen 1?

theduffster avatar Oct 26 '23 15:10 theduffster

Nope I don't have tester and I'm using SD870.

ahkehra avatar Oct 26 '23 22:10 ahkehra

Thanks again for the reply, that's very helpful. The 870 has the newest DAC Qualcomm makes, the WCD9385, too bad you don't have a way to test it.

theduffster avatar Oct 27 '23 06:10 theduffster

Hey there, i have the same issue but i'm using KSU i have a Joyeuse (miatoll) with a Qualcomm Snapdragon 720G, for what i read should have an internal WCD9385 DAC if i flash the v5.5 works ok, but with v6 the script doesn't install.

I attached the log. KernelSU_install_log_2023-10-28-18-53-17.log

Thanks.

FunkyNico avatar Oct 28 '23 22:10 FunkyNico

Hey there, i have the same issue but i'm using KSU i have a Joyeuse (miatoll) with a Qualcomm Snapdragon 720G, for what i read should have an internal WCD9385 DAC if i flash the v5.5 works ok, but with v6 the script doesn't install.

I attached the log. KernelSU_install_log_2023-10-28-18-53-17.log

Thanks.

Try this high_perf_dac-master.zip

ahkehra avatar Oct 28 '23 22:10 ahkehra

Hey there, i have the same issue but i'm using KSU i have a Joyeuse (miatoll) with a Qualcomm Snapdragon 720G, for what i read should have an internal WCD9385 DAC if i flash the v5.5 works ok, but with v6 the script doesn't install. I attached the log. KernelSU_install_log_2023-10-28-18-53-17.log Thanks.

Try this high_perf_dac-master.zip

It worked, flashed correctly.

FunkyNico avatar Oct 28 '23 22:10 FunkyNico

Nice 👍

ahkehra avatar Oct 28 '23 22:10 ahkehra

Flashed correctly for me too, rightfully tells me my kernel isn't supported. Thank you!

@FunkyNico does it work with your kernel? What kernel are you using?

My log in case anyone wants to see it:

- Copying zip to temp directory
- Installing high_perf_dac-master.zip
- Current boot slot: _b
- Device is system-as-root
Archive:  /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip
  inflating: module.prop
****************
 High perf DAC 
 by reallyakera 
****************
*******************
Archive:  /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip
  inflating: customize.sh
 Powered by Magisk 
*******************
- Extracting module files
Archive:  /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip
  inflating: LICENSE
  inflating: README.md
  inflating: customize.sh
  inflating: module.prop
  inflating: service.sh
+ print
+ ui_print 
+ true
+ echo 
+ ui_print '• Device : XQ-CQ62'
+ true
+ echo '• Device : XQ-CQ62'
+ ui_print '• Android : 13'
+ true
+ echo '• Android : 13'
+ ui_print '• Hardware : qcom'
+ true
+ echo '• Hardware : qcom'
+ ui_print 
+ true
+ echo 
+ extract
+ ui_print '- Extracting module files'
+ true
+ echo '- Extracting module files'
+ unzip -o /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip module.prop -d /data/adb/modules_update/high_perf_dac
- Done

• Device : XQ-CQ62
• Android : 13
• Hardware : qcom

- Extracting module files
Archive:  /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip
  inflating: module.prop
+ unzip -o /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip service.sh -d /data/adb/modules_update/high_perf_dac
Archive:  /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip
  inflating: service.sh
+ ui_print '• Codename : '
+ true
+ echo '• Codename : '
+ detect
+ '[' qcom '==' qcom ]
+ ui_print 
+ true
+ echo 
+ ui_print '• ✓ Qcom Detected'
+ true
+ echo '• ✓ Qcom Detected'
+ ui_print 
+ true
+ echo 
+ '[' 
sh: missing ]
+ ui_print 
+ true
+ echo 
+ ui_print '- ! Failed because your Kernel is Not Supported'
+ true
+ echo '- ! Failed because your Kernel is Not Supported'
+ ui_print 
+ true
+ echo 
+ abort
+ ui_print 
+ true
+ echo 
+ true
+ '[' '!' -z /data/adb/modules_update/high_perf_dac ]
+ rm -rf /data/adb/modules_update/high_perf_dac
+ rm -rf /dev/tmp
+ exit 1
• Codename : 

• ✓ Qcom Detected


- ! Failed because your Kernel is Not Supported


! Installation failed

theduffster avatar Oct 29 '23 02:10 theduffster

Flashed correctly for me too, rightfully tells me my kernel isn't supported. Thank you!

@FunkyNico does it work with your kernel? What kernel are you using?

My log in case anyone wants to see it:

- Copying zip to temp directory
- Installing high_perf_dac-master.zip
- Current boot slot: _b
- Device is system-as-root
Archive:  /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip
  inflating: module.prop
****************
 High perf DAC 
 by reallyakera 
****************
*******************
Archive:  /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip
  inflating: customize.sh
 Powered by Magisk 
*******************
- Extracting module files
Archive:  /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip
  inflating: LICENSE
  inflating: README.md
  inflating: customize.sh
  inflating: module.prop
  inflating: service.sh
+ print
+ ui_print 
+ true
+ echo 
+ ui_print '• Device : XQ-CQ62'
+ true
+ echo '• Device : XQ-CQ62'
+ ui_print '• Android : 13'
+ true
+ echo '• Android : 13'
+ ui_print '• Hardware : qcom'
+ true
+ echo '• Hardware : qcom'
+ ui_print 
+ true
+ echo 
+ extract
+ ui_print '- Extracting module files'
+ true
+ echo '- Extracting module files'
+ unzip -o /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip module.prop -d /data/adb/modules_update/high_perf_dac
- Done

• Device : XQ-CQ62
• Android : 13
• Hardware : qcom

- Extracting module files
Archive:  /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip
  inflating: module.prop
+ unzip -o /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip service.sh -d /data/adb/modules_update/high_perf_dac
Archive:  /data/user/0/sq.dm.fu.ge.d/cache/flash/install.zip
  inflating: service.sh
+ ui_print '• Codename : '
+ true
+ echo '• Codename : '
+ detect
+ '[' qcom '==' qcom ]
+ ui_print 
+ true
+ echo 
+ ui_print '• ✓ Qcom Detected'
+ true
+ echo '• ✓ Qcom Detected'
+ ui_print 
+ true
+ echo 
+ '[' 
sh: missing ]
+ ui_print 
+ true
+ echo 
+ ui_print '- ! Failed because your Kernel is Not Supported'
+ true
+ echo '- ! Failed because your Kernel is Not Supported'
+ ui_print 
+ true
+ echo 
+ abort
+ ui_print 
+ true
+ echo 
+ true
+ '[' '!' -z /data/adb/modules_update/high_perf_dac ]
+ rm -rf /data/adb/modules_update/high_perf_dac
+ rm -rf /dev/tmp
+ exit 1
• Codename : 

• ✓ Qcom Detected


- ! Failed because your Kernel is Not Supported


! Installation failed

I see that you're using magisk so i don't know it has something do with, but i'm using melon kernel with KSU. KernelSU_install_log_2023-10-29-00-00-01.log

I don't know for sure if it's working because i didn't see on the logs if it detects that i have qualcomm, and kernel support as you can see. Also for what i hear it sounds good, but i also have audio-jitter-remover and drc-remover.

FunkyNico avatar Oct 29 '23 03:10 FunkyNico

@FunkyNico can you see if you have any of the following folders in /sys/modules? If you do, then it's working as intended.

/sys/module/high_perf_mode /sys/module/cpe_debug_mode /sys/module/impedance_detect_en

theduffster avatar Nov 10 '23 01:11 theduffster

@FunkyNico can you see if you have any of the following folders in /sys/modules? If you do, then it's working as intended.

/sys/module/high_perf_mode /sys/module/cpe_debug_mode /sys/module/impedance_detect_en

I do not have any of these folders under /sys/module/. BTW: I will install v5.5 just to check what happens.

FunkyNico avatar Nov 10 '23 01:11 FunkyNico

@FunkyNico As I feared, i think your kernel is not compatible. Thanks for checking!

theduffster avatar Nov 10 '23 01:11 theduffster

Ok i just installed back v5.5 and nothing happens, i attach the log. Then i tried installing other kernel, in this case VelvetKernel r4 for my device and then install back v6, also nothing happens, there's no folders. Greetings.

KernelSU_install_log_2023-11-09-22-47-54.log

FunkyNico avatar Nov 10 '23 02:11 FunkyNico

Damn, that's really too bad. I've been trying to find any recent kernels that have looked at modifying the high performance dac parameters, but unfortunately haven't been able to find a single one for any device.

Hoping to get some time, maybe over the holidays, to look at implementing these older DAC modifications on the WCD9385.

theduffster avatar Nov 10 '23 19:11 theduffster

Can someone help me fix in this error in the kernel source code so I can get High performance DAC working? It's kernel 5.4 on android 11. This error appears after enabling the WDC codec in the makemenu config of the kernel.

parsecd_cmpWJRoF9a

athanatos1 avatar Jul 30 '24 12:07 athanatos1