VirtualBox

Changeset 42958 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Aug 23, 2012 6:17:28 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80283
Message:

ATAPI/Passthrough: Don't try to detect the medium type if a READ TOC/PMA/ATIP command with the CD-Text format is sent and reduce the number of required bytes of the reply to 4. This is enough to detect the data type on a medium. Fixes audio CD passthrough with certain media players like vlc, kaffeine and amarok

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r42769 r42958  
    22942294                ataSCSIPadStr(s->CTX_SUFF(pbIOBuffer) + 32, "1.0", 4);
    22952295            }
    2296             else if (s->aATAPICmd[0] == SCSI_READ_TOC_PMA_ATIP)
     2296            else if (   s->aATAPICmd[0] == SCSI_READ_TOC_PMA_ATIP
     2297                     && (s->aATAPICmd[2] & 0xf) != 0x05)
    22972298            {
    22982299                /* Set the media type if we can detect it. */
     
    23002301
    23012302                /** @todo: Implemented only for formatted TOC now. */
    2302                 if (   (s->aATAPICmd[1] & 0xf) == 0
    2303                     && cbTransfer >= 6)
     2303                if (   (s->aATAPICmd[2] & 0xf) == 0
     2304                    && cbTransfer >= 4)
    23042305                {
    23052306                    uint32_t NewMediaType;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette