From b6058de5f94956c3df7ef5efa05337d5403a7ac9 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 7 Sep 2008 18:00:00 +0000 Subject: Remove leftover cruft. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18439 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/audio/wm8721.c | 13 ------------- firmware/drivers/audio/wm8731.c | 13 ------------- firmware/export/wm8721.h | 1 - firmware/export/wm8731.h | 1 - 4 files changed, 28 deletions(-) diff --git a/firmware/drivers/audio/wm8721.c b/firmware/drivers/audio/wm8721.c index 60c4e66c76..141224a65b 100644 --- a/firmware/drivers/audio/wm8721.c +++ b/firmware/drivers/audio/wm8721.c @@ -66,19 +66,6 @@ int tenthdb2master(int db) } } -/* convert tenth of dB volume (-780..0) to mixer volume register value */ -int tenthdb2mixer(int db) -{ - if (db < -660) /* 1.5 dB steps */ - return (2640 - db) / 15; - else if (db < -600) /* 0.75 dB steps */ - return (990 - db) * 2 / 15; - else if (db < -460) /* 0.5 dB steps */ - return (460 - db) / 5; - else /* 0.25 dB steps */ - return -db * 2 / 5; -} - void audiohw_mute(bool mute) { if (mute) diff --git a/firmware/drivers/audio/wm8731.c b/firmware/drivers/audio/wm8731.c index 59fa4cffcf..a1149c3d2e 100644 --- a/firmware/drivers/audio/wm8731.c +++ b/firmware/drivers/audio/wm8731.c @@ -98,19 +98,6 @@ int tenthdb2master(int db) } } -/* convert tenth of dB volume (-780..0) to mixer volume register value */ -int tenthdb2mixer(int db) -{ - if (db < -660) /* 1.5 dB steps */ - return (2640 - db) / 15; - else if (db < -600) /* 0.75 dB steps */ - return (990 - db) * 2 / 15; - else if (db < -460) /* 0.5 dB steps */ - return (460 - db) / 5; - else /* 0.25 dB steps */ - return -db * 2 / 5; -} - int sound_val2phys(int setting, int value) { int result; diff --git a/firmware/export/wm8721.h b/firmware/export/wm8721.h index 9aab1b760a..3611e4d6ee 100644 --- a/firmware/export/wm8721.h +++ b/firmware/export/wm8721.h @@ -27,7 +27,6 @@ #define VOLUME_MAX 60 extern int tenthdb2master(int db); -extern int tenthdb2mixer(int db); extern void audiohw_set_master_vol(int vol_l, int vol_r); extern void audiohw_set_nsorder(int order); diff --git a/firmware/export/wm8731.h b/firmware/export/wm8731.h index 27c11434bb..f55c3af002 100644 --- a/firmware/export/wm8731.h +++ b/firmware/export/wm8731.h @@ -27,7 +27,6 @@ #define VOLUME_MAX 60 extern int tenthdb2master(int db); -extern int tenthdb2mixer(int db); extern void audiohw_set_master_vol(int vol_l, int vol_r); extern void audiohw_set_nsorder(int order); -- cgit v1.2.3