mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
sd-as3525v2.c: Only manipulate MCI_CLKENA for drive being used.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25265 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
eb1992b4bd
commit
f1d9491e9c
1 changed files with 3 additions and 4 deletions
|
|
@ -390,8 +390,7 @@ static bool send_cmd(const int drive, const int cmd, const int arg, const int fl
|
|||
MCI_COMMAND |= CMD_RW_BIT | CMD_CHECK_CRC_BIT;
|
||||
}
|
||||
|
||||
int clkena = MCI_CLKENA;
|
||||
MCI_CLKENA = 0;
|
||||
MCI_CLKENA &= (1 << drive);
|
||||
|
||||
MCI_ARGUMENT = arg;
|
||||
MCI_COMMAND |= CMD_DONE_BIT;
|
||||
|
|
@ -401,12 +400,12 @@ static bool send_cmd(const int drive, const int cmd, const int arg, const int fl
|
|||
{
|
||||
if(--max == 0) /* timeout */
|
||||
{
|
||||
MCI_CLKENA = clkena;
|
||||
MCI_CLKENA |= (1 << drive);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
MCI_CLKENA = clkena;
|
||||
MCI_CLKENA |= (1 << drive);
|
||||
|
||||
if(flags & MCI_RESP)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue