audio: updates for es310
- add support for flashing firmware
- move defines to header for userspace
- export es310.h to userspace
cherry-pick (https://github.com/M1cha/android_kernel_xiaomi_aries/commit/cda5e40fcd74e9c2c48f578d322ceee5e723cf3f)
Signed-off-by: huangqiwu <huangqiwu@xiaomi.com>
msm: cpufreq: Unable to handle kernel NULL pointer

In the function cpufreq_governor_dbs,( case CPUFREQ_GOV_START )
sysfs creation is under the critical section where as
(case CPUFREQ_GOV_STOP) sysfs removal is not under critical section.
If a START/STOP done frequently from user space then there is chance
of hitting the race condition with sysfs interface creation and removal.
Hence the removal of sysfs entry should happen in the criticalpath.

Change-Id: I3b0dd475e8e306b633b282ff23bd1c8195b5f45f
CRs-fixed: 564850
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>