11-03-2021, 04:16 PM
(11-03-2021, 03:25 PM)robiwan Wrote: That is why it should be as an "interface" that Moode uses. Each card implements the switching as it needs to.
The nifty thing about a hardware abstraction layer (HAL) is that it makes writing applications easier because---duh---they don't have to know the details of the hardware. Of course someone has to decide and enforce the common API.
The not-so nifty thing about a HAL is that the sausage-making still has to be done; it's just hiding behind the HAL now. Someone has to develop and test the code which maps from the common API to a specific card's functions (e.g., 'implements the switching as it needs to'). Oh, and then support the code over time.
Not saying it can't be done (look at the Windows HAL and stable of drivers for example). Just wondering who's going to do the work. By virtue of its market position Microsoft can impose the burden on the card vendors. I don't see us having that kind of leverage. OTOH, I don't see the FOSS moOde team as being eager to write and support drivers on behalf of commercial vendors.
Just my two-cents worth.
Regards,
Kent