Commit graph

757 commits

Author SHA1 Message Date
r3vn
2ccbf14739 Merge branch 'upstream' into feature/bullseye/12.2.86 2020-10-30 00:11:03 +01:00
Juho Hämäläinen
22be43a324 Bump packaging version.
And remove Group from spec files.
2020-10-21 13:22:45 +03:00
Juho Hämäläinen
91e9bcbbe7
Merge pull request #98 from jusa/xml-includes
Support includes in module elements with xml configuration.
2020-10-21 13:19:41 +03:00
Juho Hämäläinen
b540528aab parser-xml: Support module includes in configuration files.
[parser-xml] Support module includes in configuration files. Fixes JB#51666
2020-10-21 07:56:25 +03:00
Juho Hämäläinen
d885b86121 parser-xml: Pass root element in parse_file().
Instead of setting it directly to struct parser_data. Also remove
unused root from the struct.
2020-10-20 11:12:11 +03:00
r3vn
7052e809f9 [packaging] fixed package name 2020-10-13 00:31:20 +02:00
Eugenio Paolantonio (g7)
2f5ddab8f4 [packaging] Build-depend on pulseaudio-pulsecore-dev
Signed-off-by: Eugenio Paolantonio (g7) <me@medesimo.eu>
2020-10-11 00:24:48 +02:00
r3vn
08afdc0932 build using travis-ci 2020-10-09 23:17:10 +02:00
Simonas Leleiva
dd83f69d87 Bump packaging version.
Signed-off-by: Simonas Leleiva <simonas.leleiva@jolla.com>
2020-06-22 16:18:54 +02:00
Simonas Leleiva
e46b8c7b0e
Merge pull request #97 from mer-hybris/64bit
Fix for 64bit
2020-06-22 15:17:12 +01:00
Simonas Leleiva
d8faa4a703 packaging: Fix for 64bit
[packaging] Fix for 64bit. JB#50285

Signed-off-by: Simonas Leleiva <simonas.leleiva@jolla.com>
2020-06-22 09:54:49 +02:00
Ratchanan Srirattanamet
bc67f05782 add libevdev-dev as a build dependency 2020-06-03 15:01:49 +02:00
Ratchanan Srirattanamet
5cab2af137 card: read headphone availability from input device
Recent Android devices start to provide headphone availability via input
device instead of h2w switch. This renders droid-extcon useless.

This commit introduce droid-extevdev, a simple code that will read
headphone availability from the input device, using libevdev as an
abstraction layer. This means the code now depends on libevdev (but it
can be made optional later on if needed).

This should make headphone availability works on newer Android devices
without having to resort to h2w kernel driver.
2020-06-03 13:51:08 +02:00
Ratchanan Srirattanamet
81504b9ec4 Add virtual_voice_stream
Adding option to create voice virtual stream when voicecall is active
2020-06-03 13:49:09 +02:00
Alfred Neumayer
0730b77e39 src: Add h2w detection code from pulseaudio-packaging
This applies changes from pulseaudio-packaging for detecting
headset & headphones via the h2w virtual switch file and udev.

Compared to pulseaudio-packaging this now forces udev as a requirement
rather than providing a compile-time switch.
2020-06-03 13:49:09 +02:00
NeKit
e5ba918cdb New upstream release 12.2.84 2020-06-03 01:55:32 +02:00
NeKit
0e120cf797 Merge remote-tracking branch 'mer/master' into buster 2020-06-03 01:54:22 +02:00
Juho Hämäläinen
72d4e0aaca Bump packaging version. 2019-12-10 10:48:34 +02:00
Juho Hämäläinen
dcb0b67f67
Merge pull request #96 from jusa/jb47194
Improve audio mode changes.
2019-12-10 10:47:19 +02:00
Juho Hämäläinen
08c4558f15 common: Always set earpiece routing after enabling voice call mode.
Mode change is applied only after next set_parameters call with route
is made. Usually it's ok to switch to whatever route after mode switch
but some devices don't like it and we end up with silent audio. To work
around these devices always set earpiece as the initial route after
mode change. Correct route is then applied later when other parts of
the system decide what the route should be.

[common] Always set earpiece routing after enabling voice call mode. Fixes JB#47194
2019-12-09 13:48:23 +02:00
Juho Hämäläinen
976a6cf58c card: Park profiles correctly when switching between virtual profiles.
Virtual profiles don't have output or input mappings so calling park_profile()
for one is no-op. To correctly park the sink and source ports we need to call
park_profiles() for the last active real profile.

[card] Park profiles correctly when switching between virtual profiles. JB#47194
2019-12-09 13:44:31 +02:00
Juho Hämäläinen
b36b2431fb common: Remove unused variables. 2019-12-09 13:33:04 +02:00
NeKit
fa0e8a5535 Add libexpat1-dev as build dependency (for XML config parsing) 2019-11-20 00:24:54 +01:00
Juho Hämäläinen
90ca699176 Bump packaging version. 2019-11-19 15:47:29 +02:00
Juho Hämäläinen
25abbb4388
Merge pull request #95 from jusa/input-fixes
Input fixes
2019-11-19 15:46:09 +02:00
Juho Hämäläinen
ca93e01a91 README: Add description for two new quirks. 2019-11-19 15:21:29 +02:00
Juho Hämäläinen
8ed068f68b card: Don't create fast or deep buffer sinks if disabled by quirks. 2019-11-19 15:21:29 +02:00
Juho Hämäläinen
6986d9bf06 common: Add two new quirks and set them enabled by default.
When the quirks are enabled everything works the same as before. Setting
them disabled will affect the behaviour.

[common] Add quirks for FAST and DEEP_BUFFER sinks. JB#48097
2019-11-19 15:21:25 +02:00
Juho Hämäläinen
bfd377a109 common: Check for right pointers in asserts. 2019-11-19 15:21:25 +02:00
Juho Hämäläinen
9d5226d841 parser-xml: Refactor element list frees. 2019-11-19 15:21:25 +02:00
Juho Hämäläinen
9936dfa44f parser-xml: Store profiles correctly for mix and device ports.
[parser-xml] Store profiles correctly for mix and device ports.
2019-11-19 15:21:25 +02:00
Juho Hämäläinen
0e60d133c6 source: Don't cast function pointers. 2019-11-19 15:21:25 +02:00
Juho Hämäläinen
0af48ffd73 source: Reconfigure source to last connected source-output.
When source-output is disconnected from our source reconfigure
to previously connected source-output if applicable.
2019-11-19 15:21:25 +02:00
Juho Hämäläinen
5aeee81b49 source: Reconfigure source if port is changed while source is running.
To ensure proper stream configuration with updated routing
reconfigure running stream on port change.
2019-11-19 15:21:25 +02:00
Juho Hämäläinen
de0d98e6d5 source: Add a workaround for fm-radio loopback.
Refactor reconfiguring part a bit and add a workaround for fm-radio
loopback. As the loopback module is instantiated without defined sink
or source, it uses as default really silly values. But since our source
is reconfiguring itself to whatever is requested things get a bit
hairy. To ensure good values for the source in case of loopback module
connection use metrics from our primary output stream.

[source] Add a workaround for fm-radio loopback. JB#48080
2019-11-19 15:20:47 +02:00
Juho Hämäläinen
44e7b1479d source: Have input stream in correct state after startup. 2019-11-19 15:20:47 +02:00
Juho Hämäläinen
124139f5b9 common: Try opening input stream with defaults before giving up.
[common] Revert to default values if input stream reconfigure fails.
2019-11-19 15:20:14 +02:00
Juho Hämäläinen
a46a5c91a1 common: Use device definition with config fill function. 2019-11-19 15:20:14 +02:00
Juho Hämäläinen
3192069095 common: Store initial input stream metrics as defaults.
And if reconfiguration fails restore defaults instead of
previously used values.
2019-11-19 15:20:14 +02:00
Juho Hämäläinen
a2eb4143ef common: Apply input route immediately after creating input stream.
With some adaptations audio_source_t does not have any effect when
opening the input stream. To ensure proper routing we need to set
input parameters immediately after opening the stream just in case.
2019-11-19 15:20:14 +02:00
Juho Hämäläinen
7b531dfff9 common: Improve stream config fill function for input streams.
We need to be more careful with input streams as due to dynamic
source reconfiguring it may be that bizarre combinations are requested.
Try to make sure that sane combination is actually requested when
opening the input stream.
2019-11-19 15:20:14 +02:00
Juho Hämäläinen
c7a62db215 common: Use device definition when creating output stream. 2019-11-19 15:20:14 +02:00
Juho Hämäläinen
8bc33cfb25 sink: Use device definition regardless of operation mode.
Use device definition for needed info for both standalone mode
and when run under droid card.
2019-11-19 15:20:14 +02:00
Juho Hämäläinen
1151993324 common: Store device definition to droid stream. 2019-11-19 15:20:14 +02:00
Juho Hämäläinen
4afa908867 common: Make primary output stream lookup function public. 2019-11-19 15:20:14 +02:00
Juho Hämäläinen
24e3661259 config: Lookup output or input modules by name. 2019-11-19 15:20:14 +02:00
Juho Hämäläinen
82b46a9ec4 conversion: Add generic string lookup. 2019-11-19 15:20:14 +02:00
Juho Hämäläinen
fcb720b6a3 source: Use reconfigure instead of freeing and re-creating stream.
[source] Reconfigure stream instead of freeing and re-creating.
2019-11-19 15:19:45 +02:00
Juho Hämäläinen
caead9d18c common: Allow reconfiguring input stream.
Instead of needing to free the input stream completely to
reconfigure its metrics allow reconfiguring in-place. Rollback
to previous good values on failure.
2019-11-18 15:52:54 +02:00
Juho Hämäläinen
39fdb85b13 common: Use correct pointer when logging input stream. 2019-11-15 16:28:53 +02:00