Adjustable stream parameters for HDA driver
|Reported by:||Pete||Owned by:||korli|
|Keywords:||HDA audio driver||Cc:|
The current (fixed) default buffer size in the HDA driver is unsuitable for real-time use, as it results in a latency of 1/10 sec or so. The attached patch makes it possible for the user to supply a settings file (in /boot/home/config/settings/kernel/drivers) that can optionally set buffer size, buffer count and sample rate.
Parameters supplied in the file override the defaults (and the sample rates in the Media Preferences), but any not supplied remain at their defaults.
I find that if I leave the sample rate at the default 192000 fps, but request 4 buffers of 1024 frames, I get a nice 13-14ms latency.
I'm also attaching a sample hda.settings file (as it didn't get into the patch...)