mcd.c (6604) | mcd.c (6612) |
---|---|
1/* 2 * Copyright 1993 by Holger Veit (data part) 3 * Copyright 1993 by Brian Moore (audio part) 4 * Changes Copyright 1993 by Gary Clark II 5 * Changes Copyright (C) 1994-1995 by Andrey A. Chernov, Moscow, Russia 6 * 7 * Rewrote probe routine to work on newer Mitsumi drives. 8 * Additional changes (C) 1994 by Jordan K. Hubbard --- 26 unchanged lines hidden (view full) --- 35 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 36 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 37 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 38 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 39 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 40 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 41 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 42 * | 1/* 2 * Copyright 1993 by Holger Veit (data part) 3 * Copyright 1993 by Brian Moore (audio part) 4 * Changes Copyright 1993 by Gary Clark II 5 * Changes Copyright (C) 1994-1995 by Andrey A. Chernov, Moscow, Russia 6 * 7 * Rewrote probe routine to work on newer Mitsumi drives. 8 * Additional changes (C) 1994 by Jordan K. Hubbard --- 26 unchanged lines hidden (view full) --- 35 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 36 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 37 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 38 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 39 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 40 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 41 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 42 * |
43 * $Id: mcd.c,v 1.35 1994/12/24 13:24:00 ache Exp $ | 43 * $Id: mcd.c,v 1.37 1995/02/22 01:11:36 ache Exp $ |
44 */ 45static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; 46 47#include "mcd.h" 48#if NMCD > 0 49#include <sys/types.h> 50#include <sys/param.h> 51#include <sys/systm.h> --- 1273 unchanged lines hidden (view full) --- 1325 return EIO; 1326 1327 if (cd->debug) 1328 printf("mcd%d: get_toc reading qchannel info\n",unit); 1329 1330 for(trk=th.starting_track; trk<=th.ending_track; trk++) 1331 cd->toc[trk].idx_no = 0; 1332 trk = th.ending_track - th.starting_track + 1; | 44 */ 45static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; 46 47#include "mcd.h" 48#if NMCD > 0 49#include <sys/types.h> 50#include <sys/param.h> 51#include <sys/systm.h> --- 1273 unchanged lines hidden (view full) --- 1325 return EIO; 1326 1327 if (cd->debug) 1328 printf("mcd%d: get_toc reading qchannel info\n",unit); 1329 1330 for(trk=th.starting_track; trk<=th.ending_track; trk++) 1331 cd->toc[trk].idx_no = 0; 1332 trk = th.ending_track - th.starting_track + 1; |
1333 for(retry=0; retry<300 && trk>0; retry++) | 1333 for(retry=0; retry<600 && trk>0; retry++) |
1334 { 1335 if (mcd_getqchan(unit, &q) < 0) break; 1336 idx = bcd2bin(q.idx_no); 1337 if (idx>=th.starting_track && idx<=th.ending_track && q.trk_no==0) { 1338 if (cd->toc[idx].idx_no == 0) { 1339 cd->toc[idx] = q; 1340 trk--; 1341 } --- 303 unchanged lines hidden --- | 1334 { 1335 if (mcd_getqchan(unit, &q) < 0) break; 1336 idx = bcd2bin(q.idx_no); 1337 if (idx>=th.starting_track && idx<=th.ending_track && q.trk_no==0) { 1338 if (cd->toc[idx].idx_no == 0) { 1339 cd->toc[idx] = q; 1340 trk--; 1341 } --- 303 unchanged lines hidden --- |