Lines Matching full:tracks
115 -- Check capability mask from low level driver when counting tracks as
991 static void cdrom_count_tracks(struct cdrom_device_info *cdi, tracktype *tracks) in cdrom_count_tracks() argument
996 tracks->data = 0; in cdrom_count_tracks()
997 tracks->audio = 0; in cdrom_count_tracks()
998 tracks->cdi = 0; in cdrom_count_tracks()
999 tracks->xa = 0; in cdrom_count_tracks()
1000 tracks->error = 0; in cdrom_count_tracks()
1004 tracks->error = CDS_NO_INFO; in cdrom_count_tracks()
1008 /* Grab the TOC header so we can see how many tracks there are */ in cdrom_count_tracks()
1012 tracks->error = CDS_NO_DISC; in cdrom_count_tracks()
1014 tracks->error = CDS_NO_INFO; in cdrom_count_tracks()
1017 /* check what type of tracks are on this disc */ in cdrom_count_tracks()
1022 tracks->error = CDS_NO_INFO; in cdrom_count_tracks()
1027 tracks->cdi++; in cdrom_count_tracks()
1029 tracks->xa++; in cdrom_count_tracks()
1031 tracks->data++; in cdrom_count_tracks()
1033 tracks->audio++; in cdrom_count_tracks()
1038 cd_dbg(CD_COUNT_TRACKS, "disc has %d tracks: %d=audio %d=data %d=Cd-I %d=XA\n", in cdrom_count_tracks()
1039 header.cdth_trk1, tracks->audio, tracks->data, in cdrom_count_tracks()
1040 tracks->cdi, tracks->xa); in cdrom_count_tracks()
1048 tracktype tracks; in open_for_data() local
1094 cdrom_count_tracks(cdi, &tracks); in open_for_data()
1095 if (tracks.error == CDS_NO_DISC) { in open_for_data()
1102 if (tracks.data==0) { in open_for_data()
1211 tracktype tracks; in check_for_audio_disc() local
1251 cdrom_count_tracks(cdi, &tracks); in check_for_audio_disc()
1252 if (tracks.error) in check_for_audio_disc()
1253 return(tracks.error); in check_for_audio_disc()
1255 if (tracks.audio==0) in check_for_audio_disc()
2560 * is often the case, it is also very common for CDs to have some tracks
2561 * with data, and some tracks with audio. Just because I feel like it,
2563 * data tracks on it, it will be returned as a data CD. If it has any XA
2564 * tracks, I will return it as that. Now I could simplify this interface
2575 tracktype tracks; in cdrom_ioctl_disc_status() local
2579 cdrom_count_tracks(cdi, &tracks); in cdrom_ioctl_disc_status()
2580 if (tracks.error) in cdrom_ioctl_disc_status()
2581 return tracks.error; in cdrom_ioctl_disc_status()
2584 if (tracks.audio > 0) { in cdrom_ioctl_disc_status()
2585 if (!tracks.data && !tracks.cdi && !tracks.xa) in cdrom_ioctl_disc_status()
2591 if (tracks.cdi > 0) in cdrom_ioctl_disc_status()
2593 if (tracks.xa > 0) in cdrom_ioctl_disc_status()
2595 if (tracks.data > 0) in cdrom_ioctl_disc_status()
2599 cd_dbg(CD_WARNING, "This disc doesn't have any tracks I recognize!\n"); in cdrom_ioctl_disc_status()