-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.txt
executable file
·68 lines (47 loc) · 2.03 KB
/
api.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
PDesireAudio Audio Driver for WCD9330
Author: Tristan Marsell, Team DevElite
Contact: tristan.marsell@t-online.de
Current Version: 10.1
Codename: Yandere Audio
INTRODUCTION
-------------
PDesireAudio is a kernel driver by Tristan Marsell and Team DevElite, based on WCD drivers by Qualcomm.
Two modes are included:
PDesireAudio Ultra High Quality Mode:
Forked from the WCD9xxx Ultra High Quality Mode but more advanced
Main Features:
-disable every possible CSLH stream to save more power
-enable CLSAB streams to minimize distortion on high and low frequencies
-disable all compander streams (COMP0, COMP1, etc.) to reduce distortion
-disable all decimator streams (DEC0, DEC1, etc.) to disable cut-offs on audio
-Set Ultra High Quality Audio mode on even when frequency is not 192kHz 24bit
-Microphone dynamic High Pass Filter bypass
-little bit power saving due less streams
-Set default amperages higher on SPKDRV
-Dynamic to improve power usage
-Static mode included
PDesireAudio Advanced Mode:
Works in combination with PDesireAudio Ultra High Quality Mode
Main Features:
-reset compander streams
ACCESSIBILITY & API
--------------------
PDesireAudio UHQA & Advanced Mode are on by default, to change that
change the value on /sys/modules/snd_soc_wcd9330/uhqa_mode_pdesireaudio to 0
in your filesystem
If you want to implement the switch in a code for kernel:
Header file needs to be imported:
#include <linux/pdesireaudio/api.h>
API DESCRIPTION:
enable_pdesireaudio();
Enable PDesireAudio and re-init PDesireAudio
disable_pdesireaudio();
Disable PDesireAudio and re-init PDesireAudio
reinit_pdesireaudio();
Re-init PDesireAudio
static_mode_pdesireaudio(true/false);
Set PDesireAudio so static mode or to dynamic mode
The Static mode allows user to make changes without influence from other modules
and libs which control PDesireAudio
With False you enable Dynamic mode and with true you enable Static mode
You can implement it anywhere and via calling the methods above shown control PDesireAudio