From owner-freebsd-multimedia@FreeBSD.ORG Sun Nov 6 12:49:02 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DF1D16A41F for ; Sun, 6 Nov 2005 12:49:02 +0000 (GMT) (envelope-from CQG00620@nifty.ne.jp) Received: from mail.asahi-net.or.jp (mail2.asahi-net.or.jp [202.224.39.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73D3143D45 for ; Sun, 6 Nov 2005 12:49:01 +0000 (GMT) (envelope-from CQG00620@nifty.ne.jp) Received: from asahi-net.jp (h204195.ppp.asahi-net.or.jp [61.114.204.195]) by mail.asahi-net.or.jp (Postfix) with ESMTP id 7D4EF1E5F4 for ; Sun, 6 Nov 2005 21:49:00 +0900 (JST) Date: Sun, 06 Nov 2005 21:49:11 +0900 From: Watanabe Kazuhiro To: freebsd-multimedia User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/20.7 (i386--freebsd) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Message-Id: <20051106124900.7D4EF1E5F4@mail.asahi-net.or.jp> Subject: [patch] als4000.c recording mixer problem 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: Sun, 06 Nov 2005 12:49:02 -0000 Hi, everyone. I have an AOpen AW200 sound card which uses the AvanceLogic ALS4000 soundchip. When I try to record from the card's line input with wavrec (a part of ports/audio/wavplay) on FreeBSD 5.4, only record the left channel. The right channel has no sound. But on FreeBSD-7-current (CVSup'ed Nov. 5), it can record both left and right channel. It looks like correct, however, it also selects an another input(s) to the recording source. To find out this problem, add a bit of modify to sys/dev/sound/pci/als4000.c and run mixer(1) command. @@ -616,7 +616,9 @@ alsmix_setrecsrc(struct snd_mixer *m, u_ if (src & SOUND_MASK_SYNTH) mask |= 0x60; +printf("l=%x\n", l|mask); als_mix_wr(sc, SB16_IMASK_L, l|mask); +printf("r=%x\n", r|mask); als_mix_wr(sc, SB16_IMASK_R, r|mask); return src; } * Environment $ uname -a FreeBSD scorpio.zodiac.org 7.0-CURRENT FreeBSD 7.0-CURRENT #3: Sat Nov 5 17:23:54 JST 2005 nabe@scorpio.zodiac.org:/FreeBSD/obj-current/FreeBSD/FreeBSD-current/src/sys/GENERIC i386 $ cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xe800 irq 9 kld snd_als4000 (1p/1r/0v channels duplex default) pcm1: at io 0x240 irq 5 drq 1:5 bufsz 4096d kld snd_sb16 (1p/1r/0v channels duplex) pcm2: at io 0x534 irq 10 drq 3:0 bufsz 4096 (1p/1r/0v channels duplex) * Test commands and summary of the results Command Actual recording source Left channel Right channel -------------------------------------------------------- mixer =rec mic mic mic&cd mixer =rec cd dummy&cd dummy&cd&line mixer =rec line dummy&line line&dummy&synth I've referred to the Avance Logic ALS4000 datasheet pp14 ("MX3D" and "MX3E"). The datasheet is available from: http://www.alsa-project.org/alsa/ftp/manuals/avance_logic/ALS4000a.PDF It's a fix patch. --- sys/dev/sound/pci/als4000.c.orig Thu Oct 6 05:05:52 2005 +++ sys/dev/sound/pci/als4000.c Sun Nov 6 20:20:56 2005 @@ -591,33 +591,23 @@ static int alsmix_setrecsrc(struct snd_mixer *m, u_int32_t src) { struct sc_info *sc = mix_getdevinfo(m); - u_int32_t i, l, r, mask; + u_int32_t i, l, r; for (i = l = r = 0; i < SOUND_MIXER_NRDEVICES; i++) { if (src & (1 << i)) { - l |= amt[i].iselect; - r |= amt[i].iselect << 1; + if (amt[i].iselect == 1) { /* microphone */ + l |= amt[i].iselect; + r |= amt[i].iselect; + } else { + l |= amt[i].iselect; + r |= amt[i].iselect >> 1; + } + } } - /* ALS mixer is really an SB16 mixer */ - - mask = 0; - - if (src & SOUND_MASK_MIC) - mask |= 0x01; - - if (src & SOUND_MASK_CD) - mask |= 0x06; - - if (src & SOUND_MASK_LINE) - mask |= 0x18; - - if (src & SOUND_MASK_SYNTH) - mask |= 0x60; - - als_mix_wr(sc, SB16_IMASK_L, l|mask); - als_mix_wr(sc, SB16_IMASK_R, r|mask); + als_mix_wr(sc, SB16_IMASK_L, l); + als_mix_wr(sc, SB16_IMASK_R, r); return src; } --- Watanabe Kazuhiro (CQG00620@nifty.ne.jp) From owner-freebsd-multimedia@FreeBSD.ORG Sun Nov 6 12:49:02 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1423116A420 for ; Sun, 6 Nov 2005 12:49:02 +0000 (GMT) (envelope-from CQG00620@nifty.ne.jp) Received: from mail.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 752F443D48 for ; Sun, 6 Nov 2005 12:49:01 +0000 (GMT) (envelope-from CQG00620@nifty.ne.jp) Received: from asahi-net.jp (h204195.ppp.asahi-net.or.jp [61.114.204.195]) by mail.asahi-net.or.jp (Postfix) with ESMTP id 0941D24D2E for ; Sun, 6 Nov 2005 21:49:00 +0900 (JST) Date: Sun, 06 Nov 2005 21:48:46 +0900 From: Watanabe Kazuhiro To: freebsd-multimedia User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/20.7 (i386--freebsd) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Message-Id: <20051106124900.0941D24D2E@mail.asahi-net.or.jp> Subject: [patch] calling mss_unlock() twice (causes kernel panic) 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: Sun, 06 Nov 2005 12:49:02 -0000 Hi, everyone. I have an AOpen AW37Pro soundcard which uses the Crystal CX4235 soundchip. When I try to record on FreeBSD-7-current/i386 (CVSup'ed Nov. 5) with wavrec (a part of ports/audio/wavplay), it causes kernel panic. panic: lock (sleep mutex) pcm2 not locked @ /FreeBSD/FreeBSD-current/src/sys/modules/sound/driver/mss/../../../../dev/sound/isa/mss.c:189 cpuid = 0 KDB: enter: panic [thread pid 30 tid 100035 ] Stopped at kdb_enter+0x2b: nop db> trace Tracing pid 30 tid 100035 td 0xc21b4480 kdb_enter(c086b04b) at kdb_enter+0x2b panic(c086f5f4,c0886f8e,c22d9860,c0acc397,bd) at panic+0x127 witness_unlock(c22ef4c0,8,c0acc397,bd) at witness_unlock+0xc0 _mtx_unlock_flags(c22ef4c0,0,c0acc397,bd,cbfefcd4) at _mtx_unlock_flags+0x5b mss_unlock(c231bd80,20983d18,c22ef440,c21cd880,0) at mss_unlock+0x17 mss_intr(c2318b00) at mss_intr+0x129 ithread_execute_handlers(c22e8000,c21cd880) at ithread_execute_handlers+0xe6 ithread_loop(c22d9940,cbfefd38,c22d9940,c062cefc,0) at ithread_loop+0x67 fork_exit(c062cefc,c22d9940,cbfefd38) at fork_exit+0xa4 fork_trampoline() at fork_trampoline+0x8 --- trap 0x1, eip = 0, esp = 0xcbfefd6c, ebp = 0 --- db> * Environment $ uname -a FreeBSD scorpio.zodiac.org 7.0-CURRENT FreeBSD 7.0-CURRENT #3: Sat Nov 5 17:23:54 JST 2005 nabe@scorpio.zodiac.org:/FreeBSD/obj-current/FreeBSD/FreeBSD-current/src/sys/GENERIC i386 $ cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xe800 irq 9 kld snd_als4000 (1p/1r/0v channels duplex default) pcm1: at io 0x240 irq 5 drq 1:5 bufsz 4096d kld snd_sb16 (1p/1r/0v channels duplex) pcm2: at io 0x534 irq 10 drq 3:0 bufsz 4096 (1p/1r/0v channels duplex) It's a fix patch. --- sys/dev/sound/isa/mss.c.orig Mon Sep 12 22:40:10 2005 +++ sys/dev/sound/isa/mss.c Sun Nov 6 20:20:56 2005 @@ -807,7 +807,7 @@ mss_intr(void *arg) served |= 0x20; mss_unlock(mss); chn_intr(mss->rch.channel); - mss_unlock(mss); + mss_lock(mss); } /* now ack the interrupt */ if (FULL_DUPLEX(mss)) ad_write(mss, 24, ~c); /* ack selectively */ --- Watanabe Kazuhiro (CQG00620@nifty.ne.jp) # PCTel HSP MicroModem driver for FreeBSD # http://homepage2.nifty.com/dumb_show/unix/ From owner-freebsd-multimedia@FreeBSD.ORG Sun Nov 6 13:20:02 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67D4716A426 for ; Sun, 6 Nov 2005 13:20:02 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id A789243D45 for ; Sun, 6 Nov 2005 13:20:01 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 8445D6CC25; Sun, 6 Nov 2005 21:22:07 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 60552-02; Sun, 6 Nov 2005 21:22:06 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 101496CC22; Sun, 6 Nov 2005 21:22:06 +0800 (MYT) Date: Sun, 6 Nov 2005 21:19:57 +0800 From: Ariff Abdullah To: Watanabe Kazuhiro Message-Id: <20051106211957.67ec42d5.skywizard@MyBSD.org.my> In-Reply-To: <20051106124900.0941D24D2E@mail.asahi-net.or.jp> References: <20051106124900.0941D24D2E@mail.asahi-net.or.jp> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: [patch] calling mss_unlock() twice (causes kernel panic) 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: Sun, 06 Nov 2005 13:20:02 -0000 On Sun, 06 Nov 2005 21:48:46 +0900 Watanabe Kazuhiro wrote: > Hi, everyone. > > I have an AOpen AW37Pro soundcard which uses the Crystal CX4235 > soundchip. > > When I try to record on FreeBSD-7-current/i386 (CVSup'ed Nov. 5) > with wavrec (a part of ports/audio/wavplay), it causes kernel panic. > > panic: lock (sleep mutex) pcm2 not locked @ > /FreeBSD/FreeBSD-current/src/sys/modules/sound/driver/mss/../../../ > ../dev/sound/isa/mss.c:189 cpuid = 0 > KDB: enter: panic > [thread pid 30 tid 100035 ] > Stopped at kdb_enter+0x2b: nop > db> trace > Tracing pid 30 tid 100035 td 0xc21b4480 > kdb_enter(c086b04b) at kdb_enter+0x2b > panic(c086f5f4,c0886f8e,c22d9860,c0acc397,bd) at panic+0x127 > witness_unlock(c22ef4c0,8,c0acc397,bd) at witness_unlock+0xc0 > _mtx_unlock_flags(c22ef4c0,0,c0acc397,bd,cbfefcd4) at > _mtx_unlock_flags+0x5b > mss_unlock(c231bd80,20983d18,c22ef440,c21cd880,0) at mss_unlock+0x17 > mss_intr(c2318b00) at mss_intr+0x129 > ithread_execute_handlers(c22e8000,c21cd880) at > ithread_execute_handlers+0xe6 > ithread_loop(c22d9940,cbfefd38,c22d9940,c062cefc,0) at > ithread_loop+0x67 fork_exit(c062cefc,c22d9940,cbfefd38) at > fork_exit+0xa4 fork_trampoline() at fork_trampoline+0x8 > --- trap 0x1, eip = 0, esp = 0xcbfefd6c, ebp = 0 --- > db> > Oops.. that was really a typo. Thanks, I'll fix it. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Sun Nov 6 13:21:37 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5931416A420 for ; Sun, 6 Nov 2005 13:21:37 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id B47A043D6B for ; Sun, 6 Nov 2005 13:21:31 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 4FAB16CC25; Sun, 6 Nov 2005 21:23:37 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 60311-07; Sun, 6 Nov 2005 21:23:36 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id DA79F6CC22; Sun, 6 Nov 2005 21:23:35 +0800 (MYT) Date: Sun, 6 Nov 2005 21:21:27 +0800 From: Ariff Abdullah To: Watanabe Kazuhiro Message-Id: <20051106212127.7ef640c3.skywizard@MyBSD.org.my> In-Reply-To: <20051106124900.7D4EF1E5F4@mail.asahi-net.or.jp> References: <20051106124900.7D4EF1E5F4@mail.asahi-net.or.jp> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: [patch] als4000.c recording mixer problem 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: Sun, 06 Nov 2005 13:21:37 -0000 On Sun, 06 Nov 2005 21:49:11 +0900 Watanabe Kazuhiro wrote: > Hi, everyone. > > I have an AOpen AW200 sound card which uses the AvanceLogic ALS4000 > soundchip. > > When I try to record from the card's line input with wavrec (a part > of ports/audio/wavplay) on FreeBSD 5.4, only record the left > channel. The right channel has no sound. > > > But on FreeBSD-7-current (CVSup'ed Nov. 5), it can record both left > and right channel. It looks like correct, however, it also selects > an another input(s) to the recording source. > > To find out this problem, add a bit of modify to > sys/dev/sound/pci/als4000.c and run mixer(1) command. > > @@ -616,7 +616,9 @@ alsmix_setrecsrc(struct snd_mixer *m, u_ > if (src & SOUND_MASK_SYNTH) > mask |= 0x60; > > +printf("l=%x\n", l|mask); > als_mix_wr(sc, SB16_IMASK_L, l|mask); > +printf("r=%x\n", r|mask); > als_mix_wr(sc, SB16_IMASK_R, r|mask); > return src; > } > > I'll give it a shot later this day. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Sun Nov 6 20:44:56 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03D0016A420 for ; Sun, 6 Nov 2005 20:44:56 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (c-67-168-241-176.hsd1.or.comcast.net [67.168.241.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9819443D45 for ; Sun, 6 Nov 2005 20:44:55 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.11.6/8.11.6) with UUCP id jA6Kiw716577; Sun, 6 Nov 2005 12:44:58 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id UAA09005; Sun, 6 Nov 2005 20:38:38 GMT Message-Id: <200511062038.UAA09005@sopwith.solgatos.com> To: Jacob Meuser , freebsd-multimedia@freebsd.org, arne_woerner@yahoo.com In-reply-to: Your message of "Sat, 05 Nov 2005 16:32:55 PST." <20051106003255.GB18874@puff.jakemsr.gom> Date: Sun, 06 Nov 2005 12:38:38 +0000 From: Dieter Cc: Subject: Re: trying to convert mpeg2 to dv (using transcode or mencoder or ???) 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: Sun, 06 Nov 2005 20:44:56 -0000 > > Is "-x mpeg2" the correct thing to use for an over-the-air transport stream? > > ah, this is the problem. transcode doesn't yet have support for > MPEGTS. > > try projectx, avidemux, ffmpeg, or replex. ffmpeg is working well enough to get me to the next problem. :-) Thanks for the suggestion, Jacob. Thanks also to Arne. From owner-freebsd-multimedia@FreeBSD.ORG Sun Nov 6 21:39:05 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78EFD16A41F; Sun, 6 Nov 2005 21:39:05 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (c-67-168-241-176.hsd1.or.comcast.net [67.168.241.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CBF543D48; Sun, 6 Nov 2005 21:39:05 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.11.6/8.11.6) with UUCP id jA6LdCo16752; Sun, 6 Nov 2005 13:39:12 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id VAA10645; Sun, 6 Nov 2005 21:39:06 GMT Message-Id: <200511062139.VAA10645@sopwith.solgatos.com> To: freebsd-multimedia@freebsd.org, freebsd-firewire@freebsd.org Date: Sun, 06 Nov 2005 13:39:06 +0000 From: Dieter Cc: Subject: Sending DV to camcorder over firewire gives dropouts X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@sopwith.solgatos.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2005 21:39:05 -0000 AMD64 running FreeBSD 6.0 beta3. Canon DV NTSC camcorder connected via firewire. Playing a tape and recording it on the computer via fwcontrol -R filename.dv appears to work fine. Sending the video back to the camcorder via fwcontrol -S filename.dv mostly works, but every 1.5-2 seconds or so I get a momentary dropout of both video and audio. I get the same dropouts with a dv file created by "fwcontrol -R" and with dv files created by ffmpeg. This is with the camcorder in "VCR" mode, and stopped (not recording). The computer is otherwise idle. The dropouts are very regular and repeatable, so it probably isn't due to an occasional transmission error, or the computer being busy for a moment. Wild Guess Theory #1: fwcontrol -S reports: 3948 frames, 131.50 secs, 30.02 frames/sec 784 frames, 25.92 secs, 30.24 frames/sec 3597 frames, 119.78 secs, 30.03 frames/sec Shouldn't this be 29.97 fps ? Wild Guess Theory #2: Perhaps the flow-control / buffer-management isn't quite right, and the camcorder runs out of data? From owner-freebsd-multimedia@FreeBSD.ORG Sun Nov 6 22:09:03 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B41316A41F for ; Sun, 6 Nov 2005 22:09:03 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: from web30304.mail.mud.yahoo.com (web30304.mail.mud.yahoo.com [68.142.200.97]) by mx1.FreeBSD.org (Postfix) with SMTP id 1194943D5E for ; Sun, 6 Nov 2005 22:09:00 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 52889 invoked by uid 60001); 6 Nov 2005 22:09:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=OJ2DFfizt6qH88pe3sxC55bkA6rewxSCC+BpHhdP/iiaX3ijDRsefoeJ5ASOyqNE4Dz/L2z56+HS0uvOMugM+xAo+RIt98gVHu75tEXGLGx38wyXKBmguKP5h9+wUk+gEvfLrMmgp4gk0htJEzZHxCq2WghLx3kVAhI7l1xEy9c= ; Message-ID: <20051106220859.52887.qmail@web30304.mail.mud.yahoo.com> Received: from [213.54.81.19] by web30304.mail.mud.yahoo.com via HTTP; Sun, 06 Nov 2005 14:08:59 PST Date: Sun, 6 Nov 2005 14:08:59 -0800 (PST) From: Arne "Wörner" To: freebsd@sopwith.solgatos.com, freebsd-multimedia@freebsd.org, freebsd-firewire@freebsd.org In-Reply-To: <200511062139.VAA10645@sopwith.solgatos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: Sending DV to camcorder over firewire gives dropouts 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: Sun, 06 Nov 2005 22:09:03 -0000 Hi! --- Dieter wrote: > AMD64 running FreeBSD 6.0 beta3. > Canon DV NTSC camcorder connected via firewire. > > Playing a tape and recording it on the computer via > > fwcontrol -R filename.dv > > appears to work fine. > Sweet... (I am just watching "Dude! Where is my car?) :-)) > Sending the video back to the camcorder via > > fwcontrol -S filename.dv > > mostly works, but every 1.5-2 seconds or so I get a momentary > dropout of both video and audio. I get the same dropouts > with a dv file created by "fwcontrol -R" and with dv files > created > by ffmpeg. > > This is with the camcorder in "VCR" mode, and stopped (not > recording). > The computer is otherwise idle. > > The dropouts are very regular and repeatable, so it probably > isn't due to > an occasional transmission error, or the computer being busy for > a moment. > > Wild Guess Theory #1: > > fwcontrol -S reports: > > 3948 frames, 131.50 secs, 30.02 frames/sec > 784 frames, 25.92 secs, 30.24 frames/sec > 3597 frames, 119.78 secs, 30.03 frames/sec > > Shouldn't this be 29.97 fps ? > I like that theory: I found in ffmpeg's man page the following option: -r fps set frame rate (default = 25) Dude! Did you use the "-r" option? Maybe you could do some experiments: 1. -r 40 2. -r 25 3. -r 20 4. -r 30 and watch for the length of drop outs and inter-mittance-time (is that the right word? I mean: The time between drop outs)... -Arne __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From owner-freebsd-multimedia@FreeBSD.ORG Mon Nov 7 01:45:47 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9314216A420 for ; Mon, 7 Nov 2005 01:45:47 +0000 (GMT) (envelope-from tech.sivam@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id B423D43D46 for ; Mon, 7 Nov 2005 01:45:45 +0000 (GMT) (envelope-from tech.sivam@gmail.com) Received: by wproxy.gmail.com with SMTP id 70so208687wra for ; Sun, 06 Nov 2005 17:45:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=eeI9XO1Dt8tMQG+Kq9pc7g6eWqF3a//XXNjxbN7ckU2FOEgCT8RGbtcDck3b9xcp5CzBBzTU5i+SuNB2oLwvJg7cQQJLatfHsflbWYSgNPfuQMRapDMYGA0HKkj7S3NN7NrYyURK3dsKGu4C9W8aE4YUp3kmgq9bDxL7hrMrrP4= Received: by 10.65.236.9 with SMTP id n9mr4740748qbr; Sun, 06 Nov 2005 17:45:44 -0800 (PST) Received: by 10.65.248.5 with HTTP; Sun, 6 Nov 2005 17:45:44 -0800 (PST) Message-ID: <660414a50511061745p5b99e818h4eaf0f7e62f5d895@mail.gmail.com> Date: Sun, 6 Nov 2005 19:45:44 -0600 From: siva m To: freebsd-multimedia@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: problem compiling tovid suite... 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: Mon, 07 Nov 2005 01:45:47 -0000 hi, I am trying to compile tovid package on my FreeBSD 6.0 box and here 's what I am getting eventhough I've installed all dependencies: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /usr/bin/install -c checking for mplayer... yes checking for mencoder... yes checking for yuvfps... yes checking for mpeg2enc... yes checking for mp2enc... yes checking for mplex... yes checking for convert... no checking for ffmpeg... yes checking for dvdauthor... yes checking for transcode... yes checking for vcdimager... yes checking for sox... yes checking for mkisofs... yes checking for lsdvd... yes configure: error: Missing some dependencies. Exiting. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Can anyone help me figure out what am I missing? thanks, s [image: Edit/Delete Message] From owner-freebsd-multimedia@FreeBSD.ORG Mon Nov 7 01:53:16 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8013016A41F for ; Mon, 7 Nov 2005 01:53:16 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09CBA43D45 for ; Mon, 7 Nov 2005 01:53:15 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by xproxy.gmail.com with SMTP id t14so304314wxc for ; Sun, 06 Nov 2005 17:53:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=slAMS7dRqnLPwGGIpZvpdD2aW8uqtnEHcgApK5gvJfzuYSMB7AgIwMxhZJpOK/nL1yeuiffsR4CMeYTpiqzbz4d4fkPWz6fkGSUsZs7MlJUTMj+b6B4hT7JUrMEEbKhDGvvLdS5fa3v4LSm7elR7Bx+B8J/+YLbJsnxyMoul7M8= Received: by 10.70.44.6 with SMTP id r6mr4422059wxr; Sun, 06 Nov 2005 17:53:15 -0800 (PST) Received: from ?192.168.1.10? ( [71.102.14.129]) by mx.gmail.com with ESMTP id h7sm2645667wxd.2005.11.06.17.53.11; Sun, 06 Nov 2005 17:53:14 -0800 (PST) From: "Michael C. Shultz" To: freebsd-multimedia@freebsd.org Date: Sun, 6 Nov 2005 17:44:35 -0800 User-Agent: KMail/1.8.3 References: <660414a50511061745p5b99e818h4eaf0f7e62f5d895@mail.gmail.com> In-Reply-To: <660414a50511061745p5b99e818h4eaf0f7e62f5d895@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511061744.36135.ringworm01@gmail.com> Cc: Subject: Re: problem compiling tovid suite... 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: Mon, 07 Nov 2005 01:53:16 -0000 On Sunday 06 November 2005 17:45, siva m wrote: > hi, > I am trying to compile tovid package on my FreeBSD 6.0 box and here 's what > I am getting eventhough I've installed all dependencies: > ============================================= > $ ./configure > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > checking for a BSD-compatible install... /usr/bin/install -c > checking for mplayer... yes > checking for mencoder... yes > checking for yuvfps... yes > checking for mpeg2enc... yes > checking for mp2enc... yes > checking for mplex... yes > checking for convert... no > checking for ffmpeg... yes > checking for dvdauthor... yes > checking for transcode... yes > checking for vcdimager... yes > checking for sox... yes > checking for mkisofs... yes > checking for lsdvd... yes > configure: error: Missing some dependencies. Exiting. > =============================================== > Can anyone help me figure out what am I missing? > > thanks, > s > [image: Edit/Delete > Message] > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to > "freebsd-multimedia-unsubscribe@freebsd.org" Your missing: > checking for convert... no here is a little trick: locate bin/convert result: /usr/local/bin/convert find /var/db/pkg/. | xargs grep bin/convert result: /var/db/pkg/./ImageMagick-6.2.2.1/+CONTENTS:bin/convert You need to install /ImageMagick-6.2.2.1 -Mike From owner-freebsd-multimedia@FreeBSD.ORG Mon Nov 7 02:08:40 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A02B16A41F for ; Mon, 7 Nov 2005 02:08:40 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id D966A43D48 for ; Mon, 7 Nov 2005 02:08:37 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by xproxy.gmail.com with SMTP id t14so306418wxc for ; Sun, 06 Nov 2005 18:08:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=uIy7lL1ublUAkDrXD0vfKyKHMNUbJNgM3gMPjwRQzu/ufyy/s1Uk+s4K/2vAdb9Cwy5y7coH/2eWmLoOmz29PZmPuL7cyMmtaBPQayBjqOz0tu26p4saABN5g+zaXlQbsv0Yai5dniXUQn0q/VCQND4C2vTSViAIYSLyfm0kfHs= Received: by 10.70.44.3 with SMTP id r3mr4466688wxr; Sun, 06 Nov 2005 18:08:37 -0800 (PST) Received: from ?192.168.1.10? ( [71.102.14.129]) by mx.gmail.com with ESMTP id h16sm679928wxd.2005.11.06.18.08.33; Sun, 06 Nov 2005 18:08:36 -0800 (PST) From: "Michael C. Shultz" To: siva m , freebsd-multimedia@freebsd.org Date: Sun, 6 Nov 2005 17:59:47 -0800 User-Agent: KMail/1.8.3 References: <660414a50511061745p5b99e818h4eaf0f7e62f5d895@mail.gmail.com> <200511061744.36135.ringworm01@gmail.com> <660414a50511061759v10a00ae7k53b06c3210287f57@mail.gmail.com> In-Reply-To: <660414a50511061759v10a00ae7k53b06c3210287f57@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511061759.48099.ringworm01@gmail.com> Cc: Subject: Re: problem compiling tovid suite... 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: Mon, 07 Nov 2005 02:08:40 -0000 On Sunday 06 November 2005 17:59, siva m wrote: > > find /var/db/pkg/. | xargs grep bin/convert > > > > result: > > /var/db/pkg/./ImageMagick-6.2.2.1/+CONTENTS:bin/convert >ONTENTS:bin/convert> > > > > You need to install /ImageMagick-6.2.2.1 > > > > -Mike > > > > > > Thanks a lot Mike. I just installed ImageMagick through pkg_add and > > everything worked well. > > S Your welcome :) -Mike From owner-freebsd-multimedia@FreeBSD.ORG Mon Nov 7 03:09:32 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70FD916A41F; Mon, 7 Nov 2005 03:09:32 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (c-67-168-241-176.hsd1.or.comcast.net [67.168.241.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00D3543D46; Mon, 7 Nov 2005 03:09:31 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.11.6/8.11.6) with UUCP id jA739QK18086; Sun, 6 Nov 2005 19:09:26 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id DAA15739; Mon, 7 Nov 2005 03:09:23 GMT Message-Id: <200511070309.DAA15739@sopwith.solgatos.com> To: "Arne " W rner "" In-reply-to: Your message of "Sun, 06 Nov 2005 14:08:59 PST." <20051106220859.52887.qmail@web30304.mail.mud.yahoo.com> Date: Sun, 06 Nov 2005 19:09:23 +0000 From: Dieter Cc: freebsd-multimedia@freebsd.org, freebsd-firewire@freebsd.org Subject: Re: Sending DV to camcorder over firewire gives dropouts 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: Mon, 07 Nov 2005 03:09:32 -0000 > > Wild Guess Theory #1: > > > > fwcontrol -S reports: > > > > 3948 frames, 131.50 secs, 30.02 frames/sec > > 784 frames, 25.92 secs, 30.24 frames/sec > > 3597 frames, 119.78 secs, 30.03 frames/sec > > > > Shouldn't this be 29.97 fps ? > > > I like that theory: > > I found in ffmpeg's man page the following option: > -r fps > set frame rate (default = 25) > > Dude! Did you use the "-r" option? No, didn't need to, ffmpeg figured out to use 29.97 fps all by itself, for both input and output. Even if there is something wrong with the output of ffmpeg, it would not explain why I get the exact same problem with: [ push "play" button on camcorder ] fwcontrol -R filename.dv [ push "stop" button on camcorder ] fwcontrol -S filename.dv since ffmpeg is not involved in this case. It might be that the incorrect fps numbers reported are just an artifact of clock resolution and the relatively short times involved and packetization/buffering? From owner-freebsd-multimedia@FreeBSD.ORG Mon Nov 7 09:47:46 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8487716A41F for ; Mon, 7 Nov 2005 09:47:46 +0000 (GMT) (envelope-from jakemsr@jakemsr.com) Received: from mail231.csoft.net (resin.csoft.net [63.111.22.86]) by mx1.FreeBSD.org (Postfix) with SMTP id E483943D62 for ; Mon, 7 Nov 2005 09:47:45 +0000 (GMT) (envelope-from jakemsr@jakemsr.com) Received: (qmail 18394 invoked from network); 7 Nov 2005 09:47:40 -0000 Received: from unknown (HELO puff.jakemsr.gom) (63.111.27.87) by mail231.csoft.net with SMTP; 7 Nov 2005 09:47:40 -0000 Received: (from jakemsr@jakemsr.com) by puff.jakemsr.gom (mini_sendmail/1.3.5 16nov2003); Mon, 07 Nov 2005 01:47:40 PST (sender jakemsr@puff.jakemsr.gom) Date: Mon, 7 Nov 2005 01:47:40 -0800 From: Jacob Meuser To: freebsd-multimedia@freebsd.org Message-ID: <20051107094739.GC3893@puff.jakemsr.gom> Mail-Followup-To: freebsd-multimedia@freebsd.org References: <20051106220859.52887.qmail@web30304.mail.mud.yahoo.com> <200511070309.DAA15739@sopwith.solgatos.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200511070309.DAA15739@sopwith.solgatos.com> User-Agent: Mutt/1.4.2i Subject: Re: Sending DV to camcorder over firewire gives dropouts 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: Mon, 07 Nov 2005 09:47:46 -0000 On Sun, Nov 06, 2005 at 07:09:23PM +0000, Dieter wrote: > > > Wild Guess Theory #1: > > > > > > fwcontrol -S reports: > > > > > > 3948 frames, 131.50 secs, 30.02 frames/sec > > > 784 frames, 25.92 secs, 30.24 frames/sec > > > 3597 frames, 119.78 secs, 30.03 frames/sec > > > > > > Shouldn't this be 29.97 fps ? > > > > > I like that theory: > > > > I found in ffmpeg's man page the following option: > > -r fps > > set frame rate (default = 25) > > > > Dude! Did you use the "-r" option? > > No, didn't need to, ffmpeg figured out to use 29.97 fps > all by itself, for both input and output. yes, otherwise it would not be a valid DV file. > Even if there is something wrong with the output of ffmpeg, > it would not explain why I get the exact same problem with: > > [ push "play" button on camcorder ] > fwcontrol -R filename.dv > [ push "stop" button on camcorder ] > fwcontrol -S filename.dv > > since ffmpeg is not involved in this case. > > It might be that the incorrect fps numbers reported are just > an artifact of clock resolution and the relatively short times > involved and packetization/buffering? seems likely, since the reports with more frames are closer to the right rate. -- From owner-freebsd-multimedia@FreeBSD.ORG Mon Nov 7 11:02:10 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35FF316A41F for ; Mon, 7 Nov 2005 11:02:10 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4E6643D45 for ; Mon, 7 Nov 2005 11:02:09 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jA7B29cM049907 for ; Mon, 7 Nov 2005 11:02:09 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jA7B2847049901 for freebsd-multimedia@freebsd.org; Mon, 7 Nov 2005 11:02:08 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 7 Nov 2005 11:02:08 GMT Message-Id: <200511071102.jA7B2847049901@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-multimedia@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 07 Nov 2005 11:02:10 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2002/02/26] kern/35351 multimedia [sound] emu10k1: no posibility to record f [2002/07/02] kern/40122 multimedia [sound] Device pcm stopps booting Kernel f [2002/08/29] kern/42173 multimedia [sound] Sony VAIO FXA 53 (or FXA 679 in M f [2003/04/23] kern/51308 multimedia [sound] Creative SB32 doesn't work under f [2003/04/24] kern/51338 multimedia [sound] [hang] system hangs randomly beca f [2003/07/21] kern/54705 multimedia [sound] codec timeout during read of regi f [2003/10/02] kern/57487 multimedia [sound] [patch] Sound stops working on my f [2004/02/08] kern/62519 multimedia [sound] Intel ICH4 (82801DB) sound card d o [2004/02/22] kern/63204 multimedia [sound] /dev/mixer broken with ESS Maestr f [2004/10/08] kern/72439 multimedia [sound] Sound not functioning for VIA_823 f [2004/11/16] kern/73987 multimedia [sound] Nforce2 MB sound problem o [2004/12/31] kern/75687 multimedia [sound] [patch] No sound on PC which is i o [2005/04/14] kern/79905 multimedia [sound] sis7018 sound module problem o [2005/04/14] kern/79912 multimedia [sound] sound broken for 2 VIA chipsets: f [2005/04/17] kern/80041 multimedia [sound] snd_via8233 does not support VIA8 o [2005/05/17] kern/81146 multimedia [sound] Sound isn't working AT ALL for Si o [2005/06/08] kern/82043 multimedia [sound] snd_emu10k1 - mixer does not work o [2005/10/13] kern/87371 multimedia [sound] [panic] Force unload snd_es137x c 18 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/07/30] kern/20297 multimedia [sound] [patch] Joystick is not enabled w f [2001/02/26] kern/25386 multimedia [sound] Incorrect mixer registers (line & f [2001/04/09] kern/26454 multimedia [sound] mixer volume settings on Maestro- f [2001/07/18] kern/29067 multimedia [sound] Yamaha OPL3Sa2 pcm/pnp stops play f [2001/07/30] kern/29312 multimedia [sound] Using mixer on pcm misbehaves wit f [2001/10/21] kern/31398 multimedia [sound] newpcm does not play back the tai f [2001/10/27] kern/31521 multimedia [sound] pcm0 plays too fast on Intel 8280 o [2002/04/30] kern/37600 multimedia [sound] [partial patch] t4dwave drive doe f [2002/05/02] kern/37657 multimedia [sound] /dev/dsp and /dev/audio skip the o [2002/07/03] kern/40132 multimedia [sound] [patch] enabling the joystick int f [2002/07/23] kern/40927 multimedia [sound] Acer Labs M5451 dies with pcm:pla f [2002/08/17] kern/41743 multimedia [sound] No sound from SiS630s controller f [2002/09/08] kern/42564 multimedia [sound] record bug with emu10k1 driver f [2002/09/10] kern/42638 multimedia [sound] CS4326/4327 (MSS) buggy output pl f [2003/01/20] kern/47243 multimedia [sound] Onboard CMedia CMI8738 playback n f [2003/01/22] kern/47352 multimedia [sound] pcm/ac'97, dsp device busy o [2003/02/16] kern/48338 multimedia [sound] pcm audio driver hogs /dev/dsp?.? o [2003/04/18] kern/51145 multimedia [sound] Audio Slows during Heavy I/O o [2003/06/17] kern/53417 multimedia [sound] Bad Recordings on AC97 onboard au o [2003/07/03] kern/54049 multimedia [sound] Sound driver reports device busy o [2003/07/03] kern/54078 multimedia [sound] Sound Plays ~10% Slow [4.8] o [2003/12/26] kern/60599 multimedia [sound] [partial patch] No sound for ATI o [2003/12/29] kern/60677 multimedia [sound] [patch] No reaction of volume con o [2003/12/30] kern/60737 multimedia [sound] Sound card Turtle Beach Santa Cru o [2003/12/31] kern/60761 multimedia [sound] pcm performance on emu10k1 driver o [2004/02/15] kern/62862 multimedia [sound] [patch] fix pcm vchans related cr o [2004/03/10] kern/64040 multimedia [sound] crackling sound on 5.2.1-RELEASE o [2004/05/09] kern/66422 multimedia [sound] [patch] no sound on modern Sony V o [2004/05/14] kern/66642 multimedia [sound] pcm0: play: 0: play interrupt tim o [2004/06/19] kern/68122 multimedia [sound] Device busy (/dev/dsp)- insane, n o [2004/06/30] kern/68515 multimedia [sound] sound card noise (ES1938, 5.0) o [2004/07/04] kern/68665 multimedia [sound] pcm doesn't detect Realtek ac97 o a [2004/07/19] kern/69283 multimedia [sound] Via 8233 driver records at half s s [2004/08/23] kern/70852 multimedia [sound] via82xx PCM driver does not enabl o [2004/09/30] kern/72218 multimedia [sound] audio recording broken with emu10 o [2004/10/01] kern/72221 multimedia [sound] emu10k1 stereo channels are rever o [2004/10/19] kern/72887 multimedia [sound] emu10k1: sound lag o [2004/10/22] kern/72995 multimedia [sound] Intel ICH2 (82801BA) - sound near o [2004/10/25] kern/73098 multimedia [sound] Scan rate of sound card shifts wh o [2004/11/21] i386/74191 multimedia [sound] Notebook PC2001 Compliant AC97 au f [2004/12/09] kern/74893 multimedia [sound] [patch] Channels of USB audio can o [2004/12/20] kern/75316 multimedia [sound] [patch] Enable to select a record o [2005/01/06] kern/75894 multimedia [sound] AD1981 not probing (shuttle ST62K o [2005/01/08] kern/75969 multimedia [sound] [patch] Support for Sigmatel STAC o [2005/01/31] kern/76918 multimedia [sound] ATI AD1981 AC'97 Audio Controller o [2005/04/01] kern/79427 multimedia [sound] No sound on Compaq Armada 100S la o [2005/04/03] kern/79498 multimedia [sound] sndfile-play (and many other play o [2005/04/08] kern/79678 multimedia [sound] sound works except recording from o [2005/04/20] kern/80147 multimedia [snd_sb16] [patch] panic with the vibra16 o [2005/04/20] kern/80149 multimedia problems with an soundblaster-8 (original o [2005/04/20] kern/80151 multimedia [sound] [patch] Missing ESS ES1688 PCI-ID o [2005/04/20] kern/80152 multimedia [sound] [patch] SIMPLEX flag is not set p o [2005/04/22] kern/80234 multimedia [sound] [patch] add entry for Analog Devi o [2005/04/29] kern/80465 multimedia [sound] pcm0:record:0: record interrupt t o [2005/05/05] kern/80632 multimedia pcm driver missing support for CMI8738 au o [2005/05/09] kern/80824 multimedia [sound] kldunload can't unload sound.ko o [2005/05/14] kern/81013 multimedia [sound] [patch] Intel ICH3 sound chip rev o [2005/05/17] kern/81170 multimedia [sound] /dev/mixer misbehavior with enson o [2005/05/28] kern/81599 multimedia [sound] Via VT1612A Audio not working wel o [2005/07/29] kern/84311 multimedia [sound] 82801FB/FR/FW/FRW Intel High Defi o [2005/08/02] kern/84471 multimedia [sound] [patch] no sound ICH4 (Analog Dev o [2005/08/03] kern/84507 multimedia [sound] fm801: Not every card supports va o [2005/09/11] kern/85964 multimedia [sound] Can't play 24 bit audio (Audigy 2 o [2005/09/24] kern/86536 multimedia [sound] /dev/mixer has no devices (still) o [2005/09/25] kern/86557 multimedia [sound] Sound Card Volume isn't adjustabl o [2005/10/21] kern/87782 multimedia [sound] snd_t4dwave and pcm0:record:0: re 66 problems total. From owner-freebsd-multimedia@FreeBSD.ORG Mon Nov 7 17:29:40 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E91F316A420 for ; Mon, 7 Nov 2005 17:29:40 +0000 (GMT) (envelope-from julian@elischer.org) Received: from delight.idiom.com (outbound.idiom.com [216.240.47.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1948243D5F for ; Mon, 7 Nov 2005 17:29:38 +0000 (GMT) (envelope-from julian@elischer.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id D7F54225537; Mon, 7 Nov 2005 09:29:37 -0800 (PST) Received: from [192.168.2.6] (home.elischer.org [216.240.48.38]) by idiom.com (8.12.11/8.12.11) with ESMTP id jA7HTYYb072258; Mon, 7 Nov 2005 09:29:35 -0800 (PST) (envelope-from julian@elischer.org) Message-ID: <436F8EFE.9090704@elischer.org> Date: Mon, 07 Nov 2005 09:29:34 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.11) Gecko/20050727 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ariff Abdullah References: <20051027133448.vptim01kwoco8wcw@netchild.homeip.net> <20051028.224049.343190967.kazuhito@ph.noda.tus.ac.jp> <20051029094831.1c6c785d.skywizard@MyBSD.org.my> <20051102.231412.343190544.kazuhito@ph.noda.tus.ac.jp> <43691146.7030404@elischer.org> <20051103034216.379caa05.skywizard@MyBSD.org.my> In-Reply-To: <20051103034216.379caa05.skywizard@MyBSD.org.my> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org, Alexander@Leidinger.net Subject: Re: uaudio and Digigram UAX220 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: Mon, 07 Nov 2005 17:29:41 -0000 Ariff Abdullah wrote: >On Wed, 02 Nov 2005 11:19:34 -0800 >Julian Elischer wrote: > > >>Kazuhito HONDA wrote: >> >> >> >>>From: Ariff Abdullah >>>Subject: Re: uaudio and Digigram UAX220 >>>Date: Sat, 29 Oct 2005 09:48:31 +0800 >>> >>> >>> >>> >>> >>>>Could you please do the cleanup? :) The only thing is that Julian >>>>already said that those patch break his USB microphone, so this >>>> >>>> >>>must >undergo some serious regression test to be accepted. >>> >>> >>>> >>>> >>>> >>>> >>I'll try it on my microphone again tonight. >> >> >> > sorry didn't get to it this weekend but it is still on my list firtst I have to find the microphone and then apply the patch to 6.0-stable (which is what I have at home at the moment). Does it apply to 6? From owner-freebsd-multimedia@FreeBSD.ORG Mon Nov 7 20:04:37 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B81D16A41F for ; Mon, 7 Nov 2005 20:04:37 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from t-mta7.odn.ne.jp (mfep7.odn.ne.jp [143.90.131.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0ADA243D5D for ; Mon, 7 Nov 2005 20:04:33 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from localhost ([219.66.59.219]) by t-mta7.odn.ne.jp with ESMTP id <20051107200431771.BWBL.2824.t-mta7.odn.ne.jp@mta7.odn.ne.jp>; Tue, 8 Nov 2005 05:04:31 +0900 Date: Tue, 08 Nov 2005 05:04:31 +0900 (JST) Message-Id: <20051108.050431.343192595.kazuhito@ph.noda.tus.ac.jp> To: julian@elischer.org From: Kazuhito HONDA In-Reply-To: <436F8EFE.9090704@elischer.org> References: <43691146.7030404@elischer.org> <20051103034216.379caa05.skywizard@MyBSD.org.my> <436F8EFE.9090704@elischer.org> X-Mailer: Mew version 3.3 on XEmacs 21.4.17 (Jumbo Shrimp) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Tue_Nov__8_05:04:31_2005_613)--" Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org, Alexander@Leidinger.net, skywizard@MyBSD.org.my Subject: Re: uaudio and Digigram UAX220 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: Mon, 07 Nov 2005 20:04:37 -0000 ----Next_Part(Tue_Nov__8_05:04:31_2005_613)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sorry, I forgot to attach a patch for uaudio.h. I'll attach a new patch including changes of uaudio.h and fixes of some typos. From: Julian Elischer Subject: Re: uaudio and Digigram UAX220 Date: Mon, 07 Nov 2005 09:29:34 -0800 > Does it apply to 6? `patched_6_patch' was made on FreeBSD 6.0 which a sound patch was applied. (http://people.freebsd.org/~ariff/snd_RELENG_6_0_20051030_058.diff) I checked that this patch was available on patched FreeBSD 6-stable (http://people.freebsd.org/~ariff/snd_RELENG_6_20051030_058.diff). `normal_6_patch' was made from FreeBSD 6 without the sound patch. I don't test it, but I'm sure that it is available. sincerely yours, Kazuhito HONDA ----Next_Part(Tue_Nov__8_05:04:31_2005_613)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patched_6_patch" --- uaudio.c.old Wed Nov 2 15:31:54 2005 +++ uaudio.c Tue Nov 8 03:18:06 2005 @@ -239,6 +239,7 @@ struct uaudio_softc { #define HAS_MULAW 0x10 #define UA_NOFRAC 0x20 /* don't do sample rate adjustment */ #define HAS_24 0x40 +#define HAS_32 0x80 int sc_mode; /* play/record capability */ struct mixerctl *sc_ctls; /* mixer controls */ int sc_nctls; /* # of mixer controls */ @@ -2050,7 +2051,7 @@ uaudio_process_as(struct uaudio_softc *s format = UGETW(asid->wFormatTag); chan = asf1d->bNrChannels; prec = asf1d->bBitResolution; - if (prec != 8 && prec != 16 && prec != 24) { + if (prec != 8 && prec != 16 && prec != 24 && prec != 32) { printf("%s: ignored setting with precision %d\n", USBDEVNAME(sc->sc_dev), prec); return USBD_NORMAL_COMPLETION; @@ -2063,6 +2064,8 @@ uaudio_process_as(struct uaudio_softc *s sc->sc_altflags |= HAS_16; } else if (prec == 24) { sc->sc_altflags |= HAS_24; + } else if (prec == 32) { + sc->sc_altflags |= HAS_32; } enc = AUDIO_ENCODING_SLINEAR_LE; format_str = "pcm"; @@ -3742,7 +3745,7 @@ uaudio_init_params(struct uaudio_softc * if ((sc->sc_playchan.pipe != NULL) || (sc->sc_recchan.pipe != NULL)) return (-1); - switch(ch->format & 0x0000FFFF) { + switch(ch->format & 0x000FFFFF) { case AFMT_U8: enc = AUDIO_ENCODING_ULINEAR_LE; ch->precision = 8; @@ -3775,6 +3778,38 @@ uaudio_init_params(struct uaudio_softc * enc = AUDIO_ENCODING_ULINEAR_BE; ch->precision = 16; break; + case AFMT_S24_LE: + enc = AUDIO_ENCODING_SLINEAR_LE; + ch->precision = 24; + break; + case AFMT_S24_BE: + enc = AUDIO_ENCODING_SLINEAR_BE; + ch->precision = 24; + break; + case AFMT_U24_LE: + enc = AUDIO_ENCODING_ULINEAR_LE; + ch->precision = 24; + break; + case AFMT_U24_BE: + enc = AUDIO_ENCODING_ULINEAR_BE; + ch->precision = 24; + break; + case AFMT_S32_LE: + enc = AUDIO_ENCODING_SLINEAR_LE; + ch->precision = 32; + break; + case AFMT_S32_BE: + enc = AUDIO_ENCODING_SLINEAR_BE; + ch->precision = 32; + break; + case AFMT_U32_LE: + enc = AUDIO_ENCODING_ULINEAR_LE; + ch->precision = 32; + break; + case AFMT_U32_BE: + enc = AUDIO_ENCODING_ULINEAR_BE; + ch->precision = 32; + break; default: enc = 0; ch->precision = 16; @@ -3857,83 +3892,135 @@ uaudio_init_params(struct uaudio_softc * return (0); } -void -uaudio_query_formats(device_t dev, u_int32_t *pfmt, u_int32_t *rfmt) +struct uaudio_conversion { + uint8_t uaudio_fmt; + uint8_t uaudio_prec; + uint32_t freebsd_fmt; +}; + +const struct uaudio_conversion const accepted_conversion[] = { + {AUDIO_ENCODING_ULINEAR_LE, 8, AFMT_U8}, + {AUDIO_ENCODING_ULINEAR_LE, 16, AFMT_U16_LE}, + {AUDIO_ENCODING_ULINEAR_LE, 24, AFMT_U24_LE}, + {AUDIO_ENCODING_ULINEAR_LE, 32, AFMT_U32_LE}, + {AUDIO_ENCODING_ULINEAR_BE, 16, AFMT_U16_BE}, + {AUDIO_ENCODING_ULINEAR_BE, 24, AFMT_U24_BE}, + {AUDIO_ENCODING_ULINEAR_BE, 32, AFMT_U32_BE}, + {AUDIO_ENCODING_SLINEAR_LE, 8, AFMT_S8}, + {AUDIO_ENCODING_SLINEAR_LE, 16, AFMT_S16_LE}, + {AUDIO_ENCODING_SLINEAR_LE, 24, AFMT_S24_LE}, + {AUDIO_ENCODING_SLINEAR_LE, 24, AFMT_S32_LE}, + {AUDIO_ENCODING_SLINEAR_BE, 16, AFMT_S16_BE}, + {AUDIO_ENCODING_SLINEAR_BE, 24, AFMT_S24_BE}, + {AUDIO_ENCODING_SLINEAR_BE, 24, AFMT_S32_BE}, + {AUDIO_ENCODING_ALAW, 8, AFMT_A_LAW}, + {AUDIO_ENCODING_ULAW, 8, AFMT_MU_LAW}, + {0,0,0} +}; + +unsigned +uaudio_query_formats(device_t dev, int reqdir, unsigned maxfmt, struct pcmchan_caps *cap) { - int i, pn=0, rn=0; - int prec, dir; - u_int32_t fmt; struct uaudio_softc *sc; - - const struct usb_audio_streaming_type1_descriptor *a1d; + const struct usb_audio_streaming_type1_descriptor *asf1d; + const struct uaudio_conversion *iterator; + unsigned fmtcount, foundcount; + u_int32_t fmt; + uint8_t format, numchan, subframesize, prec, dir, iscontinuous; + int freq, freq_min, freq_max; + char *numchannel_descr; + char freq_descr[64]; + int i,r; sc = device_get_softc(dev); + if (sc == NULL) + return 0; + + cap->minspeed = cap->maxspeed = 0; + foundcount = fmtcount = 0; for (i = 0; i < sc->sc_nalts; i++) { - fmt = 0; - a1d = sc->sc_alts[i].asf1desc; - prec = a1d->bBitResolution; /* precision */ + dir = UE_GET_DIR(sc->sc_alts[i].edesc->bEndpointAddress); - switch (sc->sc_alts[i].encoding) { - case AUDIO_ENCODING_ULINEAR_LE: - if (prec == 8) { - fmt = AFMT_U8; - } else if (prec == 16) { - fmt = AFMT_U16_LE; - } - break; - case AUDIO_ENCODING_SLINEAR_LE: - if (prec == 8) { - fmt = AFMT_S8; - } else if (prec == 16) { - fmt = AFMT_S16_LE; - } - break; - case AUDIO_ENCODING_ULINEAR_BE: - if (prec == 16) { - fmt = AFMT_U16_BE; - } - break; - case AUDIO_ENCODING_SLINEAR_BE: - if (prec == 16) { - fmt = AFMT_S16_BE; - } - break; - case AUDIO_ENCODING_ALAW: - if (prec == 8) { - fmt = AFMT_A_LAW; - } - break; - case AUDIO_ENCODING_ULAW: - if (prec == 8) { - fmt = AFMT_MU_LAW; - } - break; - } + if ((dir == UE_DIR_OUT) != (reqdir == PCMDIR_PLAY)) + continue; - if (fmt != 0) { - if (a1d->bNrChannels == 2) { /* stereo/mono */ - fmt |= AFMT_STEREO; - } else if (a1d->bNrChannels != 1) { - fmt = 0; - } + asf1d = sc->sc_alts[i].asf1desc; + format = sc->sc_alts[i].encoding; + + numchan = asf1d->bNrChannels; + subframesize = asf1d->bSubFrameSize; + prec = asf1d->bBitResolution; /* precision */ + iscontinuous = asf1d->bSamFreqType == UA_SAMP_CONTNUOUS; + + if (iscontinuous) + snprintf(freq_descr, sizeof(freq_descr), "continous min %d max %d", UA_SAMP_LO(asf1d), UA_SAMP_HI(asf1d)); + else + snprintf(freq_descr, sizeof(freq_descr), "fixed frequency (%d listed formats)", asf1d->bSamFreqType); + + if (numchan == 1) + numchannel_descr = " (mono)"; + else if (numchan == 2) + numchannel_descr = " (stereo)"; + else + numchannel_descr = ""; + + if (bootverbose) { + device_printf(dev, "uaudio_query_formats: found a native %s channel%s %s %dbit %dbytes/subframe X %d channels = %d bytes per sample\n", + (dir==UE_DIR_OUT)?"playback":"record", + numchannel_descr, freq_descr, + prec, subframesize, numchan, subframesize*numchan); } + /* + * Now start rejecting the ones that don't map to FreeBSD + */ - if (fmt != 0) { - dir= UE_GET_DIR(sc->sc_alts[i].edesc->bEndpointAddress); - if (dir == UE_DIR_OUT) { - pfmt[pn++] = fmt; - } else if (dir == UE_DIR_IN) { - rfmt[rn++] = fmt; + if (numchan != 1 && numchan != 2) + continue; + + for (iterator = accepted_conversion ; iterator->uaudio_fmt != 0 ; iterator++) + if (iterator->uaudio_fmt == format && iterator->uaudio_prec == prec) + break; + + if (iterator->uaudio_fmt == 0) + continue; + + fmt = iterator->freebsd_fmt; + + if (numchan == 2) + fmt |= AFMT_STEREO; + + foundcount++; + + if (fmtcount >= maxfmt) + continue; + + cap->fmtlist[fmtcount++] = fmt; + + if (iscontinuous) { + freq_min = UA_SAMP_LO(asf1d); + freq_max = UA_SAMP_HI(asf1d); + + if (cap->minspeed == 0 || freq_min < cap->minspeed) + cap->minspeed = freq_min; + if (cap->maxspeed == 0) + cap->maxspeed = cap->minspeed; + if (freq_max > cap->maxspeed) + cap->maxspeed = freq_max; + } else { + for (r = 0; r < asf1d->bSamFreqType; r++) { + freq = UA_GETSAMP(asf1d, r); + if (cap->minspeed == 0 || freq < cap->minspeed) + cap->minspeed = freq; + if (cap->maxspeed == 0) + cap->maxspeed = cap->minspeed; + if (freq > cap->maxspeed) + cap->maxspeed = freq; } } - - if ((pn > 8*2) || (rn > 8*2)) - break; } - pfmt[pn] = 0; - rfmt[rn] = 0; - return; + cap->fmtlist[fmtcount] = 0; + return foundcount; } void @@ -3982,25 +4069,81 @@ uaudio_chan_set_param_blocksize(device_t return; } -void -uaudio_chan_set_param_speed(device_t dev, u_int32_t speed, int dir) +int +uaudio_chan_set_param_speed(device_t dev, u_int32_t speed, int reqdir) { + const struct uaudio_conversion *iterator; struct uaudio_softc *sc; struct chan *ch; + int i, r, score, hiscore, bestspeed; sc = device_get_softc(dev); #ifndef NO_RECORDING - if (dir == PCMDIR_PLAY) + if (reqdir == PCMDIR_PLAY) ch = &sc->sc_playchan; else ch = &sc->sc_recchan; #else ch = &sc->sc_playchan; #endif + /* + * We are successful if we find an endpoint that matches our selected format and it + * supports the requested speed. + */ + hiscore = 0; + bestspeed = 1; + for (i = 0; i < sc->sc_nalts; i++) { + int dir = UE_GET_DIR(sc->sc_alts[i].edesc->bEndpointAddress); + int format = sc->sc_alts[i].encoding; + const struct usb_audio_streaming_type1_descriptor *asf1d = sc->sc_alts[i].asf1desc; + int iscontinuous = asf1d->bSamFreqType == UA_SAMP_CONTNUOUS; - ch->sample_rate = speed; + if ((dir == UE_DIR_OUT) != (reqdir == PCMDIR_PLAY)) + continue; - return; + for (iterator = accepted_conversion ; iterator->uaudio_fmt != 0 ; iterator++) + if (iterator->uaudio_fmt != format || iterator->freebsd_fmt != (ch->format&0xfffffff)) + continue; + if (iscontinuous) { + if (speed >= UA_SAMP_LO(asf1d) && speed <= UA_SAMP_HI(asf1d)) { + ch->sample_rate = speed; + return speed; + } else if (speed < UA_SAMP_LO(asf1d)) { + score = 0xfff * speed / UA_SAMP_LO(asf1d); + if (score > hiscore) { + bestspeed = UA_SAMP_LO(asf1d); + hiscore = score; + } + } else if (speed < UA_SAMP_HI(asf1d)) { + score = 0xfff * UA_SAMP_HI(asf1d) / speed; + if (score > hiscore) { + bestspeed = UA_SAMP_HI(asf1d); + hiscore = score; + } + } + continue; + } + for (r = 0; r < asf1d->bSamFreqType; r++) { + if (speed == UA_GETSAMP(asf1d, r)) { + ch->sample_rate = speed; + return speed; + } + if (speed > UA_GETSAMP(asf1d, r)) + score = 0xfff * UA_GETSAMP(asf1d, r) / speed; + else + score = 0xfff * speed / UA_GETSAMP(asf1d, r); + if (score > hiscore) { + bestspeed = UA_GETSAMP(asf1d, r); + hiscore = score; + } + } + } + if (bestspeed != 1) { + ch->sample_rate = bestspeed; + return bestspeed; + } + + return 0; } int --- uaudio.h.old Thu Apr 28 02:16:27 2005 +++ uaudio.h Tue Nov 8 03:18:51 2005 @@ -41,7 +41,7 @@ int uaudio_halt_in_dma(device_t dev); #endif void uaudio_chan_set_param(device_t, u_char *, u_char *); void uaudio_chan_set_param_blocksize(device_t dev, u_int32_t blocksize, int dir); -void uaudio_chan_set_param_speed(device_t dev, u_int32_t speed, int dir); +int uaudio_chan_set_param_speed(device_t dev, u_int32_t speed, int reqdir); void uaudio_chan_set_param_format(device_t dev, u_int32_t format,int dir); int uaudio_chan_getptr(device_t dev, int); void uaudio_mixer_set(device_t dev, unsigned type, unsigned left, @@ -49,5 +49,5 @@ void uaudio_mixer_set(device_t dev, unsi u_int32_t uaudio_mixer_setrecsrc(device_t dev, u_int32_t src); u_int32_t uaudio_query_mix_info(device_t dev); u_int32_t uaudio_query_recsrc_info(device_t dev); -void uaudio_query_formats(device_t dev, u_int32_t *pfmt, u_int32_t *rfmt); +unsigned uaudio_query_formats(device_t dev, int dir, unsigned maxfmt, struct pcmchan_caps *fmt); void uaudio_sndstat_register(device_t dev); --- uaudio_pcm.c.old Wed Nov 2 15:31:54 2005 +++ uaudio_pcm.c Tue Nov 8 03:18:17 2005 @@ -49,16 +49,13 @@ struct ua_info { device_t sc_dev; u_int32_t bufsz; struct ua_chinfo pch, rch; +#define FORMAT_NUM 32 + u_int32_t ua_playfmt[FORMAT_NUM*2+1]; /* FORMAT_NUM format * (stereo or mono) + endptr */ + u_int32_t ua_recfmt[FORMAT_NUM*2+1]; /* FORMAT_NUM format * (stereo or mono) + endptr */ + struct pcmchan_caps ua_playcaps; + struct pcmchan_caps ua_reccaps; }; -static u_int32_t ua_playfmt[8*2+1]; /* 8 format * (stereo or mono) + endptr */ - -static struct pcmchan_caps ua_playcaps = {8000, 48000, ua_playfmt, 0}; - -static u_int32_t ua_recfmt[8*2+1]; /* 8 format * (stereo or mono) + endptr */ - -static struct pcmchan_caps ua_reccaps = {8000, 48000, ua_recfmt, 0}; - #define UAUDIO_DEFAULT_BUFSZ 16*1024 /************************************************************/ @@ -76,23 +73,9 @@ ua_chan_init(kobj_t obj, void *devinfo, ch->dir = dir; pa_dev = device_get_parent(sc->sc_dev); - /* Create ua_playfmt[] & ua_recfmt[] */ - uaudio_query_formats(pa_dev, (u_int32_t *)&ua_playfmt, (u_int32_t *)&ua_recfmt); - if (dir == PCMDIR_PLAY) { - if (ua_playfmt[0] == 0) { - printf("play channel supported format list invalid\n"); - return NULL; - } - } else { - if (ua_recfmt[0] == 0) { - printf("record channel supported format list invalid\n"); - return NULL; - } - - } ch->buf = malloc(sc->bufsz, M_DEVBUF, M_NOWAIT); - if (ch->buf == NULL) + if (ch->buf == NULL) return NULL; if (sndbuf_setup(b, ch->buf, sc->bufsz) != 0) { free(ch->buf, M_DEVBUF); @@ -133,6 +116,9 @@ ua_chan_setformat(kobj_t obj, void *data struct ua_chinfo *ch = data; + /* + * At this point, no need to query as we shouldn't select an unsorted format + */ ua = ch->parent; pa_dev = device_get_parent(ua->sc_dev); uaudio_chan_set_param_format(pa_dev, format, ch->dir); @@ -144,15 +130,15 @@ ua_chan_setformat(kobj_t obj, void *data static int ua_chan_setspeed(kobj_t obj, void *data, u_int32_t speed) { + struct ua_chinfo *ch; device_t pa_dev; - struct ua_info *ua; + int bestspeed; - struct ua_chinfo *ch = data; - ch->spd = speed; + ch = data; + pa_dev = device_get_parent(ch->parent->sc_dev); - ua = ch->parent; - pa_dev = device_get_parent(ua->sc_dev); - uaudio_chan_set_param_speed(pa_dev, speed, ch->dir); + if ((bestspeed = uaudio_chan_set_param_speed(pa_dev, speed, ch->dir))) + ch->spd = bestspeed; return ch->spd; } @@ -224,9 +210,10 @@ ua_chan_getptr(kobj_t obj, void *data) static struct pcmchan_caps * ua_chan_getcaps(kobj_t obj, void *data) { - struct ua_chinfo *ch = data; + struct ua_chinfo *ch; - return (ch->dir == PCMDIR_PLAY) ? &ua_playcaps : & ua_reccaps; + ch = data; + return (ch->dir == PCMDIR_PLAY) ? &(ch->parent->ua_playcaps) : &(ch->parent->ua_reccaps); } static kobj_method_t ua_chan_methods[] = { @@ -327,42 +314,63 @@ ua_attach(device_t dev) { struct ua_info *ua; char status[SND_STATUSLEN]; + device_t pa_dev; + u_int32_t nplay, nrec; + int i; - ua = (struct ua_info *)malloc(sizeof *ua, M_DEVBUF, M_NOWAIT); - if (!ua) + ua = (struct ua_info *)malloc(sizeof *ua, M_DEVBUF, M_ZERO | M_NOWAIT); + if (ua == NULL) return ENXIO; - bzero(ua, sizeof *ua); ua->sc_dev = dev; + pa_dev = device_get_parent(dev); + ua->bufsz = pcm_getbuffersize(dev, 4096, UAUDIO_DEFAULT_BUFSZ, 65536); if (bootverbose) device_printf(dev, "using a default buffer size of %jd\n", (intmax_t)ua->bufsz); if (mixer_init(dev, &ua_mixer_class, ua)) { - return(ENXIO); + goto bad; } snprintf(status, SND_STATUSLEN, "at ? %s", PCM_KLDSTRING(snd_uaudio)); + ua->ua_playcaps.fmtlist = ua->ua_playfmt; + ua->ua_reccaps.fmtlist = ua->ua_recfmt; + nplay = uaudio_query_formats(pa_dev, PCMDIR_PLAY, FORMAT_NUM * 2, &ua->ua_playcaps); + nrec = uaudio_query_formats(pa_dev, PCMDIR_REC, FORMAT_NUM * 2, &ua->ua_reccaps); + + if (nplay > 1) + nplay = 1; + if (nrec > 1) + nrec = 1; + #ifndef NO_RECORDING - if (pcm_register(dev, ua, 1, 1)) { + if (pcm_register(dev, ua, nplay, nrec)) { #else - if (pcm_register(dev, ua, 1, 0)) { + if (pcm_register(dev, ua, nplay, 0)) { #endif - return(ENXIO); + goto bad; } sndstat_unregister(dev); uaudio_sndstat_register(dev); - pcm_addchan(dev, PCMDIR_PLAY, &ua_chan_class, ua); + for (i = 0; i < nplay; i++) { + pcm_addchan(dev, PCMDIR_PLAY, &ua_chan_class, ua); + } #ifndef NO_RECORDING - pcm_addchan(dev, PCMDIR_REC, &ua_chan_class, ua); + for (i = 0; i < nrec; i++) { + pcm_addchan(dev, PCMDIR_REC, &ua_chan_class, ua); + } #endif pcm_setstatus(dev, status); return 0; + +bad: free(ua, M_DEVBUF); + return ENXIO; } static int ----Next_Part(Tue_Nov__8_05:04:31_2005_613)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="normal_6_patch" --- uaudio.c.orig Tue Nov 8 04:17:47 2005 +++ uaudio.c Tue Nov 8 04:50:46 2005 @@ -231,6 +231,7 @@ struct uaudio_softc { #define HAS_MULAW 0x10 #define UA_NOFRAC 0x20 /* don't do sample rate adjustment */ #define HAS_24 0x40 +#define HAS_32 0x80 int sc_mode; /* play/record capability */ struct mixerctl *sc_ctls; /* mixer controls */ int sc_nctls; /* # of mixer controls */ @@ -2027,7 +2028,7 @@ uaudio_process_as(struct uaudio_softc *s format = UGETW(asid->wFormatTag); chan = asf1d->bNrChannels; prec = asf1d->bBitResolution; - if (prec != 8 && prec != 16 && prec != 24) { + if (prec != 8 && prec != 16 && prec != 24 && prec != 32) { printf("%s: ignored setting with precision %d\n", USBDEVNAME(sc->sc_dev), prec); return (USBD_NORMAL_COMPLETION); @@ -2040,6 +2041,8 @@ uaudio_process_as(struct uaudio_softc *s sc->sc_altflags |= HAS_16; } else if (prec == 24) { sc->sc_altflags |= HAS_24; + } else if (prec == 32) { + sc->sc_altflags |= HAS_32; } enc = AUDIO_ENCODING_SLINEAR_LE; format_str = "pcm"; @@ -3690,7 +3693,7 @@ uaudio_init_params(struct uaudio_softc * if ((sc->sc_playchan.pipe != NULL) || (sc->sc_recchan.pipe != NULL)) return (-1); - switch(ch->format & 0x0000FFFF) { + switch(ch->format & 0x000FFFFF) { case AFMT_U8: enc = AUDIO_ENCODING_ULINEAR_LE; ch->precision = 8; @@ -3723,6 +3726,38 @@ uaudio_init_params(struct uaudio_softc * enc = AUDIO_ENCODING_ULINEAR_BE; ch->precision = 16; break; + case AFMT_S24_LE: + enc = AUDIO_ENCODING_SLINEAR_LE; + ch->precision = 24; + break; + case AFMT_S24_BE: + enc = AUDIO_ENCODING_SLINEAR_BE; + ch->precision = 24; + break; + case AFMT_U24_LE: + enc = AUDIO_ENCODING_ULINEAR_LE; + ch->precision = 24; + break; + case AFMT_U24_BE: + enc = AUDIO_ENCODING_ULINEAR_BE; + ch->precision = 24; + break; + case AFMT_S32_LE: + enc = AUDIO_ENCODING_SLINEAR_LE; + ch->precision = 32; + break; + case AFMT_S32_BE: + enc = AUDIO_ENCODING_SLINEAR_BE; + ch->precision = 32; + break; + case AFMT_U32_LE: + enc = AUDIO_ENCODING_ULINEAR_LE; + ch->precision = 32; + break; + case AFMT_U32_BE: + enc = AUDIO_ENCODING_ULINEAR_BE; + ch->precision = 32; + break; default: enc = 0; ch->precision = 16; @@ -3805,83 +3840,135 @@ uaudio_init_params(struct uaudio_softc * return (0); } -void -uaudio_query_formats(device_t dev, u_int32_t *pfmt, u_int32_t *rfmt) +struct uaudio_conversion { + uint8_t uaudio_fmt; + uint8_t uaudio_prec; + uint32_t freebsd_fmt; +}; + +const struct uaudio_conversion const accepted_conversion[] = { + {AUDIO_ENCODING_ULINEAR_LE, 8, AFMT_U8}, + {AUDIO_ENCODING_ULINEAR_LE, 16, AFMT_U16_LE}, + {AUDIO_ENCODING_ULINEAR_LE, 24, AFMT_U24_LE}, + {AUDIO_ENCODING_ULINEAR_LE, 32, AFMT_U32_LE}, + {AUDIO_ENCODING_ULINEAR_BE, 16, AFMT_U16_BE}, + {AUDIO_ENCODING_ULINEAR_BE, 24, AFMT_U24_BE}, + {AUDIO_ENCODING_ULINEAR_BE, 32, AFMT_U32_BE}, + {AUDIO_ENCODING_SLINEAR_LE, 8, AFMT_S8}, + {AUDIO_ENCODING_SLINEAR_LE, 16, AFMT_S16_LE}, + {AUDIO_ENCODING_SLINEAR_LE, 24, AFMT_S24_LE}, + {AUDIO_ENCODING_SLINEAR_LE, 24, AFMT_S32_LE}, + {AUDIO_ENCODING_SLINEAR_BE, 16, AFMT_S16_BE}, + {AUDIO_ENCODING_SLINEAR_BE, 24, AFMT_S24_BE}, + {AUDIO_ENCODING_SLINEAR_BE, 24, AFMT_S32_BE}, + {AUDIO_ENCODING_ALAW, 8, AFMT_A_LAW}, + {AUDIO_ENCODING_ULAW, 8, AFMT_MU_LAW}, + {0,0,0} +}; + +unsigned +uaudio_query_formats(device_t dev, int reqdir, unsigned maxfmt, struct pcmchan_caps *cap) { - int i, pn=0, rn=0; - int prec, dir; - u_int32_t fmt; struct uaudio_softc *sc; - - const struct usb_audio_streaming_type1_descriptor *a1d; + const struct usb_audio_streaming_type1_descriptor *asf1d; + const struct uaudio_conversion *iterator; + unsigned fmtcount, foundcount; + u_int32_t fmt; + uint8_t format, numchan, subframesize, prec, dir, iscontinuous; + int freq, freq_min, freq_max; + char *numchannel_descr; + char freq_descr[64]; + int i,r; sc = device_get_softc(dev); + if (sc == NULL) + return 0; + + cap->minspeed = cap->maxspeed = 0; + foundcount = fmtcount = 0; for (i = 0; i < sc->sc_nalts; i++) { - fmt = 0; - a1d = sc->sc_alts[i].asf1desc; - prec = a1d->bBitResolution; /* precision */ + dir = UE_GET_DIR(sc->sc_alts[i].edesc->bEndpointAddress); - switch (sc->sc_alts[i].encoding) { - case AUDIO_ENCODING_ULINEAR_LE: - if (prec == 8) { - fmt = AFMT_U8; - } else if (prec == 16) { - fmt = AFMT_U16_LE; - } - break; - case AUDIO_ENCODING_SLINEAR_LE: - if (prec == 8) { - fmt = AFMT_S8; - } else if (prec == 16) { - fmt = AFMT_S16_LE; - } - break; - case AUDIO_ENCODING_ULINEAR_BE: - if (prec == 16) { - fmt = AFMT_U16_BE; - } - break; - case AUDIO_ENCODING_SLINEAR_BE: - if (prec == 16) { - fmt = AFMT_S16_BE; - } - break; - case AUDIO_ENCODING_ALAW: - if (prec == 8) { - fmt = AFMT_A_LAW; - } - break; - case AUDIO_ENCODING_ULAW: - if (prec == 8) { - fmt = AFMT_MU_LAW; - } - break; - } + if ((dir == UE_DIR_OUT) != (reqdir == PCMDIR_PLAY)) + continue; - if (fmt != 0) { - if (a1d->bNrChannels == 2) { /* stereo/mono */ - fmt |= AFMT_STEREO; - } else if (a1d->bNrChannels != 1) { - fmt = 0; - } + asf1d = sc->sc_alts[i].asf1desc; + format = sc->sc_alts[i].encoding; + + numchan = asf1d->bNrChannels; + subframesize = asf1d->bSubFrameSize; + prec = asf1d->bBitResolution; /* precision */ + iscontinuous = asf1d->bSamFreqType == UA_SAMP_CONTNUOUS; + + if (iscontinuous) + snprintf(freq_descr, sizeof(freq_descr), "continous min %d max %d", UA_SAMP_LO(asf1d), UA_SAMP_HI(asf1d)); + else + snprintf(freq_descr, sizeof(freq_descr), "fixed frequency (%d listed formats)", asf1d->bSamFreqType); + + if (numchan == 1) + numchannel_descr = " (mono)"; + else if (numchan == 2) + numchannel_descr = " (stereo)"; + else + numchannel_descr = ""; + + if (bootverbose) { + device_printf(dev, "uaudio_query_formats: found a native %s channel%s %s %dbit %dbytes/subframe X %d channels = %d bytes per sample\n", + (dir==UE_DIR_OUT)?"playback":"record", + numchannel_descr, freq_descr, + prec, subframesize, numchan, subframesize*numchan); } + /* + * Now start rejecting the ones that don't map to FreeBSD + */ - if (fmt != 0) { - dir= UE_GET_DIR(sc->sc_alts[i].edesc->bEndpointAddress); - if (dir == UE_DIR_OUT) { - pfmt[pn++] = fmt; - } else if (dir == UE_DIR_IN) { - rfmt[rn++] = fmt; + if (numchan != 1 && numchan != 2) + continue; + + for (iterator = accepted_conversion ; iterator->uaudio_fmt != 0 ; iterator++) + if (iterator->uaudio_fmt == format && iterator->uaudio_prec == prec) + break; + + if (iterator->uaudio_fmt == 0) + continue; + + fmt = iterator->freebsd_fmt; + + if (numchan == 2) + fmt |= AFMT_STEREO; + + foundcount++; + + if (fmtcount >= maxfmt) + continue; + + cap->fmtlist[fmtcount++] = fmt; + + if (iscontinuous) { + freq_min = UA_SAMP_LO(asf1d); + freq_max = UA_SAMP_HI(asf1d); + + if (cap->minspeed == 0 || freq_min < cap->minspeed) + cap->minspeed = freq_min; + if (cap->maxspeed == 0) + cap->maxspeed = cap->minspeed; + if (freq_max > cap->maxspeed) + cap->maxspeed = freq_max; + } else { + for (r = 0; r < asf1d->bSamFreqType; r++) { + freq = UA_GETSAMP(asf1d, r); + if (cap->minspeed == 0 || freq < cap->minspeed) + cap->minspeed = freq; + if (cap->maxspeed == 0) + cap->maxspeed = cap->minspeed; + if (freq > cap->maxspeed) + cap->maxspeed = freq; } } - - if ((pn > 8*2) || (rn > 8*2)) - break; } - pfmt[pn] = 0; - rfmt[rn] = 0; - return; + cap->fmtlist[fmtcount] = 0; + return foundcount; } void @@ -3930,25 +4017,81 @@ uaudio_chan_set_param_blocksize(device_t return; } -void -uaudio_chan_set_param_speed(device_t dev, u_int32_t speed, int dir) +int +uaudio_chan_set_param_speed(device_t dev, u_int32_t speed, int reqdir) { + const struct uaudio_conversion *iterator; struct uaudio_softc *sc; struct chan *ch; + int i, r, score, hiscore, bestspeed; sc = device_get_softc(dev); #ifndef NO_RECORDING - if (dir == PCMDIR_PLAY) + if (reqdir == PCMDIR_PLAY) ch = &sc->sc_playchan; else ch = &sc->sc_recchan; #else ch = &sc->sc_playchan; #endif + /* + * We are successful if we find an endpoint that matches our selected format and it + * supports the requested speed. + */ + hiscore = 0; + bestspeed = 1; + for (i = 0; i < sc->sc_nalts; i++) { + int dir = UE_GET_DIR(sc->sc_alts[i].edesc->bEndpointAddress); + int format = sc->sc_alts[i].encoding; + const struct usb_audio_streaming_type1_descriptor *asf1d = sc->sc_alts[i].asf1desc; + int iscontinuous = asf1d->bSamFreqType == UA_SAMP_CONTNUOUS; - ch->sample_rate = speed; + if ((dir == UE_DIR_OUT) != (reqdir == PCMDIR_PLAY)) + continue; - return; + for (iterator = accepted_conversion ; iterator->uaudio_fmt != 0 ; iterator++) + if (iterator->uaudio_fmt != format || iterator->freebsd_fmt != (ch->format&0xfffffff)) + continue; + if (iscontinuous) { + if (speed >= UA_SAMP_LO(asf1d) && speed <= UA_SAMP_HI(asf1d)) { + ch->sample_rate = speed; + return speed; + } else if (speed < UA_SAMP_LO(asf1d)) { + score = 0xfff * speed / UA_SAMP_LO(asf1d); + if (score > hiscore) { + bestspeed = UA_SAMP_LO(asf1d); + hiscore = score; + } + } else if (speed < UA_SAMP_HI(asf1d)) { + score = 0xfff * UA_SAMP_HI(asf1d) / speed; + if (score > hiscore) { + bestspeed = UA_SAMP_HI(asf1d); + hiscore = score; + } + } + continue; + } + for (r = 0; r < asf1d->bSamFreqType; r++) { + if (speed == UA_GETSAMP(asf1d, r)) { + ch->sample_rate = speed; + return speed; + } + if (speed > UA_GETSAMP(asf1d, r)) + score = 0xfff * UA_GETSAMP(asf1d, r) / speed; + else + score = 0xfff * speed / UA_GETSAMP(asf1d, r); + if (score > hiscore) { + bestspeed = UA_GETSAMP(asf1d, r); + hiscore = score; + } + } + } + if (bestspeed != 1) { + ch->sample_rate = bestspeed; + return bestspeed; + } + + return 0; } int --- uaudio.h.orig Tue Nov 8 04:17:58 2005 +++ uaudio.h Tue Nov 8 04:50:46 2005 @@ -41,7 +41,7 @@ int uaudio_halt_in_dma(device_t dev); #endif void uaudio_chan_set_param(device_t, u_char *, u_char *); void uaudio_chan_set_param_blocksize(device_t dev, u_int32_t blocksize, int dir); -void uaudio_chan_set_param_speed(device_t dev, u_int32_t speed, int dir); +int uaudio_chan_set_param_speed(device_t dev, u_int32_t speed, int reqdir); void uaudio_chan_set_param_format(device_t dev, u_int32_t format,int dir); int uaudio_chan_getptr(device_t dev, int); void uaudio_mixer_set(device_t dev, unsigned type, unsigned left, @@ -49,5 +49,5 @@ void uaudio_mixer_set(device_t dev, unsi u_int32_t uaudio_mixer_setrecsrc(device_t dev, u_int32_t src); u_int32_t uaudio_query_mix_info(device_t dev); u_int32_t uaudio_query_recsrc_info(device_t dev); -void uaudio_query_formats(device_t dev, u_int32_t *pfmt, u_int32_t *rfmt); +unsigned uaudio_query_formats(device_t dev, int dir, unsigned maxfmt, struct pcmchan_caps *fmt); void uaudio_sndstat_register(device_t dev); --- uaudio_pcm.c.orig Tue Nov 8 04:17:47 2005 +++ uaudio_pcm.c Tue Nov 8 04:54:47 2005 @@ -49,16 +49,13 @@ struct ua_info { device_t sc_dev; u_int32_t bufsz; struct ua_chinfo pch, rch; +#define FORMAT_NUM 32 + u_int32_t ua_playfmt[FORMAT_NUM*2+1]; /* FORMAT_NUM format * (stereo or mono) + endptr */ + u_int32_t ua_recfmt[FORMAT_NUM*2+1]; /* FORMAT_NUM format * (stereo or mono) + endptr */ + struct pcmchan_caps ua_playcaps; + struct pcmchan_caps ua_reccaps; }; -static u_int32_t ua_playfmt[8*2+1]; /* 8 format * (stereo or mono) + endptr */ - -static struct pcmchan_caps ua_playcaps = {8000, 48000, ua_playfmt, 0}; - -static u_int32_t ua_recfmt[8*2+1]; /* 8 format * (stereo or mono) + endptr */ - -static struct pcmchan_caps ua_reccaps = {8000, 48000, ua_recfmt, 0}; - #define UAUDIO_DEFAULT_BUFSZ 16*1024 /************************************************************/ @@ -76,23 +73,9 @@ ua_chan_init(kobj_t obj, void *devinfo, ch->dir = dir; pa_dev = device_get_parent(sc->sc_dev); - /* Create ua_playfmt[] & ua_recfmt[] */ - uaudio_query_formats(pa_dev, (u_int32_t *)&ua_playfmt, (u_int32_t *)&ua_recfmt); - if (dir == PCMDIR_PLAY) { - if (ua_playfmt[0] == 0) { - printf("play channel supported format list invalid\n"); - return NULL; - } - } else { - if (ua_recfmt[0] == 0) { - printf("record channel supported format list invalid\n"); - return NULL; - } - - } ch->buf = malloc(sc->bufsz, M_DEVBUF, M_NOWAIT); - if (ch->buf == NULL) + if (ch->buf == NULL) return NULL; if (sndbuf_setup(b, ch->buf, sc->bufsz) != 0) { free(ch->buf, M_DEVBUF); @@ -133,6 +116,9 @@ ua_chan_setformat(kobj_t obj, void *data struct ua_chinfo *ch = data; + /* + * At this point, no need to query as we shouldn't select an unsorted format + */ ua = ch->parent; pa_dev = device_get_parent(ua->sc_dev); uaudio_chan_set_param_format(pa_dev, format, ch->dir); @@ -144,15 +130,15 @@ ua_chan_setformat(kobj_t obj, void *data static int ua_chan_setspeed(kobj_t obj, void *data, u_int32_t speed) { + struct ua_chinfo *ch; device_t pa_dev; - struct ua_info *ua; + int bestspeed; - struct ua_chinfo *ch = data; - ch->spd = speed; + ch = data; + pa_dev = device_get_parent(ch->parent->sc_dev); - ua = ch->parent; - pa_dev = device_get_parent(ua->sc_dev); - uaudio_chan_set_param_speed(pa_dev, speed, ch->dir); + if ((bestspeed = uaudio_chan_set_param_speed(pa_dev, speed, ch->dir))) + ch->spd = bestspeed; return ch->spd; } @@ -224,9 +210,10 @@ ua_chan_getptr(kobj_t obj, void *data) static struct pcmchan_caps * ua_chan_getcaps(kobj_t obj, void *data) { - struct ua_chinfo *ch = data; + struct ua_chinfo *ch; - return (ch->dir == PCMDIR_PLAY) ? &ua_playcaps : & ua_reccaps; + ch = data; + return (ch->dir == PCMDIR_PLAY) ? &(ch->parent->ua_playcaps) : &(ch->parent->ua_reccaps); } static kobj_method_t ua_chan_methods[] = { @@ -318,42 +305,63 @@ ua_attach(device_t dev) { struct ua_info *ua; char status[SND_STATUSLEN]; + device_t pa_dev; + u_int32_t nplay, nrec; + int i; - ua = (struct ua_info *)malloc(sizeof *ua, M_DEVBUF, M_NOWAIT); - if (!ua) + ua = (struct ua_info *)malloc(sizeof *ua, M_DEVBUF, M_ZERO | M_NOWAIT); + if (ua == NULL) return ENXIO; - bzero(ua, sizeof *ua); ua->sc_dev = dev; + pa_dev = device_get_parent(dev); + ua->bufsz = pcm_getbuffersize(dev, 4096, UAUDIO_DEFAULT_BUFSZ, 65536); if (bootverbose) device_printf(dev, "using a default buffer size of %jd\n", (intmax_t)ua->bufsz); if (mixer_init(dev, &ua_mixer_class, ua)) { - return(ENXIO); + goto bad; } snprintf(status, SND_STATUSLEN, "at addr ?"); + ua->ua_playcaps.fmtlist = ua->ua_playfmt; + ua->ua_reccaps.fmtlist = ua->ua_recfmt; + nplay = uaudio_query_formats(pa_dev, PCMDIR_PLAY, FORMAT_NUM * 2, &ua->ua_playcaps); + nrec = uaudio_query_formats(pa_dev, PCMDIR_REC, FORMAT_NUM * 2, &ua->ua_reccaps); + + if (nplay > 1) + nplay = 1; + if (nrec > 1) + nrec = 1; + #ifndef NO_RECORDING - if (pcm_register(dev, ua, 1, 1)) { + if (pcm_register(dev, ua, nplay, nrec)) { #else - if (pcm_register(dev, ua, 1, 0)) { + if (pcm_register(dev, ua, nplay, 0)) { #endif - return(ENXIO); + goto bad; } sndstat_unregister(dev); uaudio_sndstat_register(dev); - pcm_addchan(dev, PCMDIR_PLAY, &ua_chan_class, ua); + for (i = 0; i < nplay; i++) { + pcm_addchan(dev, PCMDIR_PLAY, &ua_chan_class, ua); + } #ifndef NO_RECORDING - pcm_addchan(dev, PCMDIR_REC, &ua_chan_class, ua); + for (i = 0; i < nrec; i++) { + pcm_addchan(dev, PCMDIR_REC, &ua_chan_class, ua); + } #endif pcm_setstatus(dev, status); return 0; + +bad: free(ua, M_DEVBUF); + return ENXIO; } static int ----Next_Part(Tue_Nov__8_05:04:31_2005_613)---- From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 00:22:41 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1D8516A41F for ; Tue, 8 Nov 2005 00:22:41 +0000 (GMT) (envelope-from danny@ricin.com) Received: from smtpq2.tilbu1.nb.home.nl (smtpq2.tilbu1.nb.home.nl [213.51.146.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8610443D45 for ; Tue, 8 Nov 2005 00:22:41 +0000 (GMT) (envelope-from danny@ricin.com) Received: from [213.51.146.189] (port=38375 helo=smtp2.tilbu1.nb.home.nl) by smtpq2.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1EZHG4-0006IN-4x for freebsd-multimedia@freebsd.org; Tue, 08 Nov 2005 01:22:40 +0100 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.215.228]:64771 helo=desktop.homenet) by smtp2.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1EZHG3-0003QH-0S for freebsd-multimedia@freebsd.org; Tue, 08 Nov 2005 01:22:39 +0100 From: Danny Pansters To: freebsd-multimedia@freebsd.org Date: Tue, 8 Nov 2005 01:20:40 +0000 User-Agent: KMail/1.8.2 X-Face: :N, f2_*44g[tRY8Y-gL2zi`G|<6SpFjTeHt|V5LO6Yl2E7yAfEh{E6-8pqxUFX"l)=?utf-8?q?Nm8y=7E=0A=09IWJSAWQ=7D+=3DpP=7CT=5D?=@sy1sz%h)*CW6gtbp]"fe@MjICtIUo.0, CH~{[R4PXSyL MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511080120.40866.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Subject: To whom it concerns: kbtv-alpha3 uploaded 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: Tue, 08 Nov 2005 00:22:42 -0000 I think now sysctl settings are respected properly (even if set wrong, there's no way to verify if they are set right or if they even work as overrides) and added code to hopefully make the frequency scan detect properly if the upper most signal value should be taken as a valid station or not. Steve: I haven't looked into your sound problem much. Hope to be able to do that next, once this works. I'll go up to version alpha848 if I ahve to :) General new insight: channelset vs frequencies doesn't seem to be an issue at all. Sorry for the noise discussing this. Neither is the format/norm AFAICT. Thanks very much for testing and anyone who wants to try it out is very welcome to do so (at worst I may ask strange questions and for you to run strange commands ;-)! Sometimes it looks like nothing works but I have faith that in the end everything's going to work out alright. It's hard if you don't have the hardware nor the signal to test with and see how it behaves (and how it should be set up, both may be different every time every place). Thanks From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 00:40:20 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E730916A41F for ; Tue, 8 Nov 2005 00:40:20 +0000 (GMT) (envelope-from danny@ricin.com) Received: from smtpq1.tilbu1.nb.home.nl (smtpq1.tilbu1.nb.home.nl [213.51.146.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4ED543D48 for ; Tue, 8 Nov 2005 00:40:19 +0000 (GMT) (envelope-from danny@ricin.com) Received: from [213.51.146.189] (port=38425 helo=smtp2.tilbu1.nb.home.nl) by smtpq1.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1EZHX8-0007Sg-F9 for freebsd-multimedia@freebsd.org; Tue, 08 Nov 2005 01:40:18 +0100 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.215.228]:50700 helo=desktop.homenet) by smtp2.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1EZHX7-0005Kg-OB for freebsd-multimedia@freebsd.org; Tue, 08 Nov 2005 01:40:17 +0100 From: Danny Pansters To: freebsd-multimedia@freebsd.org Date: Tue, 8 Nov 2005 01:38:19 +0000 User-Agent: KMail/1.8.2 MIME-Version: 1.0 X-Face: :N, f2_*44g[tRY8Y-gL2zi`G|<6SpFjTeHt|V5LO6Yl2E7yAfEh{E6-8pqxUFX"l)Nm8y~ IWJSAWQ}+=pP|T]@sy1sz%h)*CW6gtbp]"fe@MjICtIUo.0,CH~{[R4PXSyL Content-Type: Multipart/Mixed; boundary="Boundary-00=_LGAcDm4xu4j3GuE" Message-Id: <200511080138.19155.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Subject: Re (URL): To whom it concerns: kbtv-alpha3 uploaded 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: Tue, 08 Nov 2005 00:40:21 -0000 --Boundary-00=_LGAcDm4xu4j3GuE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline It's probably helpful to repeat download/website location: http://freebsd.ricin.com/kbtv --Boundary-00=_LGAcDm4xu4j3GuE Content-Type: message/rfc822; name="forwarded message" Content-Transfer-Encoding: 7bit Content-Description: Danny Pansters : To whom it concerns: kbtv-alpha3 uploaded Content-Disposition: inline Return-Path: Delivered-To: ricib01-shortcut-danny@ricin.com Received: (qmail 37319 invoked from network); 8 Nov 2005 00:23:28 -0000 Received: from slime.mail.vuurwerk.net (62.250.3.103) by in4.mail.vuurwerk.net with SMTP; 8 Nov 2005 00:23:28 -0000 Received: from mx2.freebsd.org ([216.136.204.119]) by as-2.mail.vuurwerk.net with esmtp (Exim 4.43 (FreeBSD)) id 1EZHGq-0007vT-F9 for danny@ricin.com; Tue, 08 Nov 2005 01:23:28 +0100 Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 3F3745B218; Tue, 8 Nov 2005 00:22:56 +0000 (GMT) (envelope-from owner-freebsd-multimedia@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id D53FD16A426; Tue, 8 Nov 2005 00:22:54 +0000 (GMT) (envelope-from owner-freebsd-multimedia@freebsd.org) X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1D8516A41F for ; Tue, 8 Nov 2005 00:22:41 +0000 (GMT) (envelope-from danny@ricin.com) Received: from smtpq2.tilbu1.nb.home.nl (smtpq2.tilbu1.nb.home.nl [213.51.146.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8610443D45 for ; Tue, 8 Nov 2005 00:22:41 +0000 (GMT) (envelope-from danny@ricin.com) Received: from [213.51.146.189] (port=38375 helo=smtp2.tilbu1.nb.home.nl) by smtpq2.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1EZHG4-0006IN-4x for freebsd-multimedia@freebsd.org; Tue, 08 Nov 2005 01:22:40 +0100 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.215.228]:64771 helo=desktop.homenet) by smtp2.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1EZHG3-0003QH-0S for freebsd-multimedia@freebsd.org; Tue, 08 Nov 2005 01:22:39 +0100 From: Danny Pansters To: freebsd-multimedia@freebsd.org Date: Tue, 8 Nov 2005 01:20:40 +0000 User-Agent: KMail/1.8.2 X-Face: :N, f2_*44g[tRY8Y-gL2zi`G|<6SpFjTeHt|V5LO6Yl2E7yAfEh{E6-8pqxUFX"l)=?utf-8?q?Nm8y=7E=0A=09IWJSAWQ=7D+=3DpP=7CT=5D?=@sy1sz%h)*CW6gtbp]"fe@MjICtIUo.0, CH~{[R4PXSyL MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511080120.40866.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Subject: To whom it concerns: kbtv-alpha3 uploaded 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: , Sender: owner-freebsd-multimedia@freebsd.org Errors-To: owner-freebsd-multimedia@freebsd.org X-Versatel-Spam-DNSBL: NO X-Versatel-Spam-DNSBL-Info: Mail filtered by Versatel DNSBL system X-AntiVirus: checked by Vexira Anti Virus 1.57.1, vdb: 8.939 I think now sysctl settings are respected properly (even if set wrong, there's no way to verify if they are set right or if they even work as overrides) and added code to hopefully make the frequency scan detect properly if the upper most signal value should be taken as a valid station or not. Steve: I haven't looked into your sound problem much. Hope to be able to do that next, once this works. I'll go up to version alpha848 if I ahve to :) General new insight: channelset vs frequencies doesn't seem to be an issue at all. Sorry for the noise discussing this. Neither is the format/norm AFAICT. Thanks very much for testing and anyone who wants to try it out is very welcome to do so (at worst I may ask strange questions and for you to run strange commands ;-)! Sometimes it looks like nothing works but I have faith that in the end everything's going to work out alright. It's hard if you don't have the hardware nor the signal to test with and see how it behaves (and how it should be set up, both may be different every time every place). Thanks _______________________________________________ freebsd-multimedia@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org" --Boundary-00=_LGAcDm4xu4j3GuE-- From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 02:18:41 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D57116A41F for ; Tue, 8 Nov 2005 02:18:40 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8194A43D46 for ; Tue, 8 Nov 2005 02:18:39 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id F3A3D6CC24; Tue, 8 Nov 2005 10:20:48 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 74872-03; Tue, 8 Nov 2005 10:20:47 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 57B436CC23; Tue, 8 Nov 2005 10:20:46 +0800 (MYT) Date: Tue, 8 Nov 2005 10:18:38 +0800 From: Ariff Abdullah To: Sebastiaan van Erk Message-Id: <20051108101838.0bb77c99.skywizard@MyBSD.org.my> In-Reply-To: <436F3A36.3070608@sebster.com> References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound skipping problems 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: Tue, 08 Nov 2005 02:18:41 -0000 [ stable@ -> multimedia@ ] On Mon, 07 Nov 2005 12:27:50 +0100 Sebastiaan van Erk wrote: > > I tried the patch, but unfortunately when I reboot with the patch > (which cleanly applies and compiles), audio stops working. The > device (pcm0) is still there, the mixer is set ok, and everything > looks normal, just no sound comes out of the speakers. > > I have no idea why the patch doesn't work, but if you want any more > information I'll be happy to supply it to you. The sound skipping > seems at least fixed by just increasing the buffer size, but don't > know how reliable this workaround is compared to a structural > workaround. > > Furthermore I don't know if this message is relevant, but it seems > the snd_8233 driver doesn't like my audio codec very much: > > pcm0: port 0xec00-0xecff irq 22 at device 17.5 on pci0 > pcm0: [GIANT-LOCKED] > pcm0: > Sorry, I gave the wrong patch. You should get snd_RELENG_6_2005* instead of snd_RELENG_6_0_2005*. Still, the problem (non working sound) is quite interesting for me. I'm mostly interested for the output of /usr/sbin/mixer and cat /dev/sndstat (with sysctl hw.snd.verbose=2). Please try again. Your AC97 codec id has been added. http://people.freebsd.org/~ariff/snd_RELENG_6_20051108_059.diff http://people.freebsd.org/~ariff/README for hints and common problem/solution. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 02:26:42 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D74016A41F for ; Tue, 8 Nov 2005 02:26:42 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CA6E43D6D for ; Tue, 8 Nov 2005 02:26:34 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id CA4016CC24; Tue, 8 Nov 2005 10:28:46 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 74872-04; Tue, 8 Nov 2005 10:28:45 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 1BDA36CC23; Tue, 8 Nov 2005 10:28:45 +0800 (MYT) Date: Tue, 8 Nov 2005 10:26:36 +0800 From: Ariff Abdullah To: Kazuhito HONDA Message-Id: <20051108102636.5b298817.skywizard@MyBSD.org.my> In-Reply-To: <20051108.050431.343192595.kazuhito@ph.noda.tus.ac.jp> References: <43691146.7030404@elischer.org> <20051103034216.379caa05.skywizard@MyBSD.org.my> <436F8EFE.9090704@elischer.org> <20051108.050431.343192595.kazuhito@ph.noda.tus.ac.jp> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org, Alexander@Leidinger.net, julian@elischer.org Subject: Re: uaudio and Digigram UAX220 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: Tue, 08 Nov 2005 02:26:42 -0000 On Tue, 08 Nov 2005 05:04:31 +0900 (JST) Kazuhito HONDA wrote: > Sorry, I forgot to attach a patch for uaudio.h. > I'll attach a new patch including > changes of uaudio.h and fixes of some typos. > > From: Julian Elischer > Subject: Re: uaudio and Digigram UAX220 > Date: Mon, 07 Nov 2005 09:29:34 -0800 > > > Does it apply to 6? > > `patched_6_patch' was made on FreeBSD 6.0 which a sound patch was > applied. > (http://people.freebsd.org/~ariff/snd_RELENG_6_0_20051030_058.diff) > I checked that this patch was available on patched FreeBSD 6-stable > (http://people.freebsd.org/~ariff/snd_RELENG_6_20051030_058.diff). > > `normal_6_patch' was made from FreeBSD 6 without the sound patch. > I don't test it, but I'm sure that it is available. > The entire patchset has been updated http://people.freebsd.org/~ariff/ , of course, *NOT* including this usb specific changes. If something goes wrong, we will know which patch cause the problem. If everything goes well, I will include all these patches as a single patch and commit the usb specific to the -CURRENT. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 08:10:07 2005 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A773816A41F for ; Tue, 8 Nov 2005 08:10:07 +0000 (GMT) (envelope-from hopet@ics.muni.cz) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB3F743D46 for ; Tue, 8 Nov 2005 08:10:06 +0000 (GMT) (envelope-from hopet@ics.muni.cz) Received: from KLOBOUCEK (kloboucek.ics.muni.cz [147.251.3.38]) (user=hopet@META mech=LOGIN bits=0) by tirith.ics.muni.cz (8.13.2/8.13.2) with ESMTP id jA88A3Ow008440 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Tue, 8 Nov 2005 09:10:04 +0100 From: "Petr Holub" To: Date: Tue, 8 Nov 2005 09:10:06 +0100 Message-ID: <007901c5e43b$d428bc50$5317fb93@KLOBOUCEK> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Importance: Normal X-Muni-Spam-TestIP: 147.251.3.38 X-Muni-Envelope-From: hopet@ics.muni.cz X-Muni-Virus-Test: Clean Cc: Subject: [PATCH] MPEG2-TS patch for fwcontrol 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: Tue, 08 Nov 2005 08:10:07 -0000 Hi all, I've created a patchset for capturing MPEG2-TS and HDV from FireWire link using fwcontrol. It supports auto-detection of DV and MPEG2-TS when using -R flag. Patches are available for 5.x (reported to work under 4.x as well) and 6.x (I don't know if that's gonna work under -CURRENT). Basic idea for this patch was to be able to read HDV video from cameras like SONY HVR-Z1E or HDR-FX1, which are now becomming pretty affordable. for 5.x: http://sitola.fi.muni.cz/~hopet/HDV/fwcontrol.patch for 6.x: http://sitola.fi.muni.cz/~hopet/HDV/fwcontrol-6.0.patch Do you think it would be possible to have that patch integrated into the base system? I've sent this patch approximately half a year ago, got some basic positive response but the list seems to be rather dead since then :(. Thanks, Petr ================================================================ Petr Holub CESNET z.s.p.o. Supercomputing Center Brno Zikova 4 Institute of Compt. Science 162 00 Praha 6, CZ Masaryk University Czech Republic Botanicka 68a, 60200 Brno, CZ e-mail: Petr.Holub@cesnet.cz phone: +420-549493944 fax: +420-541212747 e-mail: hopet@ics.muni.cz From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 08:30:06 2005 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A42C716A41F for ; Tue, 8 Nov 2005 08:30:06 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B77243D45 for ; Tue, 8 Nov 2005 08:30:06 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id jA88U54P055025; Tue, 8 Nov 2005 00:30:05 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id jA88U4Ad055024; Tue, 8 Nov 2005 00:30:04 -0800 (PST) (envelope-from jmg) Date: Tue, 8 Nov 2005 00:30:04 -0800 From: John-Mark Gurney To: Petr Holub Message-ID: <20051108083004.GM775@funkthat.com> Mail-Followup-To: Petr Holub , multimedia@freebsd.org References: <007901c5e43b$d428bc50$5317fb93@KLOBOUCEK> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <007901c5e43b$d428bc50$5317fb93@KLOBOUCEK> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: multimedia@freebsd.org Subject: Re: [PATCH] MPEG2-TS patch for fwcontrol X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2005 08:30:06 -0000 Petr Holub wrote this message on Tue, Nov 08, 2005 at 09:10 +0100: > I've created a patchset for capturing MPEG2-TS and HDV from FireWire > link using fwcontrol. It supports auto-detection of DV and MPEG2-TS > when using -R flag. Patches are available for 5.x (reported to > work under 4.x as well) and 6.x (I don't know if that's gonna work > under -CURRENT). Basic idea for this patch was to be able to read > HDV video from cameras like SONY HVR-Z1E or HDR-FX1, which are now > becomming pretty affordable. > > for 5.x: http://sitola.fi.muni.cz/~hopet/HDV/fwcontrol.patch > for 6.x: http://sitola.fi.muni.cz/~hopet/HDV/fwcontrol-6.0.patch > > Do you think it would be possible to have that patch integrated > into the base system? I've sent this patch approximately half a year > ago, got some basic positive response but the list seems to be rather > dead since then :(. Looks good, though you have a number of lines, both in the man page and in source that are over 80 columns... also, a quick pass after reading style(9) would be good... (variables aren't sorted properly in mpegtsrecv, else not on same line as brace, spaces around if missing).. you might want to update the year of the copyright :) Otherwise looks good... Have you looked at being able to send MPEG2-TS? I wonder if it'd work w/ a DVHS deck, or a firewire capable HDTV tuner like the Samsung SIR-T165... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 10:14:52 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92A2516A41F for ; Tue, 8 Nov 2005 10:14:52 +0000 (GMT) (envelope-from sebster@sebster.com) Received: from smtp.profdata.nl (server.profdata.nl [213.196.2.244]) by mx1.FreeBSD.org (Postfix) with SMTP id A404843D49 for ; Tue, 8 Nov 2005 10:14:51 +0000 (GMT) (envelope-from sebster@sebster.com) Received: (qmail 46930 invoked from network); 8 Nov 2005 10:14:50 -0000 Received: from unknown (HELO ?10.0.0.6?) (80.126.244.3) by server.profdata.nl with SMTP; 8 Nov 2005 10:14:50 -0000 Message-ID: <43707A99.9010101@sebster.com> Date: Tue, 08 Nov 2005 11:14:49 +0100 From: Sebastiaan van Erk User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ariff Abdullah References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> <20051108101838.0bb77c99.skywizard@MyBSD.org.my> In-Reply-To: <20051108101838.0bb77c99.skywizard@MyBSD.org.my> Content-Type: multipart/mixed; boundary="------------040204050709030605030200" Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound skipping problems 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: Tue, 08 Nov 2005 10:14:52 -0000 This is a multi-part message in MIME format. --------------040204050709030605030200 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, thanks for the reply. In fact I already used the REL_ENG_6 patch. I applied the new version and recompiled and still no sound. I attached the information you requested below. Greetings, Sebastiaan van Erk Ariff Abdullah wrote: > [ stable@ -> multimedia@ ] > > On Mon, 07 Nov 2005 12:27:50 +0100 > Sebastiaan van Erk wrote: > >>I tried the patch, but unfortunately when I reboot with the patch >>(which cleanly applies and compiles), audio stops working. The >>device (pcm0) is still there, the mixer is set ok, and everything >>looks normal, just no sound comes out of the speakers. >> >>I have no idea why the patch doesn't work, but if you want any more >>information I'll be happy to supply it to you. The sound skipping >>seems at least fixed by just increasing the buffer size, but don't >>know how reliable this workaround is compared to a structural >>workaround. >> >>Furthermore I don't know if this message is relevant, but it seems >>the snd_8233 driver doesn't like my audio codec very much: >> >>pcm0: port 0xec00-0xecff irq 22 at device 17.5 on pci0 >>pcm0: [GIANT-LOCKED] >>pcm0: >> > Sorry, I gave the wrong patch. You should get snd_RELENG_6_2005* > instead of snd_RELENG_6_0_2005*. Still, the problem (non working > sound) is quite interesting for me. I'm mostly interested for the > output of /usr/sbin/mixer and cat /dev/sndstat (with sysctl > hw.snd.verbose=2). Please try again. Your AC97 codec id has been > added. > > http://people.freebsd.org/~ariff/snd_RELENG_6_20051108_059.diff > > http://people.freebsd.org/~ariff/README for hints and common > problem/solution. > > > > > -- > Ariff Abdullah > MyBSD > > http://www.MyBSD.org.my (IPv6/IPv4) > http://staff.MyBSD.org.my (IPv6/IPv4) > http://tomoyo.MyBSD.org.my (IPv6/IPv4) --------------040204050709030605030200 Content-Type: text/plain; name="audio.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="audio.txt" root@piglet(ttyp1:32:0):~# uname -a FreeBSD piglet.sebster.com 6.0-STABLE FreeBSD 6.0-STABLE #4: Tue Nov 8 10:34:27 CET 2005 root@piglet.sebster.com:/usr/obj/usr/src/sys/PIGLET i386 root@piglet(ttyp1:33:0):~# dmesg | grep pcm pcm0: port 0xec00-0xecff irq 22 at device 17.5 on pci0 pcm0: [GIANT-LOCKED] pcm0: pcm0: port 0xec00-0xecff irq 22 at device 17.5 on pci0 pcm0: pcm0: root@piglet(ttyp1:34:0):~# sysctl -w hw.snd.verbose=2 hw.snd.verbose: 1 -> 2 root@piglet(ttyp1:35:0):~# sysctl -a hw.snd hw.snd.report_soft_formats: 1 hw.snd.targetirqrate: 32 hw.snd.feeder_rate_buffersize: 8192 hw.snd.feeder_rate_scaling: 5 hw.snd.feeder_rate_ratemax: 1102500 hw.snd.feeder_rate_ratemin: 4000 hw.snd.verbose: 2 hw.snd.slave_enabled: 1 hw.snd.maxautovchans: 0 hw.snd.unit: 0 hw.snd.pcm0.buffersize: 65536 hw.snd.pcm0.vchans: 0 hw.snd.pcm0.spdif_enabled: 0 hw.snd.pcm0.via_dxs_src: 0 root@piglet(ttyp1:36:0):~# pciconf -lv ... pcm0@pci0:17:5: class=0x040100 card=0x04301462 chip=0x30591106 rev=0x60 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT8233/33A/8235/8237 AC97 Enhanced Audio Controller' class = multimedia subclass = audio ... root@piglet(ttyp1:37:0):~# cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xec00 irq 22 kld snd_via8233 (5p/5s/1r/0v channels duplex default) [pcm0:play:0]: spd 48000, fmt 0x10000010, flags 0x00203000, 0x00000000 interrupts 2196, underruns 0, ready 0 [b:8192/4096/2|bs:8192/4096/2] {userland} -> feeder_slave(0x10000010) -> {hardware} pcm0:play:0[pcm0:slave:0]: spd 44100/48000, fmt 0x10000010, flags 0x20000000, 0x00000020 interrupts 0, underruns 0, ready 0 [b:0/4096/0|bs:131072/4096/32] {userland} -> feeder_root(0x10000010) -> feeder_rate(44100 -> 48000) -> {hardware} [pcm0:play:1]: spd 48000, fmt 0x00000008, flags 0x00201000, 0x00000000 interrupts 0, underruns 0, ready 0 [b:2048/1024/2|bs:131072/1024/128] {userland} -> feeder_slave(0x00000008) -> {hardware} pcm0:play:1[pcm0:slave:1]: spd 0, fmt 0x00000000/0x00000008, flags 0x20000000, 0x00000000 interrupts 0, underruns 0, ready 0 [b:0/0/0|bs:0/0/0] {userland} -> feeder_root(0x00000000) -> {hardware} [pcm0:play:2]: spd 48000, fmt 0x00000008, flags 0x00201000, 0x00000000 interrupts 0, underruns 0, ready 0 [b:2048/1024/2|bs:131072/1024/128] {userland} -> feeder_slave(0x00000008) -> {hardware} pcm0:play:2[pcm0:slave:2]: spd 0, fmt 0x00000000/0x00000008, flags 0x20000000, 0x00000000 interrupts 0, underruns 0, ready 0 [b:0/0/0|bs:0/0/0] {userland} -> feeder_root(0x00000000) -> {hardware} [pcm0:play:3]: spd 48000, fmt 0x00000008, flags 0x00201000, 0x00000000 interrupts 0, underruns 0, ready 0 [b:2048/1024/2|bs:131072/1024/128] {userland} -> feeder_slave(0x00000008) -> {hardware} pcm0:play:3[pcm0:slave:3]: spd 0, fmt 0x00000000/0x00000008, flags 0x20000000, 0x00000000 interrupts 0, underruns 0, ready 0 [b:0/0/0|bs:0/0/0] {userland} -> feeder_root(0x00000000) -> {hardware} [pcm0:play:4]: spd 4000, fmt 0x00000008, flags 0x00201000, 0x00000000 interrupts 0, underruns 0, ready 0 [b:128/64/2|bs:131072/64/2048] {userland} -> feeder_slave(0x00000008) -> {hardware} pcm0:play:4[pcm0:slave:4]: spd 0, fmt 0x00000000/0x00000008, flags 0x20000000, 0x00000000 interrupts 0, underruns 0, ready 0 [b:0/0/0|bs:0/0/0] {userland} -> feeder_root(0x00000000) -> {hardware} [pcm0:record:0]: spd 0, fmt 0x00000000/0x00000008, flags 0x00000000, 0x00000000 interrupts 0, overruns 0, hfree 65536, sfree 0 [b:65536/32768/2|bs:0/0/0] {hardware} -> feeder_root(0x00000000) -> {userland} root@piglet(ttyp1:38:0):~# /usr/sbin/mixer Mixer vol is currently set to 75:75 Mixer pcm is currently set to 75:75 Mixer speaker is currently set to 75:75 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer cd is currently set to 75:75 Mixer rec is currently set to 0:0 Mixer ogain is currently set to 50:50 Mixer line1 is currently set to 75:75 Mixer phin is currently set to 0:0 Mixer phout is currently set to 0:0 Recording source: mic --------------040204050709030605030200-- From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 12:35:15 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7780216A41F for ; Tue, 8 Nov 2005 12:35:15 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB67E43D49 for ; Tue, 8 Nov 2005 12:35:14 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id jA8CZ6DS083435 for ; Tue, 8 Nov 2005 14:35:06 +0200 (EET) (envelope-from dmitry@atlantis.dp.ua) Date: Tue, 8 Nov 2005 14:35:06 +0200 (EET) From: Dmitry Pryanishnikov To: freebsd-multimedia@freebsd.org Message-ID: <20051108140901.N72203@atlantis.atlantis.dp.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: ICH6-M audio support for ASUS notebook 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: Tue, 08 Nov 2005 12:35:15 -0000 Hello! I'm going to buy a notebook and trying to decide what chipset it should be built on. Vast majority of Intel-based Centrinos are built on 915GM + ICH6-M (Alviso) chipset. As I've read in datasheet ICH6-M contains two different sound engines: good old AC97 and new Intel's "High Definition audio" (which AFAIK isn't supported by our sound driver). Engines can't work together, only one of them can be enabled. I know that our sound driver supports AC97 engine, but will it always be sufficient in order to use notebook's audio? I suspect different notebooks will have different wiring between ICH6-M and codecs. I would like to know positive/negative experience with ICH6-M audio on modern ASUS notebooks under FreeBSD (6.* or CURRENT). Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 13:00:25 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7113916A41F for ; Tue, 8 Nov 2005 13:00:25 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8C5C43D46 for ; Tue, 8 Nov 2005 13:00:24 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 0B7EC6CC26; Tue, 8 Nov 2005 21:02:38 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 77239-04; Tue, 8 Nov 2005 21:02:36 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 7DC3D6CC24; Tue, 8 Nov 2005 21:02:36 +0800 (MYT) Date: Tue, 8 Nov 2005 21:00:23 +0800 From: Ariff Abdullah To: Sebastiaan van Erk Message-Id: <20051108210023.2a6fbda1.skywizard@MyBSD.org.my> In-Reply-To: <43707A99.9010101@sebster.com> References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> <20051108101838.0bb77c99.skywizard@MyBSD.org.my> <43707A99.9010101@sebster.com> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound skipping problems 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: Tue, 08 Nov 2005 13:00:25 -0000 On Tue, 08 Nov 2005 11:14:49 +0100 Sebastiaan van Erk wrote: > Hi, > > thanks for the reply. In fact I already used the REL_ENG_6 patch. I > applied the new version and recompiled and still no sound. I > attached the information you requested below. > Still no sound? The application simply exit with error, or the application running without sound? What application is that? What you use there? -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 13:02:08 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2727B16A41F for ; Tue, 8 Nov 2005 13:02:08 +0000 (GMT) (envelope-from dawnshade@mail.ru) Received: from relay1.kaspersky-labs.com (relay1.kaspersky-labs.com [212.5.80.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C4E143D66 for ; Tue, 8 Nov 2005 13:01:58 +0000 (GMT) (envelope-from dawnshade@mail.ru) Received: from relay1.kaspersky-labs.com (localhost [127.0.0.1]) by relay1.kaspersky-labs.com (ESMTP) with SMTP id 753EA1727D for ; Tue, 8 Nov 2005 16:01:56 +0300 (MSK) Received: from antispam.localhost (localhost [127.0.0.1]) by relay1.kaspersky-labs.com (ESMTP) with SMTP id 2785E171AE for ; Tue, 8 Nov 2005 16:01:56 +0300 (MSK) Received: by relay1.kaspersky-labs.com (ESMTP, from userid 230) id 1E98A171A2; Tue, 8 Nov 2005 16:01:56 +0300 (MSK) Received: from avp_server3.avp.ru (mx.avp.ru [212.5.80.12]) by relay1.kaspersky-labs.com (ESMTP) with ESMTP id 0DD1417194 for ; Tue, 8 Nov 2005 16:01:56 +0300 (MSK) Received: from moscow2.avp.ru ([10.64.0.4]) by avp_server3.avp.ru with Microsoft SMTPSVC(6.0.3790.1830); Tue, 8 Nov 2005 16:01:55 +0300 Received: from moscow.avp.ru ([10.64.0.3]) by moscow2.avp.ru with Microsoft SMTPSVC(6.0.3790.1830); Tue, 8 Nov 2005 16:01:55 +0300 Received: from dawnshade-note.avp.ru ([172.16.128.10]) by moscow.avp.ru with Microsoft SMTPSVC(6.0.3790.1830); Tue, 8 Nov 2005 16:01:55 +0300 From: dawnshade To: freebsd-multimedia@freebsd.org Date: Tue, 8 Nov 2005 16:02:03 +0300 User-Agent: KMail/1.8.2 References: <20051108140901.N72203@atlantis.atlantis.dp.ua> In-Reply-To: <20051108140901.N72203@atlantis.atlantis.dp.ua> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200511081602.04438.dawnshade@mail.ru> X-OriginalArrivalTime: 08 Nov 2005 13:01:55.0799 (UTC) FILETIME=[98998E70:01C5E464] X-SpamTest-Version: SMTP-Filter Version 2.0.0 [0125], KAS/Release X-Spamtest-Info: Pass through X-Anti-Virus: Kaspersky Anti-Virus for MailServers 5.5.2/RELEASE, bases: 08112005 #149202, status: clean Subject: Re: ICH6-M audio support for ASUS notebook 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: Tue, 08 Nov 2005 13:02:08 -0000 On Tuesday 08 November 2005 15:35, Dmitry Pryanishnikov wrote: > =A0 I'm going to buy a notebook and trying to decide what chipset it shou= ld > be built on. Vast majority of Intel-based Centrinos are built on 915GM + > ICH6-M (Alviso) chipset. As I've read in datasheet ICH6-M contains two > different sound engines: good old AC97 and new Intel's "High Definition > audio" (which AFAIK isn't supported by our sound driver). Engines can't > work together, only one of them can be enabled. I know that our sound > driver supports AC97 engine, but will it always be sufficient in order to > use notebook's audio? I suspect different notebooks will have different > wiring between ICH6-M and codecs. I would like to know positive/negative > experience with ICH6-M audio on modern ASUS notebooks under FreeBSD (6.* = or > CURRENT). > with Acer 4150 work fine: pcm0@pci0:30:2: class=3D0x040100 card=3D0x007a1025 chip=3D0x266e8086 rev=3D= 0x04=20 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82801FB/FR/FW/FRW AC '97 Audio Controller' class =3D multimedia subclass =3D audio pcm0: port 0xe100-0xe1ff,0xe200-0xe23f mem=20 0xd00c0000-0xd00c01ff,0xd00c0200-0xd00c02ff irq 5 at device 30.2 on pci0 pcm0: [GIANT-LOCKED] pcm0: uname -sr =46reeBSD 6.0-RELEASE The same chipset - 915GM + ICH6 + Centrino From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 13:05:19 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 079CE16A41F for ; Tue, 8 Nov 2005 13:05:19 +0000 (GMT) (envelope-from sebster@sebster.com) Received: from smtp.profdata.nl (server.profdata.nl [213.196.2.244]) by mx1.FreeBSD.org (Postfix) with SMTP id 8680743D45 for ; Tue, 8 Nov 2005 13:05:17 +0000 (GMT) (envelope-from sebster@sebster.com) Received: (qmail 57273 invoked from network); 8 Nov 2005 13:05:16 -0000 Received: from unknown (HELO ?10.0.0.6?) (80.126.244.3) by server.profdata.nl with SMTP; 8 Nov 2005 13:05:16 -0000 Message-ID: <4370A28B.9020303@sebster.com> Date: Tue, 08 Nov 2005 14:05:15 +0100 From: Sebastiaan van Erk User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ariff Abdullah References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> <20051108101838.0bb77c99.skywizard@MyBSD.org.my> <43707A99.9010101@sebster.com> <20051108210023.2a6fbda1.skywizard@MyBSD.org.my> In-Reply-To: <20051108210023.2a6fbda1.skywizard@MyBSD.org.my> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound skipping problems 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: Tue, 08 Nov 2005 13:05:19 -0000 Hi, Still no sound no. Any application: mpg321, musicpd, whatever. The application does not exit with an error, in fact it just says that it's playing. The *ONLY* difference that I can detect is that there is no sound coming out of the speakers. Doing a cvsup, make kernel, reboot (and nothing else) causes the sound to come back immediately. Greetings, Sebastiaan van Erk Ariff Abdullah wrote: > On Tue, 08 Nov 2005 11:14:49 +0100 > Sebastiaan van Erk wrote: > >>Hi, >> >>thanks for the reply. In fact I already used the REL_ENG_6 patch. I >>applied the new version and recompiled and still no sound. I >>attached the information you requested below. >> > > Still no sound? The application simply exit with error, or the > application running without sound? What application is that? What you > use there? > > > -- > Ariff Abdullah > MyBSD > > http://www.MyBSD.org.my (IPv6/IPv4) > http://staff.MyBSD.org.my (IPv6/IPv4) > http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 13:29:46 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F50516A41F for ; Tue, 8 Nov 2005 13:29:46 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58E6843D46 for ; Tue, 8 Nov 2005 13:29:45 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 4F0956CC26; Tue, 8 Nov 2005 21:32:00 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 77239-06; Tue, 8 Nov 2005 21:31:59 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id C32436CC23; Tue, 8 Nov 2005 21:31:58 +0800 (MYT) Date: Tue, 8 Nov 2005 21:29:50 +0800 From: Ariff Abdullah To: Sebastiaan van Erk Message-Id: <20051108212950.0378d2a3.skywizard@MyBSD.org.my> In-Reply-To: <4370A28B.9020303@sebster.com> References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> <20051108101838.0bb77c99.skywizard@MyBSD.org.my> <43707A99.9010101@sebster.com> <20051108210023.2a6fbda1.skywizard@MyBSD.org.my> <4370A28B.9020303@sebster.com> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound skipping problems 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: Tue, 08 Nov 2005 13:29:46 -0000 On Tue, 08 Nov 2005 14:05:15 +0100 Sebastiaan van Erk wrote: > Hi, > > Still no sound no. Any application: mpg321, musicpd, whatever. > > The application does not exit with an error, in fact it just says > that it's playing. The *ONLY* difference that I can detect is that > there is no sound coming out of the speakers. Doing a cvsup, make > kernel, reboot (and nothing else) causes the sound to come back > immediately. > How about one of these: 1) hw.snd.slave_enabled -> 0 or 1 2) hw.snd.pcm0.spdif_enabled -> 0 or 1 3) Play anything as many as possible *concurrently* until something comes up (note: at most you can play 5). -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 15:17:58 2005 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27A3116A41F for ; Tue, 8 Nov 2005 15:17:58 +0000 (GMT) (envelope-from hopet@ics.muni.cz) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 974F243D46 for ; Tue, 8 Nov 2005 15:17:51 +0000 (GMT) (envelope-from hopet@ics.muni.cz) Received: from KLOBOUCEK (kloboucek.ics.muni.cz [147.251.3.38]) (user=hopet@META mech=LOGIN bits=0) by tirith.ics.muni.cz (8.13.2/8.13.2) with ESMTP id jA8FHmLU018066 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 8 Nov 2005 16:17:49 +0100 From: "Petr Holub" To: "John-Mark Gurney" Date: Tue, 8 Nov 2005 16:17:50 +0100 Message-ID: <009e01c5e477$955fc590$5317fb93@KLOBOUCEK> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 In-Reply-To: <20051108083004.GM775@funkthat.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Importance: Normal X-Muni-Spam-TestIP: 147.251.3.38 X-Muni-Envelope-From: hopet@ics.muni.cz X-Muni-Virus-Test: Clean Cc: multimedia@freebsd.org Subject: RE: [PATCH] MPEG2-TS patch for fwcontrol 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: Tue, 08 Nov 2005 15:17:58 -0000 > Looks good, though you have a number of lines, both in the man page > and in source that are over 80 columns... also, a quick pass after > reading style(9) would be good... (variables aren't sorted properly > in mpegtsrecv, else not on same line as brace, spaces around if missing).. > you might want to update the year of the copyright :) OK, I've tried to stylify the patches and the new version are again available here: for 5.x: http://sitola.fi.muni.cz/~hopet/HDV/fwcontrol.patch for 6.x: http://sitola.fi.muni.cz/~hopet/HDV/fwcontrol-6.0.patch > Otherwise looks good... Have you looked at being able to send MPEG2-TS? > I wonder if it'd work w/ a DVHS deck, or a firewire capable HDTV tuner > like the Samsung SIR-T165... Sending - not yet. It's a little bit more complicated process because of the rules for data packetization on FireWire. As for the DVHS decks, I don't have any so I can't try that. The functionality of the patches has been verified using both SONY cameras mentioned in my previous mail. Petr ================================================================ Petr Holub CESNET z.s.p.o. Supercomputing Center Brno Zikova 4 Institute of Compt. Science 162 00 Praha 6, CZ Masaryk University Czech Republic Botanicka 68a, 60200 Brno, CZ e-mail: Petr.Holub@cesnet.cz phone: +420-549493944 fax: +420-541212747 e-mail: hopet@ics.muni.cz From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 15:20:20 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 620E316A41F for ; Tue, 8 Nov 2005 15:20:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11E7843D45 for ; Tue, 8 Nov 2005 15:20:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jA8FKJu7045782 for ; Tue, 8 Nov 2005 15:20:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jA8FKJZd045781; Tue, 8 Nov 2005 15:20:19 GMT (envelope-from gnats) Date: Tue, 8 Nov 2005 15:20:19 GMT Message-Id: <200511081520.jA8FKJZd045781@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Jean-Yves Lefort Cc: Subject: Re: kern/31398: [sound] newpcm does not play back the tail of sound X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jean-Yves Lefort List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2005 15:20:20 -0000 The following reply was made to PR kern/31398; it has been noted by GNATS. From: Jean-Yves Lefort To: bug-followup@FreeBSD.org,iwaki@bc.niigata-u.ac.jp Cc: Subject: Re: kern/31398: [sound] newpcm does not play back the tail of sound Date: Tue, 8 Nov 2005 16:18:29 +0100 --Signature=_Tue__8_Nov_2005_16_18_29_+0100_lMujN3.YLzh20sq3 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Same with 6.0-RELEASE. --=20 Jean-Yves Lefort jylefort@FreeBSD.org http://lefort.be.eu.org/ --Signature=_Tue__8_Nov_2005_16_18_29_+0100_lMujN3.YLzh20sq3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDcMHFyzD7UaO4AGoRAsFEAJ9Hz3REWFhUPhU+UKPK/la6uu27lwCeLkcN iqTkG7vgwQS9KMjJ3cyi4wE= =YKjy -----END PGP SIGNATURE----- --Signature=_Tue__8_Nov_2005_16_18_29_+0100_lMujN3.YLzh20sq3-- From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 15:35:17 2005 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.org Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B90816A41F; Tue, 8 Nov 2005 15:35:17 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8011E43D49; Tue, 8 Nov 2005 15:35:13 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id B2ACF6CC26; Tue, 8 Nov 2005 23:37:27 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 78324-01; Tue, 8 Nov 2005 23:37:26 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 2DD9A6CC24; Tue, 8 Nov 2005 23:37:25 +0800 (MYT) Date: Tue, 8 Nov 2005 23:35:17 +0800 From: Ariff Abdullah To: Jean-Yves Lefort Message-Id: <20051108233517.5ec73d79.skywizard@MyBSD.org.my> In-Reply-To: <200511081520.jA8FKJZd045781@freefall.freebsd.org> References: <200511081520.jA8FKJZd045781@freefall.freebsd.org> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@FreeBSD.org Subject: Re: kern/31398: [sound] newpcm does not play back the tail of sound 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: Tue, 08 Nov 2005 15:35:17 -0000 On Tue, 8 Nov 2005 15:20:19 GMT Jean-Yves Lefort wrote: > The following reply was made to PR kern/31398; it has been noted by > GNATS. > > From: Jean-Yves Lefort > To: bug-followup@FreeBSD.org,iwaki@bc.niigata-u.ac.jp > Cc: > Subject: Re: kern/31398: [sound] newpcm does not play back the tail > of sound Date: Tue, 8 Nov 2005 16:18:29 +0100 > > > Same with 6.0-RELEASE. > How about applying patch from http://people.freebsd.org/~ariff/ -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 15:36:00 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2854616A420 for ; Tue, 8 Nov 2005 15:36:00 +0000 (GMT) (envelope-from CQG00620@nifty.ne.jp) Received: from mail.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB49543D5A for ; Tue, 8 Nov 2005 15:35:58 +0000 (GMT) (envelope-from CQG00620@nifty.ne.jp) Received: from asahi-net.jp (h204195.ppp.asahi-net.or.jp [61.114.204.195]) by mail.asahi-net.or.jp (Postfix) with ESMTP id C856C253D6 for ; Wed, 9 Nov 2005 00:35:56 +0900 (JST) Date: Wed, 09 Nov 2005 00:36:20 +0900 From: Watanabe Kazuhiro To: freebsd-multimedia User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/20.7 (i386--freebsd) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Message-Id: <20051108153556.C856C253D6@mail.asahi-net.or.jp> Subject: [patch] stereo input is mixed to monaural via SoundBlaster16 recording mixer 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: Tue, 08 Nov 2005 15:36:00 -0000 Hi, all. I have a SoundBlaster Vibra16S(CT2800) soundcard. When I try to record with wavrec (a part of ports/audio/wavplay), even if an input source is 2-channel stereo, the recording output becomes 2-channel monaural. * Environment (FreeBSD-current; CVSup'ed Nov. 8) $ uname -a FreeBSD scorpio.zodiac.org 7.0-CURRENT FreeBSD 7.0-CURRENT #4: Tue Nov 8 18:41:14 JST 2005 nabe@scorpio.zodiac.org:/FreeBSD/obj-current/FreeBSD/FreeBSD-current/src/sys/GENERIC i386 $ cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xe800 irq 9 kld snd_als4000 (1p/1r/0v channels duplex default) pcm1: at io 0x240 irq 5 drq 1:5 bufsz 4096 kld snd_sb16 (1p/1r/0v channels duplex) pcm2: at io 0x534 irq 10 drq 3:0 bufsz 4096 (1p/1r/0v channels duplex) * How to test $ mixer -f /dev/mixer1 =rec cd Recording source: cd $ cdcontrol play && wavrec -d /dev/dsp1 -M -s 44100 -b 16 -t 30 mono.wav $ cdcontrol stop $ cdcontrol play && wavrec -d /dev/dsp1 -S -s 44100 -b 16 -t 30 stereo.wav $ cdcontrol stop $ wavplay -d /dev/dsp1 mono.wav stereo.wav Pathname: mono.wav Device: /dev/dsp1 Sampling Rate: 44100 Hz Mode: Mono Samples: 1323000 Bits: 16 Pathname: stereo.wav Device: /dev/dsp1 Sampling Rate: 44100 Hz Mode: Stereo Samples: 1323000 Bits: 16 /* listen the two files carefully... */ This behavior is hard-coded in /sys/dev/sound/isa/sb16.c: | static int | sb16mix_setrecsrc(struct snd_mixer *m, u_int32_t src) | { | struct sb_info *sb = mix_getdevinfo(m); | u_char recdev; | | recdev = 0; | if (src & SOUND_MASK_MIC) | recdev |= 0x01; /* mono mic */ | | if (src & SOUND_MASK_CD) | recdev |= 0x06; /* l+r cd */ | | if (src & SOUND_MASK_LINE) | recdev |= 0x18; /* l+r line */ | | if (src & SOUND_MASK_SYNTH) | recdev |= 0x60; /* l+r midi */ | | sb_setmixer(sb, SB16_IMASK_L, recdev); | sb_setmixer(sb, SB16_IMASK_R, recdev); This behavior has not been changed since the newpcm driver was commited to the FreeBSD source tree (8 years ago). It seems that there is no one who is worried about this behavior; even so, I think these are improper settings as default. It's a fix patch. This patch also fixes `cat /dev/sndstat` output. I've referred to following sources: sb_mixer.[ch] (OSS/Free sound driver) ftp://sources.freebsd.org/pub/FreeBSD/sources/RELENG_4/src/sys/i386/isa/sound/ "Hardware Programming Reference" pp70 ("Register Map of CT1745 Mixer") http://www.alsa-project.org/alsa/ftp/datasheets/creative/hwmnl.pdf --- sys/dev/sound/isa/sb16.c.orig Mon Oct 10 00:44:31 2005 +++ sys/dev/sound/isa/sb16.c Mon Nov 7 14:33:38 2005 @@ -370,23 +370,28 @@ static int sb16mix_setrecsrc(struct snd_mixer *m, u_int32_t src) { struct sb_info *sb = mix_getdevinfo(m); - u_char recdev; + u_char recdev_l, recdev_r; - recdev = 0; + recdev_l = 0; + recdev_r = 0; if (src & SOUND_MASK_MIC) - recdev |= 0x01; /* mono mic */ + recdev_l |= 0x01; /* mono mic */ + recdev_r |= 0x01; if (src & SOUND_MASK_CD) - recdev |= 0x06; /* l+r cd */ + recdev_l |= 0x04; /* l cd */ + recdev_r |= 0x02; /* r cd */ if (src & SOUND_MASK_LINE) - recdev |= 0x18; /* l+r line */ + recdev_l |= 0x10; /* l line */ + recdev_r |= 0x08; /* r line */ if (src & SOUND_MASK_SYNTH) - recdev |= 0x60; /* l+r midi */ + recdev_l |= 0x40; /* l midi */ + recdev_r |= 0x20; /* r midi */ - sb_setmixer(sb, SB16_IMASK_L, recdev); - sb_setmixer(sb, SB16_IMASK_R, recdev); + sb_setmixer(sb, SB16_IMASK_L, recdev_l); + sb_setmixer(sb, SB16_IMASK_R, recdev_r); /* Switch on/off FM tuner source */ if (src & SOUND_MASK_LINE1) @@ -849,7 +854,7 @@ sb16_attach(device_t dev) else status2[0] = '\0'; - snprintf(status, SND_STATUSLEN, "at io 0x%lx irq %ld drq %ld%s bufsz %ud %s", + snprintf(status, SND_STATUSLEN, "at io 0x%lx irq %ld drq %ld%s bufsz %u %s", rman_get_start(sb->io_base), rman_get_start(sb->irq), rman_get_start(sb->drq1), status2, sb->bufsize, PCM_KLDSTRING(snd_sb16)); --- Watanabe Kazuhiro (CQG00620@nifty.ne.jp) From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 15:47:08 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24D2D16A41F for ; Tue, 8 Nov 2005 15:47:08 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B2B343D58 for ; Tue, 8 Nov 2005 15:47:02 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D559.dip.t-dialin.net [84.165.213.89]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id jA8FOkVU075427; Tue, 8 Nov 2005 16:24:47 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id jA8FkuI8076180; Tue, 8 Nov 2005 16:46:56 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by netchild.homeip.net (Horde MIME library) with HTTP; Tue, 08 Nov 2005 16:46:55 +0100 Message-ID: <20051108164655.kupkhj7r40sswc0k@netchild.homeip.net> X-Priority: 3 (Normal) Date: Tue, 08 Nov 2005 16:46:55 +0100 From: Alexander Leidinger To: Ariff Abdullah References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> <20051108101838.0bb77c99.skywizard@MyBSD.org.my> <43707A99.9010101@sebster.com> <20051108210023.2a6fbda1.skywizard@MyBSD.org.my> <4370A28B.9020303@sebster.com> <20051108212950.0378d2a3.skywizard@MyBSD.org.my> In-Reply-To: <20051108212950.0378d2a3.skywizard@MyBSD.org.my> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound skipping problems 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: Tue, 08 Nov 2005 15:47:08 -0000 Ariff Abdullah wrote: > On Tue, 08 Nov 2005 14:05:15 +0100 >> The application does not exit with an error, in fact it just says >> that it's playing. The *ONLY* difference that I can detect is that >> there is no sound coming out of the speakers. Doing a cvsup, make >> kernel, reboot (and nothing else) causes the sound to come back >> immediately. >> > How about one of these: > 1) hw.snd.slave_enabled -> 0 or 1 > 2) hw.snd.pcm0.spdif_enabled -> 0 or 1 > 3) Play anything as many as possible *concurrently* until something > comes up (note: at most you can play 5). And before you try all of this: make sure your speakers (the entire playing chain) are wired correctly, the volume is turned up, the amplifier isn't muted and so on... This is not because we think you are dump, it's just because it may be the case that your brother (or someone else, who sneaked in) plays some tricks with you... people usually feel like fools if this happens to them, but don't feel embarased if this is the case, concratulate your brother instead. ;-) Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 root rot From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 16:00:22 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C20AC16A41F for ; Tue, 8 Nov 2005 16:00:22 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1859843D46 for ; Tue, 8 Nov 2005 16:00:21 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D559.dip.t-dialin.net [84.165.213.89]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id jA8FbwUi075477; Tue, 8 Nov 2005 16:38:06 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id jA8Fxt9V078531; Tue, 8 Nov 2005 16:59:55 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by netchild.homeip.net (Horde MIME library) with HTTP; Tue, 08 Nov 2005 16:59:55 +0100 Message-ID: <20051108165955.ge235sro0848csok@netchild.homeip.net> X-Priority: 3 (Normal) Date: Tue, 08 Nov 2005 16:59:55 +0100 From: Alexander Leidinger To: Watanabe Kazuhiro References: <20051108153556.C856C253D6@mail.asahi-net.or.jp> In-Reply-To: <20051108153556.C856C253D6@mail.asahi-net.or.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia Subject: Re: [patch] stereo input is mixed to monaural via SoundBlaster16 recording mixer 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: Tue, 08 Nov 2005 16:00:22 -0000 Watanabe Kazuhiro wrote: > if (src & SOUND_MASK_MIC) > - recdev |= 0x01; /* mono mic */ > + recdev_l |= 0x01; /* mono mic */ > + recdev_r |= 0x01; If I understand this correctly, this feeds the monaural signal to the left and the right channel. When we have a mono input, do we really want to have the same input doubled? I don't do any recording, so I don't know how most programs handle this, but IMHO it's a waste of resources and if the source is only able to deliver a mono-signal, the recording should only be possible in mono. Does this sound sane? Be warned, if you proceed to submit such patches, we may want to lure you into becomming a committer... Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 ARCHDUKE FERDINAND FOUND ALIVE -- FIRST WORLD WAR A MISTAKE From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 16:20:21 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FABA16A421 for ; Tue, 8 Nov 2005 16:20:08 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69AB943D5E for ; Tue, 8 Nov 2005 16:20:07 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id BB8A76CC26; Wed, 9 Nov 2005 00:22:22 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 78324-10; Wed, 9 Nov 2005 00:22:21 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 3812A6CC23; Wed, 9 Nov 2005 00:22:20 +0800 (MYT) Date: Wed, 9 Nov 2005 00:20:13 +0800 From: Ariff Abdullah To: Alexander Leidinger Message-Id: <20051109002013.4dcf3c0d.skywizard@MyBSD.org.my> In-Reply-To: <20051108165955.ge235sro0848csok@netchild.homeip.net> References: <20051108153556.C856C253D6@mail.asahi-net.or.jp> <20051108165955.ge235sro0848csok@netchild.homeip.net> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org, CQG00620@nifty.ne.jp Subject: Re: [patch] stereo input is mixed to monaural via SoundBlaster16 recording mixer 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: Tue, 08 Nov 2005 16:20:21 -0000 On Tue, 08 Nov 2005 16:59:55 +0100 Alexander Leidinger wrote: > Watanabe Kazuhiro wrote: > > > if (src & SOUND_MASK_MIC) > > - recdev |= 0x01; /* mono mic */ > > + recdev_l |= 0x01; /* mono mic */ > > + recdev_r |= 0x01; > > If I understand this correctly, this feeds the monaural signal to > the left and the right channel. When we have a mono input, do we > really want to have the same input doubled? I don't do any > recording, so I don't know how most programs handle this, but IMHO > it's a waste of resources and if the source is only able to deliver > a mono-signal, the recording should only be possible in mono. > > Does this sound sane? > Watanabe-san, I would suggest you to put braces along with the conditional statement so the code become much easier tu understand. Without it, it seems that recdev_r will always be set even if the condition is false. > Be warned, if you proceed to submit such patches, we may want to > lure you into becomming a committer... > -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 16:23:29 2005 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.ORG Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 857CF16A41F for ; Tue, 8 Nov 2005 16:23:29 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id A258343D55 for ; Tue, 8 Nov 2005 16:23:27 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (yburah@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.1/8.13.1) with ESMTP id jA8GNQvm001513 for ; Tue, 8 Nov 2005 17:23:26 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.1/8.13.1/Submit) id jA8GNP65001512; Tue, 8 Nov 2005 17:23:25 +0100 (CET) (envelope-from olli) Date: Tue, 8 Nov 2005 17:23:25 +0100 (CET) Message-Id: <200511081623.jA8GNP65001512@lurza.secnetix.de> From: Oliver Fromme To: freebsd-multimedia@FreeBSD.ORG In-Reply-To: <200511081602.04438.dawnshade@mail.ru> X-Newsgroups: list.freebsd-multimedia User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.11-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: ICH6-M audio support for ASUS notebook X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-multimedia@FreeBSD.ORG List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2005 16:23:29 -0000 dawnshade wrote: > On Tuesday 08 November 2005 15:35, Dmitry Pryanishnikov wrote: > >   I'm going to buy a notebook and trying to decide what chipset it should > > be built on. Vast majority of Intel-based Centrinos are built on 915GM + > > ICH6-M (Alviso) chipset. [...] > > with Acer 4150 work fine: > > pcm0@pci0:30:2: class=0x040100 card=0x007a1025 chip=0x266e8086 rev=0x04 > hdr=0x00 > vendor = 'Intel Corporation' > device = '82801FB/FR/FW/FRW AC '97 Audio Controller' > class = multimedia > subclass = audio > > pcm0: port 0xe100-0xe1ff,0xe200-0xe23f mem > 0xd00c0000-0xd00c01ff,0xd00c0200-0xd00c02ff irq 5 at device 30.2 on pci0 > pcm0: [GIANT-LOCKED] > pcm0: > > uname -sr > FreeBSD 6.0-RELEASE > > The same chipset - 915GM + ICH6 + Centrino "me too" :-) Sound works perfectly on mine (915GM, ICH6, Centrino). It's running 6-stable (RELENG_6). dmesg, pciconf etc. can be found here: http://www.secnetix.de/~olli/dmesg/centaur/ Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. Python is executable pseudocode. Perl is executable line noise. From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 16:26:26 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AFAF16A41F for ; Tue, 8 Nov 2005 16:26:26 +0000 (GMT) (envelope-from sebster@sebster.com) Received: from smtp.profdata.nl (server.profdata.nl [213.196.2.244]) by mx1.FreeBSD.org (Postfix) with SMTP id 53CD443D62 for ; Tue, 8 Nov 2005 16:26:21 +0000 (GMT) (envelope-from sebster@sebster.com) Received: (qmail 70444 invoked from network); 8 Nov 2005 16:26:20 -0000 Received: from unknown (HELO ?10.0.0.6?) (80.126.244.3) by server.profdata.nl with SMTP; 8 Nov 2005 16:26:19 -0000 Message-ID: <4370D1AB.2060201@sebster.com> Date: Tue, 08 Nov 2005 17:26:19 +0100 From: Sebastiaan van Erk User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ariff Abdullah References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> <20051108101838.0bb77c99.skywizard@MyBSD.org.my> <43707A99.9010101@sebster.com> <20051108210023.2a6fbda1.skywizard@MyBSD.org.my> <4370A28B.9020303@sebster.com> <20051108212950.0378d2a3.skywizard@MyBSD.org.my> In-Reply-To: <20051108212950.0378d2a3.skywizard@MyBSD.org.my> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound skipping problems 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: Tue, 08 Nov 2005 16:26:26 -0000 Ok, well I got SOMETHING... First of all, I had to start using all 5 channels before any sound came out. At that moment, a weird distorted version of *all* channels started coming out of the speakers and I killed the audio thingies 1 by 1. The sound quality is really lousy - a kind of hissing crackling sound is in the songs (mostly drums/metal guitar, voice seems not to be affected as much). Tweaking the sysctl's had no effect that I could discern. I also got the following errors in dmesg: pcm0:slave:3: play interrupt timeout, channel dead pcm0:slave:4: play interrupt timeout, channel dead Greetings, Sebastiaan Ariff Abdullah wrote: > On Tue, 08 Nov 2005 14:05:15 +0100 > Sebastiaan van Erk wrote: > >>Hi, >> >>Still no sound no. Any application: mpg321, musicpd, whatever. >> >>The application does not exit with an error, in fact it just says >>that it's playing. The *ONLY* difference that I can detect is that >>there is no sound coming out of the speakers. Doing a cvsup, make >>kernel, reboot (and nothing else) causes the sound to come back >>immediately. >> > > How about one of these: > 1) hw.snd.slave_enabled -> 0 or 1 > 2) hw.snd.pcm0.spdif_enabled -> 0 or 1 > 3) Play anything as many as possible *concurrently* until something > comes up (note: at most you can play 5). > > > > -- > Ariff Abdullah > MyBSD > > http://www.MyBSD.org.my (IPv6/IPv4) > http://staff.MyBSD.org.my (IPv6/IPv4) > http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 16:41:05 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04EB316A41F for ; Tue, 8 Nov 2005 16:41:05 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34B6C43D45 for ; Tue, 8 Nov 2005 16:41:03 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id AE95C6CC26; Wed, 9 Nov 2005 00:43:18 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 78475-09; Wed, 9 Nov 2005 00:43:17 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 1CD566CC23; Wed, 9 Nov 2005 00:43:17 +0800 (MYT) Date: Wed, 9 Nov 2005 00:41:09 +0800 From: Ariff Abdullah To: Sebastiaan van Erk Message-Id: <20051109004109.4f53af30.skywizard@MyBSD.org.my> In-Reply-To: <4370D1AB.2060201@sebster.com> References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> <20051108101838.0bb77c99.skywizard@MyBSD.org.my> <43707A99.9010101@sebster.com> <20051108210023.2a6fbda1.skywizard@MyBSD.org.my> <4370A28B.9020303@sebster.com> <20051108212950.0378d2a3.skywizard@MyBSD.org.my> <4370D1AB.2060201@sebster.com> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound skipping problems 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: Tue, 08 Nov 2005 16:41:05 -0000 On Tue, 08 Nov 2005 17:26:19 +0100 Sebastiaan van Erk wrote: > Ok, well I got SOMETHING... > > First of all, I had to start using all 5 channels before any sound > came out. At that moment, a weird distorted version of *all* > channels started coming out of the speakers and I killed the audio > thingies 1 by 1. The sound quality is really lousy - a kind of > hissing crackling sound is in the songs (mostly drums/metal guitar, > voice seems not to be affected as much). Tweaking the sysctl's had > no effect that I could discern. > > I also got the following errors in dmesg: > > pcm0:slave:3: play interrupt timeout, channel dead > pcm0:slave:4: play interrupt timeout, channel dead > Now try this: # kenv hint.pcm.0.via_dxs_disabled=1 # kldunload snd_via8233 ; kldload snd_via8233 # sysctl hw.snd.pcm0.vchans=5 I hope you're not too bothered getting back and forth. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 16:48:37 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E72116A420; Tue, 8 Nov 2005 16:48:37 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 084E843D48; Tue, 8 Nov 2005 16:48:37 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jA8GmaJs057319; Tue, 8 Nov 2005 16:48:36 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jA8Gmap4057315; Tue, 8 Nov 2005 16:48:36 GMT (envelope-from linimon) Date: Tue, 8 Nov 2005 16:48:36 GMT From: Mark Linimon Message-Id: <200511081648.jA8Gmap4057315@freefall.freebsd.org> To: kazuhito@ph.noda.tus.ac.jp, linimon@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/74893: [sound] [patch] Channels of USB audio can't be initialized (uaudio). 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: Tue, 08 Nov 2005 16:48:37 -0000 Synopsis: [sound] [patch] Channels of USB audio can't be initialized (uaudio). State-Changed-From-To: feedback->closed State-Changed-By: linimon State-Changed-When: Tue Nov 8 16:48:08 GMT 2005 State-Changed-Why: Submitter agreed that this can be closed. http://www.freebsd.org/cgi/query-pr.cgi?pr=74893 From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 17:12:34 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 32D7416A41F for ; Tue, 8 Nov 2005 17:12:34 +0000 (GMT) (envelope-from sebster@sebster.com) Received: from smtp.profdata.nl (server.profdata.nl [213.196.2.244]) by mx1.FreeBSD.org (Postfix) with SMTP id 6D8EB43D49 for ; Tue, 8 Nov 2005 17:12:33 +0000 (GMT) (envelope-from sebster@sebster.com) Received: (qmail 73647 invoked from network); 8 Nov 2005 17:12:32 -0000 Received: from unknown (HELO ?10.0.0.6?) (80.126.244.3) by server.profdata.nl with SMTP; 8 Nov 2005 17:12:32 -0000 Message-ID: <4370DC7F.5080308@sebster.com> Date: Tue, 08 Nov 2005 18:12:31 +0100 From: Sebastiaan van Erk User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexander Leidinger References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> <20051108101838.0bb77c99.skywizard@MyBSD.org.my> <43707A99.9010101@sebster.com> <20051108210023.2a6fbda1.skywizard@MyBSD.org.my> <4370A28B.9020303@sebster.com> <20051108212950.0378d2a3.skywizard@MyBSD.org.my> <20051108164655.kupkhj7r40sswc0k@netchild.homeip.net> In-Reply-To: <20051108164655.kupkhj7r40sswc0k@netchild.homeip.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound skipping problems 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: Tue, 08 Nov 2005 17:12:34 -0000 Everything is wired properly. The only difference between it working properly and not is the kernel patch. I keep switching between a working and a patched kernel because I like to work with music on the background when I'm not testing patches... ;-) Greetings, Sebastiaan van Erk Alexander Leidinger wrote: > Ariff Abdullah wrote: > >> On Tue, 08 Nov 2005 14:05:15 +0100 > > >>> The application does not exit with an error, in fact it just says >>> that it's playing. The *ONLY* difference that I can detect is that >>> there is no sound coming out of the speakers. Doing a cvsup, make >>> kernel, reboot (and nothing else) causes the sound to come back >>> immediately. >>> >> How about one of these: >> 1) hw.snd.slave_enabled -> 0 or 1 >> 2) hw.snd.pcm0.spdif_enabled -> 0 or 1 >> 3) Play anything as many as possible *concurrently* until something >> comes up (note: at most you can play 5). > > > And before you try all of this: make sure your speakers (the entire playing > chain) are wired correctly, the volume is turned up, the amplifier isn't > muted and so on... > > This is not because we think you are dump, it's just because it may be the > case that your brother (or someone else, who sneaked in) plays some tricks > with you... people usually feel like fools if this happens to them, but > don't feel embarased if this is the case, concratulate your brother > instead. > ;-) > > Bye, > Alexander. > From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 17:16:59 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F391716A41F for ; Tue, 8 Nov 2005 17:16:58 +0000 (GMT) (envelope-from sebster@sebster.com) Received: from smtp.profdata.nl (server.profdata.nl [213.196.2.244]) by mx1.FreeBSD.org (Postfix) with SMTP id 2390C43D46 for ; Tue, 8 Nov 2005 17:16:57 +0000 (GMT) (envelope-from sebster@sebster.com) Received: (qmail 73990 invoked from network); 8 Nov 2005 17:16:57 -0000 Received: from unknown (HELO ?10.0.0.6?) (80.126.244.3) by server.profdata.nl with SMTP; 8 Nov 2005 17:16:57 -0000 Message-ID: <4370DD88.9030502@sebster.com> Date: Tue, 08 Nov 2005 18:16:56 +0100 From: Sebastiaan van Erk User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ariff Abdullah References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> <20051108101838.0bb77c99.skywizard@MyBSD.org.my> <43707A99.9010101@sebster.com> <20051108210023.2a6fbda1.skywizard@MyBSD.org.my> <4370A28B.9020303@sebster.com> <20051108212950.0378d2a3.skywizard@MyBSD.org.my> <4370D1AB.2060201@sebster.com> <20051109004109.4f53af30.skywizard@MyBSD.org.my> In-Reply-To: <20051109004109.4f53af30.skywizard@MyBSD.org.my> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound skipping problems 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: Tue, 08 Nov 2005 17:16:59 -0000 Ok, will try those things, and no, I'm not bothered at all! I'm actually very grateful for FreeBSD and am glad to be of service! :-) Greetings, Sebastiaan Ariff Abdullah wrote: > On Tue, 08 Nov 2005 17:26:19 +0100 > Sebastiaan van Erk wrote: > >>Ok, well I got SOMETHING... >> >>First of all, I had to start using all 5 channels before any sound >>came out. At that moment, a weird distorted version of *all* >>channels started coming out of the speakers and I killed the audio >>thingies 1 by 1. The sound quality is really lousy - a kind of >>hissing crackling sound is in the songs (mostly drums/metal guitar, >>voice seems not to be affected as much). Tweaking the sysctl's had >>no effect that I could discern. >> >>I also got the following errors in dmesg: >> >>pcm0:slave:3: play interrupt timeout, channel dead >>pcm0:slave:4: play interrupt timeout, channel dead >> > > > Now try this: > > # kenv hint.pcm.0.via_dxs_disabled=1 > # kldunload snd_via8233 ; kldload snd_via8233 > # sysctl hw.snd.pcm0.vchans=5 > > I hope you're not too bothered getting back and forth. > > -- > Ariff Abdullah > MyBSD > > http://www.MyBSD.org.my (IPv6/IPv4) > http://staff.MyBSD.org.my (IPv6/IPv4) > http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 17:17:18 2005 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.org Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7224716A41F for ; Tue, 8 Nov 2005 17:17:18 +0000 (GMT) (envelope-from jylefort@FreeBSD.org) Received: from 212.68.244.220.brutele.be (212.68.244.220.brutele.be [212.68.244.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id D116243D49 for ; Tue, 8 Nov 2005 17:17:17 +0000 (GMT) (envelope-from jylefort@FreeBSD.org) Received: from jsite.lefort.net (jsite.lefort.net [192.168.1.2]) by gateway.lefort.net (Postfix) with ESMTP id 1FC9C552E; Tue, 8 Nov 2005 18:17:16 +0100 (CET) Received: from jsite.lefort.net (localhost [127.0.0.1]) by jsite.lefort.net (Postfix) with SMTP id A885BC13D; Tue, 8 Nov 2005 18:17:15 +0100 (CET) Date: Tue, 8 Nov 2005 18:17:10 +0100 From: Jean-Yves Lefort To: Ariff Abdullah Message-Id: <20051108181710.5c94a158.jylefort@FreeBSD.org> In-Reply-To: <20051108233517.5ec73d79.skywizard@MyBSD.org.my> References: <200511081520.jA8FKJZd045781@freefall.freebsd.org> <20051108233517.5ec73d79.skywizard@MyBSD.org.my> X-Mailer: Sylpheed running on FreeBSD Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Tue__8_Nov_2005_18_17_10_+0100_S4WESz+n4GAdyJRs" Cc: freebsd-multimedia@FreeBSD.org Subject: Re: kern/31398: [sound] newpcm does not play back the tail of sound 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: Tue, 08 Nov 2005 17:17:18 -0000 --Signature=_Tue__8_Nov_2005_18_17_10_+0100_S4WESz+n4GAdyJRs Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, 8 Nov 2005 23:35:17 +0800 Ariff Abdullah wrote: > On Tue, 8 Nov 2005 15:20:19 GMT > Jean-Yves Lefort wrote: > > The following reply was made to PR kern/31398; it has been noted by > > GNATS. > >=20 > > From: Jean-Yves Lefort > > To: bug-followup@FreeBSD.org,iwaki@bc.niigata-u.ac.jp > > Cc: =20 > > Subject: Re: kern/31398: [sound] newpcm does not play back the tail > > of sound Date: Tue, 8 Nov 2005 16:18:29 +0100 > >=20 > > =20 > > Same with 6.0-RELEASE. > > >=20 > How about applying patch from http://people.freebsd.org/~ariff/ It (snd_RELENG_6_0_20051108_059.diff) fixes the problem. Congratulations! --=20 Jean-Yves Lefort jylefort@FreeBSD.org http://lefort.be.eu.org/ --Signature=_Tue__8_Nov_2005_18_17_10_+0100_S4WESz+n4GAdyJRs Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDcN2byzD7UaO4AGoRAjz1AJ9RhZ9JTPJciRK/rLc6LQpuVRfnXwCZAX2j 1zJwXM5GnKXgk1uW/fWkkMM= =3dqq -----END PGP SIGNATURE----- --Signature=_Tue__8_Nov_2005_18_17_10_+0100_S4WESz+n4GAdyJRs-- From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 17:56:11 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E72216A41F for ; Tue, 8 Nov 2005 17:56:11 +0000 (GMT) (envelope-from sebster@sebster.com) Received: from smtp.profdata.nl (server.profdata.nl [213.196.2.244]) by mx1.FreeBSD.org (Postfix) with SMTP id 143A143D5F for ; Tue, 8 Nov 2005 17:56:08 +0000 (GMT) (envelope-from sebster@sebster.com) Received: (qmail 76671 invoked from network); 8 Nov 2005 17:56:08 -0000 Received: from unknown (HELO ?10.0.0.6?) (80.126.244.3) by server.profdata.nl with SMTP; 8 Nov 2005 17:56:07 -0000 Message-ID: <4370E6B6.1030002@sebster.com> Date: Tue, 08 Nov 2005 18:56:06 +0100 From: Sebastiaan van Erk User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ariff Abdullah References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> <20051108101838.0bb77c99.skywizard@MyBSD.org.my> <43707A99.9010101@sebster.com> <20051108210023.2a6fbda1.skywizard@MyBSD.org.my> <4370A28B.9020303@sebster.com> <20051108212950.0378d2a3.skywizard@MyBSD.org.my> <4370D1AB.2060201@sebster.com> <20051109004109.4f53af30.skywizard@MyBSD.org.my> In-Reply-To: <20051109004109.4f53af30.skywizard@MyBSD.org.my> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound skipping problems 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: Tue, 08 Nov 2005 17:56:11 -0000 Ok, that did the trick. Sound is perfect now. Greetings, Sebastiaan Ariff Abdullah wrote: > On Tue, 08 Nov 2005 17:26:19 +0100 > Sebastiaan van Erk wrote: > >>Ok, well I got SOMETHING... >> >>First of all, I had to start using all 5 channels before any sound >>came out. At that moment, a weird distorted version of *all* >>channels started coming out of the speakers and I killed the audio >>thingies 1 by 1. The sound quality is really lousy - a kind of >>hissing crackling sound is in the songs (mostly drums/metal guitar, >>voice seems not to be affected as much). Tweaking the sysctl's had >>no effect that I could discern. >> >>I also got the following errors in dmesg: >> >>pcm0:slave:3: play interrupt timeout, channel dead >>pcm0:slave:4: play interrupt timeout, channel dead >> > > > Now try this: > > # kenv hint.pcm.0.via_dxs_disabled=1 > # kldunload snd_via8233 ; kldload snd_via8233 > # sysctl hw.snd.pcm0.vchans=5 > > I hope you're not too bothered getting back and forth. > > -- > Ariff Abdullah > MyBSD > > http://www.MyBSD.org.my (IPv6/IPv4) > http://staff.MyBSD.org.my (IPv6/IPv4) > http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 18:06:41 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03D2E16A41F for ; Tue, 8 Nov 2005 18:06:41 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61EA643D5E for ; Tue, 8 Nov 2005 18:06:36 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 3C3DF6CC26; Wed, 9 Nov 2005 02:08:51 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 78678-10; Wed, 9 Nov 2005 02:08:49 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id AC5656CC24; Wed, 9 Nov 2005 02:08:49 +0800 (MYT) Date: Wed, 9 Nov 2005 02:06:41 +0800 From: Ariff Abdullah To: Sebastiaan van Erk Message-Id: <20051109020641.3b497677.skywizard@MyBSD.org.my> In-Reply-To: <4370E6B6.1030002@sebster.com> References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> <20051108101838.0bb77c99.skywizard@MyBSD.org.my> <43707A99.9010101@sebster.com> <20051108210023.2a6fbda1.skywizard@MyBSD.org.my> <4370A28B.9020303@sebster.com> <20051108212950.0378d2a3.skywizard@MyBSD.org.my> <4370D1AB.2060201@sebster.com> <20051109004109.4f53af30.skywizard@MyBSD.org.my> <4370E6B6.1030002@sebster.com> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound skipping problems 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: Tue, 08 Nov 2005 18:06:41 -0000 On Tue, 08 Nov 2005 18:56:06 +0100 Sebastiaan van Erk wrote: > Ok, that did the trick. > > Sound is perfect now. > Good. We aren't finish yet. How about this: # kenv -u hint.pcm.0.via_dxs_disabled # kenv hint.pcm.0.via_dxs_channels=1 # kenv hint.pcm.0.via_sgd_channels=0 # kldunload snd_via8233 ; kldload snd_via8233 # sysctl hw.snd.pcm0.vchans=5 (actually this is optional) They key is hint.pcm.0.via_dxs_channels settings. You may try with 2, 3 and 4. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 18:21:05 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37B5D16A41F for ; Tue, 8 Nov 2005 18:21:05 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id A53CB43D46 for ; Tue, 8 Nov 2005 18:21:04 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IPN006YEF55L7A0@osl1smout1.broadpark.no> for freebsd-multimedia@freebsd.org; Tue, 08 Nov 2005 19:24:41 +0100 (CET) Received: from kg-work.kg4.no ([80.203.92.30]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0IPN002KQF3YSV90@osl1sminn1.broadpark.no> for freebsd-multimedia@freebsd.org; Tue, 08 Nov 2005 19:23:58 +0100 (CET) Date: Tue, 08 Nov 2005 19:21:02 +0100 From: Torfinn Ingolfsen X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH In-reply-to: <20051109004109.4f53af30.skywizard@MyBSD.org.my> To: freebsd-multimedia@freebsd.org Message-id: <20051108192102.71f09d3a.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed version 1.0.5 (GTK+ 1.2.10; i386-portbld-freebsd5.4) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> <20051108101838.0bb77c99.skywizard@MyBSD.org.my> <43707A99.9010101@sebster.com> <20051108210023.2a6fbda1.skywizard@MyBSD.org.my> <4370A28B.9020303@sebster.com> <20051108212950.0378d2a3.skywizard@MyBSD.org.my> <4370D1AB.2060201@sebster.com> <20051109004109.4f53af30.skywizard@MyBSD.org.my> Subject: Re: Sound skipping problems 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: Tue, 08 Nov 2005 18:21:05 -0000 On Wed, 09 Nov 2005 00:41:09 +0800 Ariff Abdullah wrote: > # kenv hint.pcm.0.via_dxs_disabled=1 kenv? Hmm... 'man kenv'... hmm, interesting.... Another new thing that I have learned today. Thank you. Thanks, all of you. -- Regards, Torfinn Ingolfsen, Norway From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 19:21:28 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98ECA16A41F for ; Tue, 8 Nov 2005 19:21:28 +0000 (GMT) (envelope-from sebster@sebster.com) Received: from smtp.profdata.nl (server.profdata.nl [213.196.2.244]) by mx1.FreeBSD.org (Postfix) with SMTP id B8C3643D46 for ; Tue, 8 Nov 2005 19:21:27 +0000 (GMT) (envelope-from sebster@sebster.com) Received: (qmail 82726 invoked from network); 8 Nov 2005 19:21:26 -0000 Received: from unknown (HELO ?10.0.0.6?) (80.126.244.3) by server.profdata.nl with SMTP; 8 Nov 2005 19:21:26 -0000 Message-ID: <4370FAB6.2060606@sebster.com> Date: Tue, 08 Nov 2005 20:21:26 +0100 From: Sebastiaan van Erk User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ariff Abdullah References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> <20051108101838.0bb77c99.skywizard@MyBSD.org.my> <43707A99.9010101@sebster.com> <20051108210023.2a6fbda1.skywizard@MyBSD.org.my> <4370A28B.9020303@sebster.com> <20051108212950.0378d2a3.skywizard@MyBSD.org.my> <4370D1AB.2060201@sebster.com> <20051109004109.4f53af30.skywizard@MyBSD.org.my> <4370E6B6.1030002@sebster.com> <20051109020641.3b497677.skywizard@MyBSD.org.my> In-Reply-To: <20051109020641.3b497677.skywizard@MyBSD.org.my> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound skipping problems 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: Tue, 08 Nov 2005 19:21:28 -0000 Hi, All of the below work, i.e., with 1, 2, 3 and 4 channels. Greetings, Sebastiaan Ariff Abdullah wrote: > On Tue, 08 Nov 2005 18:56:06 +0100 > Sebastiaan van Erk wrote: > >>Ok, that did the trick. >> >>Sound is perfect now. >> > > Good. We aren't finish yet. How about this: > > # kenv -u hint.pcm.0.via_dxs_disabled > # kenv hint.pcm.0.via_dxs_channels=1 > # kenv hint.pcm.0.via_sgd_channels=0 > # kldunload snd_via8233 ; kldload snd_via8233 > # sysctl hw.snd.pcm0.vchans=5 (actually this is optional) > > They key is hint.pcm.0.via_dxs_channels settings. You may try with 2, > 3 and 4. > > -- > Ariff Abdullah > MyBSD > > http://www.MyBSD.org.my (IPv6/IPv4) > http://staff.MyBSD.org.my (IPv6/IPv4) > http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 19:54:17 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 441BD16A41F for ; Tue, 8 Nov 2005 19:54:17 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5B1543D49 for ; Tue, 8 Nov 2005 19:54:15 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 65FE16CC24; Wed, 9 Nov 2005 03:56:31 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 79398-05; Wed, 9 Nov 2005 03:56:30 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id C25E66CC22; Wed, 9 Nov 2005 03:56:29 +0800 (MYT) Date: Wed, 9 Nov 2005 03:54:21 +0800 From: Ariff Abdullah To: Sebastiaan van Erk Message-Id: <20051109035421.5ed4a261.skywizard@MyBSD.org.my> In-Reply-To: <4370FAB6.2060606@sebster.com> References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> <20051108101838.0bb77c99.skywizard@MyBSD.org.my> <43707A99.9010101@sebster.com> <20051108210023.2a6fbda1.skywizard@MyBSD.org.my> <4370A28B.9020303@sebster.com> <20051108212950.0378d2a3.skywizard@MyBSD.org.my> <4370D1AB.2060201@sebster.com> <20051109004109.4f53af30.skywizard@MyBSD.org.my> <4370E6B6.1030002@sebster.com> <20051109020641.3b497677.skywizard@MyBSD.org.my> <4370FAB6.2060606@sebster.com> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound skipping problems 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: Tue, 08 Nov 2005 19:54:17 -0000 On Tue, 08 Nov 2005 20:21:26 +0100 Sebastiaan van Erk wrote: > Hi, > > All of the below work, i.e., with 1, 2, 3 and 4 channels. > Now that really interesting. You pretty much sure that hint.pcm.0.via_dxs_disabled is unset (or basically = 0), right? Lets do some probability tests: Assuming that:- 1) kenv hint.pcm.0.via_dxs_disabled is unset, or forcefully set as 0 (use kenv -u to nuke it) 2) kenv hint.pcm.0.via_dxs_channels with possible values of 0 - 4 3) kenv hint.pcm.0.via_sgd_channels with possible values of 0 - 1 4) sysctl hw.snd.pcm0.vchans=0 5) sysctl hw.snd.maxautovchans=0 5) sysctl hw.snd.slave_enabled=1 Run several tests, each test with different combination of #2 and #3. Tell me which combination cause the problem, along with dmesg | grep pcm0 I hope this will be our last test. Thanks for your cooperation :) -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 8 21:20:09 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB96016A41F; Tue, 8 Nov 2005 21:20:09 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90C6043D45; Tue, 8 Nov 2005 21:20:09 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jA8LK9aZ099987; Tue, 8 Nov 2005 21:20:09 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jA8LK9jV099983; Tue, 8 Nov 2005 21:20:09 GMT (envelope-from linimon) Date: Tue, 8 Nov 2005 21:20:09 GMT From: Mark Linimon Message-Id: <200511082120.jA8LK9jV099983@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/88687: [snd_ich] snd_ich locks up machine 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: Tue, 08 Nov 2005 21:20:10 -0000 Old Synopsis: snd_ich locks up machine New Synopsis: [snd_ich] snd_ich locks up machine Responsible-Changed-From-To: freebsd-bugs->freebsd-multimedia Responsible-Changed-By: linimon Responsible-Changed-When: Tue Nov 8 21:19:28 GMT 2005 Responsible-Changed-Why: Annotate and assign. http://www.freebsd.org/cgi/query-pr.cgi?pr=88687 From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 9 04:07:36 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDA7316A41F for ; Wed, 9 Nov 2005 04:07:36 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1C6443D48 for ; Wed, 9 Nov 2005 04:07:35 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 0C6936CC24; Wed, 9 Nov 2005 12:09:50 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 85695-05; Wed, 9 Nov 2005 12:09:48 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 38C086CC22; Wed, 9 Nov 2005 12:09:47 +0800 (MYT) Date: Wed, 9 Nov 2005 12:07:39 +0800 From: Ariff Abdullah To: Sebastiaan van Erk Message-Id: <20051109120739.49493ed8.skywizard@MyBSD.org.my> In-Reply-To: <20051109035421.5ed4a261.skywizard@MyBSD.org.my> References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> <20051108101838.0bb77c99.skywizard@MyBSD.org.my> <43707A99.9010101@sebster.com> <20051108210023.2a6fbda1.skywizard@MyBSD.org.my> <4370A28B.9020303@sebster.com> <20051108212950.0378d2a3.skywizard@MyBSD.org.my> <4370D1AB.2060201@sebster.com> <20051109004109.4f53af30.skywizard@MyBSD.org.my> <4370E6B6.1030002@sebster.com> <20051109020641.3b497677.skywizard@MyBSD.org.my> <4370FAB6.2060606@sebster.com> <20051109035421.5ed4a261.skywizard@MyBSD.org.my> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound skipping problems 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: Wed, 09 Nov 2005 04:07:37 -0000 On Wed, 9 Nov 2005 03:54:21 +0800 Ariff Abdullah wrote: > > Now that really interesting. You pretty much sure that > hint.pcm.0.via_dxs_disabled is unset (or basically = 0), right? > > Lets do some probability tests: > > Assuming that:- > 1) kenv hint.pcm.0.via_dxs_disabled is unset, or forcefully set as > 0 > (use kenv -u to nuke it) > 2) kenv hint.pcm.0.via_dxs_channels with possible values of 0 - 4 > 3) kenv hint.pcm.0.via_sgd_channels with possible values of 0 - 1 > 4) sysctl hw.snd.pcm0.vchans=0 > 5) sysctl hw.snd.maxautovchans=0 > 5) sysctl hw.snd.slave_enabled=1 > > Run several tests, each test with different combination of #2 and > #3. > > Tell me which combination cause the problem, along with > dmesg | grep pcm0 > > I hope this will be our last test. Thanks for your cooperation :) > I lied. Apparently I found few logic errors within VIA driver itself. Before you continue, would you replace your /usr/src/sys/dev/sound/pci/via8233.c with this one: http://people.freebsd.org/~ariff/test/via8233.c Then.. # kenv -u hint.pcm.0.via_dxs_disables # kenv -u hint.pcm.0.via_dxs_channels # kenv -u hint.pcm.0.via_sgd_channels # kldload snd_via8233 ; kldload snd_via8233 # sysctl hw.snd.pcm0.vchans=0 # sysctl hw.snd.maxautovchans=0 # sysctl hw.snd.slave_enabled=1 -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 9 04:11:26 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6AB516A41F for ; Wed, 9 Nov 2005 04:11:26 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E3D543D46 for ; Wed, 9 Nov 2005 04:11:25 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 6651E6CC24; Wed, 9 Nov 2005 12:13:43 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 86033-01; Wed, 9 Nov 2005 12:13:42 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id BD0D26CC22; Wed, 9 Nov 2005 12:13:41 +0800 (MYT) Date: Wed, 9 Nov 2005 12:11:34 +0800 From: Ariff Abdullah To: Sebastiaan van Erk Message-Id: <20051109121134.5fa431f2.skywizard@MyBSD.org.my> In-Reply-To: <20051109120739.49493ed8.skywizard@MyBSD.org.my> References: <436DEB56.4050505@sebster.com> <20051106210447.2145e551.skywizard@MyBSD.org.my> <436F3A36.3070608@sebster.com> <20051108101838.0bb77c99.skywizard@MyBSD.org.my> <43707A99.9010101@sebster.com> <20051108210023.2a6fbda1.skywizard@MyBSD.org.my> <4370A28B.9020303@sebster.com> <20051108212950.0378d2a3.skywizard@MyBSD.org.my> <4370D1AB.2060201@sebster.com> <20051109004109.4f53af30.skywizard@MyBSD.org.my> <4370E6B6.1030002@sebster.com> <20051109020641.3b497677.skywizard@MyBSD.org.my> <4370FAB6.2060606@sebster.com> <20051109035421.5ed4a261.skywizard@MyBSD.org.my> <20051109120739.49493ed8.skywizard@MyBSD.org.my> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound skipping problems 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: Wed, 09 Nov 2005 04:11:26 -0000 On Wed, 9 Nov 2005 12:07:39 +0800 Ariff Abdullah wrote: > > # kenv -u hint.pcm.0.via_dxs_disables > # kenv -u hint.pcm.0.via_dxs_channels > # kenv -u hint.pcm.0.via_sgd_channels > # kldload snd_via8233 ; kldload snd_via8233 ^^^^^^^ (should be kldunload, silly typo) > # sysctl hw.snd.pcm0.vchans=0 > # sysctl hw.snd.maxautovchans=0 > # sysctl hw.snd.slave_enabled=1 > -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 9 05:27:05 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5820D16A41F for ; Wed, 9 Nov 2005 05:27:05 +0000 (GMT) (envelope-from dgreid@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C2A643D53 for ; Wed, 9 Nov 2005 05:27:03 +0000 (GMT) (envelope-from dgreid@gmail.com) Received: by wproxy.gmail.com with SMTP id i5so282498wra for ; Tue, 08 Nov 2005 21:27:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=ct+m9KRTZ3pC0Svu1lXb+n3axhuQtEv7Zc54qQeMRoXYFY/q4pc5z4N6UZUVdC/nWP67xBznMeUlX+AxNg+IDZSDCqPQpjwmBQxaRlp6A/Q+LJUG3grF2tf7dydZVJbFOEso9AEUhanDV4gQiIU8qsK/yXO4UJaEs/hZ8BA5SwI= Received: by 10.54.86.19 with SMTP id j19mr253802wrb; Tue, 08 Nov 2005 21:27:03 -0800 (PST) Received: by 10.54.118.17 with HTTP; Tue, 8 Nov 2005 21:27:03 -0800 (PST) Message-ID: Date: Wed, 9 Nov 2005 05:27:03 +0000 From: Dylan Reid To: freebsd-multimedia@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: PVR250 MCE with cxm driver under 6.0 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: Wed, 09 Nov 2005 05:27:05 -0000 I have been trying to set up mythtv on FreeBSD 6.0 with an amd64 system. First thing was to get the capture card to work. I first applied patches fo= r ports/85433 and ports/87518. This got me compiling. In order to get the module to load, I had to ignore the missing IR receiver. Next I wanted to use composite input, so I had to change which mode the saa7115 was configured to when the composite input was selected. I could no= t find a good way to determine dynamically if the card is an MCE or not. I di= d not look into this too hard however. So i just went with the easiest possible change. I did notice the Linux ivtv driver does not know the difference. Below are the patches I made in case anyone else wants to use the cxm drive= r with a 250 MCE. -Dylan --- cxm.c.orig Wed Nov 9 04:42:14 2005 +++ cxm.c Wed Nov 9 04:51:56 2005 @@ -1762,8 +1762,10 @@ */ if (cxm_ir_init(sc) < 0) { device_printf(dev, "could not initialize IR remote\n"); +#ifndef PVR250_MCE error =3D ENXIO; goto fail; +#endif } sc->dec_mbx =3D -1; --- cxm.h.orig Wed Nov 9 04:59:32 2005 +++ cxm.h Wed Nov 9 05:00:13 2005 @@ -41,6 +41,8 @@ #define NUM_ELEMENTS(array) (sizeof(array) / sizeof(*array)) +#define PVR250_MCE // define for media center edition + /* * For simplicity several large buffers allocate during * driver attachment which normally occurs early on --- cxm_video.c.orig Wed Nov 9 04:44:24 2005 +++ cxm_video.c Wed Nov 9 05:21:44 2005 @@ -147,6 +147,21 @@ } }; +#ifdef PVR250_MCE +static struct cxm_saa7115_command +saa7115_select_line_in_composite =3D { + 3, + { + /* Amp plus anti-alias filter, CVBS from AI24 */ + { 0x02, 1, { 0xc5 } }, + /* Adaptive luminance comb filter */ + { 0x09, 1, { 0x40 } }, + + /* Enable AD2, audio clock, scaler, decoder */ + { 0x88, 1, { 0xb0 } } + } +}; +#else static struct cxm_saa7115_command saa7115_select_line_in_composite =3D { 3, @@ -160,6 +175,7 @@ { 0x88, 1, { 0x70 } } } }; +#endif static struct cxm_saa7115_command saa7115_select_line_in_svideo =3D { From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 9 09:48:42 2005 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.org Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D1D916A41F; Wed, 9 Nov 2005 09:48:42 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D54943D45; Wed, 9 Nov 2005 09:48:40 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 014B86CC26; Wed, 9 Nov 2005 17:50:59 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 87313-04; Wed, 9 Nov 2005 17:50:57 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 57C876CC24; Wed, 9 Nov 2005 17:50:57 +0800 (MYT) Date: Wed, 9 Nov 2005 17:48:43 +0800 From: Ariff Abdullah To: Jean-Yves Lefort Message-Id: <20051109174843.7e97f8d7.skywizard@MyBSD.org.my> In-Reply-To: <20051108181710.5c94a158.jylefort@FreeBSD.org> References: <200511081520.jA8FKJZd045781@freefall.freebsd.org> <20051108233517.5ec73d79.skywizard@MyBSD.org.my> <20051108181710.5c94a158.jylefort@FreeBSD.org> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@FreeBSD.org Subject: Re: kern/31398: [sound] newpcm does not play back the tail of sound 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: Wed, 09 Nov 2005 09:48:42 -0000 On Tue, 8 Nov 2005 18:17:10 +0100 Jean-Yves Lefort wrote: > On Tue, 8 Nov 2005 23:35:17 +0800 > Ariff Abdullah wrote: > > > On Tue, 8 Nov 2005 15:20:19 GMT > > Jean-Yves Lefort wrote: > > > The following reply was made to PR kern/31398; it has been noted > > > by GNATS. > > > > > > From: Jean-Yves Lefort > > > To: bug-followup@FreeBSD.org,iwaki@bc.niigata-u.ac.jp > > > Cc: > > > Subject: Re: kern/31398: [sound] newpcm does not play back the > > > tail of sound Date: Tue, 8 Nov 2005 16:18:29 +0100 > > > > > > > > > Same with 6.0-RELEASE. > > > > > > > How about applying patch from http://people.freebsd.org/~ariff/ > > It (snd_RELENG_6_0_20051108_059.diff) fixes the > problem. Congratulations! > Until all these fixes MFCed, everybody with simmilar problem should apply the patch manually. For now.. just get use to it :) -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 9 12:02:53 2005 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.org Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4393216A41F for ; Wed, 9 Nov 2005 12:02:53 +0000 (GMT) (envelope-from jylefort@FreeBSD.org) Received: from 212.68.244.220.brutele.be (212.68.244.220.brutele.be [212.68.244.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4936943D70 for ; Wed, 9 Nov 2005 12:02:47 +0000 (GMT) (envelope-from jylefort@FreeBSD.org) Received: from jsite.lefort.net (jsite.lefort.net [192.168.1.2]) by gateway.lefort.net (Postfix) with ESMTP id 766D95541; Wed, 9 Nov 2005 13:02:46 +0100 (CET) Received: from jsite.lefort.net (localhost [127.0.0.1]) by jsite.lefort.net (Postfix) with SMTP id 148F5C13A; Wed, 9 Nov 2005 13:02:46 +0100 (CET) Date: Wed, 9 Nov 2005 13:02:45 +0100 From: Jean-Yves Lefort To: Ariff Abdullah Message-Id: <20051109130245.3e807703.jylefort@FreeBSD.org> In-Reply-To: <20051109174843.7e97f8d7.skywizard@MyBSD.org.my> References: <200511081520.jA8FKJZd045781@freefall.freebsd.org> <20051108233517.5ec73d79.skywizard@MyBSD.org.my> <20051108181710.5c94a158.jylefort@FreeBSD.org> <20051109174843.7e97f8d7.skywizard@MyBSD.org.my> X-Mailer: Sylpheed running on FreeBSD Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Wed__9_Nov_2005_13_02_45_+0100_064WVWM.B4lrPv10" Cc: freebsd-multimedia@FreeBSD.org Subject: Re: kern/31398: [sound] newpcm does not play back the tail of sound 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: Wed, 09 Nov 2005 12:02:53 -0000 --Signature=_Wed__9_Nov_2005_13_02_45_+0100_064WVWM.B4lrPv10 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 9 Nov 2005 17:48:43 +0800 Ariff Abdullah wrote: > On Tue, 8 Nov 2005 18:17:10 +0100 > Jean-Yves Lefort wrote: > > On Tue, 8 Nov 2005 23:35:17 +0800 > > Ariff Abdullah wrote: > >=20 > > > On Tue, 8 Nov 2005 15:20:19 GMT > > > Jean-Yves Lefort wrote: > > > > The following reply was made to PR kern/31398; it has been noted > > > > by GNATS. > > > >=20 > > > > From: Jean-Yves Lefort > > > > To: bug-followup@FreeBSD.org,iwaki@bc.niigata-u.ac.jp > > > > Cc: =20 > > > > Subject: Re: kern/31398: [sound] newpcm does not play back the > > > > tail of sound Date: Tue, 8 Nov 2005 16:18:29 +0100 > > > >=20 > > > > =20 > > > > Same with 6.0-RELEASE. > > > > > > >=20 > > > How about applying patch from http://people.freebsd.org/~ariff/ > >=20 > > It (snd_RELENG_6_0_20051108_059.diff) fixes the > > problem. Congratulations! > >=20 >=20 > Until all these fixes MFCed, everybody with simmilar problem > should apply the patch manually. >=20 > For now.. just get use to it :) I also like the 2nd DAC support for es137x cards. Good job. Do you think you will be able to MFC your mega-patch for 6.1? --=20 Jean-Yves Lefort jylefort@FreeBSD.org http://lefort.be.eu.org/ --Signature=_Wed__9_Nov_2005_13_02_45_+0100_064WVWM.B4lrPv10 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDceVlyzD7UaO4AGoRAlw/AJwIuOQjXO9gnuOnFwltH29UDvbHywCeOSs/ Si6diwj6V9AtAkpxxcDRX8w= =+uTO -----END PGP SIGNATURE----- --Signature=_Wed__9_Nov_2005_13_02_45_+0100_064WVWM.B4lrPv10-- From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 9 12:45:12 2005 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.org Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 609DE16A41F; Wed, 9 Nov 2005 12:45:12 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D08743D53; Wed, 9 Nov 2005 12:45:10 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 3910D6CC29; Wed, 9 Nov 2005 20:47:30 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 87927-09; Wed, 9 Nov 2005 20:47:28 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 3296D6CC24; Wed, 9 Nov 2005 20:47:27 +0800 (MYT) Date: Wed, 9 Nov 2005 20:45:13 +0800 From: Ariff Abdullah To: Jean-Yves Lefort Message-Id: <20051109204513.54f482d3.skywizard@MyBSD.org.my> In-Reply-To: <20051109130245.3e807703.jylefort@FreeBSD.org> References: <200511081520.jA8FKJZd045781@freefall.freebsd.org> <20051108233517.5ec73d79.skywizard@MyBSD.org.my> <20051108181710.5c94a158.jylefort@FreeBSD.org> <20051109174843.7e97f8d7.skywizard@MyBSD.org.my> <20051109130245.3e807703.jylefort@FreeBSD.org> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@FreeBSD.org Subject: Re: kern/31398: [sound] newpcm does not play back the tail of sound 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: Wed, 09 Nov 2005 12:45:12 -0000 On Wed, 9 Nov 2005 13:02:45 +0100 Jean-Yves Lefort wrote: > > I also like the 2nd DAC support for es137x cards. Good job. Do you > think you will be able to MFC your mega-patch for 6.1? > Hopefully before 6.1 all dust will be settled. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 9 13:34:39 2005 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.org Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD55116A41F for ; Wed, 9 Nov 2005 13:34:39 +0000 (GMT) (envelope-from jylefort@FreeBSD.org) Received: from 212.68.244.220.brutele.be (212.68.244.220.brutele.be [212.68.244.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14E7543D45 for ; Wed, 9 Nov 2005 13:34:39 +0000 (GMT) (envelope-from jylefort@FreeBSD.org) Received: from jsite.lefort.net (jsite.lefort.net [192.168.1.2]) by gateway.lefort.net (Postfix) with ESMTP id EEA4F5530; Wed, 9 Nov 2005 14:34:36 +0100 (CET) Received: from jsite.lefort.net (localhost [127.0.0.1]) by jsite.lefort.net (Postfix) with SMTP id 88895C13A; Wed, 9 Nov 2005 14:34:36 +0100 (CET) Date: Wed, 9 Nov 2005 14:34:35 +0100 From: Jean-Yves Lefort To: Ariff Abdullah Message-Id: <20051109143435.7ee172cb.jylefort@FreeBSD.org> In-Reply-To: <20051109204513.54f482d3.skywizard@MyBSD.org.my> References: <200511081520.jA8FKJZd045781@freefall.freebsd.org> <20051108233517.5ec73d79.skywizard@MyBSD.org.my> <20051108181710.5c94a158.jylefort@FreeBSD.org> <20051109174843.7e97f8d7.skywizard@MyBSD.org.my> <20051109130245.3e807703.jylefort@FreeBSD.org> <20051109204513.54f482d3.skywizard@MyBSD.org.my> X-Mailer: Sylpheed running on FreeBSD Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Wed__9_Nov_2005_14_34_36_+0100_f5jwmRpZ4yErazx0" Cc: freebsd-multimedia@FreeBSD.org Subject: Re: kern/31398: [sound] newpcm does not play back the tail of sound 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: Wed, 09 Nov 2005 13:34:40 -0000 --Signature=_Wed__9_Nov_2005_14_34_36_+0100_f5jwmRpZ4yErazx0 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 9 Nov 2005 20:45:13 +0800 Ariff Abdullah wrote: > On Wed, 9 Nov 2005 13:02:45 +0100 > Jean-Yves Lefort wrote: > >=20 > > I also like the 2nd DAC support for es137x cards. Good job. Do you > > think you will be able to MFC your mega-patch for 6.1? > >=20 > Hopefully before 6.1 all dust will be settled. Excellent. While here, could you also incorporate kern/40132 (and kern/20297 can be closed)? Without your patch: --- sys/dev/sound/pci/es137x.c.orig Tue May 10 00:55:52 2005 +++ sys/dev/sound/pci/es137x.c Wed Oct 5 21:21:42 2005 @@ -474,7 +474,7 @@ static int es1370_init(struct es_info *es) { - es->ctrl =3D CTRL_CDC_EN | CTRL_SERR_DIS | + es->ctrl =3D CTRL_CDC_EN | CTRL_JYSTK_EN | CTRL_SERR_DIS | (DAC2_SRTODIV(DSP_DEFAULT_SPEED) << CTRL_SH_PCLKDIV); bus_space_write_4(es->st, es->sh, ES1370_REG_CONTROL, es->ctrl); =20 @@ -502,7 +502,7 @@ if (debug > 0) printf("es_init\n"); =20 es->num =3D 0; - es->ctrl =3D 0; + es->ctrl =3D CTRL_JYSTK_EN;=09 es->sctrl =3D 0; /* initialize the chips */ if ((devid =3D=3D ES1371_PCI_ID && revid =3D=3D ES1371REV_ES1373_8) || @@ -521,9 +521,10 @@ bus_space_write_4(es->st, es->sh, ES1370_REG_SERIAL_CONTROL, es->sctrl); bus_space_write_4(es->st, es->sh, ES1371_REG_LEGACY, 0); /* AC'97 warm reset to start the bitclk */ - bus_space_write_4(es->st, es->sh, ES1371_REG_LEGACY, es->ctrl | ES1371_SY= NC_RES); + bus_space_write_4(es->st, es->sh, ES1370_REG_CONTROL, es->ctrl); /*ad= ded CTRL_JYSTK_EN*/ + bus_space_write_4(es->st, es->sh, ES1371_REG_LEGACY,ES1371_SYNC_RES); DELAY(2000); - bus_space_write_4(es->st, es->sh, ES1370_REG_SERIAL_CONTROL, es->ctrl); + bus_space_write_4(es->st, es->sh, ES1370_REG_SERIAL_CONTROL, es->sctrl); /* Init the sample rate converter */ bus_space_write_4(es->st, es->sh, ES1371_REG_SMPRATE, ES1371_DIS_SRC); for (idx =3D 0; idx < 0x80; idx++) Adapted to your patch: --- sys/dev/sound/pci/es137x.c.orig Tue Nov 8 16:56:09 2005 +++ sys/dev/sound/pci/es137x.c Tue Nov 8 17:04:24 2005 @@ -771,7 +771,7 @@ } else { es->escfg =3D ES_SET_SINGLE_PCM_MIX(es->escfg, 0); } - es->ctrl =3D CTRL_CDC_EN | CTRL_SERR_DIS | + es->ctrl =3D CTRL_CDC_EN | CTRL_JYSTK_EN | CTRL_SERR_DIS | (DAC2_SRTODIV(fixed_rate) << CTRL_SH_PCLKDIV); es->ctrl |=3D 3 << CTRL_SH_WTSRSEL; es_wr(es, ES1370_REG_CONTROL, es->ctrl, 4); @@ -801,7 +801,7 @@ /* This is NOT ES1370 */ es->escfg =3D ES_SET_IS_ES1370(es->escfg, 0); es->num =3D 0; - es->ctrl =3D 0; + es->ctrl =3D CTRL_JYSTK_EN;=09 es->sctrl =3D 0; cssr =3D 0; devid =3D pci_get_devid(es->dev); @@ -824,9 +824,10 @@ DELAY(20000); } /* AC'97 warm reset to start the bitclk */ - es_wr(es, ES1370_REG_CONTROL, es->ctrl | ES1371_SYNC_RES, 4); - DELAY(2000); es_wr(es, ES1370_REG_CONTROL, es->ctrl, 4); + es_wr(es, ES1371_REG_LEGACY, ES1371_SYNC_RES, 4); + DELAY(2000); + es_wr(es, ES1370_REG_CONTROL, es->sctrl, 4); es1371_wait_src_ready(es); /* Init the sample rate converter */ es_wr(es, ES1371_REG_SMPRATE, ES1371_DIS_SRC, 4); Both versions work fine for me, my sound card: pcm0@pci0:9:0: class=3D0x040100 card=3D0x13711274 chip=3D0x13711274 rev=3D= 0x08 hdr=3D0x00 vendor =3D 'Creative (Was: Ensoniq)' device =3D 'ES1371, ES1373 AudioPCI' class =3D multimedia subclass =3D audio Thanks --=20 Jean-Yves Lefort jylefort@FreeBSD.org http://lefort.be.eu.org/ --Signature=_Wed__9_Nov_2005_14_34_36_+0100_f5jwmRpZ4yErazx0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDcfrsyzD7UaO4AGoRApxkAJ43q7mVqmGT8QPvTGQUmpMWKjERhQCeP9wc fBl4UEYTOXYfVbi4VCNGxt8= =Wk2m -----END PGP SIGNATURE----- --Signature=_Wed__9_Nov_2005_14_34_36_+0100_f5jwmRpZ4yErazx0-- From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 9 13:47:05 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A2E916A420 for ; Wed, 9 Nov 2005 13:47:05 +0000 (GMT) (envelope-from CQG00620@nifty.ne.jp) Received: from mail.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA0B743D49 for ; Wed, 9 Nov 2005 13:47:02 +0000 (GMT) (envelope-from CQG00620@nifty.ne.jp) Received: from asahi-net.jp (h204195.ppp.asahi-net.or.jp [61.114.204.195]) by mail.asahi-net.or.jp (Postfix) with ESMTP id EF5FF25916 for ; Wed, 9 Nov 2005 22:47:00 +0900 (JST) Date: Wed, 09 Nov 2005 22:48:27 +0900 From: Watanabe Kazuhiro To: freebsd-multimedia In-Reply-To: <20051109002013.4dcf3c0d.skywizard@MyBSD.org.my> <20051108165955.ge235sro0848csok@netchild.homeip.net> References: <20051109002013.4dcf3c0d.skywizard@MyBSD.org.my> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/20.7 (i386--freebsd) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Message-Id: <20051109134700.EF5FF25916@mail.asahi-net.or.jp> Subject: Re: [patch] stereo input is mixed to monaural via SoundBlaster16 recording mixer 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: Wed, 09 Nov 2005 13:47:05 -0000 At Tue, 08 Nov 2005 16:59:55 +0100, Alexander Leidinger wrote: > Watanabe Kazuhiro wrote: >=20 > > if (src & SOUND_MASK_MIC) > > - recdev |=3D 0x01; /* mono mic */ > > + recdev_l |=3D 0x01; /* mono mic */ > > + recdev_r |=3D 0x01; >=20 > If I understand this correctly, this feeds the monaural signal to the left > and the right channel. When we have a mono input, do we really want to ha= ve > the same input doubled? I don't do any recording, so I don't know how most > programs handle this, but IMHO it's a waste of resources and if the source > is only able to deliver a mono-signal, the recording should only be possi= ble > in mono. The function sb16mix_setrecsrc() only manipulates the analog recording mixer. So if we assign a mono input to the left and right channel, it doesn't force for us to record a two-channel digitized output. To decide a sampling format(stereo/mono, sample rate, bit length, and so on) is not the mixer's role but DSP. At Wed, 9 Nov 2005 00:20:13 +0800, Ariff Abdullah wrote: > Watanabe-san, I would suggest you to put braces along with the > conditional statement so the code become much easier tu understand. > Without it, it seems that recdev_r will always be set even if the > condition is false. Oops... your indication is right and I'm wrong. The correct patch is below. However, this patch is not perfect. After applied the patch, if I try to record an monaural output (e.g. "wavrec -M mono.wav"), only record the left channel sound. =46rom the "Hardware Programming Reference" pp74: "When recording in mono, note that samples will only be taken from the left input mixer. So, if a mono recording of a stereo source is desired, the switchs controlled by registers 0x3D and 0x3E must be manipulated to enable both channels of a stereo source to be mixed together first into the left input mixer before being sampled." I'm just going to consider the problem. Perhaps it's difficult for me to solve the problem... --- sys/dev/sound/isa/sb16.c.orig Tue Nov 8 22:01:22 2005 +++ sys/dev/sound/isa/sb16.c Wed Nov 9 12:22:29 2005 @@ -370,23 +370,32 @@ static int sb16mix_setrecsrc(struct snd_mixer *m, u_int32_t src) { struct sb_info *sb =3D mix_getdevinfo(m); - u_char recdev; + u_char recdev_l, recdev_r; =20 - recdev =3D 0; - if (src & SOUND_MASK_MIC) - recdev |=3D 0x01; /* mono mic */ + recdev_l =3D 0; + recdev_r =3D 0; + if (src & SOUND_MASK_MIC) { + recdev_l |=3D 0x01; /* mono mic */ + recdev_r |=3D 0x01; + } =20 - if (src & SOUND_MASK_CD) - recdev |=3D 0x06; /* l+r cd */ + if (src & SOUND_MASK_CD) { + recdev_l |=3D 0x04; /* l cd */ + recdev_r |=3D 0x02; /* r cd */ + } =20 - if (src & SOUND_MASK_LINE) - recdev |=3D 0x18; /* l+r line */ + if (src & SOUND_MASK_LINE) { + recdev_l |=3D 0x10; /* l line */ + recdev_r |=3D 0x08; /* r line */ + } =20 - if (src & SOUND_MASK_SYNTH) - recdev |=3D 0x60; /* l+r midi */ + if (src & SOUND_MASK_SYNTH) { + recdev_l |=3D 0x40; /* l midi */ + recdev_r |=3D 0x20; /* r midi */ + } =20 - sb_setmixer(sb, SB16_IMASK_L, recdev); - sb_setmixer(sb, SB16_IMASK_R, recdev); + sb_setmixer(sb, SB16_IMASK_L, recdev_l); + sb_setmixer(sb, SB16_IMASK_R, recdev_r); =20 /* Switch on/off FM tuner source */ if (src & SOUND_MASK_LINE1) @@ -849,7 +858,7 @@ sb16_attach(device_t dev) else status2[0] =3D '\0'; =20 - snprintf(status, SND_STATUSLEN, "at io 0x%lx irq %ld drq %ld%s bufsz = %ud %s", + snprintf(status, SND_STATUSLEN, "at io 0x%lx irq %ld drq %ld%s bufsz = %u %s", rman_get_start(sb->io_base), rman_get_start(sb->irq), rman_get_start(sb->drq1), status2, sb->bufsize, PCM_KLDSTRING(snd_sb16)); --- Watanabe Kazuhiro (CQG00620@nifty.ne.jp) From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 9 16:07:36 2005 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.org Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9364A16A41F; Wed, 9 Nov 2005 16:07:36 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DD1843D48; Wed, 9 Nov 2005 16:07:35 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 447B86CC26; Thu, 10 Nov 2005 00:09:54 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 95908-07; Thu, 10 Nov 2005 00:09:52 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 873236CC23; Thu, 10 Nov 2005 00:09:51 +0800 (MYT) Date: Thu, 10 Nov 2005 00:07:38 +0800 From: Ariff Abdullah To: Jean-Yves Lefort Message-Id: <20051110000738.00a209a6.skywizard@MyBSD.org.my> In-Reply-To: <20051109143435.7ee172cb.jylefort@FreeBSD.org> References: <200511081520.jA8FKJZd045781@freefall.freebsd.org> <20051108233517.5ec73d79.skywizard@MyBSD.org.my> <20051108181710.5c94a158.jylefort@FreeBSD.org> <20051109174843.7e97f8d7.skywizard@MyBSD.org.my> <20051109130245.3e807703.jylefort@FreeBSD.org> <20051109204513.54f482d3.skywizard@MyBSD.org.my> <20051109143435.7ee172cb.jylefort@FreeBSD.org> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@FreeBSD.org Subject: Re: kern/31398: [sound] newpcm does not play back the tail of sound 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: Wed, 09 Nov 2005 16:07:36 -0000 On Wed, 9 Nov 2005 14:34:35 +0100 Jean-Yves Lefort wrote: > > Excellent. While here, could you also incorporate kern/40132 (and > kern/20297 can be closed)? > [ .. ] > > Adapted to your patch: > > --- sys/dev/sound/pci/es137x.c.orig Tue Nov 8 16:56:09 2005 > +++ sys/dev/sound/pci/es137x.c Tue Nov 8 17:04:24 2005 > @@ -771,7 +771,7 @@ > } else { > es->escfg = ES_SET_SINGLE_PCM_MIX(es->escfg, 0); > } > - es->ctrl = CTRL_CDC_EN | CTRL_SERR_DIS | > + es->ctrl = CTRL_CDC_EN | CTRL_JYSTK_EN | CTRL_SERR_DIS | > (DAC2_SRTODIV(fixed_rate) << CTRL_SH_PCLKDIV); > es->ctrl |= 3 << CTRL_SH_WTSRSEL; > es_wr(es, ES1370_REG_CONTROL, es->ctrl, 4); > @@ -801,7 +801,7 @@ > /* This is NOT ES1370 */ > es->escfg = ES_SET_IS_ES1370(es->escfg, 0); > es->num = 0; > - es->ctrl = 0; > + es->ctrl = CTRL_JYSTK_EN; > es->sctrl = 0; > cssr = 0; > devid = pci_get_devid(es->dev); > @@ -824,9 +824,10 @@ > DELAY(20000); > } > /* AC'97 warm reset to start the bitclk */ > - es_wr(es, ES1370_REG_CONTROL, es->ctrl | ES1371_SYNC_RES, 4); > - DELAY(2000); > es_wr(es, ES1370_REG_CONTROL, es->ctrl, 4); > + es_wr(es, ES1371_REG_LEGACY, ES1371_SYNC_RES, 4); > + DELAY(2000); > + es_wr(es, ES1370_REG_CONTROL, es->sctrl, 4); > es1371_wait_src_ready(es); > /* Init the sample rate converter */ > es_wr(es, ES1371_REG_SMPRATE, ES1371_DIS_SRC, 4); > > Both versions work fine for me, my sound card: > Looks good. I'll incorporate it. Thanks. > pcm0@pci0:9:0: class=0x040100 card=0x13711274 chip=0x13711274 > rev=0x08 hdr=0x00 vendor = 'Creative (Was: Ensoniq)' > device = 'ES1371, ES1373 AudioPCI' > class = multimedia > subclass = audio > > Thanks > -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 9 16:10:37 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9777916A41F for ; Wed, 9 Nov 2005 16:10:37 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 975A143D48 for ; Wed, 9 Nov 2005 16:10:35 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 73BCA6CC26; Thu, 10 Nov 2005 00:12:56 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 96039-02; Thu, 10 Nov 2005 00:12:55 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id C0CD26CC23; Thu, 10 Nov 2005 00:12:54 +0800 (MYT) Date: Thu, 10 Nov 2005 00:10:41 +0800 From: Ariff Abdullah To: Watanabe Kazuhiro Message-Id: <20051110001041.7bc11d79.skywizard@MyBSD.org.my> In-Reply-To: <20051109134700.EF5FF25916@mail.asahi-net.or.jp> References: <20051109002013.4dcf3c0d.skywizard@MyBSD.org.my> <20051109134700.EF5FF25916@mail.asahi-net.or.jp> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: [patch] stereo input is mixed to monaural via SoundBlaster16 recording mixer 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: Wed, 09 Nov 2005 16:10:37 -0000 On Wed, 09 Nov 2005 22:48:27 +0900 Watanabe Kazuhiro wrote: > At Tue, 08 Nov 2005 16:59:55 +0100, > Alexander Leidinger wrote: > > Watanabe Kazuhiro wrote: > > > > > if (src & SOUND_MASK_MIC) > > > - recdev |= 0x01; /* mono mic */ > > > + recdev_l |= 0x01; /* mono mic */ > > > + recdev_r |= 0x01; > > > > If I understand this correctly, this feeds the monaural signal to > > the left and the right channel. When we have a mono input, do we > > really want to have the same input doubled? I don't do any > > recording, so I don't know how most programs handle this, but IMHO > > it's a waste of resources and if the source is only able to > > deliver a mono-signal, the recording should only be possible in > > mono. > > The function sb16mix_setrecsrc() only manipulates the analog > recording mixer. So if we assign a mono input to the left and right > channel, it doesn't force for us to record a two-channel digitized > output. > > To decide a sampling format(stereo/mono, sample rate, bit length, > and so on) is not the mixer's role but DSP. > If this is about sample processing (mix, filter, rate, bit, mono->stereo, stereo->mono, etc), yes, you're correct. But mixer has its own purpose to route the pre(input) / post(output) processing (specifically stereo / mono), whether to discard or to allow any of left / right. > At Wed, 9 Nov 2005 00:20:13 +0800, > Ariff Abdullah wrote: > > Watanabe-san, I would suggest you to put braces along with the > > conditional statement so the code become much easier tu > > understand. Without it, it seems that recdev_r will always be set > > even if the condition is false. > > Oops... your indication is right and I'm wrong. The correct patch is > below. > > However, this patch is not perfect. After applied the patch, if I > try to record an monaural output (e.g. "wavrec -M mono.wav"), only > record the left channel sound. [ see below ] > > From the "Hardware Programming Reference" pp74: > "When recording in mono, note that samples will only be taken > from the left input mixer. > > So, if a mono recording of a stereo source is desired, the > switchs controlled by registers 0x3D and 0x3E must be > manipulated to enable both channels of a stereo source to be > mixed together first into the left input mixer before being > sampled." > > I'm just going to consider the problem. Perhaps it's difficult for > me to solve the problem... > Unfortunately, we're leaving in a *real* world. In a *perfect* world, we can assume that mono should be something like (left+right)/2, that is, mix all available channels and normalize it. But it has been decided (by most standards) that all channels (except left) will be discarded in order to achive mono input/output. So.. are there any differences (wavrec -M/S yada.wav) between patched and unpatched version? -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 9 17:39:48 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A58716A41F for ; Wed, 9 Nov 2005 17:39:48 +0000 (GMT) (envelope-from dmitry124@mail.ru) Received: from mx6.mail.ru (mx6.mail.ru [194.67.23.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3387143D46 for ; Wed, 9 Nov 2005 17:39:48 +0000 (GMT) (envelope-from dmitry124@mail.ru) Received: from [195.46.115.56] (port=55013 helo=56.115.dial.irtel.ru) by mx6.mail.ru with esmtp id 1EZtvG-000Ago-00 for freebsd-multimedia@freebsd.org; Wed, 09 Nov 2005 20:39:46 +0300 From: "Dmitry V. Sizikov" To: freebsd-multimedia@freebsd.org Content-Type: text/plain Date: Wed, 09 Nov 2005 01:47:54 +0800 Message-Id: <1131472074.52151.3.camel@focas.net> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: Tv-tuner AverMedia 307(SAA7132) 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: Wed, 09 Nov 2005 17:39:48 -0000 For somebody works tv-tuner? Is the driver on http://download.purpe.com/, but they do not work, simply black screen. In practice it turns out, that they do not initialize tv-tuner. Can be at somebody it has turned out? -- Dmitry V. Sizikov From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 9 18:26:13 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9FD116A41F; Wed, 9 Nov 2005 18:26:13 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88A2443D72; Wed, 9 Nov 2005 18:26:02 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5DF88.dip.t-dialin.net [84.165.223.136]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id jA9I3Wdf086830; Wed, 9 Nov 2005 19:03:33 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id jA9IPttV071614; Wed, 9 Nov 2005 19:25:55 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Wed, 9 Nov 2005 19:25:54 +0100 From: Alexander Leidinger To: Ariff Abdullah Message-ID: <20051109192554.5a6d26b7@Magellan.Leidinger.net> In-Reply-To: <20051110000738.00a209a6.skywizard@MyBSD.org.my> References: <200511081520.jA8FKJZd045781@freefall.freebsd.org> <20051108233517.5ec73d79.skywizard@MyBSD.org.my> <20051108181710.5c94a158.jylefort@FreeBSD.org> <20051109174843.7e97f8d7.skywizard@MyBSD.org.my> <20051109130245.3e807703.jylefort@FreeBSD.org> <20051109204513.54f482d3.skywizard@MyBSD.org.my> <20051109143435.7ee172cb.jylefort@FreeBSD.org> <20051110000738.00a209a6.skywizard@MyBSD.org.my> X-Mailer: Sylpheed-Claws 1.9.100 (GTK+ 2.8.6; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: Jean-Yves Lefort , freebsd-multimedia@freebsd.org Subject: Re: kern/31398: [sound] newpcm does not play back the tail of sound 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: Wed, 09 Nov 2005 18:26:13 -0000 On Thu, 10 Nov 2005 00:07:38 +0800 Ariff Abdullah wrote: > On Wed, 9 Nov 2005 14:34:35 +0100 > Jean-Yves Lefort wrote: > > > > Excellent. While here, could you also incorporate kern/40132 (and > > kern/20297 can be closed)? > Looks good. I'll incorporate it. Thanks. Did anyone actually looked if the joy device is there (dmesg | grep joy)? I once tried such a patch (I don't remember ATM if it was the same PR) and "joy" didn't attach. Do I have wrong expectations or did I something wrong? Bye, Alexander. -- ...and that is how we know the Earth to be banana-shaped. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 9 18:28:30 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 15F9A16A41F; Wed, 9 Nov 2005 18:28:30 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1672843D53; Wed, 9 Nov 2005 18:28:28 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5DF88.dip.t-dialin.net [84.165.223.136]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id jA9I60SQ086851; Wed, 9 Nov 2005 19:06:01 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id jA9ISMMT071991; Wed, 9 Nov 2005 19:28:23 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Wed, 9 Nov 2005 19:28:22 +0100 From: Alexander Leidinger To: Jean-Yves Lefort Message-ID: <20051109192822.3465e53e@Magellan.Leidinger.net> In-Reply-To: <20051109130245.3e807703.jylefort@FreeBSD.org> References: <200511081520.jA8FKJZd045781@freefall.freebsd.org> <20051108233517.5ec73d79.skywizard@MyBSD.org.my> <20051108181710.5c94a158.jylefort@FreeBSD.org> <20051109174843.7e97f8d7.skywizard@MyBSD.org.my> <20051109130245.3e807703.jylefort@FreeBSD.org> X-Mailer: Sylpheed-Claws 1.9.100 (GTK+ 2.8.6; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@freebsd.org, Ariff Abdullah Subject: Re: kern/31398: [sound] newpcm does not play back the tail of sound 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: Wed, 09 Nov 2005 18:28:30 -0000 On Wed, 9 Nov 2005 13:02:45 +0100 Jean-Yves Lefort wrote: > I also like the 2nd DAC support for es137x cards. Good job. Do you > think you will be able to MFC your mega-patch for 6.1? It depends upon the development of a "sndctl" utility (to get rid of those pcm related sysctl's which should be changeable by an ordinary user). Bye, Alexander. -- Yes, I've heard of "decaf." What's your point? http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 9 18:55:06 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FB8616A420 for ; Wed, 9 Nov 2005 18:55:06 +0000 (GMT) (envelope-from jylefort@FreeBSD.org) Received: from 212.68.244.220.brutele.be (212.68.244.220.brutele.be [212.68.244.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA06843D49 for ; Wed, 9 Nov 2005 18:55:05 +0000 (GMT) (envelope-from jylefort@FreeBSD.org) Received: from jsite.lefort.net (jsite.lefort.net [192.168.1.2]) by gateway.lefort.net (Postfix) with ESMTP id D6C9A550B; Wed, 9 Nov 2005 19:55:03 +0100 (CET) Received: from jsite.lefort.net (localhost [127.0.0.1]) by jsite.lefort.net (Postfix) with SMTP id 6BF64C109; Wed, 9 Nov 2005 19:55:03 +0100 (CET) Date: Wed, 9 Nov 2005 19:55:03 +0100 From: Jean-Yves Lefort To: Alexander Leidinger Message-Id: <20051109195503.01fd1a93.jylefort@FreeBSD.org> In-Reply-To: <20051109192554.5a6d26b7@Magellan.Leidinger.net> References: <200511081520.jA8FKJZd045781@freefall.freebsd.org> <20051108233517.5ec73d79.skywizard@MyBSD.org.my> <20051108181710.5c94a158.jylefort@FreeBSD.org> <20051109174843.7e97f8d7.skywizard@MyBSD.org.my> <20051109130245.3e807703.jylefort@FreeBSD.org> <20051109204513.54f482d3.skywizard@MyBSD.org.my> <20051109143435.7ee172cb.jylefort@FreeBSD.org> <20051110000738.00a209a6.skywizard@MyBSD.org.my> <20051109192554.5a6d26b7@Magellan.Leidinger.net> X-Mailer: Sylpheed running on FreeBSD Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Wed__9_Nov_2005_19_55_03_+0100_858EsXRaljb3Y0Ix" Cc: freebsd-multimedia@freebsd.org, skywizard@MyBSD.org.my Subject: Re: kern/31398: [sound] newpcm does not play back the tail of sound 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: Wed, 09 Nov 2005 18:55:06 -0000 --Signature=_Wed__9_Nov_2005_19_55_03_+0100_858EsXRaljb3Y0Ix Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 9 Nov 2005 19:25:54 +0100 Alexander Leidinger wrote: > On Thu, 10 Nov 2005 00:07:38 +0800 > Ariff Abdullah wrote: >=20 > > On Wed, 9 Nov 2005 14:34:35 +0100 > > Jean-Yves Lefort wrote: > > >=20 > > > Excellent. While here, could you also incorporate kern/40132 (and > > > kern/20297 can be closed)? >=20 > > Looks good. I'll incorporate it. Thanks. >=20 > Did anyone actually looked if the joy device is there (dmesg | grep > joy)? I once tried such a patch (I don't remember ATM if it was the > same PR) and "joy" didn't attach. Do I have wrong expectations or did I > something wrong? The following lines need to be added to /boot/device.hints: hint.joy.0.at=3D"isa" hint.joy.0.port=3D"0x201" hint.joy.1.at=3D"isa" hint.joy.1.port=3D"0x201" $ grep joy /var/run/dmesg.boot joy0 at port 0x201 on isa0 joy1 at port 0x201 on isa0 The "two" joysticks (I actually have one joystick with 3 axes and 4 buttons) work perfectly. Note that for supporting the second joystick, the patch from kern/46734 is required. Since it does not apply anymore, here's an updated patch: --- sys/dev/joy/joy.c.orig Wed Jun 16 11:46:48 2004 +++ sys/dev/joy/joy.c Wed Oct 5 22:49:49 2005 @@ -104,13 +104,13 @@ =20 joy->rid =3D 0; joy->res =3D bus_alloc_resource_any(dev, SYS_RES_IOPORT, &joy->rid, - RF_ACTIVE); + RF_ACTIVE|RF_SHAREABLE); if (joy->res =3D=3D NULL) return ENXIO; joy->bt =3D rman_get_bustag(joy->res); joy->port =3D rman_get_bushandle(joy->res); joy->timeout[0] =3D joy->timeout[1] =3D 0; - joy->d =3D make_dev(&joy_cdevsw, 0, 0, 0, 0600, "joy%d", unit); + joy->d =3D make_dev(&joy_cdevsw, unit, 0, 0, 0600, "joy%d", unit); return (0); } =20 @@ -167,6 +167,11 @@ #else disable_intr (); #endif + nanotime(&t); + end.tv_sec =3D 0; + end.tv_nsec =3D joy->timeout[joypart(dev)] * 1000; + timespecadd(&end, &t); + for (; timespeccmp(&t, &end, <) && (bus_space_read_1(bt, port, 0) & 0x0f)= ; nanotime(&t)); bus_space_write_1 (bt, port, 0, 0xff); nanotime(&start); end.tv_sec =3D 0; Could you please commit it? --=20 Jean-Yves Lefort jylefort@FreeBSD.org http://lefort.be.eu.org/ --Signature=_Wed__9_Nov_2005_19_55_03_+0100_858EsXRaljb3Y0Ix Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDckYHyzD7UaO4AGoRAknCAJwO4VYwtCZGTEHtKRPeHxsCnXWhMQCeK2xr 73wqGQXviVqkAMt0bk/FV9k= =PVHu -----END PGP SIGNATURE----- --Signature=_Wed__9_Nov_2005_19_55_03_+0100_858EsXRaljb3Y0Ix-- From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 9 19:28:28 2005 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.org Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF01116A41F; Wed, 9 Nov 2005 19:28:28 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56AAF43D58; Wed, 9 Nov 2005 19:28:25 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5DF88.dip.t-dialin.net [84.165.223.136]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id jA9J5rgD087098; Wed, 9 Nov 2005 20:05:55 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id jA9JSFiG083144; Wed, 9 Nov 2005 20:28:15 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Wed, 9 Nov 2005 20:28:15 +0100 From: Alexander Leidinger To: Jean-Yves Lefort Message-ID: <20051109202815.1854cd1d@Magellan.Leidinger.net> In-Reply-To: <20051109195503.01fd1a93.jylefort@FreeBSD.org> References: <200511081520.jA8FKJZd045781@freefall.freebsd.org> <20051108233517.5ec73d79.skywizard@MyBSD.org.my> <20051108181710.5c94a158.jylefort@FreeBSD.org> <20051109174843.7e97f8d7.skywizard@MyBSD.org.my> <20051109130245.3e807703.jylefort@FreeBSD.org> <20051109204513.54f482d3.skywizard@MyBSD.org.my> <20051109143435.7ee172cb.jylefort@FreeBSD.org> <20051110000738.00a209a6.skywizard@MyBSD.org.my> <20051109192554.5a6d26b7@Magellan.Leidinger.net> <20051109195503.01fd1a93.jylefort@FreeBSD.org> X-Mailer: Sylpheed-Claws 1.9.100 (GTK+ 2.8.6; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@FreeBSD.org, skywizard@MyBSD.org.my Subject: Re: kern/31398: [sound] newpcm does not play back the tail of sound 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: Wed, 09 Nov 2005 19:28:29 -0000 On Wed, 9 Nov 2005 19:55:03 +0100 Jean-Yves Lefort wrote: > On Wed, 9 Nov 2005 19:25:54 +0100 > Alexander Leidinger wrote: > > > On Thu, 10 Nov 2005 00:07:38 +0800 > > Ariff Abdullah wrote: > > > > > On Wed, 9 Nov 2005 14:34:35 +0100 > > > Jean-Yves Lefort wrote: > > > > > > > > Excellent. While here, could you also incorporate kern/40132 (and > > > > kern/20297 can be closed)? > > > > > Looks good. I'll incorporate it. Thanks. > > > > Did anyone actually looked if the joy device is there (dmesg | grep > > joy)? I once tried such a patch (I don't remember ATM if it was the > > same PR) and "joy" didn't attach. Do I have wrong expectations or did I > > something wrong? > > The following lines need to be added to /boot/device.hints: > > hint.joy.0.at="isa" > hint.joy.0.port="0x201" > hint.joy.1.at="isa" > hint.joy.1.port="0x201" The question is: should this be added to GENERIC.hints, or to the man-page of the joy device, or to both... any suggestions? > $ grep joy /var/run/dmesg.boot > joy0 at port 0x201 on isa0 > joy1 at port 0x201 on isa0 Yeah! > The "two" joysticks (I actually have one joystick with 3 axes and 4 > buttons) work perfectly. Note that for supporting the second joystick, > the patch from kern/46734 is required. Since it does not apply > anymore, here's an updated patch: > > --- sys/dev/joy/joy.c.orig Wed Jun 16 11:46:48 2004 > +++ sys/dev/joy/joy.c Wed Oct 5 22:49:49 2005 > @@ -104,13 +104,13 @@ > > joy->rid = 0; > joy->res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &joy->rid, > - RF_ACTIVE); > + RF_ACTIVE|RF_SHAREABLE); > if (joy->res == NULL) > return ENXIO; > joy->bt = rman_get_bustag(joy->res); > joy->port = rman_get_bushandle(joy->res); > joy->timeout[0] = joy->timeout[1] = 0; > - joy->d = make_dev(&joy_cdevsw, 0, 0, 0, 0600, "joy%d", unit); > + joy->d = make_dev(&joy_cdevsw, unit, 0, 0, 0600, "joy%d", unit); > return (0); > } > > @@ -167,6 +167,11 @@ > #else > disable_intr (); > #endif > + nanotime(&t); > + end.tv_sec = 0; > + end.tv_nsec = joy->timeout[joypart(dev)] * 1000; > + timespecadd(&end, &t); > + for (; timespeccmp(&t, &end, <) && (bus_space_read_1(bt, port, 0) & 0x0f); nanotime(&t)); > bus_space_write_1 (bt, port, 0, 0xff); > nanotime(&start); > end.tv_sec = 0; > > Could you please commit it? Looks good (no obvious error while looking at it), but you should make it more obvious that the body of the for loop is empty (search for "nothing" in style(9)). And since you tested it: Commit approved after fixing the style(9) issue (a X-committer is free to approve commits to unmaintained parts of X by an Y-committer). You have to use "ncvs" instead of "pcvs". Bye, Alexander. -- Give a man a fish and you feed him for a day; teach him to use the Net and he won't bother you for weeks. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 9 20:36:13 2005 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.org Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3759716A41F for ; Wed, 9 Nov 2005 20:36:13 +0000 (GMT) (envelope-from jylefort@FreeBSD.org) Received: from 212.68.244.220.brutele.be (212.68.244.220.brutele.be [212.68.244.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E22643D48 for ; Wed, 9 Nov 2005 20:36:12 +0000 (GMT) (envelope-from jylefort@FreeBSD.org) Received: from jsite.lefort.net (jsite.lefort.net [192.168.1.2]) by gateway.lefort.net (Postfix) with ESMTP id 5AED5550B; Wed, 9 Nov 2005 21:36:10 +0100 (CET) Received: from jsite.lefort.net (localhost [127.0.0.1]) by jsite.lefort.net (Postfix) with SMTP id 223D6C109; Wed, 9 Nov 2005 21:36:10 +0100 (CET) Date: Wed, 9 Nov 2005 21:36:09 +0100 From: Jean-Yves Lefort To: Alexander Leidinger Message-Id: <20051109213609.77f61718.jylefort@FreeBSD.org> In-Reply-To: <20051109202815.1854cd1d@Magellan.Leidinger.net> References: <200511081520.jA8FKJZd045781@freefall.freebsd.org> <20051108233517.5ec73d79.skywizard@MyBSD.org.my> <20051108181710.5c94a158.jylefort@FreeBSD.org> <20051109174843.7e97f8d7.skywizard@MyBSD.org.my> <20051109130245.3e807703.jylefort@FreeBSD.org> <20051109204513.54f482d3.skywizard@MyBSD.org.my> <20051109143435.7ee172cb.jylefort@FreeBSD.org> <20051110000738.00a209a6.skywizard@MyBSD.org.my> <20051109192554.5a6d26b7@Magellan.Leidinger.net> <20051109195503.01fd1a93.jylefort@FreeBSD.org> <20051109202815.1854cd1d@Magellan.Leidinger.net> X-Mailer: Sylpheed running on FreeBSD Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Wed__9_Nov_2005_21_36_09_+0100_Xb87hD/u=hDLVvkJ" Cc: freebsd-multimedia@FreeBSD.org, skywizard@MyBSD.org.my Subject: Re: kern/31398: [sound] newpcm does not play back the tail of sound 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: Wed, 09 Nov 2005 20:36:13 -0000 --Signature=_Wed__9_Nov_2005_21_36_09_+0100_Xb87hD/u=hDLVvkJ Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 9 Nov 2005 20:28:15 +0100 Alexander Leidinger wrote: > On Wed, 9 Nov 2005 19:55:03 +0100 > Jean-Yves Lefort wrote: >=20 > > On Wed, 9 Nov 2005 19:25:54 +0100 > > Alexander Leidinger wrote: > >=20 > > > On Thu, 10 Nov 2005 00:07:38 +0800 > > > Ariff Abdullah wrote: > > >=20 > > > > On Wed, 9 Nov 2005 14:34:35 +0100 > > > > Jean-Yves Lefort wrote: > > > > >=20 > > > > > Excellent. While here, could you also incorporate kern/40132 (and > > > > > kern/20297 can be closed)? > > >=20 > > > > Looks good. I'll incorporate it. Thanks. > > >=20 > > > Did anyone actually looked if the joy device is there (dmesg | grep > > > joy)? I once tried such a patch (I don't remember ATM if it was the > > > same PR) and "joy" didn't attach. Do I have wrong expectations or did= I > > > something wrong? > >=20 > > The following lines need to be added to /boot/device.hints: > >=20 > > hint.joy.0.at=3D"isa" > > hint.joy.0.port=3D"0x201" > > hint.joy.1.at=3D"isa" > > hint.joy.1.port=3D"0x201" >=20 > The question is: should this be added to GENERIC.hints, or to the > man-page of the joy device, or to both... any suggestions? I'd add it to GENERIC.hints, and add the joy.1 part to the manpage (joy.0 is already there). > > The "two" joysticks (I actually have one joystick with 3 axes and 4 > > buttons) work perfectly. Note that for supporting the second joystick, > > the patch from kern/46734 is required. Since it does not apply > > anymore, here's an updated patch: > >=20 > > --- sys/dev/joy/joy.c.orig Wed Jun 16 11:46:48 2004 > > +++ sys/dev/joy/joy.c Wed Oct 5 22:49:49 2005 > > @@ -104,13 +104,13 @@ > > =20 > > joy->rid =3D 0; > > joy->res =3D bus_alloc_resource_any(dev, SYS_RES_IOPORT, &joy->rid, > > - RF_ACTIVE); > > + RF_ACTIVE|RF_SHAREABLE); > > if (joy->res =3D=3D NULL) > > return ENXIO; > > joy->bt =3D rman_get_bustag(joy->res); > > joy->port =3D rman_get_bushandle(joy->res); > > joy->timeout[0] =3D joy->timeout[1] =3D 0; > > - joy->d =3D make_dev(&joy_cdevsw, 0, 0, 0, 0600, "joy%d", unit); > > + joy->d =3D make_dev(&joy_cdevsw, unit, 0, 0, 0600, "joy%d", unit); > > return (0); > > } > > =20 > > @@ -167,6 +167,11 @@ > > #else > > disable_intr (); > > #endif > > + nanotime(&t); > > + end.tv_sec =3D 0; > > + end.tv_nsec =3D joy->timeout[joypart(dev)] * 1000; > > + timespecadd(&end, &t); > > + for (; timespeccmp(&t, &end, <) && (bus_space_read_1(bt, port, 0) & 0= x0f); nanotime(&t)); > > bus_space_write_1 (bt, port, 0, 0xff); > > nanotime(&start); > > end.tv_sec =3D 0; > >=20 > > Could you please commit it? >=20 > Looks good (no obvious error while looking at it), but you should make > it more obvious that the body of the for loop is empty (search for > "nothing" in style(9)). >=20 > And since you tested it: Commit approved after fixing the style(9) > issue (a X-committer is free to approve commits to unmaintained parts > of X by an Y-committer). You have to use "ncvs" instead of "pcvs". Done, thanks. --=20 Jean-Yves Lefort jylefort@FreeBSD.org http://lefort.be.eu.org/ --Signature=_Wed__9_Nov_2005_21_36_09_+0100_Xb87hD/u=hDLVvkJ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD4DBQFDcl26yzD7UaO4AGoRAmsbAJ0d5h07xsWqiBiBrGoSN1Z7InIQHACUCBAW QV+qZqtSBxPBgZ7zyGhQIg== =njph -----END PGP SIGNATURE----- --Signature=_Wed__9_Nov_2005_21_36_09_+0100_Xb87hD/u=hDLVvkJ-- From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 10 12:33:18 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A99E716A41F for ; Thu, 10 Nov 2005 12:33:18 +0000 (GMT) (envelope-from CQG00620@nifty.ne.jp) Received: from mail.asahi-net.or.jp (mail2.asahi-net.or.jp [202.224.39.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54ED643D45 for ; Thu, 10 Nov 2005 12:33:17 +0000 (GMT) (envelope-from CQG00620@nifty.ne.jp) Received: from asahi-net.jp (h204195.ppp.asahi-net.or.jp [61.114.204.195]) by mail.asahi-net.or.jp (Postfix) with ESMTP id 3B3931EDEE for ; Thu, 10 Nov 2005 21:33:16 +0900 (JST) Date: Thu, 10 Nov 2005 21:27:47 +0900 From: Watanabe Kazuhiro To: freebsd-multimedia In-Reply-To: <20051110001041.7bc11d79.skywizard@MyBSD.org.my> References: <20051110001041.7bc11d79.skywizard@MyBSD.org.my> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/20.7 (i386--freebsd) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Message-Id: <20051110123316.3B3931EDEE@mail.asahi-net.or.jp> Subject: Re: [patch] stereo input is mixed to monaural via SoundBlaster16 recording mixer 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, 10 Nov 2005 12:33:18 -0000 At Thu, 10 Nov 2005 00:10:41 +0800, Ariff Abdullah wrote: > So.. are there any differences (wavrec -M/S yada.wav) between patched > and unpatched version? The current status is below. Stereo recording[1] Monaural recording[2] Left channel Right channel --------------------------------------------------------------------------- w/o the patch Lch.+Rch. Lch.+Rch. Lch.+Rch. w/ the patch Lch. Rch. Lch. (I hope... Lch. Rch. Lch.+Rch.) [1] wavrec -S -s 44100 -b 16 -t 10 foo.wav [2] wavrec -M -s 44100 -b 16 -t 10 bar.wav --- Watanabe Kazuhiro (CQG00620@nifty.ne.jp) From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 10 13:01:48 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CC7616A41F for ; Thu, 10 Nov 2005 13:01:48 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8986C43D53 for ; Thu, 10 Nov 2005 13:01:47 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 2F8036CC26 for ; Thu, 10 Nov 2005 21:04:10 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06137-02 for ; Thu, 10 Nov 2005 21:04:08 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 175016CC23 for ; Thu, 10 Nov 2005 21:04:08 +0800 (MYT) Date: Thu, 10 Nov 2005 21:01:47 +0800 From: Ariff Abdullah To: freebsd-multimedia@freebsd.org Message-Id: <20051110210147.18fbb225.skywizard@MyBSD.org.my> In-Reply-To: <20051110123316.3B3931EDEE@mail.asahi-net.or.jp> References: <20051110001041.7bc11d79.skywizard@MyBSD.org.my> <20051110123316.3B3931EDEE@mail.asahi-net.or.jp> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Subject: Re: [patch] stereo input is mixed to monaural via SoundBlaster16 recording mixer 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, 10 Nov 2005 13:01:48 -0000 On Thu, 10 Nov 2005 21:27:47 +0900 Watanabe Kazuhiro wrote: > > The current status is below. > > Stereo recording[1] Monaural recording[2] > Left channel Right channel > ------------------------------------------------------------------- > w/o the patch Lch.+Rch. Lch.+Rch. Lch.+Rch. > > w/ the patch Lch. Rch. Lch. > > (I hope... Lch. Rch. Lch.+Rch.) > > [1] wavrec -S -s 44100 -b 16 -t 10 foo.wav > [2] wavrec -M -s 44100 -b 16 -t 10 bar.wav > I don't have sb16, so I cannot confirm this behaviour. Anybody with sb16 want to object, please do it _NOW_. Since each left and right channel has its own unique mask, I assume this patch is the proper fix. Thanks Watanabe-san. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 10 19:33:18 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AEC516A421 for ; Thu, 10 Nov 2005 19:33:18 +0000 (GMT) (envelope-from a.n.s.i@gmx.net) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 4D65143D55 for ; Thu, 10 Nov 2005 19:33:16 +0000 (GMT) (envelope-from a.n.s.i@gmx.net) Received: (qmail invoked by alias); 10 Nov 2005 19:26:34 -0000 Received: from p5087ADB7.dip0.t-ipconnect.de (EHLO [192.168.0.12]) [80.135.173.183] by mail.gmx.net (mp036) with SMTP; 10 Nov 2005 20:26:34 +0100 X-Authenticated: #30170983 Message-ID: <4373AD1A.7080401@gmx.net> Date: Thu, 10 Nov 2005 20:27:06 +0000 From: Evgeny Solovyov User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051110) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ariff Abdullah Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: freebsd-multimedia@freebsd.org Subject: 82801FB/FR/FW/FRW Intel High DefiNition Audio Controller 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, 10 Nov 2005 19:33:18 -0000 Hallo Ariff, i'm sorry for my english Can you help me? plz i've a box with 82801FB/FR/FW/FRW Intel High DefiNition Audio Controller. But the Chip is 0x26688086 and not 0x266e8086 listet in your patch http://people.freebsd.org/~ariff/ I changed dev/sound/pci/ich.c: -#define INTEL_82801FB 0x266e /* ICH6 needs to be treated as ICH4 */ +#define INTEL_82801FB 0x2668 /* ICH6 needs to be treated as ICH4 */ and here is bit of dmesg: ... pcm0: mem 0xb0000000-0xb0003fff irq 17 at device 27.0 on pci0 pcm0: unable to map IO port space device_attach: pcm0 attach returned 6 .. My box is: # uname -a FreeBSD tit007m 6.0-STABLE FreeBSD 6.0-STABLE #2: Wed Nov 9 21:09:30 UTC 2005 root@tit007m:/usr/obj/usr/src/sys/MOBILE02 i386 And has: # sysctl hw.snd hw.snd.report_soft_formats: 1 hw.snd.targetirqrate: 32 hw.snd.feeder_rate_buffersize: 8192 hw.snd.feeder_rate_scaling: 5 hw.snd.feeder_rate_ratemax: 1102500 hw.snd.feeder_rate_ratemin: 4000 hw.snd.verbose: 1 hw.snd.slave_enabled: 1 hw.snd.maxautovchans: 0 hw.snd.unit: 0 # pciconf -lv ... none0@pci0:27:0: class=0x040300 card=0x09001558 chip=0x26688086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801FB/FR/FW/FRW Intel High DefiNition Audio Controller' class = multimedia ... Thank you very match! Evgeny From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 10 20:24:04 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5ED3A16A41F for ; Thu, 10 Nov 2005 20:24:04 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4DED43D48 for ; Thu, 10 Nov 2005 20:24:03 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 875616CC26; Fri, 11 Nov 2005 04:26:28 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08125-10; Fri, 11 Nov 2005 04:26:27 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id E0E326CC23; Fri, 11 Nov 2005 04:26:26 +0800 (MYT) Date: Fri, 11 Nov 2005 04:23:59 +0800 From: Ariff Abdullah To: Evgeny Solovyov Message-Id: <20051111042359.743e4242.skywizard@MyBSD.org.my> In-Reply-To: <4373AD1A.7080401@gmx.net> References: <4373AD1A.7080401@gmx.net> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: 82801FB/FR/FW/FRW Intel High DefiNition Audio Controller 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, 10 Nov 2005 20:24:04 -0000 On Thu, 10 Nov 2005 20:27:06 +0000 Evgeny Solovyov wrote: > > i've a box with 82801FB/FR/FW/FRW Intel High DefiNition Audio > Controller. But the Chip is 0x26688086 and not 0x266e8086 listet in > your patch http://people.freebsd.org/~ariff/ > > I changed dev/sound/pci/ich.c: > > -#define INTEL_82801FB 0x266e /* ICH6 needs to be treated as ICH4 > */ +#define INTEL_82801FB 0x2668 /* ICH6 needs to be treated as > ICH4 */ > Unfortunately, though, you cannot simply do that. There are few fortunate(?) HDA hardware with AC97 backward compatible, but yours is not. Until we have definite HDA support (which is already in our TODO list), you can use 'free for personal use' driver from http://www.opensound.com/ . -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 10 20:29:01 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93BE116A41F for ; Thu, 10 Nov 2005 20:29:01 +0000 (GMT) (envelope-from jonathan@kc8onw.net) Received: from smtp3.fuse.net (mail-out3.fuse.net [216.68.8.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0A3643D4C for ; Thu, 10 Nov 2005 20:29:00 +0000 (GMT) (envelope-from jonathan@kc8onw.net) Received: from gx4.fuse.net ([66.42.156.185]) by smtp3.fuse.net (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20051110202900.ORZB1115.smtp3.fuse.net@gx4.fuse.net> for ; Thu, 10 Nov 2005 15:29:00 -0500 Received: from server.kc8onw.net ([66.42.156.185]) by gx4.fuse.net (InterMail vG.1.02.00.02 201-2136-104-102-20041210) with ESMTP id <20051110202855.TYSM24825.gx4.fuse.net@server.kc8onw.net>; Thu, 10 Nov 2005 15:28:55 -0500 Received: from [10.70.2.11] (unknown [10.70.2.11]) by server.kc8onw.net (Postfix) with ESMTP id B5432A16F8; Thu, 10 Nov 2005 15:28:52 -0500 (EST) Message-ID: <4373AD84.8030104@kc8onw.net> Date: Thu, 10 Nov 2005 15:28:52 -0500 From: Jonathan User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051108) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ariff Abdullah References: <4373AD1A.7080401@gmx.net> <20051111042359.743e4242.skywizard@MyBSD.org.my> In-Reply-To: <20051111042359.743e4242.skywizard@MyBSD.org.my> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: 82801FB/FR/FW/FRW Intel High DefiNition Audio Controller 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, 10 Nov 2005 20:29:01 -0000 Ariff Abdullah wrote: > On Thu, 10 Nov 2005 20:27:06 +0000 > Evgeny Solovyov wrote: > >>i've a box with 82801FB/FR/FW/FRW Intel High DefiNition Audio >>Controller. But the Chip is 0x26688086 and not 0x266e8086 listet in >>your patch http://people.freebsd.org/~ariff/ >> >>I changed dev/sound/pci/ich.c: >> >>-#define INTEL_82801FB 0x266e /* ICH6 needs to be treated as ICH4 >>*/ +#define INTEL_82801FB 0x2668 /* ICH6 needs to be treated as >>ICH4 */ >> > > Unfortunately, though, you cannot simply do that. There are few > fortunate(?) HDA hardware with AC97 backward compatible, but yours is > not. > > Until we have definite HDA support (which is already in our TODO > list), you can use 'free for personal use' driver from > http://www.opensound.com/ . > > > > -- > Ariff Abdullah > MyBSD > Actually I just tried that (opensound drivers) a few hours ago and for some reason it did not work :P It gave timeout errors of some kind (I could reinstall if your interested) and didn't work at all. I am willing to test anything to get support working though and could possibly even give a remote shell with root access for the next week or so. After a week I don't how much net access I will have for a long time :P Jonathan From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 10 21:00:20 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD40016A41F for ; Thu, 10 Nov 2005 21:00:19 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEE9E43D4C for ; Thu, 10 Nov 2005 21:00:18 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 8E0E46CC26; Fri, 11 Nov 2005 05:02:44 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12664-09; Fri, 11 Nov 2005 05:02:43 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id E69FB6CC23; Fri, 11 Nov 2005 05:02:42 +0800 (MYT) Date: Fri, 11 Nov 2005 05:00:15 +0800 From: Ariff Abdullah To: Jonathan Message-Id: <20051111050015.48527bc3.skywizard@MyBSD.org.my> In-Reply-To: <4373AD84.8030104@kc8onw.net> References: <4373AD1A.7080401@gmx.net> <20051111042359.743e4242.skywizard@MyBSD.org.my> <4373AD84.8030104@kc8onw.net> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: 82801FB/FR/FW/FRW Intel High DefiNition Audio Controller 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, 10 Nov 2005 21:00:20 -0000 On Thu, 10 Nov 2005 15:28:52 -0500 Jonathan wrote: > > Actually I just tried that (opensound drivers) a few hours ago and > for some reason it did not work :P It gave timeout errors of some > kind (I could reinstall if your interested) and didn't work at all. > I am > willing to test anything to get support working though and could > possibly even give a remote shell with root access for the next week > or so. After a week I don't how much net access I will have for a > long time :P > Actually I do have plenty (you may call it redundant) HDA at my office. It is just a matter of time I can sit and doing some serious work on it (currently I'm on vacation). We should celebrate the panic fest together, hopefully in near future. Thanks for the offer! -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 10 21:37:42 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CDF816A425 for ; Thu, 10 Nov 2005 21:37:42 +0000 (GMT) (envelope-from a.n.s.i@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 249EC43D46 for ; Thu, 10 Nov 2005 21:37:40 +0000 (GMT) (envelope-from a.n.s.i@gmx.net) Received: (qmail invoked by alias); 10 Nov 2005 20:37:40 -0000 Received: from p5087ADB7.dip0.t-ipconnect.de (EHLO [192.168.0.12]) [80.135.173.183] by mail.gmx.net (mp033) with SMTP; 10 Nov 2005 21:37:40 +0100 X-Authenticated: #30170983 Message-ID: <4373BDC4.4020009@gmx.net> Date: Thu, 10 Nov 2005 21:38:12 +0000 From: Evgeny Solovyov User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051110) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ariff Abdullah References: <4373AD1A.7080401@gmx.net> <20051111042359.743e4242.skywizard@MyBSD.org.my> In-Reply-To: <20051111042359.743e4242.skywizard@MyBSD.org.my> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: freebsd-multimedia@freebsd.org Subject: Re: 82801FB/FR/FW/FRW Intel High DefiNition Audio Controller 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, 10 Nov 2005 21:37:42 -0000 Ariff Abdullah wrote: > On Thu, 10 Nov 2005 20:27:06 +0000 > Evgeny Solovyov wrote: > >>i've a box with 82801FB/FR/FW/FRW Intel High DefiNition Audio >>Controller. But the Chip is 0x26688086 and not 0x266e8086 listet in >>your patch http://people.freebsd.org/~ariff/ >> >>I changed dev/sound/pci/ich.c: >> >>-#define INTEL_82801FB 0x266e /* ICH6 needs to be treated as ICH4 >>*/ +#define INTEL_82801FB 0x2668 /* ICH6 needs to be treated as >>ICH4 */ >> > > Unfortunately, though, you cannot simply do that. There are few > fortunate(?) HDA hardware with AC97 backward compatible, but yours is > not. > > Until we have definite HDA support (which is already in our TODO > list), you can use 'free for personal use' driver from > http://www.opensound.com/ . opensound don't work too, here is dmesg output: pcm0: mem 0xb0000000-0xb0003fff irq 17 at device 27.0 on pci0 pcm0: unable to map IO port space device_attach: pcm0 attach returned 6 hdaudio: RIRB timeout hdaudio_mixer_attach: Codec #0 is not responding hdaudio: Codec attach failed (-5) oss: Probing the hardware for Intel High Definition Audio (Azalia) controller failed. You are/was my last hope :( > > > > -- > Ariff Abdullah > MyBSD > > http://www.MyBSD.org.my (IPv6/IPv4) > http://staff.MyBSD.org.my (IPv6/IPv4) > http://tomoyo.MyBSD.org.my (IPv6/IPv4) > > From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 10 21:56:53 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5BBC616A41F for ; Thu, 10 Nov 2005 21:56:53 +0000 (GMT) (envelope-from dgerow@afflictions.org) Received: from mail.afflictions.org (asylum.afflictions.org [64.7.134.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id B85C443D48 for ; Thu, 10 Nov 2005 21:56:52 +0000 (GMT) (envelope-from dgerow@afflictions.org) Received: from localhost (localhost [127.0.0.1]) by mail.afflictions.org (Postfix) with ESMTP id 170DE78C62 for ; Thu, 10 Nov 2005 16:58:35 -0500 (EST) Received: from mail.afflictions.org ([127.0.0.1]) by localhost (pandora.afflictions.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 74507-04 for ; Thu, 10 Nov 2005 16:58:29 -0500 (EST) Received: from dementia.afflictions.org (dementia [172.19.206.56]) by mail.afflictions.org (Postfix) with ESMTP id 2230678C5F for ; Thu, 10 Nov 2005 16:58:27 -0500 (EST) Received: by dementia.afflictions.org (Postfix, from userid 1001) id 778511C080D; Thu, 10 Nov 2005 16:56:41 -0500 (EST) Date: Thu, 10 Nov 2005 16:56:41 -0500 From: Damian Gerow To: freebsd-multimedia@freebsd.org Message-ID: <20051110215641.GP72192@afflictions.org> References: <4373AD1A.7080401@gmx.net> <20051111042359.743e4242.skywizard@MyBSD.org.my> <4373BDC4.4020009@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4373BDC4.4020009@gmx.net> X-PGP-Fingerprint: B3D7 D901 A53A 1A99 BFD6 E6DF 9F3B 742B C288 9CC9 X-PGP-Key: 0xC2889CC9 User-Agent: Mutt/1.5.11 X-Virus-Scanned: amavisd-new at pandora.afflictions.org Subject: Re: 82801FB/FR/FW/FRW Intel High DefiNition Audio Controller 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, 10 Nov 2005 21:56:53 -0000 Thus spake Evgeny Solovyov (a.n.s.i@gmx.net) [10/11/05 16:40]: : opensound don't work too, here is dmesg output: : : pcm0: mem 0xb0000000-0xb0003fff irq 17 at device : 27.0 on pci0 : pcm0: unable to map IO port space : device_attach: pcm0 attach returned 6 : hdaudio: RIRB timeout : hdaudio_mixer_attach: Codec #0 is not responding : hdaudio: Codec attach failed (-5) : oss: Probing the hardware for Intel High Definition Audio (Azalia) : controller failed. : : You are/was my last hope :( opensound.com has acknowledged that there is a problem with the Intel HDA on FreeBSD. The same code works on Solaris, Linux, and even OpenBSD, but fails on FreeBSD. They've yet to figure out why. - Damian From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 10 21:58:21 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6ABF016A41F for ; Thu, 10 Nov 2005 21:58:21 +0000 (GMT) (envelope-from dev@opensound.com) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17B6543D45 for ; Thu, 10 Nov 2005 21:58:20 +0000 (GMT) (envelope-from dev@opensound.com) Received: from [192.1.2.1] (c-66-229-53-8.hsd1.ca.comcast.net[66.229.53.8]) by comcast.net (rwcrmhc11) with ESMTP id <2005111021582001300injbqe>; Thu, 10 Nov 2005 21:58:20 +0000 Message-ID: <4373C25C.3010504@opensound.com> Date: Thu, 10 Nov 2005 13:57:48 -0800 From: 4Front Technologies User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: HDaudio support in FreeBSD6 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, 10 Nov 2005 21:58:21 -0000 Hi Guys, The problem we are seeing with the HDAudio driver in FreeBSD is that somehow the FreeBSD is putting the device into some kind of sleep state. We see timeouts from the device. hdaudio: RIRB timeout hdaudio_mixer_attach: Codec #0 is not responding hdaudio: Codec attach failed (-5) oss: Probing the hardware for Intel High Definition Audio (Azalia) controller failed. The same driver code seems to work perfectly in Linux, Solaris and OpenBSD that we also have installed on the same machine. We've tried to see if it's a OSS thing or FreeBSD thing but the code looks a-ok because it works in OpenBSD/Solaris/Linux, so I'm not sure what might the problem be. I suspect it may be how FreeBSD handles PCI-Express bus. If someone from the kernel group is interested in helping us solve this problem, I'll be happy to work with them fix the problem. Best regards Dev Mazumdar ----------------------------------------------------------- 4Front Technologies 4035 Lafayette Place, Unit F, Culver City, CA 90232, USA. Tel: (310) 202 8530 URL: www.opensound.com Fax: (310) 202 0496 Email: info@opensound.com ----------------------------------------------------------- From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 11 00:39:55 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8D5B16A41F; Fri, 11 Nov 2005 00:39:55 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (c-67-168-241-176.hsd1.or.comcast.net [67.168.241.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99BD843D45; Fri, 11 Nov 2005 00:39:55 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.11.6/8.11.6) with UUCP id jAB0e2P11855; Thu, 10 Nov 2005 16:40:02 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id AAA09973; Fri, 11 Nov 2005 00:23:52 GMT Message-Id: <200511110023.AAA09973@sopwith.solgatos.com> To: freebsd-firewire@freebsd.org, freebsd-multimedia@freebsd.org Date: Thu, 10 Nov 2005 16:23:52 +0000 From: Dieter Cc: Subject: Sending DV over firewire gives dropouts - VT6306 vs NEC uPD72871/2 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: Fri, 11 Nov 2005 00:39:56 -0000 > AMD64 running FreeBSD 6.0 beta3. > Canon DV NTSC camcorder connected via firewire. > > Playing a tape and recording it on the computer via > > fwcontrol -R filename.dv > > appears to work fine. > > Sending the video back to the camcorder via > > fwcontrol -S filename.dv > > mostly works, but every 1.5-2 seconds or so I get a momentary > dropout of both video and audio. I get the same dropouts > with a dv file created by "fwcontrol -R" and with dv files created > by ffmpeg. New info: The controller giving the dropouts is a VT6307 (reported as VT6306 ?). I added a firewire card with NEC uPD72871/2, and using this firewire controller the DV files play back without the dropouts. fwohci0: port 0xa800-0xa87f mem 0xfdffe000-0xfdffe7ff irq 10 at device 6.0 on pci1 fwohci0: OHCI version 1.10 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode fwohci1: mem 0xfdeff000-0xfdefffff irq 10 at device 8.0 on pci2 fwohci1: OHCI version 1.0 (ROM=1) fwohci1: No. of Isochronous channels is 4. fwohci1: Phy 1394a available S400, 2 ports. fwohci1: Link S400, max_rec 1024 bytes. fwohci1: max_rec 1024 -> 2048 fwohci1: node_id=0x8000ffc0, gen=1, non CYCLEMASTER mode From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 11 01:28:43 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDB6D16A41F; Fri, 11 Nov 2005 01:28:43 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9949C43D46; Fri, 11 Nov 2005 01:28:43 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jAB1ShQG032438; Fri, 11 Nov 2005 01:28:43 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAB1ShHv032434; Fri, 11 Nov 2005 01:28:43 GMT (envelope-from linimon) Date: Fri, 11 Nov 2005 01:28:43 GMT From: Mark Linimon Message-Id: <200511110128.jAB1ShHv032434@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/88820: [sound] Erratic recognition of VIA 8285 sound card by 6.0 kernel 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: Fri, 11 Nov 2005 01:28:44 -0000 Old Synopsis: Erratic recognition of sound card by 6.0 kernel New Synopsis: [sound] Erratic recognition of VIA 8285 sound card by 6.0 kernel Responsible-Changed-From-To: freebsd-bugs->freebsd-multimedia Responsible-Changed-By: linimon Responsible-Changed-When: Fri Nov 11 01:27:33 GMT 2005 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=88820 From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 11 21:40:21 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 280C016A41F for ; Fri, 11 Nov 2005 21:40:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 956B143D6B for ; Fri, 11 Nov 2005 21:40:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jABLeJZo019080 for ; Fri, 11 Nov 2005 21:40:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jABLeJQJ019079; Fri, 11 Nov 2005 21:40:19 GMT (envelope-from gnats) Date: Fri, 11 Nov 2005 21:40:19 GMT Message-Id: <200511112140.jABLeJQJ019079@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Ariff Abdullah Cc: Subject: Re: kern/88820: [sound] Erratic recognition of VIA 8285 sound card by 6.0 kernel X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ariff Abdullah List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2005 21:40:21 -0000 The following reply was made to PR kern/88820; it has been noted by GNATS. From: Ariff Abdullah To: bug-followup@FreeBSD.org, aschleichmd@t-online.de Cc: Subject: Re: kern/88820: [sound] Erratic recognition of VIA 8285 sound card by 6.0 kernel Date: Sat, 12 Nov 2005 05:30:39 +0800 How about using modules? (Remove those configs from your kernel). -- Ariff Abdullah FreeBSD From owner-freebsd-multimedia@FreeBSD.ORG Sat Nov 12 01:20:19 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65F1A16A41F for ; Sat, 12 Nov 2005 01:20:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F71D43D45 for ; Sat, 12 Nov 2005 01:20:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jAC1KJ7J052267 for ; Sat, 12 Nov 2005 01:20:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAC1KIhK052266; Sat, 12 Nov 2005 01:20:18 GMT (envelope-from gnats) Date: Sat, 12 Nov 2005 01:20:18 GMT Message-Id: <200511120120.jAC1KIhK052266@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: FBSD lists member <7c3b40e4@clements.org> Cc: Subject: Re: kern/31445: [sound] [patch] cat sound.au > /dev/audio fails for sounds > 4KB X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FBSD lists member <7c3b40e4@clements.org> List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2005 01:20:19 -0000 The following reply was made to PR kern/31445; it has been noted by GNATS. From: FBSD lists member <7c3b40e4@clements.org> To: bug-followup@FreeBSD.org Cc: 7c3b40e4@clements.org Subject: Re: kern/31445: [sound] [patch] cat sound.au > /dev/audio fails for sounds > 4KB Date: Fri, 11 Nov 2005 20:12:58 -0500 . Assuming the above-mentioned "-current" referenced by netchild is in 6.0 RELEASE, I believe this PR was incorrectly (unthinkingly/disrespectfully?) closed. I have installed 6.0 on a box here and performed the test described in my previous comment on this PR. I added snd_driver_load and sound_load to /boot/loader.conf, and I downloaded/built sox from /usr/ports. I repeated the test described in my previous comment. (The lunabase.org files do not seem to be available now.) To make sure that the bug is not in sox, I also tried the same test using wavplay. The results are the same from both userland programs. The short files are still either truncated or completely omitted. I request that this PR be re-opened. And, of course, I request that the bug be fixed. I again offer to work on it, if given some guidance. /Rcc From owner-freebsd-multimedia@FreeBSD.ORG Sat Nov 12 05:00:31 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8383F16A41F for ; Sat, 12 Nov 2005 05:00:31 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BED643D45 for ; Sat, 12 Nov 2005 05:00:31 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jAC50Vc7082451 for ; Sat, 12 Nov 2005 05:00:31 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAC50VCg082450; Sat, 12 Nov 2005 05:00:31 GMT (envelope-from gnats) Date: Sat, 12 Nov 2005 05:00:31 GMT Message-Id: <200511120500.jAC50VCg082450@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Ariff Abdullah Cc: Subject: Re: kern/31445: [sound] [patch] cat sound.au > /dev/audio fails for sounds > 4KB X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ariff Abdullah List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2005 05:00:31 -0000 The following reply was made to PR kern/31445; it has been noted by GNATS. From: Ariff Abdullah To: bug-followup@FreeBSD.org Cc: FBSD lists member <7c3b40e4@clements.org> Subject: Re: kern/31445: [sound] [patch] cat sound.au > /dev/audio fails for sounds > 4KB Date: Sat, 12 Nov 2005 12:52:49 +0800 On Sat, 12 Nov 2005 01:20:18 GMT FBSD lists member <7c3b40e4@clements.org> wrote: > > Assuming the above-mentioned "-current" referenced by netchild is > in 6.0 RELEASE, I believe this PR was incorrectly > (unthinkingly/disrespectfully?) closed. > You should have known that "-current" does mean "7". "6" is on its way to become "-stable". > > I have installed 6.0 on a box here and performed the test described > in my previous comment on this PR. > > I added snd_driver_load and sound_load to /boot/loader.conf, and > I downloaded/built sox from /usr/ports. > > I repeated the test described in my previous comment. (The > lunabase.org files do not seem to be available now.) > > To make sure that the bug is not in sox, I also tried the same > test using wavplay. > > The results are the same from both userland programs. The short > files are still either truncated or completely omitted. > Would you kindly repeat that test after applying patch from http://people.freebsd.org/~ariff/ ? Since you're using 'RELEASE', the appropriate patch is snd_RELENG_6_0_20051108_059.diff. It contains massive fixes, which unfortunately did not made its way into RELENG_6 by the time of 6.0-RELEASE. Part of the discussion (simmilar PR) can be found at http://lists.freebsd.org/pipermail/freebsd-multimedia/2005-November/003025.html > > I request that this PR be re-opened. And, of course, I > request that the bug be fixed. I again offer to work on > it, if given some guidance. > > -- Ariff Abdullah FreeBSD From owner-freebsd-multimedia@FreeBSD.ORG Sat Nov 12 12:36:00 2005 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92C7F16A41F for ; Sat, 12 Nov 2005 12:36:00 +0000 (GMT) (envelope-from barner@gmx.de) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id AC16743D4C for ; Sat, 12 Nov 2005 12:35:59 +0000 (GMT) (envelope-from barner@gmx.de) Received: (qmail invoked by alias); 12 Nov 2005 12:29:18 -0000 Received: from unknown (EHLO zi025.glhnet.mhn.de) [129.187.19.157] by mail.gmx.net (mp020) with SMTP; 12 Nov 2005 13:29:18 +0100 X-Authenticated: #147403 Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id B71D4C1B5; Sat, 12 Nov 2005 13:29:17 +0100 (CET) Date: Sat, 12 Nov 2005 13:29:17 +0100 From: Simon Barner To: multimedia@freebsd.org Message-ID: <20051112122917.GB29397@zi025.glhnet.mhn.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yNb1oOkm5a9FJOVX" Content-Disposition: inline User-Agent: Mutt/1.5.10i X-Y-GMX-Trusted: 0 Cc: Subject: [bktr] Add pci device id for TerraTValue cards. 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: Sat, 12 Nov 2005 12:36:00 -0000 --yNb1oOkm5a9FJOVX Content-Type: multipart/mixed; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, could somebody please have a look at kern/53383? I've added another subid, and made the patch apply against RELENG_6. The card works fine with xawtv, mplayer, ... The patch is also attached. Btw., kern/76002 also contains new PCI ids. Thanks in advance, --=20 Best regards / Viele Gr=FC=DFe, barner@FreeBSD.= org Simon Barner barner@gmx.de --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="bktr.patch" Content-Transfer-Encoding: quoted-printable diff -ruN sys/dev/bktr.orig/bktr_card.c sys/dev/bktr/bktr_card.c --- sys/dev/bktr.orig/bktr_card.c Sat Nov 12 12:19:40 2005 +++ sys/dev/bktr/bktr_card.c Sat Nov 12 12:29:01 2005 @@ -391,6 +391,18 @@ { 0x20000, 0x80000, 0, 0xa8000, 1 }, /* audio MUX values */ 0xAA0000 }, /* GPIO mask */ =20 + { CARD_TERRATVALUE, /* the card id */ + "TerraTec TValue", /* the 'name' */ + NULL, /* the tuner */ + 0, /* the tuner i2c address */ + 0, /* dbx is optional */ + 0, + 0, + 0, /* EEProm type */ + 0, /* EEProm size */ + /* Tuner, Extern, Intern, Mute, Enabled */ + { 0x500, 0x900, 0x300, 0x900, 1 }, /* audio MUX values */ + 0xffff00 }, /* GPIO mask */ }; =20 struct bt848_card_sig bt848_card_signature[1]=3D { @@ -582,6 +594,7 @@ #define PCI_VENDOR_AVERMEDIA 0x1461 #define PCI_VENDOR_STB 0x10B4 #define PCI_VENDOR_ASKEY 0x144F +#define PCI_VENDOR_TERRATEC 0x153B #endif /* Following not confirmed with http://members.hyperlink.net.au/~chart, so not added to NetBSD's pcidevs */ @@ -595,6 +608,8 @@ #define PCI_VENDOR_PINNACLE_NEW 0x11BD =20 #define MODEL_IODATA_GV_BCTV3_PCI 0x4020 +#define MODEL_TERRATVALUE_1118 0x1118 +#define MODEL_TERRATVALUE_1134 0x1134 =20 void probeCard( bktr_ptr_t bktr, int verbose, int unit ) @@ -739,6 +754,15 @@ goto checkTuner; } =20 + if ((subsystem_vendor_id =3D=3D PCI_VENDOR_TERRATEC) && + (subsystem_id =3D=3D MODEL_TERRATVALUE_1134 || + subsystem_id =3D=3D MODEL_TERRATVALUE_1118)) { + bktr->card =3D cards[ (card =3D CARD_TERRATVALUE) ]; + bktr->card.eepromAddr =3D eeprom_i2c_address; + bktr->card.eepromSize =3D (u_char)(256 / EEPROMBLOCKSIZE); + goto checkTuner; + } + /* Vendor is unknown. We will use the standard probe code */ /* which may not give best results */ printf("%s: Warning - card vendor 0x%04x (model 0x%04x) unknown.\n", @@ -1162,6 +1186,11 @@ =20 case CARD_IO_BCTV3: select_tuner( bktr, ALPS_TSCH5 ); /* ALPS_TSCH6, in fact. */ + goto checkDBX; + break; + + case CARD_TERRATVALUE: + select_tuner( bktr, PHILIPS_PAL); /* Phlips PAL tuner */ goto checkDBX; break; =20 diff -ruN sys/dev/bktr.orig/bktr_card.h sys/dev/bktr/bktr_card.h --- sys/dev/bktr.orig/bktr_card.h Sat Nov 12 12:19:40 2005 +++ sys/dev/bktr/bktr_card.h Sat Nov 12 12:21:01 2005 @@ -80,8 +80,9 @@ #define CARD_AOPEN_VA1000 18 #define CARD_PINNACLE_PCTV_RAVE 19 #define CARD_PIXELVIEW_PLAYTV_PAK 20 -#define Bt848_MAX_CARD 21 - +#define CARD_TERRATVALUE 21 +#define Bt848_MAX_CARD 22 +=20 #define CARD_IO_GV CARD_IO_BCTV2 =20 int signCard( bktr_ptr_t bktr, int offset, int count, u_char* sig ); --8t9RHnE3ZwKMSgU+-- --yNb1oOkm5a9FJOVX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDdeAdCkn+/eutqCoRAjxwAKDIlZlLpvXRFOTDwSWXK1NVTP7uEwCggqTC /HR9BBmGVXs7tn/u6LNiVAo= =NSHh -----END PGP SIGNATURE----- --yNb1oOkm5a9FJOVX-- From owner-freebsd-multimedia@FreeBSD.ORG Sat Nov 12 15:15:43 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2EBE16A41F for ; Sat, 12 Nov 2005 15:15:43 +0000 (GMT) (envelope-from vaida.bogdan@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34ECD43D45 for ; Sat, 12 Nov 2005 15:15:43 +0000 (GMT) (envelope-from vaida.bogdan@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so817093nzo for ; Sat, 12 Nov 2005 07:15:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IYR5GaFYvnW1WywJSz+MXHgR3CLSRTx+XHwu98N6Zo3YsgtYsjSFUesRDa0imVTMIbIy8nZQp1WLSMFFE0pPTWtyTxYGFD/fp/bFX56V2MnNqTlsEw6yHlEn4RMJhYNyb3xpABzjjYkLRhEPkuVX94lc806wFTi6ongL2PvdasQ= Received: by 10.36.222.1 with SMTP id u1mr2353491nzg; Sat, 12 Nov 2005 07:15:42 -0800 (PST) Received: by 10.36.251.53 with HTTP; Sat, 12 Nov 2005 07:15:42 -0800 (PST) Message-ID: <12848a3b0511120715o38e3d915yd68f9fdf120b9cf0@mail.gmail.com> Date: Sat, 12 Nov 2005 15:15:42 +0000 From: Vaida Bogdan To: freebsd-multimedia@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <12848a3b0505161744493e5343@mail.gmail.com> <20050518034840.009f8e10.skywizard@MyBSD.org.my> <12848a3b0505171702393c0944@mail.gmail.com> Subject: Re: volume problems with snd_via8233 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: Sat, 12 Nov 2005 15:15:43 -0000 Any ideeas here? [root@angelique:/tmp] # cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xd000 irq 22 kld snd_via8233 (5p/1r/0v channels duplex default) [root@angelique:/tmp] # dmesg|grep pcm0 pcm0: port 0xd000-0xd0ff irq 22 at device 17.5 on pci0 pcm0: [GIANT-LOCKED] pcm0: pcm0: detached pcm0: port 0xd000-0xd0ff irq 22 at device 17.5 on pci0 pcm0: [GIANT-LOCKED] pcm0: [root@angelique:/tmp] # mixer Mixer vol is currently set to 43:43 Mixer pcm is currently set to 100:100 Mixer speaker is currently set to 75:75 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer cd is currently set to 75:75 Mixer rec is currently set to 0:0 Mixer line1 is currently set to 75:75 Recording source: mic I guess I'll try the patches on 6.0 ... who knows... On 5/18/05, Brent Casavant wrote: > On Wed, 18 May 2005, vaida bogdan wrote: > > > Tried them with no luck. I don't know if I patched correctly though: > > I first tried the via8233.c.diff patch. (I still couldn't change volume= ) > > and then: ac97.c.diff vchan.c.diff (hint from fbsd-multimedia list)= . > > OK, dumb question. > > Are you sure you're plugged into the appropriate output jack. > A few months ago I had the same problems you are having, only > to find that my headphones were in the line-out jack instead > of the headphone jack. :( > > Brent > > -- > Brent Casavant http://www.angeltread.org/ > KD5EMB -.- -.. ..... . -- -... > 44 54'24"N 93 03'21"W 907FASL EN34lv > From owner-freebsd-multimedia@FreeBSD.ORG Sat Nov 12 16:06:59 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B30516A41F for ; Sat, 12 Nov 2005 16:06:59 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id F387743D45 for ; Sat, 12 Nov 2005 16:06:58 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 7592B6CC23; Sun, 13 Nov 2005 00:09:31 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27445-10; Sun, 13 Nov 2005 00:09:30 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id CBF2F6CC22; Sun, 13 Nov 2005 00:09:24 +0800 (MYT) Date: Sun, 13 Nov 2005 00:06:54 +0800 From: Ariff Abdullah To: Vaida Bogdan Message-Id: <20051113000654.554ed90f.skywizard@MyBSD.org.my> In-Reply-To: <12848a3b0511120715o38e3d915yd68f9fdf120b9cf0@mail.gmail.com> References: <12848a3b0505161744493e5343@mail.gmail.com> <20050518034840.009f8e10.skywizard@MyBSD.org.my> <12848a3b0505171702393c0944@mail.gmail.com> <12848a3b0511120715o38e3d915yd68f9fdf120b9cf0@mail.gmail.com> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: volume problems with snd_via8233 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: Sat, 12 Nov 2005 16:06:59 -0000 On Sat, 12 Nov 2005 15:15:42 +0000 Vaida Bogdan wrote: > Any ideeas here? > > [root@angelique:/tmp] # cat /dev/sndstat > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at io 0xd000 irq 22 kld snd_via8233 (5p/1r/0v > channels duplex default) > > [root@angelique:/tmp] # dmesg|grep pcm0 > pcm0: port 0xd000-0xd0ff irq 22 at device 17.5 on pci0 > pcm0: [GIANT-LOCKED] > pcm0: > pcm0: detached > pcm0: port 0xd000-0xd0ff irq 22 at device 17.5 on pci0 > pcm0: [GIANT-LOCKED] > pcm0: > > [root@angelique:/tmp] # mixer > Mixer vol is currently set to 43:43 > Mixer pcm is currently set to 100:100 > Mixer speaker is currently set to 75:75 > Mixer line is currently set to 75:75 > Mixer mic is currently set to 0:0 > Mixer cd is currently set to 75:75 > Mixer rec is currently set to 0:0 > Mixer line1 is currently set to 75:75 > Recording source: mic > > I guess I'll try the patches on 6.0 ... who knows... > The *official* fix can be found here: http://people.freebsd.org/~ariff/ -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Sat Nov 12 17:00:45 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC31416A41F; Sat, 12 Nov 2005 17:00:45 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93F1A43D46; Sat, 12 Nov 2005 17:00:45 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jACH0jii083343; Sat, 12 Nov 2005 17:00:45 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jACH0joD083339; Sat, 12 Nov 2005 17:00:45 GMT (envelope-from linimon) Date: Sat, 12 Nov 2005 17:00:45 GMT From: Mark Linimon Message-Id: <200511121700.jACH0joD083339@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/86747: [sound] snd_ich and snd_driver .ko's strongly load CPU 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: Sat, 12 Nov 2005 17:00:46 -0000 Synopsis: [sound] snd_ich and snd_driver .ko's strongly load CPU Responsible-Changed-From-To: freebsd-bugs->freebsd-multimedia Responsible-Changed-By: linimon Responsible-Changed-When: Sat Nov 12 17:00:32 GMT 2005 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=86747