CDC_PLAY_AUDIO check in cdrom_count_tracks() and other oddities

From: Tejun Heo
Date: Wed Jun 11 2008 - 23:52:15 EST


Hello, Jens.

I'm tracking down a bug where HAL doesn't mount media automatically.
It turned out that CDROM_DISC_STATUS wasn't reporting correct disc
type which was caused by CDC_PLAY_AUDIO check failure at the top of
cdrom_count_tracks().

I've went through MMC-3 but couldn't find anything which associates
play audio capability with READ_TOC. READ_TOC was mandatory command,
so according to MMC-3, there's no reason to avoid issuing READ_TOC on
!CDC_PLAY_AUDIO. Is there something I don't know?

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/