From 641e4fd885e30263606f751802c72e40a3da321e Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Tue, 23 Dec 2008 18:22:00 +0000 Subject: [PATCH] Fix inverted de-emphasis bit for si470x FM chip. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19566 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/si4700.h | 2 +- firmware/tuner.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/firmware/export/si4700.h b/firmware/export/si4700.h index 5b8001f753..89905ee155 100644 --- a/firmware/export/si4700.h +++ b/firmware/export/si4700.h @@ -29,7 +29,7 @@ struct si4700_region_data { - unsigned char deemphasis; /* 0: 50us, 1: 75us */ + unsigned char deemphasis; /* 0: 75us, 1: 50us */ unsigned char band; /* 0: us/europe, 1: japan */ unsigned char spacing; /* 0: us/australia (200kHz), 1: europe/japan (100kHz), 2: (50kHz) */ } __attribute__((packed)); diff --git a/firmware/tuner.c b/firmware/tuner.c index 22cb981038..c694031c45 100644 --- a/firmware/tuner.c +++ b/firmware/tuner.c @@ -62,10 +62,10 @@ const struct tea5767_region_data tea5767_region_data[TUNER_NUM_REGIONS] = #if (CONFIG_TUNER & SI4700) const struct si4700_region_data si4700_region_data[TUNER_NUM_REGIONS] = { - [REGION_EUROPE] = { 0, 0, 2 }, /* 50uS, US/Europe band, 50kHz spacing */ - [REGION_US_CANADA] = { 1, 0, 0 }, /* 75uS, US/Europe band, 200kHz spacing */ - [REGION_JAPAN] = { 0, 1, 1 }, /* 50uS, Japanese band, 100kHz spacing */ - [REGION_KOREA] = { 0, 0, 1 }, /* 50uS, US/Europe band, 100kHz spacing */ + [REGION_EUROPE] = { 1, 0, 2 }, /* 50uS, US/Europe band, 50kHz spacing */ + [REGION_US_CANADA] = { 0, 0, 0 }, /* 75uS, US/Europe band, 200kHz spacing */ + [REGION_JAPAN] = { 1, 1, 1 }, /* 50uS, Japanese band, 100kHz spacing */ + [REGION_KOREA] = { 1, 0, 1 }, /* 50uS, US/Europe band, 100kHz spacing */ }; #endif /* (CONFIG_TUNER & SI4700) */