Commit graph

4 commits

Author SHA1 Message Date
Lars Amsel
bc20747808 cal: sync log output between file system and resource data
To make the debug output of the database more readable
the has_cal_data lookup for RC data prints the file that
is looked up similar to the lookup for file system.
2020-09-22 14:35:41 -05:00
Martin Braun
d728767835 cal: database: Add option to register flash cal callbacks
This adds the possibility to read cal data from flash/EEPROM by adding
callbacks to the database. Unlike the RC and FILESYSTEM data, this is
very device-specific, but we can let devices register callbacks in the
database so that reading cal data from flash can use the same APIs as
from RC or filesystem.

Note that this also gives a convenient way to inject call data during
unit tests, if desired.
2020-05-20 07:30:15 -05:00
Martin Braun
746f9c7f0e lib: Refactor cal::database for more efficient function lookup
This is a refactoring with no functional change. Instead of hard-coding
the lookup of RC and FILESYSTEM data, we loop over a structure holding
those. This will make it easier to add more types of data lookup in the
future.
2020-05-20 07:30:15 -05:00
Martin Braun
f13615ec14 uhd: cal: Add database class
This class contains methods to store and retrieve data from the local
calibration database. Note that in this case, the "database" is just a
bunch of files on the local filesystem.
2020-03-26 07:46:03 -05:00