From owner-freebsd-multimedia@FreeBSD.ORG Thu Feb 28 07:20:14 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 680611065675 for ; Thu, 28 Feb 2008 07:20:14 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from mail.irbisnet.ru (mail.irbisnet.ru [IPv6:2001:470:1f09:aa:203:baff:fe18:f4c1]) by mx1.freebsd.org (Postfix) with ESMTP id ACCD38FC19 for ; Thu, 28 Feb 2008 07:20:13 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from mail.irbisnet.ru (yuri@mail.irbisnet.ru [IPv6:::1]) by mail.irbisnet.ru (8.14.2/8.14.2) with ESMTP id m1S7KBTm098906; Thu, 28 Feb 2008 10:20:11 +0300 (MSK) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by mail.irbisnet.ru (8.14.2/8.14.2/Submit) id m1S7KBiq098905; Thu, 28 Feb 2008 10:20:11 +0300 (MSK) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: mail.irbisnet.ru: yuri set sender to yuri.pankov@gmail.com using -f Date: Thu, 28 Feb 2008 10:20:11 +0300 From: Yuri Pankov To: Danny Pansters Message-ID: <20080228072011.GC92245@mail.irbisnet.ru> References: <200802270019.40771.danny@ricin.com> <20080227175555.GA92245@mail.irbisnet.ru> <200802280042.39186.danny@ricin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200802280042.39186.danny@ricin.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-multimedia@freebsd.org Subject: Re: kbtv2 sound saa.c X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2008 07:20:14 -0000 On Thu, Feb 28, 2008 at 12:42:38AM +0100, Danny Pansters wrote: > On Wednesday 27 February 2008 18:55:56 you wrote: > > > > thanks for the hints, but I must admit that I'm totally lost here - > > where can I tweak sound carrier frequency? > > There doesn't seem to be a canned-in way (only for setting NTSC vs PAL), but > Sidney's information gave me a second datapoint (for the actual value to be > set to "audio_options.sao_siffreq1"). It stands to logic that it's not only a > linear but also a proportional equation to convert the actual freq to the > required registry value. In terms of numbers I made it work, and there seems > to be a certain logic in terms of (audio) output frequency. > > I think the attached patch will work for you, as well as for PAL I (UK) and > hopefully also for NTSC. The sif is switched when broadcast standard gets > changed. > > Here (B/G) it used to be that with other PAL variants the sound would remain. > With the current working version of the saa backend it gets noise (most cases > mixed with the actual original sound) if I switch away from B/G to any other > PAL type as well as if I switch to NTSC, then it gets a heavy pulse-like > noise. Once I switch back to B/G sound is ok again. > > Please try attached patches (1.93 working version, not beta3 yet) to saa.c and > saa.h. Doesn't help. I'll try to look at the code. There's another problem - I get panics with saa driver: panic: Trying sleep, but thread marked as sleeping prohibited cpuid = 0 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a panic() at panic+0x17d sleepq_add() at sleepq_add+0x2e1 _sx_slock_hard() at _sx_slock_hard+0x15d _sx_slock() at _sx_slock+0xc1 pfind() at pfind+0x24 saa_intr() at saa_intr+0x313 ithread_loop() at ithread_loop+0xda fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffffffac3c0d30, rbp = 0 --- Uptime: 26m18s Physical memory: 2034 MB Dumping 190 MB: 175 159 143 127 111 95 79 63 47 31 15 I can provide more details if needed. Yuri