From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,feba389f77fd2e24 X-Google-Attributes: gid111c93,public From: donaldlf@cs.rose-hulman.edu Subject: Re: Getting a Soundblaster PCI128 to work on a Ruffian machine Date: 1999/05/12 Message-ID: <7hc6cq$8nv$1@nnrp1.deja.com>#1/1 X-Deja-AN: 477021856 References: <87zp3bywym.fsf@leopard.consela.com> <37392097.BE805CEC@systor.com> X-Http-Proxy: 1.0 x26.deja.com:80 (Squid/1.1.22) for client 148.193.44.20 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Wed May 12 15:23:14 1999 GMT Newsgroups: comp.os.linux.alpha X-Http-User-Agent: Mozilla/4.5 [en] (X11; I; Linux 2.2.5 i686) > Try the alsa driver (http://www.alsa-project.org/). I get my PCI64 > work with this driver on my Alpha-Box. > You additionally need a patch for mpg123! > Just have a look at the alsa page .... Umm no patch need for mpg123 there is a patch for the current development relase of ALSA though. --- kernel/seq/seq_timer.c Mon Jan 4 14:38:53 1999 +++ sr/kernel/seq/seq_timer.c Fri Mar 5 13:38:26 1999 @@ -116,20 +116,18 @@ tmr = q->timer; - if (tmr != NULL) { - if (tmr->running) { - double delta_time; + if (tmr != NULL && tmr->running) { + long delta_time; - /* update timer */ - snd_seq_inc_real_time(&tmr->cur_time, &period); - timers_running = 1; + /* update timer */ + snd_seq_inc_real_time(&tmr->cur_time, &period); + timers_running = 1; - /* calculate current tick */ - /* FIXME: use of floating point stuff, illegal i n kernel (??) */ - if (tmr->tempo > 0) { - delta_time = tmr->cur_time.tv_sec - tmr- >tempo_time.tv_sec + (1.0E-9 * (double) (tmr->cur_time.tv_nsec - tmr->tempo_time .tv_nsec)); - tmr->cur_tick = tmr->tempo_tick + (tmr-> ppq * delta_time * 1.0E6 / tmr->tempo); - } + /* calculate current tick */ + if (tmr->tempo > 0) { + delta_time = (tmr->cur_time.tv_sec - +tmr->tempo_time.tv_sec) * 1000; + delta_time += (tmr->cur_time.tv_nsec - +tmr->tempo_time.tv_nsec)/1000000; + tmr->cur_tick = tmr->tempo_tick + (tmr->ppq * +delta_time * 1000 / tmr->tempo); } } } --== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.---