From 322227df7f65da8b4a962f3513e0a10b89cbe29d Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Tue, 22 Apr 2014 13:14:33 +0200 Subject: [PATCH] Fix the Mares Nemo Wide 2 memory layout descriptor. The Mares Nemo Wide 2 appears to have a slightly larger profile ringbuffer, which extends to the end of the internal memory. It remains to be seen whether this is also true for some of the other models. The Mares Matrix is currently the only model where this is definitely not the case. --- src/mares_iconhd.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/mares_iconhd.c b/src/mares_iconhd.c index e3009a4..60e3a12 100644 --- a/src/mares_iconhd.c +++ b/src/mares_iconhd.c @@ -104,6 +104,12 @@ static const mares_iconhd_layout_t mares_matrix_layout = { 0x3E000, /* rb_profile_end */ }; +static const mares_iconhd_layout_t mares_nemowide2_layout = { + 0x40000, /* memsize */ + 0x0A000, /* rb_profile_begin */ + 0x40000, /* rb_profile_end */ +}; + static unsigned int mares_iconhd_get_model (mares_iconhd_device_t *device) { @@ -275,11 +281,14 @@ mares_iconhd_device_open (dc_device_t **out, dc_context_t *context, const char * switch (device->model) { case MATRIX: case PUCKPRO: - case NEMOWIDE2: case PUCK2: device->layout = &mares_matrix_layout; device->packetsize = 256; break; + case NEMOWIDE2: + device->layout = &mares_nemowide2_layout; + device->packetsize = 256; + break; case ICONHDNET: device->layout = &mares_iconhdnet_layout; device->packetsize = 4096;