MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / blkdev_execute_audio_command

Function blkdev_execute_audio_command

src/blkdev.cpp:2284–2293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2282}
2283
2284int blkdev_execute_audio_command(int unitnum, uae_u8 *cdb, int cdblen, uae_u8 *inbuf, int inlen, uae_u8 *sense, int *senselen)
2285{
2286 int len = inlen;
2287 uae_u8 reply[256];
2288 int replylen = sizeof(reply);
2289 int status = scsi_cd_emulate(unitnum, cdb, cdblen, inbuf, &len, reply, &replylen, sense, senselen, true);
2290 if (status)
2291 return -1;
2292 return len;
2293}
2294
2295static int execscsicmd_direct (int unitnum, int type, struct amigascsi *as)
2296{

Callers

nothing calls this directly

Calls 1

scsi_cd_emulateFunction · 0.85

Tested by

no test coverage detected