- 19 Oct, 2020 18 commits
-
-
Sebastian Krzyszkowiak authored
-
Sebastian Krzyszkowiak authored
-
Arnaud Ferraris authored
-
Arnaud Ferraris authored
-
Arnaud Ferraris authored
Upstream now provides a D-Bus service for automatic activation.
-
Arnaud Ferraris authored
-
Arnaud Ferraris authored
-
Arnaud Ferraris authored
This commit simplifies the way the output port is selected so we make sure we always use the highest priority available port, except in a few cases. Fixes #3
-
Arnaud Ferraris authored
-
Arnaud Ferraris authored
Fixes #4
-
Arnaud Ferraris authored
-
Arnaud Ferraris authored
Fixes #1
-
Arnaud Ferraris authored
Using a uint doesn't make sense here, while a boolean named `success` will be much more intuitive
-
Arnaud Ferraris authored
-
Arnaud Ferraris authored
-
Arnaud Ferraris authored
-
Arnaud Ferraris authored
-
Arnaud Ferraris authored
Rest of the project uses 4 spaces, make it coherent.
-
- 14 Oct, 2020 2 commits
-
-
Guido Gunther authored
-
Guido Gunther authored
-
- 13 Oct, 2020 12 commits
-
-
Arnaud Ferraris authored
-
Arnaud Ferraris authored
-
Arnaud Ferraris authored
As we now automatically check which port should be used as output, we no longer need to keep track of the earpiece port.
-
Arnaud Ferraris authored
Forcing the earpiece port can be a wrong idea when e.g. the person is wearing headphones: we want to keep outputting sound through the headphones instead of suddenly switching to the earpiece. This is done by retrieving the highest priority available port which isn't the speaker. It requires priorities to be set right and having no other output than speaker, earpiece or headphones, but for now it's a resonable constraint.
-
Arnaud Ferraris authored
For cards with a single profile, we still want to offer a voice call mode. This can be achieved by simply switching the output port to the earpiece.
-
Arnaud Ferraris authored
In order to offer a voice call mode for devices with a single UCM profile (which can be a legitimate use case), we want to track whether the card has a voice call profile, as well as the earpiece/handset output port if it has one.
-
Arnaud Ferraris authored
Instead of manually setting result code, calling the user callback and so on, we can just call operation_complete_cb().
-
Arnaud Ferraris authored
Tracking the default port (which is actually the non-speaker active output port) can be tedious and prone to errors. Instead of trying to track which port was in use when we switched to speaker, we can simply check, when it's time to switch back, which available port has higher priority and use this one. This will also help solve corner cases: switch to call mode (earpiece), enable speaker, plug in headphones, then disable speaker: the current code will automatically switch back to headphones instead of the earpiece, which sounds like the good thing to do in that case.
-
Arnaud Ferraris authored
-
Arnaud Ferraris authored
-
Arnaud Ferraris authored
-
Arnaud Ferraris authored
-
- 12 Oct, 2020 4 commits
-
-
Arnaud Ferraris authored
These will be used by the library sources too.
-
Arnaud Ferraris authored
-
Arnaud Ferraris authored
The D-Bus interface definition will be required by other components from this package, create a `data` folder and move it there.
-
-