summaryrefslogtreecommitdiff
path: root/libs/ardouralsautil/deviceparams.cc
AgeCommit message (Collapse)Author
2020-04-29Tweak ALSA nperiod setting, fallback to nearestRobin Gareus
This is mainly for RME RayDAT that has a fixed buffersize of 16k: dev_name : hw:HDSPMxc2f6c5,0 channels : 36 min_rate : 32000 max_rate : 192000 min_bufz : 16384 max_bufz : 16384 min_nper : 4 max_nper : 512 However nperiod configuration determines the effective latency regardless. This is similar to https://github.com/jackaudio/jack1/blob/master/drivers/alsa/alsa_driver.c#L476-L486
2020-04-29ALSA: set min/max sizes before the debug messageRobin Gareus
2020-04-28Prepare to allow using ALSA backend with nperiods > 3Robin Gareus
This will still need an update for Alsa_pcmi::set_hwpar() capture channel (which is fixed at 2, unless FRAG_NEAR is used).
2019-08-03Update backend GPL boilerplate and (C) from git logRobin Gareus
2019-07-24Fix ALSA available buffersize detection:Robin Gareus
buffer-size = periods * period-size Previously, buffersize was used for period-size. This fixes an issue with a dedicated .asoundrc configuring a specific period-size or buffer-size that has to be exact. Ardour's device configuration failed in this case. This has not been an issues since most hardware devices offer a wide range: 8 < period-size < 262144 ; 16 < buffer-size < 524288. Only a subset of which (32 .8192) is allowed by Ardour.
2015-08-11add API to query ALSA supported parametersRobin Gareus