Boeffla Sound Engine: change detection to Wolfson logic

- used Wolfson detection due to CM incorrectly setting wm8994 flag for in-call, this should be universally usable

Change-Id: I44a8a9efed53720b566d2007382e23e42993de0f
Boeffla Sound Engine: v1.6.2b - fix issues in CM (Eq not sticking mostly)

- eq. settings are only applied when necessary (EQ active)
- speaker detection removed, headphone used instead (it's either one or the other, not both)
- each state change (headphone, in-call) will reset all the settings accordingly
- all settings due to a change detection are applied after 2 seconds of the last change in a window of 2 seconds
- if headphone is active, settings are reapplied on any register change after 2 seconds of the last change in a window of 2 seconds
- sysfs changes are always applied immediately (as it has always been, no change here)

Now hopefully this does the trick...

Change-Id: I5fd25172f6ee6b0870d248027dc4284bfa35e529
Boeffla-Sound: Engine 1.6.4

- show settings in sysfs even if boeffla sound is switched off
- remove legacy interfaces for alternative eq settings + mic mode
- some code cleanup

Boeffla-Sound: Engine 1.6.3

- delayed apply of changed register settings (credits to Yank) to fix issues on CM
- delay time configurable via sysfs (credits to Yank)
- different headphone detection for s3 and note devices
- different call detection

Boeffla Sound Engine: v1.6.2d - fix issues in CM (Eq not sticking mostly)

- (new) delay to apply the change detection is configurable (/sys/class/misc/boeffla_sound/change_delay, defaults to 2 seconds)
- fm radio detection slightly changed (removed a check that shouldn't be necessary anymore)
- eq. settings are only applied when necessary (EQ active)
- speaker detection removed, headphone used instead (it's either one or the other, not both)
- each state change (headphone, in-call) will reset all the settings accordingly
- all settings due to a change detection are applied after 2 seconds of the last change in a window of 2 seconds
- if headphone is active, settings are reapplied on any register change after 2 seconds of the last change in a window of 2 seconds
- sysfs changes are always applied immediately (as it has always been, no change here)

Now hopefully this does the trick...

Boeffla Sound Engine: v1.6.2c - fix issues in CM (Eq not sticking mostly)

- (new) fm radio detection slightly changed (removed a check that shouldn't be necessary anymore)
- eq. settings are only applied when necessary (EQ active)
- speaker detection removed, headphone used instead (it's either one or the other, not both)
- each state change (headphone, in-call) will reset all the settings accordingly
- all settings due to a change detection are applied after 2 seconds of the last change in a window of 2 seconds
- if headphone is active, settings are reapplied on any register change after 2 seconds of the last change in a window of 2 seconds
- sysfs changes are always applied immediately (as it has always been, no change here)

Now hopefully this does the trick...

Boeffla Sound Engine: v1.6.2b - fix issues in CM (Eq not sticking mostly)

- eq. settings are only applied when necessary (EQ active)
- speaker detection removed, headphone used instead (it's either one or the other, not both)
- each state change (headphone, in-call) will reset all the settings accordingly
- all settings due to a change detection are applied after 2 seconds of the last change in a window of 2 seconds
- if headphone is active, settings are reapplied on any register change after 2 seconds of the last change in a window of 2 seconds
- sysfs changes are always applied immediately (as it has always been, no change here)

Now hopefully this does the trick...

Change-Id: I105483eb1088711fa05507fee6e38ad727762e08
smdk4412: fix muted headset mic after button press

this corrects a bug where after pressing the button on a headset the mic becomes muted.
partial commit of "sound-soc: Sound platform and WM1811 changes" by SamsungOSRC

Change-Id: I6769cce909fe35f9da6339cf89686b62777c5ec7
smdk4412: Notification LED controls

Change-Id: Ic20c4946d4ea2336e1fa844d6600469e3517752d
Set SELinux to permissive

Change-Id: Ic73a9e1c6c10cb1405b6a2db0fc1901838bbab17
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
Merge "Boeffla Sound Engine: change detection to Wolfson logic" into kk4.4
Merge "Boeffla Sound Engine: v1.6.2b - fix issues in CM (Eq not sticking mostly)" into kk4.4
Merge "Boeffla-Sound: Engine 1.6.4" into kk4.4
Merge "smdk4412: fix muted headset mic after button press" into kk4.4
Merge "smdk4412: Notification LED controls" into kk4.4
Merge branch 'kk4.4' of https://github.com/SlimRoms/kernel_samsung_smdk4412 into kk4.4
s3cfb_s6e8aa0: Decrease driver verbosity

It stops driver from clobbering kmsg entirely.

Change-Id: Ide6641c57cb9ce58c616e4239b52801a7b5fcb44