1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00
This commit is contained in:
none 2021-04-07 19:29:53 +02:00
parent 03d84ba75a
commit 50e354c49a

View File

@ -120,6 +120,7 @@ static int ddb_mci_cmd_raw_unlocked(struct ddb_link *link,
0xffffff, INTERRUPT_ACK); 0xffffff, INTERRUPT_ACK);
} }
} }
//print_hex_dump(KERN_INFO, "MCI", DUMP_PREFIX_OFFSET, 16, 1, cmd, cmd_len, false);
if (res && res_len) if (res && res_len)
for (i = 0; i < res_len; i++) for (i = 0; i < res_len; i++)
res[i] = ddblreadl(link, result + i * 4); res[i] = ddblreadl(link, result + i * 4);
@ -178,17 +179,10 @@ int mci_init(struct ddb_link *link)
int mci_cmd_val(struct ddb_link *link, uint32_t cmd, uint32_t val) int mci_cmd_val(struct ddb_link *link, uint32_t cmd, uint32_t val)
{ {
struct mci_result result; struct mci_result result;
#if 0
struct mci_command command = {
.command_word = cmd,
.params = { val },
};
#else
struct mci_command command; struct mci_command command;
command.command_word = cmd; command.command_word = cmd;
command.params[0] = val; command.params[0] = val;
#endif
return ddb_mci_cmd_link(link, &command, &result); return ddb_mci_cmd_link(link, &command, &result);
} }