From 4345b729d4fc6f3fd9c1fc21811636610a07a4bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Voltz?= Date: Sat, 17 Oct 2009 08:35:39 +0200 Subject: [PATCH] handle DS600 frontend like XP300 in coarse gain calibration --- backend/genesys_gl841.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/genesys_gl841.c b/backend/genesys_gl841.c index 94b2151ba..ec7f7b2b4 100644 --- a/backend/genesys_gl841.c +++ b/backend/genesys_gl841.c @@ -5428,7 +5428,8 @@ gl841_coarse_gain_calibration (Genesys_Device * dev, int dpi) gain[j] = 65535.0/max[j]; if (dev->model->dac_type == DAC_CANONLIDE35 || - dev->model->dac_type == DAC_WOLFSON_XP300) { + dev->model->dac_type == DAC_WOLFSON_XP300 || + dev->model->dac_type == DAC_WOLFSON_DSM600) { gain[j] *= 0.69;/*seems we don't get the real maximum. empirically derived*/ if (283 - 208/gain[j] > 255) dev->frontend.gain[j] = 255;