Wim Taymans
235d25316c
pulse-server: make sure we never try to ask more than tlength
2021-01-18 16:23:24 +01:00
Wim Taymans
76aff7640f
pulse-server: improve variable name
2021-01-18 16:22:30 +01:00
Wim Taymans
88727afbd2
resample: take already queued sample into account
...
When asking for samples, take into account the amount of samples
we already have converted.
2021-01-18 15:09:54 +01:00
Wim Taymans
51d44e9154
test: improve resampler test
...
Test with different amount of input samples.
2021-01-18 15:08:23 +01:00
Wim Taymans
72a77863e0
impl-node: log quantum in XRun error
2021-01-18 11:24:53 +01:00
Wim Taymans
d9a63dc69f
alsa: disable pause-on-idle by default
...
snd_pcm_drop() causes pops and cracks. It is better to just let the
sink consume silence until it gets suspended.
2021-01-18 11:13:48 +01:00
Wim Taymans
19be555fa6
audioadapter: run the converter after follower drained
...
When the follower drained, rerun the converter again to let it drain
as well.
2021-01-18 10:29:50 +01:00
Wim Taymans
fd520c4b39
alsa-plugin: set buffer size correctly
...
Our output buffer size is always what is needed to produce one
period of samples. We use nframes from the hardware and the rest
we fill with silence.
2021-01-18 10:03:19 +01:00
Wim Taymans
be9c2f9757
pulse-server: account for underrun
...
Not quite sure, it needs more investigation but It seems the time
needs to increase when underrunning.
See #510
2021-01-17 21:07:31 +01:00
Wim Taymans
d2aee61880
alsa: don't write more than wat is requested
2021-01-17 17:20:59 +01:00
Wim Taymans
23fd40df94
daemon: support containers as arguments
...
so that
ags = "foo=bar baz=5"
can be written as:
args = { foo = bar baz = 5 }
2021-01-17 14:56:23 +01:00
Wim Taymans
ff416cdc9e
daemon: add some comments to the config file
2021-01-17 11:42:42 +01:00
Wim Taymans
9b9b85ddbf
alsa: put card name in udev monitor event
...
So that we can use it to construct a good name for the card.
Fixes #524
2021-01-17 11:35:27 +01:00
Wim Taymans
bf25fc1388
pulse-server: always use rate_match value when available
...
The minreq is just a fallback for when we don't know the exact
amount of required samples to consume from the ringbuffer.
2021-01-16 17:16:02 +01:00
Wim Taymans
02295c5e2b
alsa: call prepare again but ignore EBUSY
...
Not calling _prepare can cause problems on my card. So call it
again but ignore -EBUSY.
2021-01-15 18:42:35 +01:00
Wim Taymans
b4e3d546e0
alsa: fill frames with silence when underrun
...
Keep track of how many samples we need to produce. If we don't have
enough samples in the ringbuffer, fill the rest with silence.
See #564
2021-01-15 18:34:38 +01:00
Wim Taymans
6b0abd2057
channelmix: Improve unknown channel layout handling
...
Clamp position to valid range. so that AUX becomes UNKNOWN.
If we have one mono source channel and unknown destination, copy it
to all destination channels.
If we have one mono destination channel and unknown source layout,
average all channels.
Otherwise, pair source and dest channels.
See #538
2021-01-15 17:51:07 +01:00
Wim Taymans
376436fc2c
alsa: remove snd_pcm_prepare() call, it is not needed
...
set_hw_params already called _prepare for us and calling it twice
might cause trouble in some drivers.
See #580
2021-01-15 16:12:42 +01:00
Wim Taymans
482f96a644
alsa: add option to disable mmap access mode
2021-01-15 15:44:22 +01:00
Wim Taymans
2ff4615e53
alsa: prefer planar formats
...
They are easier to convert
2021-01-15 15:18:39 +01:00
Wim Taymans
5817b66a20
alsa-plugin: only parse props when updated
...
Check if the properties got update before we try to parse them.
If they are not updated, they might be empty and we would lose
our previously parse values.
Fixes default volume in alsa-mixer.
2021-01-15 10:29:32 +01:00
Wim Taymans
d7ff7d098b
audioadapter: don't emit xrun when drained
2021-01-15 09:46:17 +01:00
Wim Taymans
5a7f4a619a
pw-dump: also dump properties
2021-01-15 09:45:56 +01:00
Wim Taymans
ae263eeffc
pw-dump: only dump changed metadata entries
2021-01-14 21:14:16 +01:00
Wim Taymans
688b3c5ed4
pw-dump: only output [] when something changed
2021-01-14 20:17:22 +01:00
Wim Taymans
a97d4c44b4
pw-metadata: remove is when key == NULL
2021-01-14 20:11:43 +01:00
Wim Taymans
13cef576c9
pw-dump: dump metadata contents
...
Fix some leaks
2021-01-14 20:11:15 +01:00
Wim Taymans
792c01aede
pw-dump: trigger change in metadata
...
so that it is displayed
2021-01-14 19:22:40 +01:00
Wim Taymans
b118a84a60
module-metadata: set factory id in properties
2021-01-14 19:22:18 +01:00
Wim Taymans
a8faad9f17
fmt: support f32p -> s24s conversion
...
As used by MAudio Fasttrack Pro
See rhbz#916017
2021-01-14 17:58:54 +01:00
Wim Taymans
be107317f5
Silence some dbus errors
...
Log info when a service is not running and disable it.
2021-01-14 17:11:42 +01:00
Wim Taymans
7347b5ef05
alsa: add api.alsa.headroom setting
...
Can be used to tweak the extra distance kept between the hardware
and software pointers when reading and writing.
See #289
2021-01-14 17:10:05 +01:00
Wim Taymans
abe73c9146
meson: use global b_pie to build PIE executables
2021-01-14 16:29:32 +01:00
Wim Taymans
a6433b0839
pw-dump: mark new objects without proxy as changed
...
So that they are actually printed.
2021-01-14 15:39:02 +01:00
Frédéric Danis
1b10bee6f8
bluez5: Fix double free in backend-native
...
This occurs when exiting `pipewire-media-session` with a headset connected.
Fixes !395
2021-01-14 15:16:31 +01:00
Wim Taymans
a1cb786ee7
impl-module: turn an error into debug
...
The error is usually reported or ignored by the caller.
2021-01-14 15:08:14 +01:00
Wim Taymans
3162465f6f
portal: error->warn when the portal pid is unknown
2021-01-14 15:07:42 +01:00
Wim Taymans
7eac9874f0
daemon: add nofail option to the modules section
...
Use nofail on rtkit when it's not available.
2021-01-14 15:06:24 +01:00
Wim Taymans
b8583799ff
spa-monitor: fix the support array
2021-01-14 15:01:12 +01:00
Wim Taymans
51cc5c328f
pw-uninstalled: set config dir
2021-01-14 13:28:23 +01:00
Wim Taymans
de851018c1
media-session: fall back to card_name for description
...
Also try to use the alsa.card_name property for the description if
there is nothing else.
Fixes #524
2021-01-13 19:49:24 +01:00
Wim Taymans
c9354c238f
Add -fPIE to installed executables
...
Fixes #570
2021-01-13 19:40:37 +01:00
Frédéric Danis
514836eebe
bluez5: Create spa_bt_transport when codec has been negotiated
...
This waits for codec negotiation completion, i.e. on `SLC` completion if
codec negotiation is not supported or on `AT+BCS` reception if codec
negotiation is supported, before creating the `spa_bt_transport`
2021-01-13 17:35:57 +01:00
Wim Taymans
fee0c2679c
daemon: install new config files
...
See #207
2021-01-13 14:50:52 +01:00
Wim Taymans
c771bc9b5a
media-session: move bluetooth properties to bluez config
2021-01-13 11:42:08 +01:00
Sebastian Apel
8ac5a89583
bluez5: Added mSBC support in bluze5 backend native, including check to make sure the computer's bluetooth adapter
...
supports the transport modes required for mSBC
2021-01-13 11:20:22 +01:00
Wim Taymans
8aec26f5bd
v4l2-monitor: make nicer names
2021-01-12 21:51:10 +01:00
Wim Taymans
fac80e76d2
media-session: add conf file for v4l2 and bluez as well
2021-01-12 20:42:58 +01:00
Wim Taymans
4cba8fc7e9
pulse-server: implement set_sample_rate
2021-01-12 13:14:05 +01:00
Frédéric Danis
7bd86df6df
bluez5: Add simple HFP AG support to backend-native
2021-01-12 11:21:55 +01:00