Subject: Re: RFC: new utility functions in auconv.c
To: None <tech-kern@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-kern
Date: 11/08/2004 15:43:29
On Mon, Nov 08, 2004 at 21:28:53 +0900, TAMURA Kent wrote:

> To write audio_hw_if::set_params() and query_encoding() annoys
> us.  It is dull work and many audio drivers have similar code.
> A driver loses an encoding which can be supported by sw_code if
> the driver author forgets to add code to set the sw_code for the
> encoding in set_params().
[...]
> If a driver uses the proposed functions, the code will be
> simplified and shorter.  If we added new audio converter and it
> was supported by the proposed functions, drivers using them
> would get support for the new converter without any code change.

I had to write audio driver code some time ago, and writing all the
code to plug into audio(9) framework was really tedious and boring.
The more code we can factor out - the better.


SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen