From 063ff294a266f68ab93f462c264613c2223a40cd Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Mon, 22 Apr 2019 23:32:18 +0200 Subject: nwztools: add DMP-Z1 to the database This is one of those fancy gold-plated devices. Of course it breaks my scripts that were nicely expecting every device to start with NW. Change-Id: I161320f620f65f4f92c2650d192b26a9831eeb9d --- firmware/target/hosted/sonynwz/nwz-db.c | 4 ++++ firmware/target/hosted/sonynwz/nwz-db.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'firmware/target/hosted/sonynwz') diff --git a/firmware/target/hosted/sonynwz/nwz-db.c b/firmware/target/hosted/sonynwz/nwz-db.c index a8ba2a7b85..ca60bdf795 100644 --- a/firmware/target/hosted/sonynwz/nwz-db.c +++ b/firmware/target/hosted/sonynwz/nwz-db.c @@ -219,6 +219,7 @@ struct nwz_model_info_t nwz_model[NWZ_MODEL_COUNT] = { 0x24000006, "NW-A47" }, { 0x25000004, "NW-A55" }, { 0x25000006, "NW-A57" }, + { 0x26000008, "DMP-Z1" }, }; static int nvp_index_06a782[NWZ_NVP_COUNT] = @@ -1887,6 +1888,8 @@ static unsigned long models_nw_zx300[] = { 0x23000004, 0x23000006, 0x23000007 }; static unsigned long models_nwz_noname[] = { 0x5010002, 0x5010004, 0x5010005 }; +static unsigned long models_dmp_z1[] = { 0x26000008 }; + struct nwz_series_info_t nwz_series[NWZ_SERIES_COUNT] = { { "nwz-a10", "NWZ-A10 Series", 10, models_nwz_a10, &nvp_index_92faee }, @@ -1928,4 +1931,5 @@ struct nwz_series_info_t nwz_series[NWZ_SERIES_COUNT] = { "nw-zx100", "NW-ZX100 Series", 6, models_nw_zx100, &nvp_index_92faee }, { "nw-zx300", "NW-ZX300 Series", 3, models_nw_zx300, &nvp_index_139d65 }, { "nwz-noname", "NONAME", 3, models_nwz_noname, 0 }, + { "dmp-z1", "DMP-Z1 Series", 1, models_dmp_z1, &nvp_index_94b5fc }, }; diff --git a/firmware/target/hosted/sonynwz/nwz-db.h b/firmware/target/hosted/sonynwz/nwz-db.h index 152a111644..afc251aa63 100644 --- a/firmware/target/hosted/sonynwz/nwz-db.h +++ b/firmware/target/hosted/sonynwz/nwz-db.h @@ -157,9 +157,9 @@ enum nwz_nvp_node_t /* Invalid NVP index */ #define NWZ_NVP_INVALID -1 /* Non-existent entry */ /* Number of models */ -#define NWZ_MODEL_COUNT 195 +#define NWZ_MODEL_COUNT 196 /* Number of series */ -#define NWZ_SERIES_COUNT 39 +#define NWZ_SERIES_COUNT 40 /* NVP node info */ struct nwz_nvp_info_t -- cgit