Commit c4723a4
committed
goke-osdrv-gk7205v200: ship the VQE engines the microphone path loads by dlopen
The Goke half of the change that installs the voice quality enhancement
engines for OpenIPC/majestic#287. The HiSilicon side landed separately; this
is kept apart because it is the only part that adds binaries to the tree and
the only part with no hardware here to run it on.
Same mechanism as HiSilicon. libupvqe.so is only the framework: it dlopen()s
one shared object per DSP stage when HI_MPI_AI_EnableVqe runs, resolving names
from a "lib%s_%s.so" template, and it prints
dlopen libvqe_common.so/libsecurec.so or %s failed
when they are absent. Goke names them libvqe_* where HiSilicon names them
libhive_*. Only the stages majestic can switch on are installed: the high-pass
filter, noise reduction and automatic gain control of the 8/16 kHz talk
engine, libvqe_common.so which is a NEEDED of the last two, and the 48 kHz
record engine. Echo cancellation and the equaliser are not exposed, and the
resampler is compiled into libupvqe.so itself (RES_ReSampler_* are defined
there), so libvqe_res.so is never loaded.
They sit in files/vqe/ rather than files/lib/ because this package installs
files/lib/* wholesale, and there is no other way to keep 360 KB out of a lite
image where majestic has no VQE compiled in to load them.
Provenance: the five libraries come from the GK7205V200 vendor SDK drop, the
same drop the twenty libraries already in files/lib/ came from. Each of those
twenty was checked byte-identical to a file in that drop before these five
were copied from it, and libupvqe.so -- the loader that will dlopen them --
is one of the twenty.
Not validated on hardware. There is no GK7205V200 on the bench, and matching
provenance and an identical dlopen mechanism are not the same as watching the
enable call succeed on the part. Holding this until someone can run it.1 parent 2a0d5ca commit c4723a4
6 files changed
Lines changed: 21 additions & 0 deletions
File tree
- general/package/goke-osdrv-gk7205v200
- files/vqe
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
13 | 31 | | |
14 | 32 | | |
15 | 33 | | |
| |||
65 | 83 | | |
66 | 84 | | |
67 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
68 | 89 | | |
69 | 90 | | |
70 | 91 | | |
0 commit comments