Merge pull request #11 from martyone/master

Package tests
[build] Fix int/gpointer type conversion
Merge pull request #17 from cxl000/x86_64_build

[build] Fix int/gpointer type conversion
[ffmemless] Close file descriptors on exec

Since exec restarts the whole process, there is no point in leaving
the file descriptors hanging around.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@jollamobile.com>
[ffmemless] Move device node setup from plugin load to sink initialize

There is a issue that the file descriptor of the vibra device
gets closed by something unknown in the system. This causes the kernel
to delete all the loaded effects. Subsequently the vibra effects
don't work anymore, unless someone else happens to load effects to
those id slots that ffmemless plugin thinks are still there. I have
straced ngfd, but at least ngfd is not closing the fd.

I found that moving the device opening to sink init instead of
plugin load, the issue dissappears. My theory is that it has something
to do with the plugin loading mechanism, but cannot confirm this
unfortunately.

As the sink init is actually more logical place to initialize the
device node, it makes sense to add this fix in any case.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@jollamobile.com>
Merge pull request #18 from kjokinie/master

Fix issue with ffmemless file descriptor getting closed spuriously
Remove session file reading.

We always get the session bus set up for us properly, and are started after
DBus, so we can rely on it actually being there. Remove all the useless dead
code for reading the Harmattan session file.
Merge pull request #19 from rburchell/master

Remove session file reading.
[gst] Support media.role in event configuration file

By default gst plugin use media.role=media.
When another media.role is needed it can be configured in event file in /usr/share/ngfd/events.d/

For example:
sound.stream.media.role = mymedia
Merge pull request #20 from tihonko/dev

[gst] Support media.role in event configuration file
Revert "mce: plugin follows and stores the display status"

This reverts commit c40e96058ddc3ea43e45f9536a81a2a03c1f9400.
[ffmemless] Add check for device existence to plugin loading

Ngfd fails to run in SDK as there is no ffmemless device, and
a sink failing init will stop whole ngfd from working. Added
a check to plugin load for the device existance, so we don't
even load the plugin if we can't run it.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@jollamobile.com>
Merge pull request #23 from kjokinie/master

[ffmemless] Add check for device existence to plugin loading
Merge pull request #22 from Vesuri/master

Revert "mce: plugin follows and stores the display status"
[ffmemless] Add missing function declaration

The ffmemless_erase_effect function declaration was missing
from the header file. Added so that the function can be used.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@jollamobile.com>
[ffmemless] Clear old effect before uploading new

If a effect with different type than an existing effect in kernel
is uploaded with same id, the effect loading fails. Solved this by
deleting the old effect before uploading new ones.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@jollamobile.com>
[mce] Complete event playback immediately.
Merge pull request #25 from jusa/dev

Complete mce event playback immediately.
Merge pull request #24 from kjokinie/master

Clear old effect before uploading new
[profile] Follow touch vibration level setting in profiles

To be able to follow touch vibration level setting in other
plugins, add it to the profile values that get tracked.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@jollamobile.com>