Am 13.10.2011 13:03, schrieb Paolo Bonzini: > The page is not anymore in MMC, but at least keep the values sane. > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > hw/ide/atapi.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c > index 347c38d..10f161f 100644 > --- a/hw/ide/atapi.c > +++ b/hw/ide/atapi.c > @@ -731,6 +731,8 @@ static void cmd_mode_sense(IDEState *s, uint8_t *buf) > buf[7] = 0; > > /* Fill with CDROM audio volume */ > + buf[8] = 0x0e;
0x0e would be more readable if it was written as MODE_PAGE_AUDIO_CTL. > + buf[9] = 0x0e; And this is really the length. But I'm not sure if writing it as 24 - 10 would help a lot. > buf[17] = 0; > buf[19] = 0; > buf[21] = 0; Of course the same is true for the other pages, so it could be done for all of them on top. Or maybe you actually have included it later in the series? Kevin