[haiku-bugs] [Haiku] #9134: Adjustable stream parameters for HDA driver

  • From: "Pete" <trac@xxxxxxxxxxxx>
  • Date: Sun, 11 Nov 2012 03:29:37 -0000

#9134: Adjustable stream parameters for HDA driver
------------------------------+-------------------------
 Reporter:  Pete              |        Owner:  nobody
     Type:  enhancement       |       Status:  new
 Priority:  normal            |    Milestone:  R1
Component:  Audio & Video     |      Version:  R1/alpha3
 Keywords:  HDA audio driver  |   Blocked By:
 Blocking:                    |  Has a Patch:  0
 Platform:  All               |
------------------------------+-------------------------
 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...)

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/9134>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: