Alexandre Julliard pushed to branch master at wine / wine
Commits: 43654e09 by Alex Henrie at 2025-07-10T08:57:53+02:00 ntdll: Detect the optical disc type on Linux using a SCSI command.
SCSI command 0x46 (GPCMD_GET_CONFIGURATION) returns in the seventh and eighth bytes the "profile" that the disc drive is currently using, which corresponds to the physical type of the disc in the drive. Profile numbers 16 and up are used for DVDs and blu-rays, and Windows does not distinguish between the two.
The GET CONFIGURATION request format, response format, and profile numbers are defined on pages 1, 2, and 7 of https://www.t10.org/ftp/t10/document.97/97-263r0.pdf and pages 66-71 of https://www.t10.org/ftp/t10/document.05/05-206r0.pdf.
More specific media information is still not implemented.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57790
- - - - -
1 changed file:
- dlls/ntdll/unix/cdrom.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/43654e091ced80aaf6e3656364495ad...