happycube / cxadc-linux3

CX2388x direct ADC capture driver, updated for Linux 3.x+ and 64-bit
81 stars 18 forks source link

changing the behvior so that leveladj reads the sysfs parameters if no command line args provided #19

Closed tandersn closed 2 years ago

tandersn commented 2 years ago

Got a request from the people to change the behavior of leveladj.c, currently if no command line args are provided, it resets the card to 8 bit 8fsc mode.

I changed it so that leveladj reads the sysfs parameters for 8/16 bit mode and 8/10 fsc mode. this way if you run leveladj with no parameters it just stays at whatever capture mode you have it set to. if either arguments are specified, the old expected behavior is observed.