]> xenbits.xensource.com Git - qemu-xen.git/commit
atapi: cleanup/fix mode sense results
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 17 Oct 2011 14:34:59 +0000 (16:34 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Oct 2011 17:25:50 +0000 (19:25 +0200)
commitaf0e1ea2d32eafd837c51326368ce2d8f36e6871
tree7d387e93b816b0285da66e042a93934e8eb23933
parentf0f992e6509354e0e9d3bd46681bacb1ff53f62b
atapi: cleanup/fix mode sense results

The first two bytes (after the 8-byte ATAPI header) are the mode page
number and the number of bytes after the length field itself.  Make
this clear in the code.

The AUDIO_CTL page was filled with wrong values.  It is not anymore in
MMC, but at least keep the values sane.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/atapi.c