patch-2.4.0-test12 linux/drivers/ide/ide-cd.c
Next file: linux/drivers/ide/ide.c
Previous file: linux/drivers/ide/gayle.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Wed Nov 29 11:26:39 2000
- Orig file:
v2.4.0-test11/linux/drivers/ide/ide-cd.c
- Orig date:
Tue Sep 5 13:46:15 2000
diff -u --recursive --new-file v2.4.0-test11/linux/drivers/ide/ide-cd.c linux/drivers/ide/ide-cd.c
@@ -1841,9 +1841,9 @@
memset(&pc, 0, sizeof (pc));
pc.sense = &sense;
- pc.c[0] = GPCMD_PLAY_AUDIO_10;
- put_unaligned(cpu_to_be32(lba_start), (unsigned int *) &pc.c[2]);
- put_unaligned(cpu_to_be16(lba_end - lba_start), (unsigned int *) &pc.c[7]);
+ pc.c[0] = GPCMD_PLAY_AUDIO_MSF;
+ lba_to_msf(lba_start, &pc.c[3], &pc.c[4], &pc.c[5]);
+ lba_to_msf(lba_end-1, &pc.c[6], &pc.c[7], &pc.c[8]);
return cdrom_queue_packet_command(drive, &pc);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)