summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2006-06-03 08:56:58 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2006-06-03 08:56:58 +0000
commit9ae0c957c8749bba29caea3dc0be37582f6b56b4 (patch)
tree023a2791ea2e9656f66266b8cf091ddb6e25c14d /firmware
parentca8fa65ab7489e3bfca84af8fb242e60846c6412 (diff)
downloadrockbox-9ae0c957c8749bba29caea3dc0be37582f6b56b4.tar.gz
rockbox-9ae0c957c8749bba29caea3dc0be37582f6b56b4.tar.bz2
rockbox-9ae0c957c8749bba29caea3dc0be37582f6b56b4.zip
Remove previous fix as it seems to cause lock-ups when used with a remote.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10037 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/uda1380.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/drivers/uda1380.c b/firmware/drivers/uda1380.c
index 322078a5f5..68a3df5491 100644
--- a/firmware/drivers/uda1380.c
+++ b/firmware/drivers/uda1380.c
@@ -265,7 +265,7 @@ void uda1380_disable_recording(void)
void uda1380_set_recvol(int left, int right, int type)
{
int left_ag, right_ag;
- int old_irq_level;
+ /*int old_irq_level;*/
switch (type)
{
@@ -273,11 +273,11 @@ void uda1380_set_recvol(int left, int right, int type)
left_ag = MIN(MAX(0, left / 4), 15);
left -= left_ag * 4;
/* allow nothing in between the two calls */
- old_irq_level = set_irq_level(HIGHEST_IRQ_LEVEL);
+ /*old_irq_level = set_irq_level(HIGHEST_IRQ_LEVEL);*/
uda1380_write_reg(REG_ADC, (uda1380_regs[REG_ADC] & ~VGA_GAIN_MASK)
| VGA_GAIN(left_ag));
uda1380_write_reg(REG_DEC_VOL, DEC_VOLL(left) | DEC_VOLR(left));
- set_irq_level(old_irq_level);
+ /*set_irq_level(old_irq_level);*/
logf("Mic: %dA/%dD", left_ag, left);
break;
@@ -287,11 +287,11 @@ void uda1380_set_recvol(int left, int right, int type)
right_ag = MIN(MAX(0, right / 6), 8);
right -= right_ag * 6;
/* allow nothing in between the two calls */
- old_irq_level = set_irq_level(HIGHEST_IRQ_LEVEL);
+ /*old_irq_level = set_irq_level(HIGHEST_IRQ_LEVEL);*/
uda1380_write_reg(REG_PGA, (uda1380_regs[REG_PGA] & ~PGA_GAIN_MASK)
| PGA_GAINL(left_ag) | PGA_GAINR(right_ag));
uda1380_write_reg(REG_DEC_VOL, DEC_VOLL(left) | DEC_VOLR(right));
- set_irq_level(old_irq_level);
+ /*set_irq_level(old_irq_level);*/
logf("Line L: %dA/%dD", left_ag, left);
logf("Line R: %dA/%dD", right_ag, right);
break;