summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2007-11-19 15:50:52 +0000
committerChristian Gmeiner <christian.gmeiner@gmail.com>2007-11-19 15:50:52 +0000
commitc583f3c8d1bbed4a1f432bd22f15c126a95d63bb (patch)
treeb2527bf83096830db1f8262157a889faa0333f0f /firmware/drivers
parent4f2473db6cecbb80323c5eee576b2e8e0901274f (diff)
downloadrockbox-c583f3c8d1bbed4a1f432bd22f15c126a95d63bb.zip
rockbox-c583f3c8d1bbed4a1f432bd22f15c126a95d63bb.tar.gz
rockbox-c583f3c8d1bbed4a1f432bd22f15c126a95d63bb.tar.bz2
rockbox-c583f3c8d1bbed4a1f432bd22f15c126a95d63bb.tar.xz
introduce general audiohw api for recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15687 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/audio/as3514.c2
-rw-r--r--firmware/drivers/audio/uda1380.c2
-rw-r--r--firmware/drivers/audio/wm8731.c4
-rw-r--r--firmware/drivers/audio/wm8758.c2
-rw-r--r--firmware/drivers/audio/wm8975.c2
5 files changed, 6 insertions, 6 deletions
diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c
index 5d7c700..f88cafe 100644
--- a/firmware/drivers/audio/as3514.c
+++ b/firmware/drivers/audio/as3514.c
@@ -394,7 +394,7 @@ void audiohw_set_recvol(int left, int right, int type)
* Enable line in 1 analog monitoring
*
*/
-void audiohw_set_monitor(int enable)
+void audiohw_set_monitor(bool enable)
{
/* LI1R_Mute_on - default */
unsigned int line_in1_r = as3514.regs[LINE_IN1_R] & ~(1 << 5);
diff --git a/firmware/drivers/audio/uda1380.c b/firmware/drivers/audio/uda1380.c
index 7ff34e7..f5b637e 100644
--- a/firmware/drivers/audio/uda1380.c
+++ b/firmware/drivers/audio/uda1380.c
@@ -451,7 +451,7 @@ void audiohw_set_recvol(int left, int right, int type)
* Enable or disable recording monitor (so one can listen to the recording)
*
*/
-void audiohw_set_monitor(int enable)
+void audiohw_set_monitor(bool enable)
{
if (enable) /* enable channel 2 */
uda1380_write_reg(REG_MUTE, uda1380_regs[REG_MUTE] & ~MUTE_CH2);
diff --git a/firmware/drivers/audio/wm8731.c b/firmware/drivers/audio/wm8731.c
index 66eb1e8..e051fc4 100644
--- a/firmware/drivers/audio/wm8731.c
+++ b/firmware/drivers/audio/wm8731.c
@@ -177,7 +177,7 @@ void audiohw_postinit(void)
{
sleep(HZ);
- /* 4) Set the ‘Active’ bit in register 12h. */
+ /* 4) Set the �Active� bit in register 12h. */
codec_set_active(true);
audiohw_mute(false);
@@ -316,7 +316,7 @@ void audiohw_set_recvol(int left, int right, int type)
}
}
-void audiohw_set_monitor(int enable)
+void audiohw_set_monitor(bool enable)
{
if(enable)
{
diff --git a/firmware/drivers/audio/wm8758.c b/firmware/drivers/audio/wm8758.c
index 4a01836..30740d5 100644
--- a/firmware/drivers/audio/wm8758.c
+++ b/firmware/drivers/audio/wm8758.c
@@ -268,7 +268,7 @@ void audiohw_set_recvol(int left, int right, int type) {
(void)type;
}
-void audiohw_set_monitor(int enable) {
+void audiohw_set_monitor(bool enable) {
(void)enable;
}
diff --git a/firmware/drivers/audio/wm8975.c b/firmware/drivers/audio/wm8975.c
index 65a5f03..a069d15 100644
--- a/firmware/drivers/audio/wm8975.c
+++ b/firmware/drivers/audio/wm8975.c
@@ -311,7 +311,7 @@ void audiohw_set_recvol(int left, int right, int type) {
(void)type;
}
-void audiohw_set_monitor(int enable) {
+void audiohw_set_monitor(bool enable) {
(void)enable;
}