diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2005-02-19 00:34:15 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2005-02-19 00:34:15 +0000 |
commit | c76fbf7162e598895b1308f1855b0f70629968fc (patch) | |
tree | 77bac888514fd8d7212974a0b2d455b52f3cc4ad /firmware/drivers/ata_mmc.c | |
parent | 7b56110e5e74055d45753456034b333788823af4 (diff) | |
download | rockbox-c76fbf7162e598895b1308f1855b0f70629968fc.tar.gz rockbox-c76fbf7162e598895b1308f1855b0f70629968fc.zip |
Ondio: disk indication in the status bar, to compensate for lacking LED
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6012 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/ata_mmc.c')
-rw-r--r-- | firmware/drivers/ata_mmc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/drivers/ata_mmc.c b/firmware/drivers/ata_mmc.c index 7ba6dac296..7139f0394f 100644 --- a/firmware/drivers/ata_mmc.c +++ b/firmware/drivers/ata_mmc.c | |||
@@ -635,6 +635,7 @@ int ata_read_sectors(IF_MV2(int drive,) | |||
635 | addr = start * SECTOR_SIZE; | 635 | addr = start * SECTOR_SIZE; |
636 | 636 | ||
637 | mutex_lock(&mmc_mutex); | 637 | mutex_lock(&mmc_mutex); |
638 | led(true); | ||
638 | #ifdef HAVE_MULTIVOLUME | 639 | #ifdef HAVE_MULTIVOLUME |
639 | card = &card_info[drive]; | 640 | card = &card_info[drive]; |
640 | ret = select_card(drive); | 641 | ret = select_card(drive); |
@@ -681,6 +682,7 @@ int ata_read_sectors(IF_MV2(int drive,) | |||
681 | } | 682 | } |
682 | 683 | ||
683 | deselect_card(); | 684 | deselect_card(); |
685 | led(false); | ||
684 | mutex_unlock(&mmc_mutex); | 686 | mutex_unlock(&mmc_mutex); |
685 | 687 | ||
686 | /* only flush if reading went ok */ | 688 | /* only flush if reading went ok */ |
@@ -706,6 +708,7 @@ int ata_write_sectors(IF_MV2(int drive,) | |||
706 | addr = start * SECTOR_SIZE; | 708 | addr = start * SECTOR_SIZE; |
707 | 709 | ||
708 | mutex_lock(&mmc_mutex); | 710 | mutex_lock(&mmc_mutex); |
711 | led(true); | ||
709 | #ifdef HAVE_MULTIVOLUME | 712 | #ifdef HAVE_MULTIVOLUME |
710 | card = &card_info[drive]; | 713 | card = &card_info[drive]; |
711 | ret = select_card(drive); | 714 | ret = select_card(drive); |
@@ -750,6 +753,7 @@ int ata_write_sectors(IF_MV2(int drive,) | |||
750 | } | 753 | } |
751 | 754 | ||
752 | deselect_card(); | 755 | deselect_card(); |
756 | led(false); | ||
753 | mutex_unlock(&mmc_mutex); | 757 | mutex_unlock(&mmc_mutex); |
754 | 758 | ||
755 | /* only flush if writing went ok */ | 759 | /* only flush if writing went ok */ |