genesys: Fix duplicate hwdpi conversion on gl124

merge-requests/119/head
Povilas Kanapickas 2019-08-04 01:11:07 +03:00
rodzic 1ba4018a6e
commit ea78c00882
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -813,10 +813,10 @@ static void gl124_init_motor_regs_scan(Genesys_Device* dev,
* */ * */
static void gl124_setup_sensor(Genesys_Device * dev, static void gl124_setup_sensor(Genesys_Device * dev,
const Genesys_Sensor& sensor, const Genesys_Sensor& sensor,
Genesys_Register_Set * regs, int dpi, unsigned ccd_size_divisor) Genesys_Register_Set * regs, unsigned dpihw,
unsigned ccd_size_divisor)
{ {
DBG_HELPER(dbg); DBG_HELPER(dbg);
int dpihw;
uint32_t exp; uint32_t exp;
// we start at 6, 0-5 is a 16 bits cache for exposure // we start at 6, 0-5 is a 16 bits cache for exposure
@ -831,7 +831,6 @@ static void gl124_setup_sensor(Genesys_Device * dev,
} }
// set EXPDUMMY and CKxMAP // set EXPDUMMY and CKxMAP
dpihw = sensor.get_register_hwdpi(dpi);
Sensor_Profile* sensor_profile = get_sensor_profile(dev->model->ccd_type, dpihw, Sensor_Profile* sensor_profile = get_sensor_profile(dev->model->ccd_type, dpihw,
ccd_size_divisor); ccd_size_divisor);