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.
This commit is contained in:
Jef Driesen 2014-04-22 13:14:33 +02:00
parent b4cc491aee
commit 322227df7f

View File

@ -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;