diff options
author | delphij <delphij@FreeBSD.org> | 2005-07-19 05:18:23 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2005-07-19 05:18:23 +0000 |
commit | a7fbd037f43b29ea3baf2578ab79f59151b70a6e (patch) | |
tree | 8aa068a3ad2885db21ead8a053c889dfbee210ac | |
parent | 09126fa3cdfca9e7e0ae632ee8ab2671f24132cf (diff) | |
download | FreeBSD-src-a7fbd037f43b29ea3baf2578ab79f59151b70a6e.zip FreeBSD-src-a7fbd037f43b29ea3baf2578ab79f59151b70a6e.tar.gz |
PLAY_MSF, PLAY_TRACK, PLAY_TRACK_REL, PAUSE, PLAY_12 commands to pass
through umass(4), in order to make cdcontrol(1) to issue commands to
a USB CD driver.
The command IDs were obtained from the CAM subsystem. This was tested
on half dozen of USB CD drivers from different vendors.
Suggested by: "intron" <intron at intron dot ac>
PR: usb/83439
Reviewed by: sanpei
MFC After: 1 week
-rw-r--r-- | sys/dev/usb/umass.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c index c22a946..71b9f64 100644 --- a/sys/dev/usb/umass.c +++ b/sys/dev/usb/umass.c @@ -3036,6 +3036,10 @@ umass_atapi_transform(struct umass_softc *sc, unsigned char *cmd, int cmdlen, case 0x42: /* READ_SUBCHANNEL */ case 0x43: /* READ_TOC */ case 0x44: /* READ_HEADER */ + case 0x47: /* PLAY_MSF (Play Minute/Second/Frame) */ + case 0x48: /* PLAY_TRACK */ + case 0x49: /* PLAY_TRACK_REL */ + case 0x4b: /* PAUSE */ case 0x51: /* READ_DISK_INFO */ case 0x52: /* READ_TRACK_INFO */ case 0x54: /* SEND_OPC */ @@ -3044,6 +3048,7 @@ umass_atapi_transform(struct umass_softc *sc, unsigned char *cmd, int cmdlen, case 0x5c: /* READ_BUFFER_CAP */ case 0x5d: /* SEND_CUE_SHEET */ case 0xa1: /* BLANK */ + case 0xa5: /* PLAY_12 */ case 0xa6: /* EXCHANGE_MEDIUM */ case 0xad: /* READ_DVD_STRUCTURE */ case 0xbb: /* SET_CD_SPEED */ |