Lines Matching full:tracks
106 -- Check capability mask from low level driver when counting tracks as
983 static void cdrom_count_tracks(struct cdrom_device_info *cdi, tracktype *tracks) in cdrom_count_tracks() argument
988 tracks->data = 0; in cdrom_count_tracks()
989 tracks->audio = 0; in cdrom_count_tracks()
990 tracks->cdi = 0; in cdrom_count_tracks()
991 tracks->xa = 0; in cdrom_count_tracks()
992 tracks->error = 0; in cdrom_count_tracks()
996 tracks->error = CDS_NO_INFO; in cdrom_count_tracks()
1000 /* Grab the TOC header so we can see how many tracks there are */ in cdrom_count_tracks()
1004 tracks->error = CDS_NO_DISC; in cdrom_count_tracks()
1006 tracks->error = CDS_NO_INFO; in cdrom_count_tracks()
1009 /* check what type of tracks are on this disc */ in cdrom_count_tracks()
1014 tracks->error = CDS_NO_INFO; in cdrom_count_tracks()
1019 tracks->cdi++; in cdrom_count_tracks()
1021 tracks->xa++; in cdrom_count_tracks()
1023 tracks->data++; in cdrom_count_tracks()
1025 tracks->audio++; in cdrom_count_tracks()
1030 cd_dbg(CD_COUNT_TRACKS, "disc has %d tracks: %d=audio %d=data %d=Cd-I %d=XA\n", in cdrom_count_tracks()
1031 header.cdth_trk1, tracks->audio, tracks->data, in cdrom_count_tracks()
1032 tracks->cdi, tracks->xa); in cdrom_count_tracks()
1040 tracktype tracks; in open_for_data() local
1086 cdrom_count_tracks(cdi, &tracks); in open_for_data()
1087 if (tracks.error == CDS_NO_DISC) { in open_for_data()
1094 if (tracks.data==0) { in open_for_data()
1204 tracktype tracks; in check_for_audio_disc() local
1244 cdrom_count_tracks(cdi, &tracks); in check_for_audio_disc()
1245 if (tracks.error) in check_for_audio_disc()
1246 return(tracks.error); in check_for_audio_disc()
1248 if (tracks.audio==0) in check_for_audio_disc()
2530 * is often the case, it is also very common for CDs to have some tracks
2531 * with data, and some tracks with audio. Just because I feel like it,
2533 * data tracks on it, it will be returned as a data CD. If it has any XA
2534 * tracks, I will return it as that. Now I could simplify this interface
2545 tracktype tracks; in cdrom_ioctl_disc_status() local
2549 cdrom_count_tracks(cdi, &tracks); in cdrom_ioctl_disc_status()
2550 if (tracks.error) in cdrom_ioctl_disc_status()
2551 return tracks.error; in cdrom_ioctl_disc_status()
2554 if (tracks.audio > 0) { in cdrom_ioctl_disc_status()
2555 if (!tracks.data && !tracks.cdi && !tracks.xa) in cdrom_ioctl_disc_status()
2561 if (tracks.cdi > 0) in cdrom_ioctl_disc_status()
2563 if (tracks.xa > 0) in cdrom_ioctl_disc_status()
2565 if (tracks.data > 0) in cdrom_ioctl_disc_status()
2569 cd_dbg(CD_WARNING, "This disc doesn't have any tracks I recognize!\n"); in cdrom_ioctl_disc_status()