apps/mixer.git
5 years agoFix missing API import sandbox/ctxnop/4a_master
Loïc Collignon [Tue, 10 Jul 2018 08:20:21 +0000 (10:20 +0200)]
Fix missing API import

Mixer should import ahl-4a api to be able to control volume.

Change-Id: Ic953d1572bedc4200cddb578c64885b2bb26c2bb
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoFix issue with QML variable declaration
Loïc Collignon [Tue, 10 Jul 2018 07:43:43 +0000 (09:43 +0200)]
Fix issue with QML variable declaration

It seems that you have to make a local variable to access member, you
can't access a member of a member.

Change-Id: I7ba4918372355d3c3d0f937a6363a1f640d10e41
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoFix the config.xml content URI
Loïc Collignon [Mon, 9 Jul 2018 16:15:02 +0000 (18:15 +0200)]
Fix the config.xml content URI

The binary should placed into a bin sub-directory.

Change-Id: If88e6a759639aa5dfff0ee0e112971a399b656e5
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoHACK: Fix compilation script to find the widget
Loïc Collignon [Mon, 9 Jul 2018 15:44:30 +0000 (17:44 +0200)]
HACK: Fix compilation script to find the widget

Due to cmake alias and different usage (when yocto, when jenkins,
etc...), the autobuild script can produce a widget in a wrong place.

Change-Id: I877f9f432a4b452f2c6099061c57798e3d615bc4
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoCMakeLists.txt: fix typo on qtwindowmanager
Stephane Desneux [Thu, 5 Jul 2018 19:12:30 +0000 (21:12 +0200)]
CMakeLists.txt: fix typo on qtwindowmanager

Change-Id: Id78d210f194c654f095a751a4d5dc4559840bd2a
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
5 years agoBump to last app-template version
Loïc Collignon [Mon, 9 Jul 2018 15:24:07 +0000 (17:24 +0200)]
Bump to last app-template version

Fix yocto os dectection.

Change-Id: I5277f19b38791e9e7cc0463cb012fec0bdadb5ac
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoFix author node in config.xml
Loïc Collignon [Mon, 9 Jul 2018 15:04:57 +0000 (17:04 +0200)]
Fix author node in config.xml

XML node wasn't correct so that it fails to parse.

Change-Id: I17acf3ba7be405c5bbe66c6c58b317e3d5e3bbca
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoBump to last app-templates version
Loïc Collignon [Thu, 5 Jul 2018 15:22:21 +0000 (17:22 +0200)]
Bump to last app-templates version

Changed some compilations flags and fixed the OS detection when Yocto.

Change-Id: I4a013da89e71a2cb79b3cb107494d7006d8e8726
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoMake volume sliders works correctly
Loïc Collignon [Thu, 5 Jul 2018 14:13:31 +0000 (16:13 +0200)]
Make volume sliders works correctly

Volume sliders are now binded to the High Level 4a API.

Change-Id: I46c4d80a19cf2a9047a502d9faa8bec6f7bd173e
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoWIP better handling for slider creation
Loïc Collignon [Thu, 5 Jul 2018 12:30:25 +0000 (14:30 +0200)]
WIP better handling for slider creation

The creation of sliders is now using a template instead of a string
computation.
Also fixed some indentation and trailing spaces issues.

Change-Id: Ieb1d9f953d61fa1bac46bf1ab6904e67d09a3fa9
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoBump to last afb-helpers version
Loïc Collignon [Wed, 4 Jul 2018 13:28:07 +0000 (15:28 +0200)]
Bump to last afb-helpers version

The last afb-helper version change the way we should define the binding
version.

Change-Id: I2e33493c1712c5a476a813c0e062769e63ed11a4
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoAdded some ignores to .gitignore
Loïc Collignon [Wed, 4 Jul 2018 13:26:12 +0000 (15:26 +0200)]
Added some ignores to .gitignore

Added some IDE and support for multiple build directory.

Change-Id: Ia5dae5e5e0400e0740828b66ecccde371c1e2929
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoUse latest version of afb-helpers and app-templates submodule
Loïc Collignon [Mon, 2 Jul 2018 15:51:39 +0000 (17:51 +0200)]
Use latest version of afb-helpers and app-templates submodule

Changes of afb-helpers:
(294a579 - Loïc Collignon) Remove deprecated use of cmake/Qt macro
(5bec8c5 - Loïc Collignon) Rename method to avoid conflict with Qt's one

Changes of conf.d/app-templates:
(aa68dbd - Romain Forlot) Don't overwrite the autobuild script if it exists
(a13e7b9 - Romain Forlot) Disable the in-tree build method.
(51026d2 - Romain Forlot) Detect Yocto as OS distribution

Change-Id: I2d280a8d81a98168f8d875d25ab72bf906ee2e6a
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoBetter Qt5 handling
Loïc Collignon [Mon, 2 Jul 2018 13:39:53 +0000 (15:39 +0200)]
Better Qt5 handling

Make use of the correct cmake options to handle Qt correctly.

Change-Id: Ic7c65cb0a51085ec8cb1c0e2e98785a2d41ca0a8
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoAllow to build and run on native linux host
Loïc Collignon [Mon, 2 Jul 2018 13:38:32 +0000 (15:38 +0200)]
Allow to build and run on native linux host

Make libhomescreen and libmanager dependencies optional so that you can
build, run and debug on a native linux host, to allow faster
development.

Change-Id: Ice0b7e196e9a88dc7f0f8e9894eb9091c6ba566e
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoFix bad autocompletion
Loïc Collignon [Mon, 2 Jul 2018 13:26:00 +0000 (15:26 +0200)]
Fix bad autocompletion

This fails silently most of the times, but under some conditions nothing
is displayed because of this bad autocompletion mistake.

Change-Id: I96dceb21e0dba21da3120deb8312155a7822f94f
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoFixed compile due to rename of a dependency
Loïc Collignon [Thu, 5 Jul 2018 12:07:18 +0000 (14:07 +0200)]
Fixed compile due to rename of a dependency

QtWindowManagerWrapper was renammed to QtWindowManager.

Change-Id: I7005bb26ace1f1bfa09ec3466fb67fb757cd2f87
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoFix build failure on master due to afb-helpers 77/14877/1 5.99.1 flounder/5.99.1 flounder_5.99.1
Loïc Collignon [Fri, 29 Jun 2018 14:53:24 +0000 (16:53 +0200)]
Fix build failure on master due to afb-helpers

The afb-helpers submodule do not build anymore on master because of
dynapi change. Added a definition so fix the issue.

Change-Id: Iaf5a1bd58e6628e89af2ec7bab44c188b535e993
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
5 years agoMerge 'eel' into 'master' 31/14731/1
Loïc Collignon [Wed, 27 Jun 2018 15:30:37 +0000 (17:30 +0200)]
Merge 'eel' into 'master'

Replace content from 'master' by content from 'eel' as it's the new
version based on 4a on which new development will be done.

Change-Id: I2966af7dcee59701ff3a344487c008d7e65e68ed
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
6 years agomixer: add clearer pulseaudio control naming 67/12867/2
Matt Ranostay [Wed, 20 Dec 2017 06:39:05 +0000 (22:39 -0800)]
mixer: add clearer pulseaudio control naming

Use the role name for the control name in the Mixer UI instead
of overall vague control description

Bug-AGL: SPEC-1196
Change-Id: I34b5c3378fa3bca7464067490907f9ae0adb6364
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
6 years agoPorting to new HMI Framework 49/11949/1 4.99.3 eel/4.99.3 eel_4.99.3
Scott Murray [Tue, 14 Nov 2017 13:33:09 +0000 (22:33 +0900)]
Porting to new HMI Framework

Changes following guidelines given in "Kickstart: New HMI Framework"
document at:

https://wiki.automotivelinux.org/_media/kickstart_apps_migration_guide.pdf

Change-Id: Iacfb8ad1a6851d0ca9bbcc1815ef5f0822b3836c
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
7 years agoFix package name 01/9501/1 3.99.1 4.99.1 4.99.2 dab/3.99.1 dab_3.99.1 eel/4.99.1 eel/4.99.2 eel_4.99.1 eel_4.99.2
Tasuku Suzuki [Wed, 24 May 2017 04:24:22 +0000 (13:24 +0900)]
Fix package name

Change-Id: I97ed87b4e34d971ff918d903c0d40b2d4d46e585
Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
7 years agoAdd support for handling external sink/source volume change events 55/9155/3
Matt Porter [Thu, 20 Apr 2017 16:49:15 +0000 (12:49 -0400)]
Add support for handling external sink/source volume change events

Subscribes to PA volume change events, updating the local cached
volume levels, and propagating the change to the UI. This allows
changes to sink/source volumes levels from the command line (pactl)
or a master volume control to be reflected in the mixer UI controls.

Change-Id: I1d570dffeab9fcf4b6ba51e4792852b44a6149ca
AGL-Bug: SPEC-549
Signed-off-by: Matt Porter <mporter@konsulko.com>
7 years agoFix source volume setting in PaClient::setVolume 51/9151/3
Matt Porter [Thu, 20 Apr 2017 03:39:07 +0000 (23:39 -0400)]
Fix source volume setting in PaClient::setVolume

Fix error resulting in sources not being found due to searching
the sink cache hash.

AGL-Bug: SPEC-548
Change-Id: Icd5a75af7a5fc2e0e125d96910af034e4d0873a3
Signed-off-by: Matt Porter <mporter@konsulko.com>
7 years agoConvert the sink/source volume caches from a list to hashes 41/9141/4
Matt Porter [Wed, 19 Apr 2017 16:53:55 +0000 (12:53 -0400)]
Convert the sink/source volume caches from a list to hashes

Maintain the cached sink/source volume state in separate hashes
for quick lookup. This will further simplify external volume event
support that will need to update the cache.

AGL-Bug: SPEC-548
Change-Id: I47b8e070318f3992a5343d1753c50baa8c1d9cb3
Signed-off-by: Matt Porter <mporter@konsulko.com>
7 years agoRewrite PulseAudio backend into a threaded class 39/9139/3
Matt Porter [Sat, 15 Apr 2017 13:18:25 +0000 (09:18 -0400)]
Rewrite PulseAudio backend into a threaded class

Converts the Mixer PulseAudio backend from a C library to a PaClient
class which runs in its own QThread.  This faciliates isolation of
PaControlModel updates to the QML thread where they belong. It also
provides the foundation for runtime updates of the model and reuse
of the PaClient class in other apps.

AGL-Bug: SPEC-548
Change-Id: I13c4c220fde2fd4bc4aea2e04f39152a963b5fa0
Signed-off-by: Matt Porter <mporter@konsulko.com>
7 years agoAGL-style PulseAudio mixer app 91/7691/2
Matt Porter [Mon, 19 Dec 2016 18:55:11 +0000 (13:55 -0500)]
AGL-style PulseAudio mixer app

Change-Id: I566050a1a8f241f140523df236de81ab951c1394
Signed-off-by: Matt Porter <mporter@konsulko.com>