From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 18 17:32:54 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 4EAB116A41F; Sun, 18 Sep 2005 17:32:54 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 997DB43D45; Sun, 18 Sep 2005 17:32:52 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-216-87-133.daxnet.no ([193.216.87.133] verified) by mailfe07.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 260678742; Sun, 18 Sep 2005 19:32:50 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, freebsd-multimedia@freebsd.org Date: Sun, 18 Sep 2005 19:33:45 +0200 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509181933.47262.hselasky@c2i.net> Cc: Subject: New USB driver & API (updated) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2005 17:32:54 -0000 Hi, I have just updated my USB driver for FreeBSD 5/6/7. Download the three files below into a new directory and type "make install" (to uninstall type "make deinstall") http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 Type "make help" to get more help. I have included a patch for "uaudio.c" that will allow "full duplex" to work. This time I have added two refcounts to each "struct usbd_xfer". The one refcount keeps track of the number of threads that are holding a reference to it, and is decremented when memory is freed. The other refcount keeps track of the number of re-starts, and is incremented when a USB transfer is stopped. For example see "ehci_pcd_enable()" in "/sys/dev/usb2/_ehci.c" and "usbd_do_callback()" in "/sys/dev/usb2/_usb.c". This is almost like in Objective C. Stopping and starting a transfer does not block or sleep, which means one can hold a lock while doing this. I have added a callback, search for "priv_func", that will be called just before the USB transfer memory is freed. This can be used for mutex destruction purposes, and alike. I want to use "callout_init_mtx()", but I am not sure when this was introduced, and to not break this driver on older versions of FreeBSD, I still use "callout_init()". But this is just a matter of a few one-liners. I have done an great deal of work on "ugen" and it should now support BULK-, INTERRUPT- and ISOCHRONOUS- transfers in read and write direction. If you are interested, you can have a look at: "/sys/dev/usb2/_ugen.c" --HPS From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 18 23:11: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 234C216A41F for ; Sun, 18 Sep 2005 23:11:15 +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 8C44243D45 for ; Sun, 18 Sep 2005 23:11:14 +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 <0IN100CQICIUUBD0@osl1smout1.broadpark.no> for freebsd-multimedia@freebsd.org; Mon, 19 Sep 2005 01:13:42 +0200 (CEST) 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 <0IN100CQQCJZEKE0@osl1sminn1.broadpark.no> for freebsd-multimedia@freebsd.org; Mon, 19 Sep 2005 01:14:23 +0200 (CEST) Date: Mon, 19 Sep 2005 01:11:12 +0200 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: <20050914233049.70de9af6.skywizard@MyBSD.org.my> To: freebsd-multimedia@freebsd.org Message-id: <20050919011112.6fb1bdde.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: multipart/mixed; boundary="Boundary_(ID_/eApMew+Bk/sJOGdXiEVXQ)" References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509141241.22914.lofi@freebsd.org> <20050914201600.383df2ce.skywizard@MyBSD.org.my> <200509141618.06677.lofi@freebsd.org> <20050914233049.70de9af6.skywizard@MyBSD.org.my> Subject: Re: As promised: Soft volume mixer 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: Sun, 18 Sep 2005 23:11:15 -0000 This is a multi-part message in MIME format. --Boundary_(ID_/eApMew+Bk/sJOGdXiEVXQ) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT On Wed, 14 Sep 2005 23:30:49 +0800 Ariff Abdullah wrote: > For RELENG_5: > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_RELENG_5_20050914_038softvol.diff I tried "snd_RELENG_5_20050916_043softvol.diff" on a ThinkPad T41. tingo@kg-jobbpc3$ uname -a FreeBSD kg-jobbpc3.kg4.no 5.4-STABLE FreeBSD 5.4-STABLE #4: Sun Sep 18 21:05:32 CEST 2005 root@kg-jobbpc3.kg4.no:/storage/usr/obj/storage/usr/src/sys/T41_NOUHID i386 This is a freshly built, clean RELENG_5 machine, I have cvup'ed and built it, nothing else. Before patch: ----------------- tingo@kg-jobbpc3$ dmesg | grep pcm pcm0: port 0x18c0-0x18ff,0x1c00-0x1cff mem 0xc0000800-0xc00008ff,0xc0000c00-0xc0000dff irq 11 at device 31.5 on pci0 pcm0: tingo@kg-jobbpc3$ /usr/sbin/mixer Mixer vol is currently set to 62:62 Mixer pcm is currently set to 87:87 Mixer line is currently set to 0:0 Mixer mic is currently set to 0:0 Mixer cd is currently set to 0:0 Mixer rec is currently set to 0:0 Mixer ogain is currently set to 0:0 Mixer line1 is currently set to 0:0 Mixer phin is currently set to 0:0 Mixer phout is currently set to 0:0 Recording source: mic 'pciconf -lv' pcm0@pci0:31:5: class=0x040100 card=0x05371014 chip=0x24c58086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller' class = multimedia subclass = audio After patch: --------------- i don't know, the patch applied fine (I did a "find . -name '*.rej' -print"), but my 'make buildkernel ...' failed. See attached text file for (the last parts of) error messages. What did I do wrong? -- Regards, Torfinn Ingolfsen, Norway --Boundary_(ID_/eApMew+Bk/sJOGdXiEVXQ) Content-type: text/plain; name=snd_errrors.txt Content-transfer-encoding: 7BIT Content-disposition: attachment; filename=snd_errrors.txt redefinition of 'slave_methods' /storage/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/slavechan.c:249: error: previous definition of 'slave_methods' was here /storage/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/slavechan.c:640: error: redefinition of 'slave_class' /storage/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/slavechan.c:259: error: previous definition of 'slave_class' was here /storage/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/slavechan.c:644: error: redefinition of 'slave_create' /storage/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/slavechan.c:263: error: previous definition of 'slave_create' was here /storage/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/slavechan.c:705: error: redefinition of 'slave_destroy' /storage/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/slavechan.c:324: error: previous definition of 'slave_destroy' was here {standard input}: Assembler messages: {standard input}:1102: Error: symbol `sndstat_vinfo' is already defined {standard input}:1137: Error: symbol `feeder_slave_desc' is already defined {standard input}:1306: Error: symbol `feeder_slave_methods' is already defined {standard input}:1314: Error: symbol `feeder_slave_class' is already defined {standard input}:1325: Error: symbol `feeder_slave_sys_init' is already defined {standard input}:1334: Error: symbol `__set_sysinit_set_sym_feeder_slave_sys_init' is al ready defined {standard input}:1340: Error: symbol `slave_methods' is already defined {standard input}:1360: Error: symbol `slave_class' is already defined *** Error code 1 Stop in /storage/usr/src/sys/modules/sound/sound. *** Error code 1 Stop in /storage/usr/src/sys/modules/sound. *** Error code 1 Stop in /storage/usr/src/sys/modules. *** Error code 1 Stop in /storage/usr/obj/storage/usr/src/sys/T41_NOUHID. *** Error code 1 Stop in /storage/usr/src. *** Error code 1 Stop in /storage/usr/src. --Boundary_(ID_/eApMew+Bk/sJOGdXiEVXQ)-- From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 19 00:01: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 48EA216A420 for ; Mon, 19 Sep 2005 00:01:30 +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 B713943D45 for ; Mon, 19 Sep 2005 00:01:29 +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 48CE16CC25; Mon, 19 Sep 2005 08:09: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 91969-06; Mon, 19 Sep 2005 08:09:47 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 5AD706CC23; Mon, 19 Sep 2005 08:09:46 +0800 (MYT) Date: Mon, 19 Sep 2005 08:01:24 +0800 From: Ariff Abdullah To: Torfinn Ingolfsen Message-Id: <20050919080124.6966330a.skywizard@MyBSD.org.my> In-Reply-To: <20050919011112.6fb1bdde.torfinn.ingolfsen@broadpark.no> References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509141241.22914.lofi@freebsd.org> <20050914201600.383df2ce.skywizard@MyBSD.org.my> <200509141618.06677.lofi@freebsd.org> <20050914233049.70de9af6.skywizard@MyBSD.org.my> <20050919011112.6fb1bdde.torfinn.ingolfsen@broadpark.no> 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-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: As promised: Soft volume mixer 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: Mon, 19 Sep 2005 00:01:30 -0000 On Mon, 19 Sep 2005 01:11:12 +0200 Torfinn Ingolfsen wrote: > > After patch: > --------------- > i don't know, the patch applied fine (I did a "find . -name '*.rej' > -print"), but my 'make buildkernel ...' failed. > See attached text file for (the last parts of) error messages. > > What did I do wrong? rm -rf /usr/src/sys/dev/sound /usr/src/sys/modules/sound/sound rm -f /usr/src/sys/conf/files /usr/src/sys/sys/soundcard.h .. and re'cvsup. You need to do this everytime you run cvsup, unless you do the reverse patch procedure. Also, please disable extra optimization (if any) and make sure there are no old object files laying around in your obj directory (notably /storage/usr/obj/storage/usr/src/sys/T41_NOUHID). Hope that helps. -- 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 Mon Sep 19 11:02: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 123FD16A41F for ; Mon, 19 Sep 2005 11:02:16 +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 C5B5543D46 for ; Mon, 19 Sep 2005 11:02:15 +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 j8JB2F9Q018130 for ; Mon, 19 Sep 2005 11:02:15 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8JB2E30018123 for freebsd-multimedia@freebsd.org; Mon, 19 Sep 2005 11:02:14 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 19 Sep 2005 11:02:14 GMT Message-Id: <200509191102.j8JB2E30018123@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, 19 Sep 2005 11:02:16 -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/03/29] kern/64879 multimedia [sound] [hang] 4.9 freezes when I try to f [2004/10/08] kern/72439 multimedia [sound] Sound not functioning for VIA_823 f [2004/10/15] kern/72738 multimedia [sound] pcm0:play:0: play interrupt timeo f [2004/11/16] kern/73987 multimedia [sound] Nforce2 MB sound problem o [2004/12/31] kern/75687 multimedia [patch] [sound] 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 19 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/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 f [2004/12/09] kern/74893 multimedia [patch] [sound] Channels of USB audio can o [2004/12/20] kern/75316 multimedia [patch] [sound] 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 [patch] [sound] 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 [patch] [panic] with the vibra16x when tr o [2005/04/20] kern/80149 multimedia problems with an soundblaster-8 (original o [2005/04/20] kern/80151 multimedia [patch] [sound] Missing ESS ES1688 PCI-ID o [2005/04/20] kern/80152 multimedia [patch] [sound] SIMPLEX flag is not set p o [2005/04/22] kern/80234 multimedia [patch] [sound] 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 [patch] Intel ICH3 sound chip reverts to 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 Devi 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 61 problems total. From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 19 14:46: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 1904C16A41F for ; Mon, 19 Sep 2005 14:46:52 +0000 (GMT) (envelope-from kwieland@wustl.edu) Received: from ascc.artsci.wustl.edu (ascc.artsci.wustl.edu [128.252.93.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D78043D66 for ; Mon, 19 Sep 2005 14:46:43 +0000 (GMT) (envelope-from kwieland@wustl.edu) Received: from [128.252.125.191] (solin2.wustl.edu [128.252.125.191]) (authenticated bits=0) by ascc.artsci.wustl.edu (8.12.11/8.12.11) with ESMTP id j8JEkgcC023174 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Mon, 19 Sep 2005 09:46:42 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v622) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-multimedia@freebsd.org From: K Wieland Date: Mon, 19 Sep 2005 09:45:31 -0500 X-Mailer: Apple Mail (2.622) Subject: Snd_ich on amd64 6.0B4 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, 19 Sep 2005 14:46:52 -0000 Hello, I had a quick question. First, I have a custom kernel with the sound for my chipset (nForce3 250, AC '97, supported by snd_ich) device sound device snd_ich Below is a copy of my dmesg. If you need other info, let me know. There is no mention whatsoever of the sound, whereas in 5.4 there was at least a message. The funny thing is that the sound devices are still present and work. Is this a bug or just a change for 6.0? Thanks, Kristopher Wieland FreeBSD kawhomepc.wustl.edu 6.0-BETA4 FreeBSD 6.0-BETA4 #2: Sat Sep 17 22:21:53 CDT 2005 root@kawhomepc.wustl.edu:/usr/obj/usr/src/sys/kawkernel amd64 Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.0-BETA4 #2: Sat Sep 17 22:21:53 CDT 2005 root@kawhomepc.wustl.edu:/usr/obj/usr/src/sys/kawkernel WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 Processor 3000+ (2009.79-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0xfc0 Stepping = 0 Features=0x78bfbff AMD Features=0xe0500800 real memory = 1073676288 (1023 MB) avail memory = 1027506176 (979 MB) ACPI APIC Table: ioapic0 irqs 0-23 on motherboard acpi0: on motherboard acpi0: Power Button (fixed) pci_link0: irq 3 on acpi0 pci_link1: irq 5 on acpi0 pci_link2: on acpi0 pci_link3: irq 11 on acpi0 pci_link4: on acpi0 pci_link5: irq 3 on acpi0 pci_link6: irq 3 on acpi0 pci_link7: irq 5 on acpi0 pci_link8: on acpi0 pci_link9: irq 10 on acpi0 pci_link10: on acpi0 pci_link11: irq 5 on acpi0 pci_link12: irq 3 on acpi0 pci_link13: on acpi0 pci_link14: on acpi0 pci_link15: on acpi0 pci_link16: irq 11 on acpi0 pci_link17: irq 10 on acpi0 pci_link18: irq 16 on acpi0 pci_link19: irq 17 on acpi0 pci_link20: irq 18 on acpi0 pci_link21: irq 19 on acpi0 pci_link22: irq 16 on acpi0 pci_link23: irq 0 on acpi0 pci_link24: irq 0 on acpi0 pci_link25: irq 0 on acpi0 pci_link26: irq 0 on acpi0 pci_link27: irq 0 on acpi0 pci_link28: irq 0 on acpi0 pci_link29: irq 0 on acpi0 pci_link30: irq 0 on acpi0 pci_link31: irq 0 on acpi0 pci_link32: irq 0 on acpi0 pci_link33: irq 0 on acpi0 pci_link34: irq 0 on acpi0 pci_link35: irq 0 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff,0xcf0-0xcf3 on acpi0 pci0: on pcib0 agp0: mem 0xd8000000-0xdbffffff at device 0.0 on pci0 isab0: at device 1.0 on pci0 isa0: on isab0 pci0: at device 1.1 (no driver attached) ohci0: mem 0xe0002000-0xe0002fff irq 21 at device 2.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered ohci1: mem 0xe0003000-0xe0003fff irq 22 at device 2.1 on pci0 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0, legacy support usb1: SMM does not respond, resetting usb1: on ohci1 usb1: USB revision 1.0 uhub1: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 4 ports with 4 removable, self powered ehci0: mem 0xe0004000-0xe00040ff irq 23 at device 2.2 on pci0 ehci0: [GIANT-LOCKED] usb2: EHCI version 1.0 usb2: companion controllers, 4 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 8 ports with 8 removable, self powered nve0: port 0xa400-0xa407 mem 0xe0005000-0xe0005fff irq 21 at device 5.0 on pci0 nve0: Ethernet address 00:11:09:62:2a:15 miibus0: on nve0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto nve0: Ethernet address: 00:11:09:62:2a:15 nve0: [GIANT-LOCKED] pcm0: port 0xa800-0xa8ff,0xac00-0xac7f mem 0xe0000000-0xe0000fff irq 22 at device 6.0 on pci0 pcm0: [GIANT-LOCKED] pcm0: atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 8.0 on pci0 ata0: on atapci0 ata1: on atapci0 atapci1: port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xc800-0xc80f,0xcc00 -0xcc7f irq 23 at device 9.0 on pci0 ata2: on atapci1 ata3: on atapci1 atapci2: port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xe000-0xe00f,0xe400 -0xe47f irq 20 at device 10.0 on pci0 ata4: on atapci2 ata5: on atapci2 pcib1: at device 11.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) pci1: at device 0.1 (no driver attached) pcib2: at device 14.0 on pci0 pci_link18: BIOS IRQ 22 for 0.6.INTA is invalid pci_link21: BIOS IRQ 23 for 0.9.INTA is invalid pci_link19: BIOS IRQ 20 for 0.10.INTA is invalid pci2: on pcib2 pci2: at device 7.0 (no driver attached) bktr0: mem 0xdf000000-0xdf000fff irq 19 at device 9.0 on pci2 bktr0: [GIANT-LOCKED] bktr0: AVer Media TV/FM, Philips NTSC tuner. pci2: at device 9.1 (no driver attached) fwohci0: port 0x9400-0x947f mem 0xde010000-0xde0107ff irq 19 at device 12.0 on pci2 fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:10:dc:00:00:75:fa:9e fwohci0: Phy 1394a available S400, 3 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwohci0: Initiate bus reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A ppc0: port 0x378-0x37f,0x778-0x77b irq 7 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 ppbus0: IEEE1284 device found /NIBBLE/ECP Probing for PnP devices on ppbus0: ppbus0: SCP,VLINK lpt0: on ppbus0 lpt0: Interrupt-driven port atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse Explorer, device ID 4 orm0: at iomem 0xc0000-0xccfff,0xd0000-0xd3fff,0xd4000-0xd57ff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 uhid0: American Power Conversion Back-UPS 500 FW: 6.4.D USB FW: c1, rev 1.10/1.00, addr 2, iclass 3/0 ugen0: vendor 0x046d Camera, rev 2.00/1.00, addr 3 uscanner0: Canon CanoScan, rev 1.00/1.00, addr 4 Timecounter "TSC" frequency 2009792405 Hz quality 800 Timecounters tick every 1.000 msec ad0: 114473MB at ata0-master UDMA100 ad1: 39205MB at ata0-slave UDMA133 acd0: DVDROM at ata1-slave UDMA33 Trying to mount root from ufs:/dev/ad0s2a From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 19 17:39:23 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 28BB616A41F for ; Mon, 19 Sep 2005 17:39:23 +0000 (GMT) (envelope-from freebsd@fadesa.es) Received: from fuego.fadesa.es (fuego.fadesa.es [195.55.55.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA4D043D46 for ; Mon, 19 Sep 2005 17:39:20 +0000 (GMT) (envelope-from freebsd@fadesa.es) Received: (from root@localhost) by fuego.fadesa.es (8.9.3p2/8.8.8) id TAA17457 for ; Mon, 19 Sep 2005 19:41:06 +0200 Received: from tierra.fadesa.es(195.55.55.7) by fuego.fadesa.es Mon, 19 Sep 05 19:40:49 +0200 Received: from fadesa.es (filemon.fadesa.es [195.55.55.6] (may be forged)) by tierra.fadesa.es (8.9.3p2/8.8.8) with ESMTP id TAA26689 for ; Mon, 19 Sep 2005 19:38:51 +0200 Sender: fan@fadesa.es Message-ID: <432EF7AB.ED2AF314@fadesa.es> Date: Mon, 19 Sep 2005 19:38:51 +0200 From: "=?iso-8859-15?Q?Jos=E9?= M. =?iso-8859-15?Q?Fandi=F1o?=" Organization: Inmobiliaria FADESA X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.30-ow1 i686) X-Accept-Language: gl, en, es MIME-Version: 1.0 To: multimedia@freebsd.org Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Logged: Logged by tierra.fadesa.es as TAA26689 at Mon Sep 19 19:38:51 2005 Cc: Subject: about text2wave (audio/festival) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@fadesa.es List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2005 17:39:23 -0000 Hello list, I was trying to get a spoken version of the FreeBSD handbook with the text2wave script (available with the festival speech synthesis system), but something is wrong with the default installation. That is what I get: > festival /usr/local/share/festival/examples/text2wave SIOD ERROR: unbound variable argv closing a file left open: /usr/local/share/festival/examples/text2wave anyone knows how to get this working? Thank you. -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/IT d- s+:+() a31 C+++ UBL+++$ P+ L+++ E--- W++ N+ o++ K- w--- O+ M+ V- PS+ PE+ Y++ PGP+>+++ t+ 5 X+$ R- tv-- b+++ DI D++>+++ G++ e- h+(++) !r !z ------END GEEK CODE BLOCK------ From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 20 00:13: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 CDF5016A41F; Tue, 20 Sep 2005 00:13:04 +0000 (GMT) (envelope-from myfreebsd@cox.net) Received: from eastrmmtao06.cox.net (eastrmmtao06.cox.net [68.230.240.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B83943D45; Tue, 20 Sep 2005 00:13:03 +0000 (GMT) (envelope-from myfreebsd@cox.net) Received: from [192.168.1.3] (really [70.171.62.169]) by eastrmmtao06.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20050920001301.DOIZ17424.eastrmmtao06.cox.net@[192.168.1.3]>; Mon, 19 Sep 2005 20:13:01 -0400 From: David Wassman To: freebsd-multimedia@freebsd.org, freebsd-hardware@freebsd.org, freebsd-question@freebsd.org Date: Mon, 19 Sep 2005 20:12:57 -0400 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509192012.58750.myfreebsd@cox.net> Cc: Subject: Sound Control 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, 20 Sep 2005 00:13:05 -0000 I cannot get any application that I run to control the volume. I get sound but am not able to adust the volume level. So far the following apps have shown this problem: MPlayer Xine XMMS KMix Noatun (no sound at all so may be different issue) Kaboodle I am running FreeBSD 5.4/KDE 3.2.4 with a Sound Blaster Live! sound card. My sndstat: pcm0: at io 0xb800 irq 11 kld snd_emu10k1 (4p/2r/4v channels duplex default) so the card is recognized. I have adjusted the virtual channels in sysctl.conf and the sndstat shows there are 4v chanels. I have both esound and arts. Thought this may be an issue but both are dependencies of KDE-Multimedia So far I have tried the following: 1) Updating ports and ran portmanager. No effect. 2) Changed KControl->Sound System to use the following in all combinations: Autodetect Threaded OSS OSS Full Duplex /dev/dsp0.0 /dev/dspW0.0 /dev/dsp0.1 /dev/dspW0.1 No avail. 3) Tried OSS drivers instead of FreeBSD native. Could not initialize the card. 4) Rebuilt both esound and arts. No effect I have googled this yet cannot find any post with similar issue (except one in which the onboard card was not deactivated. I do not have an onboard). The only other thing I could think of is to update the whole system in buildworld. Not really excited about this option as everything else is working great (don't want to mess with it). I use this as my primary desktop so I don't want to be down for that long. Anyone have any ideas or a direction to point me in? Thanks in advance, David From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 20 00:50: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 118CE16A41F for ; Tue, 20 Sep 2005 00:50:15 +0000 (GMT) (envelope-from michaels@sdf.lonestar.org) Received: from sdf.lonestar.org (mx.freeshell.ORG [192.94.73.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4E4F43D45 for ; Tue, 20 Sep 2005 00:50:14 +0000 (GMT) (envelope-from michaels@sdf.lonestar.org) Received: from sdf.lonestar.org (IDENT:michaels@otaku.freeshell.org [192.94.73.2]) by sdf.lonestar.org (8.13.1/8.12.10) with ESMTP id j8K0o4Ec012436; Tue, 20 Sep 2005 00:50:04 GMT Received: from localhost (localhost [[UNIX: localhost]]) by sdf.lonestar.org (8.13.1/8.12.8/Submit) id j8K0o37W002297; Tue, 20 Sep 2005 00:50:03 GMT Date: Mon, 19 Sep 2005 18:51:10 -0600 From: Michael Seyfert To: David Wassman Message-ID: <20050920005110.GA72720@sdf.lonestar.org> References: <200509192012.58750.myfreebsd@cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200509192012.58750.myfreebsd@cox.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound Control 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, 20 Sep 2005 00:50:15 -0000 On Mon, Sep 19, 2005 at 08:12:57PM -0400, David Wassman wrote: > I cannot get any application that I run to control the volume. I get sound but > am not able to adust the volume level. So far the following apps have shown Please give ports/audio/emu10kx a try. From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 20 04:18: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 4D4C016A41F for ; Tue, 20 Sep 2005 04:18:03 +0000 (GMT) (envelope-from myfreebsd@cox.net) Received: from eastrmmtai08.cox.net (eastrmmtai08.cox.net [68.230.240.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5B1443D45 for ; Tue, 20 Sep 2005 04:18:02 +0000 (GMT) (envelope-from myfreebsd@cox.net) Received: from [192.168.1.3] (really [70.171.62.169]) by centrmmtao06.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20050920041720.HGBB20572.centrmmtao06.cox.net@[192.168.1.3]>; Tue, 20 Sep 2005 00:17:20 -0400 From: David Wassman To: Michael Seyfert Date: Tue, 20 Sep 2005 00:17:15 -0400 User-Agent: KMail/1.8.2 References: <200509192012.58750.myfreebsd@cox.net> <20050920005110.GA72720@sdf.lonestar.org> In-Reply-To: <20050920005110.GA72720@sdf.lonestar.org> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200509200017.16095.myfreebsd@cox.net> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound Control 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, 20 Sep 2005 04:18:03 -0000 On Monday 19 September 2005 08:51 pm, Michael Seyfert wrote: > On Mon, Sep 19, 2005 at 08:12:57PM -0400, David Wassman wrote: > > I cannot get any application that I run to control the volume. I get > > sound but am not able to adust the volume level. So far the following > > apps have shown > > Please give ports/audio/emu10kx a try. Mike, Thanks for the info. Tried the emu10kx driver and after some fiddling to get the sound working through emuctrl, I am back at the same problem. I still cannot adjust the volume in the programs themselfs (other than thru running a konsole and issuing emuctrl commands). Any ideas? It would be great to get at least kmix working. Surprisingly, Amarok has no problem in adjusting the sound. Again, much appreciation for any help. David From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 20 05:08:54 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 2745516A41F for ; Tue, 20 Sep 2005 05:08:54 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99E6443D45 for ; Tue, 20 Sep 2005 05:08:53 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by zproxy.gmail.com with SMTP id 40so158793nzk for ; Mon, 19 Sep 2005 22:08:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=rGjuSdKTtLgXXVOBlxCfw+PXXra0PYfNTFxqczF8xh099CoNK/fAC4oIMwF+dzqHkDq49Un6n1aWB5igx+nRAsaWwAdpcu7ahMRX2tXkfIOHJ1jTWauzjfMst13ZaoRw7Eo58o1rxxi6rQ9Qp+GWF42G4OS9ND+4z1r0Qsq4e4s= Received: by 10.37.21.19 with SMTP id y19mr3010942nzi; Mon, 19 Sep 2005 22:08:52 -0700 (PDT) Received: from michelle.rndsoft.co.kr ( [211.32.202.211]) by mx.gmail.com with ESMTP id 19sm6007459nzp.2005.09.19.22.08.51; Mon, 19 Sep 2005 22:08:52 -0700 (PDT) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.1/8.13.1) with ESMTP id j8K58aDr002949 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Sep 2005 14:08:36 +0900 (KST) (envelope-from yongari@gmail.com) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id j8K58Vqm002948; Tue, 20 Sep 2005 14:08:31 +0900 (KST) (envelope-from yongari@gmail.com) Date: Tue, 20 Sep 2005 14:08:31 +0900 From: Pyun YongHyeon To: "Steven S." Message-ID: <20050920050831.GC754@rndsoft.co.kr> References: <20050914174543.L45764@atlantis.403forbidden.net> <20050915033658.GB17602@rndsoft.co.kr> <20050915165132.A45764@atlantis.403forbidden.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050915165132.A45764@atlantis.403forbidden.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org Subject: Re: any hope for maestro support? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2005 05:08:54 -0000 On Thu, Sep 15, 2005 at 05:00:44PM -0400, Steven S. wrote: > > > what source tree is that from? > CURRENT. > the patch fails and going through it my maestro.c doesnt > even come close to the patch. > > I cvsup'd RELENG_5. > > is this for 6x? > I think it would apply cleanly to RELENG_6 too. -- Regards, Pyun YongHyeon From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 20 05:25: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 C84B716A41F for ; Tue, 20 Sep 2005 05:25:52 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-04.arcor-online.net (mail-in-04.arcor-online.net [151.189.21.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id E764D43D48 for ; Tue, 20 Sep 2005 05:25:51 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-09-z2.arcor-online.net (mail-in-09-z2.arcor-online.net [151.189.8.21]) by mail-in-04.arcor-online.net (Postfix) with ESMTP id AD43A699E0 for ; Tue, 20 Sep 2005 07:25:50 +0200 (CEST) Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mail-in-09-z2.arcor-online.net (Postfix) with ESMTP id 9E36B5ED43 for ; Tue, 20 Sep 2005 07:25:50 +0200 (CEST) Received: from lofi.dyndns.org (dsl-084-061-131-170.arcor-ip.net [84.61.131.170]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id 0C21F79776 for ; Tue, 20 Sep 2005 07:25:50 +0200 (CEST) Received: from kiste.my.domain (root@kiste.my.domain [192.168.8.4]) by lofi.dyndns.org (8.13.4/8.13.3) with ESMTP id j8K5PmNi039965 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 20 Sep 2005 07:25:48 +0200 (CEST) (envelope-from lofi@freebsd.org) Received: from kiste.my.domain (lofi@localhost [127.0.0.1]) by kiste.my.domain (8.13.4/8.13.1) with ESMTP id j8K5PlrW010905 for ; Tue, 20 Sep 2005 07:25:47 +0200 (CEST) (envelope-from lofi@freebsd.org) Received: from localhost (localhost [[UNIX: localhost]]) by kiste.my.domain (8.13.4/8.13.1/Submit) id j8K5PlO1010904 for freebsd-multimedia@freebsd.org; Tue, 20 Sep 2005 07:25:47 +0200 (CEST) (envelope-from lofi@freebsd.org) X-Authentication-Warning: kiste.my.domain: lofi set sender to lofi@freebsd.org using -f From: Michael Nottebrock To: freebsd-multimedia@freebsd.org Date: Tue, 20 Sep 2005 07:25:45 +0200 User-Agent: KMail/1.8.2 References: <200509192012.58750.myfreebsd@cox.net> In-Reply-To: <200509192012.58750.myfreebsd@cox.net> X-Face: =Ym$`&q\+S2X$4`X%x%6"L4>Y,$]<":'L%c9"#7#`2tb&E&wsN31on!N\)3BD[g<=?utf-8?q?=2EjnfV=5B=0A=093=23?=>XchLK,o; >bD>c:]^; :>0>vyZ.X[,63GW`&M>}nYnr]-Fp``,[[@lJ!QL|sfW!s)=?utf-8?q?A2!*=0A=09vNkB/=7CL-?=>&QdSbQg X-Virus-Scanned: by amavisd-new Subject: Re: Sound Control 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, 20 Sep 2005 05:25:53 -0000 --nextPart1911425.AOGzmufbet Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday, 20. September 2005 02:12, David Wassman wrote: > I cannot get any application that I run to control the volume. I get sound > but am not able to adust the volume level. So far the following apps have > shown this problem: > [...] > Noatun (no sound at all so may be different issue) =2E.. is currently broken and doesn't output any sound at all=20 (http://bugs.kde.org/show_bug.cgi?id=3D111475). > Kaboodle =2E.. has no volume control to begin with. > Surprisingly, Amarok has no problem in adjusting the sound. Amarok (and all other applications that use the KDE soundserver, arts, for= =20 output) has a "soft" volume control - the volume adjusting isn't done throu= gh=20 the standard OSS mixer but by the soundserver directly on the audiostream). > I am running FreeBSD 5.4/KDE 3.2.4 with a Sound Blaster Live! sound card. > My sndstat: > pcm0: at io 0xb800 irq 11 kld snd_emu10k1 (4p/2r/4v > channels duplex default) > so the card is recognized. The driver(s) may simply not support the standard OSS mixer correctly, in=20 which case there's nothing much you can do. =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --nextPart1911425.AOGzmufbet Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDL51bXhc68WspdLARAr9WAJ9mA+OTaTKomfGfKx775MDf34MbAACZARia 0paF2CWoPPaB+Mme7D6DSqc= =jC7j -----END PGP SIGNATURE----- --nextPart1911425.AOGzmufbet-- From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 20 06:36: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 9381516A41F for ; Tue, 20 Sep 2005 06:36:53 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id D77D543D48 for ; Tue, 20 Sep 2005 06:36:52 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by zproxy.gmail.com with SMTP id 40so171872nzk for ; Mon, 19 Sep 2005 23:36:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=UB4l/nGi4UncHStfui/4jufVj+ZGjAxMwd1n0dxlerwgxAYq1av5shOl9LNElvK4nXBzgmGjLwSo3jf3J3bPLKO3p/NnbDkpKSa86e1bdFjsbl60XVuJUU+STVCXLzu3ZVnPE/trK898kGgRR4O2Q5gh9cLC5APQ395pZ9xjfTg= Received: by 10.36.46.15 with SMTP id t15mr3097387nzt; Mon, 19 Sep 2005 23:36:52 -0700 (PDT) Received: from michelle.rndsoft.co.kr ( [211.32.202.211]) by mx.gmail.com with ESMTP id 19sm6085575nzp.2005.09.19.23.36.50; Mon, 19 Sep 2005 23:36:52 -0700 (PDT) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.1/8.13.1) with ESMTP id j8K6alFV003262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Sep 2005 15:36:47 +0900 (KST) (envelope-from yongari@gmail.com) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id j8K6ak0L003261; Tue, 20 Sep 2005 15:36:46 +0900 (KST) (envelope-from yongari@gmail.com) Date: Tue, 20 Sep 2005 15:36:46 +0900 From: Pyun YongHyeon To: K Wieland Message-ID: <20050920063646.GD754@rndsoft.co.kr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org Subject: Re: Snd_ich on amd64 6.0B4 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2005 06:36:53 -0000 On Mon, Sep 19, 2005 at 09:45:31AM -0500, K Wieland wrote: > Hello, > > I had a quick question. > > First, I have a custom kernel with the sound for my chipset (nForce3 > 250, AC '97, supported by snd_ich) > > device sound > device snd_ich > > Below is a copy of my dmesg. If you need other info, let me know. > > There is no mention whatsoever of the sound, whereas in 5.4 there was > at least a message. The funny thing is that the sound devices are > still present and work. > > Is this a bug or just a change for 6.0? > > Thanks, > [...] > nve0: port 0xa400-0xa407 mem > 0xe0005000-0xe0005fff irq 21 at device 5.0 on pci0 > nve0: Ethernet address 00:11:09:62:2a:15 > miibus0: on nve0 > ukphy0: on miibus0 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-FDX, auto > nve0: Ethernet address: 00:11:09:62:2a:15 > nve0: [GIANT-LOCKED] > pcm0: port 0xa800-0xa8ff,0xac00-0xac7f mem ^^^^^^^^^^^^^^^^^^^^^^^^^^ > 0xe0000000-0xe0000fff irq 22 at device 6.0 on pci0 > pcm0: [GIANT-LOCKED] > pcm0: I can see a pcm0 device in the message. Did you want somthing other one?(You can get a list of installed sound hw with "cat /dev/sndstat".) -- Regards, Pyun YongHyeon From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 20 06:47:07 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 E828A16A41F for ; Tue, 20 Sep 2005 06:47:07 +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 689A943D46 for ; Tue, 20 Sep 2005 06:47: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 825A16CC2D; Tue, 20 Sep 2005 14:55:32 +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 03366-09; Tue, 20 Sep 2005 14:55:30 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 776C96CC23; Tue, 20 Sep 2005 14:55:29 +0800 (MYT) Date: Tue, 20 Sep 2005 14:47:09 +0800 From: Ariff Abdullah To: David Wassman Message-Id: <20050920144709.0f6c822a.skywizard@MyBSD.org.my> In-Reply-To: <200509192012.58750.myfreebsd@cox.net> References: <200509192012.58750.myfreebsd@cox.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-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound Control 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, 20 Sep 2005 06:47:08 -0000 On Mon, 19 Sep 2005 20:12:57 -0400 David Wassman wrote: > I cannot get any application that I run to control the volume. I get > sound but am not able to adust the volume level. So far the following > apps have shown this problem: > MPlayer > Xine > XMMS > KMix > Noatun (no sound at all so may be different issue) > Kaboodle > > I am running FreeBSD 5.4/KDE 3.2.4 with a Sound Blaster Live! sound > card. My sndstat: > pcm0: at io 0xb800 irq 11 kld snd_emu10k1 (4p/2r/4v > > channels duplex default) > so the card is recognized. I have adjusted the virtual channels in > sysctl.conf and the sndstat shows there are 4v chanels. > I have both esound and arts. Thought this may be an issue but both are > > dependencies of KDE-Multimedia > > So far I have tried the following: > 1) Updating ports and ran portmanager. No effect. > 2) Changed KControl->Sound System to use the following in all > combinations: > Autodetect > Threaded OSS > OSS > Full Duplex > /dev/dsp0.0 > /dev/dspW0.0 > /dev/dsp0.1 > /dev/dspW0.1 > No avail. > 3) Tried OSS drivers instead of FreeBSD native. Could not > initialize the card. 4) Rebuilt both esound and arts. No effect > > I have googled this yet cannot find any post with similar issue > (except one in which the onboard card was not deactivated. I do not > have an onboard). > > The only other thing I could think of is to update the whole system in > > buildworld. Not really excited about this option as everything else is > > working great (don't want to mess with it). I use this as my primary > desktop so I don't want to be down for that long. > > Anyone have any ideas or a direction to point me in? > Show me the output of /usr/sbin/mixer , pciconf -lv (only multimedia / audio part), dmesg | grep pcm, cat /dev/sndstat. -- 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 Sep 20 18:29:23 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 B0AC916A41F for ; Tue, 20 Sep 2005 18:29:23 +0000 (GMT) (envelope-from bsd-unix@comcast.net) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CA5043D4C for ; Tue, 20 Sep 2005 18:29:22 +0000 (GMT) (envelope-from bsd-unix@comcast.net) Received: from kt.weeble.com (pcp858615pcs.ptchar01.fl.comcast.net[68.56.224.228]) by comcast.net (sccrmhc12) with SMTP id <2005092018292001200r0rlve>; Tue, 20 Sep 2005 18:29:22 +0000 Date: Tue, 20 Sep 2005 14:29:19 -0400 From: Randy Pratt To: freebsd@fadesa.es Message-Id: <20050920142919.6115c6fa.bsd-unix@comcast.net> In-Reply-To: <432EF7AB.ED2AF314@fadesa.es> References: <432EF7AB.ED2AF314@fadesa.es> X-Mailer: Sylpheed version 1.0.5 (GTK+ 1.2.10; i386-portbld-freebsd4.11) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: multimedia@freebsd.org Subject: Re: about text2wave (audio/festival) 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, 20 Sep 2005 18:29:23 -0000 On Mon, 19 Sep 2005 19:38:51 +0200 "Jos=E9 M. Fandi=F1o" wrote: > Hello list, >=20 > I was trying to get a spoken version of the FreeBSD handbook > with the text2wave script (available with the festival speech > synthesis system), but something is wrong with the default > installation. >=20 > That is what I get: >=20 > > festival /usr/local/share/festival/examples/text2wave > SIOD ERROR: unbound variable > argv > closing a file left open: /usr/local/share/festival/examples/text2wave >=20 > anyone knows how to get this working? I've not used the text2wave script but I have used festival to "read" text: cat textfile | festival --tts I'm not sure if that would suit your porposes but I thought it worth mentioning. Best regards, Randy --=20 From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 20 20: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 400EE16A424 for ; Tue, 20 Sep 2005 20:00:20 +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 732F343D46 for ; Tue, 20 Sep 2005 20:00:19 +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 <0IN40087NT0PFN60@osl1smout1.broadpark.no> for freebsd-multimedia@freebsd.org; Tue, 20 Sep 2005 22:02:49 +0200 (CEST) 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 <0IN400JZVT1RRI20@osl1sminn1.broadpark.no> for freebsd-multimedia@freebsd.org; Tue, 20 Sep 2005 22:03:28 +0200 (CEST) Date: Tue, 20 Sep 2005 22:00:17 +0200 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: <20050919080124.6966330a.skywizard@MyBSD.org.my> To: freebsd-multimedia@freebsd.org Message-id: <20050920220017.584539ba.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: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509141241.22914.lofi@freebsd.org> <20050914201600.383df2ce.skywizard@MyBSD.org.my> <200509141618.06677.lofi@freebsd.org> <20050914233049.70de9af6.skywizard@MyBSD.org.my> <20050919011112.6fb1bdde.torfinn.ingolfsen@broadpark.no> <20050919080124.6966330a.skywizard@MyBSD.org.my> Subject: Re: As promised: Soft volume mixer 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: Tue, 20 Sep 2005 20:00:20 -0000 On Mon, 19 Sep 2005 08:01:24 +0800 Ariff Abdullah wrote: > Hope that helps. Yes, that helped. thanks! Here's the report: I tried "snd_RELENG_5_20050916_043softvol.diff" on a ThinkPad T41. tingo@kg-jobbpc3$ uname -a FreeBSD kg-jobbpc3.kg4.no 5.4-STABLE FreeBSD 5.4-STABLE #0: Tue Sep 20 20:58:18 CEST 2005 root@kg-jobbpc3.kg4.no:/storage/usr/obj/storage/usr/src/sys/T41_NOUHID i386 Before patch: ----------------- tingo@kg-jobbpc3$ dmesg | grep pcm pcm0: port 0x18c0-0x18ff,0x1c00-0x1cff mem 0xc0000800-0xc00008ff,0xc0000c00-0xc0000dff irq 11 at device 31.5 on pci0 pcm0: tingo@kg-jobbpc3$ /usr/sbin/mixer Mixer vol is currently set to 62:62 Mixer pcm is currently set to 87:87 Mixer line is currently set to 0:0 Mixer mic is currently set to 0:0 Mixer cd is currently set to 0:0 Mixer rec is currently set to 0:0 Mixer ogain is currently set to 0:0 Mixer line1 is currently set to 0:0 Mixer phin is currently set to 0:0 Mixer phout is currently set to 0:0 Recording source: mic 'pciconf -lv' pcm0@pci0:31:5: class=0x040100 card=0x05371014 chip=0x24c58086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller' class = multimedia subclass = audio After patch: --------------- tingo@kg-jobbpc3$ dmesg | grep pcm pcm0: port 0x18c0-0x18ff,0x1c00-0x1cff mem 0xc0000800-0xc00008ff,0xc0000c00-0xc0000dff irq 11 at device 31.5 on pci0 pcm0: tingo@kg-jobbpc3$ /usr/sbin/mixer Mixer vol is currently set to 62:62 Mixer pcm is currently set to 87:87 Mixer line is currently set to 0:0 Mixer mic is currently set to 0:0 Mixer cd is currently set to 0:0 Mixer rec is currently set to 0:0 Mixer ogain is currently set to 0:0 Mixer line1 is currently set to 0:0 Mixer phin is currently set to 0:0 Mixer phout is currently set to 0:0 Recording source: mic 'pciconf -lv' pcm0@pci0:31:5: class=0x040100 card=0x05371014 chip=0x24c58086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller' class = multimedia subclass = audio And the volume works fine. Over to the usb audio speakers (pcm1 below): tingo@kg-jobbpc3$ cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0x1c00, 0x18c0 irq 11 bufsz 16384 kld snd_ich (1p/0s/1r/4v channels duplex default) pcm1: at addr ? (1p/0s/0r/1v channels duplex) I'm sorry, I don't have a "before" list for those. After the patch: -------------------- tingo@kg-jobbpc3$ dmesg | grep pcm1 pcm1: on uaudio0 pcm1: chn_init(pcm1:record:0) failed: err = 19 pcm1: pcm_chn_create(ua_chan, -1, 0xc2778d00) failed tingo@kg-jobbpc3$ /usr/sbin/mixer -f /dev/mixer1 Mixer pcm is currently set to 7:7 Mixer speaker is currently set to 75:75 Recording source: mic And they also work fine. I don't know what this error message above means, but the volume works now (tested with xmms). Before it would "escalate" until it was so high that I didn't risk trying anymore. Oh, the error message; these are USB speakers, they have no record input anywhere. Nice work! -- Yours, Torfinn Ingolfsen, Norway From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 20 23:13: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 13E6D16A41F for ; Tue, 20 Sep 2005 23:13:28 +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 70AD143D49 for ; Tue, 20 Sep 2005 23:13:27 +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 BBCBC6CC2A for ; Wed, 21 Sep 2005 07:21:55 +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 12239-06 for ; Wed, 21 Sep 2005 07:21:54 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.181.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 3CECC6CC22 for ; Wed, 21 Sep 2005 07:21:53 +0800 (MYT) Date: Wed, 21 Sep 2005 07:13:28 +0800 From: Ariff Abdullah To: freebsd-multimedia@freebsd.org Message-Id: <20050921071328.3339defa.skywizard@MyBSD.org.my> In-Reply-To: <20050920220017.584539ba.torfinn.ingolfsen@broadpark.no> References: <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509141241.22914.lofi@freebsd.org> <20050914201600.383df2ce.skywizard@MyBSD.org.my> <200509141618.06677.lofi@freebsd.org> <20050914233049.70de9af6.skywizard@MyBSD.org.my> <20050919011112.6fb1bdde.torfinn.ingolfsen@broadpark.no> <20050919080124.6966330a.skywizard@MyBSD.org.my> <20050920220017.584539ba.torfinn.ingolfsen@broadpark.no> 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-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Subject: Re: As promised: Soft volume mixer 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: Tue, 20 Sep 2005 23:13:28 -0000 On Tue, 20 Sep 2005 22:00:17 +0200 Torfinn Ingolfsen wrote: > After the patch: > -------------------- > tingo@kg-jobbpc3$ dmesg | grep pcm1 > pcm1: on uaudio0 > pcm1: chn_init(pcm1:record:0) failed: err = 19 > pcm1: pcm_chn_create(ua_chan, -1, 0xc2778d00) failed > > tingo@kg-jobbpc3$ /usr/sbin/mixer -f /dev/mixer1 > Mixer pcm is currently set to 7:7 > Mixer speaker is currently set to 75:75 > Recording source: mic > > And they also work fine. I don't know what this error message above > means, but the volume works now (tested with xmms). Before it would > "escalate" until it was so high that I didn't risk trying anymore. > Oh, the error message; these are USB speakers, they have no record > input anywhere. > > Nice work! Great :) -- 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 Sep 20 23:35: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 4644916A41F for ; Tue, 20 Sep 2005 23:35:13 +0000 (GMT) (envelope-from myfreebsd@cox.net) Received: from eastrmmtao01.cox.net (eastrmmtao01.cox.net [68.230.240.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC87B43D45 for ; Tue, 20 Sep 2005 23:35:12 +0000 (GMT) (envelope-from myfreebsd@cox.net) Received: from [192.168.1.3] (really [70.171.62.169]) by eastrmmtao01.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20050920233510.EPCM8829.eastrmmtao01.cox.net@[192.168.1.3]>; Tue, 20 Sep 2005 19:35:10 -0400 From: David Wassman To: Ariff Abdullah Date: Tue, 20 Sep 2005 19:35:06 -0400 User-Agent: KMail/1.8.2 References: <200509192012.58750.myfreebsd@cox.net> <20050920144709.0f6c822a.skywizard@MyBSD.org.my> In-Reply-To: <20050920144709.0f6c822a.skywizard@MyBSD.org.my> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200509201935.06602.myfreebsd@cox.net> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound Control 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, 20 Sep 2005 23:35:13 -0000 On Tuesday 20 September 2005 02:47 am, Ariff Abdullah wrote: > On Mon, 19 Sep 2005 20:12:57 -0400 > > David Wassman wrote: > > I cannot get any application that I run to control the volume. I get > > sound but am not able to adust the volume level. So far the following > > apps have shown this problem: > > MPlayer > > Xine > > XMMS > > KMix > > Noatun (no sound at all so may be different issue) > > Kaboodle > > > > I am running FreeBSD 5.4/KDE 3.2.4 with a Sound Blaster Live! sound > > card. My sndstat: > > pcm0: at io 0xb800 irq 11 kld snd_emu10k1 (4p/2r/4v > > > > channels duplex default) > > so the card is recognized. I have adjusted the virtual channels in > > sysctl.conf and the sndstat shows there are 4v chanels. > > I have both esound and arts. Thought this may be an issue but both are > > > > dependencies of KDE-Multimedia > > > > So far I have tried the following: > > 1) Updating ports and ran portmanager. No effect. > > 2) Changed KControl->Sound System to use the following in all > > combinations: > > Autodetect > > Threaded OSS > > OSS > > Full Duplex > > /dev/dsp0.0 > > /dev/dspW0.0 > > /dev/dsp0.1 > > /dev/dspW0.1 > > No avail. > > 3) Tried OSS drivers instead of FreeBSD native. Could not > > initialize the card. 4) Rebuilt both esound and arts. No effect > > > > I have googled this yet cannot find any post with similar issue > > (except one in which the onboard card was not deactivated. I do not > > have an onboard). > > > > The only other thing I could think of is to update the whole system in > > > > buildworld. Not really excited about this option as everything else is > > > > working great (don't want to mess with it). I use this as my primary > > desktop so I don't want to be down for that long. > > > > Anyone have any ideas or a direction to point me in? > > Show me the output of /usr/sbin/mixer , pciconf -lv (only multimedia / > audio part), dmesg | grep pcm, cat /dev/sndstat. > > > -- > > Ariff Abdullah > MyBSD > > http://www.MyBSD.org.my (IPv6/IPv4) > http://staff.MyBSD.org.my (IPv6/IPv4) > http://tomoyo.MyBSD.org.my (IPv6/IPv4) Ariff, /usr/sbin/mixer output: Mixer vol is currently set to 100:100 Mixer pcm is currently set to 100:100 Mixer speaker is currently set to 100:100 Mixer line is currently set to 100:100 Mixer mic is currently set to 0:0 Mixer cd is currently set to 100:100 Mixer rec is currently set to 16:16 Mixer ogain is currently set to 100:100 Mixer line1 is currently set to 100:100 Mixer phin is currently set to 0:0 Mixer phout is currently set to 0:0 Mixer video is currently set to 100:100 Recording source: vol Apps can adjust these values but no effect on output. pciconf -lv output: .... emu10kx0@pci2:7:0: class=0x040100 card=0x80641102 chip=0x00021102 rev=0x08 hdr=0x00 vendor = 'Creative Labs' device = 'EMU10000 Sound Blaster Live! (Also Live! 5.1) - OEM from DELL - CT4780' class = multimedia subclass = audio none2@pci2:7:1: class=0x098000 card=0x00201102 chip=0x70021102 rev=0x08 hdr=0x00 vendor = 'Creative Labs' device = 'EMU10000 Game Port' class = input device .... jupiter# emu10kx0@pci2:7:0: class=0x040100 card=0x80641102 chip=0x00021102 rev=0x08 hdr=0x00 emu10kx0@pci2:7:0:: Too many arguments. vendor = 'Creative Labs' device = 'EMU10000 Sound Blaster Live! (Also Live! 5.1) - OEM from DELL - CT4780' class = multimedia subclass = audio none2@pci2:7:1: class=0x098000 card=0x00201102 chip=0x70021102 rev=0x08 hdr=0x00 vendor = 'Creative Labs' device = 'EMU10000 Game Port' class = input device jupiter# vendor = 'Creative Labs' vendor: Command not found. jupiter# device = 'EMU10000 Sound Blaster Live! (Also Live! 5.1) - OEM from DELL - CT4780' device: Command not found. jupiter# class = multimedia class: Command not found. jupiter# subclass = audio subclass: Command not found. jupiter# none2@pci2:7:1: class=0x098000 card=0x00201102 chip=0x70021102 rev=0x08 hdr=0x00 none2@pci2:7:1:: Too many arguments. jupiter# vendor = 'Creative Labs' vendor: Command not found. jupiter# device = 'EMU10000 Game Port' device: Command not found. jupiter# class = input device class: Command not found. dmesg | grep pcm output: pcm0: on emu10kx0 pcm0: pcm0: on emu10kx0 pcm0: cat /dev/sndstat output: FreeBSD Audio Driver (newpcm) Installed devices: pcm0: on emu10kx0 (8p/1r/4v channels duplex default) I am currently using the emu10kx driver over the emu10k1 driver ( someone suggested this as a possible fix) Thanks for your time and effort, David From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 20 23:50: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 BB81516A41F for ; Tue, 20 Sep 2005 23:50:36 +0000 (GMT) (envelope-from myfreebsd@cox.net) Received: from eastrmmtao05.cox.net (eastrmmtao05.cox.net [68.230.240.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7BD243D53 for ; Tue, 20 Sep 2005 23:50:35 +0000 (GMT) (envelope-from myfreebsd@cox.net) Received: from [192.168.1.3] (really [70.171.62.169]) by eastrmmtao05.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20050920235035.COPU24048.eastrmmtao05.cox.net@[192.168.1.3]> for ; Tue, 20 Sep 2005 19:50:35 -0400 From: David Wassman Date: Tue, 20 Sep 2005 19:50:25 -0400 User-Agent: KMail/1.8.2 Cc: freebsd-multimedia@freebsd.org References: <200509192012.58750.myfreebsd@cox.net> In-Reply-To: <200509192012.58750.myfreebsd@cox.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline To: Undisclosed.Recipients: ; Message-Id: <200509201950.28097.myfreebsd@cox.net> Subject: Re: Sound Control 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, 20 Sep 2005 23:50:36 -0000 On Monday 19 September 2005 08:12 pm, David Wassman wrote: > I cannot get any application that I run to control the volume. I get sound > but am not able to adust the volume level. So far the following apps have > shown this problem: > MPlayer > Xine > XMMS > KMix > Noatun (no sound at all so may be different issue) > Kaboodle > > I am running FreeBSD 5.4/KDE 3.2.4 with a Sound Blaster Live! sound card. > My sndstat: > pcm0: at io 0xb800 irq 11 kld snd_emu10k1 (4p/2r/4v > channels duplex default) > so the card is recognized. I have adjusted the virtual channels in > sysctl.conf and the sndstat shows there are 4v chanels. > I have both esound and arts. Thought this may be an issue but both are > dependencies of KDE-Multimedia > > So far I have tried the following: > 1) Updating ports and ran portmanager. No effect. > 2) Changed KControl->Sound System to use the following in all combinations: > Autodetect > Threaded OSS > OSS > Full Duplex > /dev/dsp0.0 > /dev/dspW0.0 > /dev/dsp0.1 > /dev/dspW0.1 > No avail. > 3) Tried OSS drivers instead of FreeBSD native. Could not initialize the > card. 4) Rebuilt both esound and arts. No effect > > I have googled this yet cannot find any post with similar issue (except one > in which the onboard card was not deactivated. I do not have an onboard). > > The only other thing I could think of is to update the whole system in > buildworld. Not really excited about this option as everything else is > working great (don't want to mess with it). I use this as my primary > desktop so I don't want to be down for that long. > > Anyone have any ideas or a direction to point me in? > > Thanks in advance, > David I realized I might not have included enough detail. I have been using this system with the same sound card since at least 4.8 and don't recall having this issue before. I am possitive that this works just don't know why it does not now. There was a three week period in which I had no speakers plugged in (I have been in the middle of a move for the last month). During this period I have upgraded the system on occasion ( trying to get azureus working with Eclipse 3.1 etc.). I am unsure when exactly the problem occured. It's something you don't notice right away. I was hoping that someone had a similar issue. The sound card is not that uncommon. But several days of googling come up with nothing. Hope this may give some insight. Again thanks for all the help with this and in the past. The freebsd mailing lists are awesome and have always solved issues I couldn't figure out on my own. David From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 21 01:38: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 B162F16A41F; Wed, 21 Sep 2005 01:38:43 +0000 (GMT) (envelope-from lanjoe9@prodigy.net.mx) Received: from smtp.prodigy.net.mx (nlpproxy01.prodigy.net.mx [148.235.52.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58EC043D45; Wed, 21 Sep 2005 01:38:43 +0000 (GMT) (envelope-from lanjoe9@prodigy.net.mx) Received: from smtp.prodigy.net.mx (nlpproxy01 [148.235.52.21]) by smtp.prodigy.net.mx (iPlanet Messaging Server 5.2 HotFix 2.05 (built Mar 3 2005)) with ESMTP id <0IN5005WH8LN4I@smtp.prodigy.net.mx>; Tue, 20 Sep 2005 20:39:24 -0500 (CDT) Received: from [192.168.0.99](dsl-201-128-58-89.prod-infinitum.com.mx [201.128.58.89]) by smtp.prodigy.net.mx(iPlanet Messaging Server 5.2 HotFix 2.05 (built Mar 3 2005))with ESMTP id <0IN5005228LKQ2@smtp.prodigy.net.mx>; Tue, 20 Sep 2005 20:39:23 -0500 (CDT) Date: Tue, 20 Sep 2005 20:39:36 -0500 From: Alejandro Valenzuela Roca In-reply-to: <200509111032.j8BAWVGc042048@freefall.freebsd.org> To: Alexander Leidinger Message-id: <1127266776.660.6.camel@localhost> MIME-version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT X-imss-version: 2.031 X-imss-result: Passed X-imss-scores: Clean:35.29687 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:3 M:3 S:3 R:3 (5.0000 5.0000) References: <200509111032.j8BAWVGc042048@freefall.freebsd.org> Cc: freebsd-multimedia@FreeBSD.org Subject: Re: kern/64879: [sound] [hang] 4.9 freezes when I try to get the ICH3compatible sound card working X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lanjoe9@prodigy.net.mx List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 01:38:43 -0000 Hello, FreeBSD 5.4-RELEASE still has that problem. It is NOT a problem anymore since FreeBSD 5.4 JULY snapshot, it was corrected there, it was a problem caused by the fact that the computer could not be started without setting the "hw.pci.enable_io_modes" flag to 0. Since that was corrected in 5.4 July snapshot, the flag is not needed anymore and the sound card works too. In fact, the whole computer is a lot more stable. Thank you for your interest and sorry for taking such a long time to reply! Alejandro Valenzuela -- "Los ñoños conducen la electridad" From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 21 02:35:58 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 0B56A16A41F for ; Wed, 21 Sep 2005 02:35:58 +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 81C3843D46 for ; Wed, 21 Sep 2005 02:35:57 +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 D312D6CC2E; Wed, 21 Sep 2005 10:44: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 13617-01; Wed, 21 Sep 2005 10:44:26 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.24.109]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id E42C26CC2D; Wed, 21 Sep 2005 10:44:25 +0800 (MYT) Date: Wed, 21 Sep 2005 10:36:00 +0800 From: Ariff Abdullah To: David Wassman Message-Id: <20050921103600.5fef45bb.skywizard@MyBSD.org.my> In-Reply-To: <200509201950.28097.myfreebsd@cox.net> References: <200509192012.58750.myfreebsd@cox.net> <200509201950.28097.myfreebsd@cox.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-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound Control 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, 21 Sep 2005 02:35:58 -0000 On Tue, 20 Sep 2005 19:50:25 -0400 David Wassman wrote: > I realized I might not have included enough detail. I have been using > this system with the same sound card since at least 4.8 and don't > recall having this issue before. I am possitive that this works just > don't know why it does not now. > > There was a three week period in which I had no speakers plugged in (I > have been in the middle of a move for the last month). During this > period I have upgraded the system on occasion ( trying to get azureus > working with Eclipse 3.1 etc.). > > I am unsure when exactly the problem occured. It's something you don't > notice right away. > > I was hoping that someone had a similar issue. The sound card is not > that uncommon. But several days of googling come up with nothing. > Hope this may give some insight. > > Again thanks for all the help with this and in the past. The freebsd > mailing lists are awesome and have always solved issues I couldn't > figure out on my own. > My suggestion: try to deal directly with dsp/mixer instead of relying on sound server. Use mpg321/123 / ogg123 / waveplay / sox to play something, then try to change mixer value using /usr/sbin/mixer or aumix. See if that would make any differences. As a last resort, you may try applying this patch: http://staff.mybsd.org.my/skywizard/FreeBSD/sound/snd_RELENG_5_20050916_043softvol.diff -- 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 Sep 21 05:18:18 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 512F016A41F for ; Wed, 21 Sep 2005 05:18:18 +0000 (GMT) (envelope-from jos@catnook.com) Received: from w250.z064001178.sjc-ca.dsl.cnc.net (209-204-181-78.dsl.static.sonic.net [209.204.181.78]) by mx1.FreeBSD.org (Postfix) with SMTP id D895A43D48 for ; Wed, 21 Sep 2005 05:18:17 +0000 (GMT) (envelope-from jos@catnook.com) Received: (qmail 41937 invoked by uid 1000); 21 Sep 2005 05:18:39 -0000 Date: Tue, 20 Sep 2005 22:18:17 -0700 From: Jos Backus To: multimedia@freebsd.org Message-ID: <20050921051839.GA39942@lizzy.catnook.local> References: <20050917054421.GA93917@lizzy.catnook.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050917054421.GA93917@lizzy.catnook.local> User-Agent: Mutt/1.5.11 Cc: Subject: Re: Curious sound playback slowdown X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jos@catnook.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 05:18:18 -0000 On Fri, Sep 16, 2005 at 10:43:59PM -0701, Jos Backus wrote: ... > 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_STEREO,0xbfbf6ca0) > 92231 firefox-bin RET ioctl 0 > 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_SPEED,0xbfbf6cdc) > 92231 firefox-bin RET ioctl 0 > 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_SETFRAGMENT,0xbfbf6d08) > 92231 firefox-bin RET ioctl 0 > 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_GETCAPS,0xbfbf6d04) > 92231 firefox-bin RET ioctl 0 > 92231 firefox-bin CALL fcntl(0x13,0x4,0) > 92231 firefox-bin RET fcntl 0 > 92231 firefox-bin CALL close(0x13) ... It's unclear to me why the SNDCTL_DSP_SPEED ioctl is stuffing the wrong value into the device. Running the program below as `set-samplerate 22050' appears to mimic the change the Flash plugin effects. Running `set-samplerate' restores sound pitch to a normal value. So I have a workaround for now at least. #include #include #include #include #include #define DEFAULT_SPEED 44100 int main(int argc, char *argv[]) { int fd; int rc, speed; const char *dev = "/dev/dsp"; speed = argc > 1 ? atoi(*++argv) : DEFAULT_SPEED; if ((fd = open(dev, O_RDONLY)) < 0) err(1, "open %s", dev); if ((rc = ioctl(fd, SNDCTL_DSP_SPEED, &speed)) < 0) err(1, "ioctl"); exit(0); } -- Jos Backus jos at catnook.com From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 21 09: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 2EEBF16A420 for ; Wed, 21 Sep 2005 09:17:58 +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 2BC8F43D45 for ; Wed, 21 Sep 2005 09:17:55 +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 322976CC30; Wed, 21 Sep 2005 17:26:15 +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 14995-01; Wed, 21 Sep 2005 17:26:14 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.24.109]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 75F906CC2E; Wed, 21 Sep 2005 17:26:08 +0800 (MYT) Date: Wed, 21 Sep 2005 17:17:40 +0800 From: Ariff Abdullah To: jos@catnook.com Message-Id: <20050921171740.62f09414.skywizard@MyBSD.org.my> In-Reply-To: <20050921051839.GA39942@lizzy.catnook.local> References: <20050917054421.GA93917@lizzy.catnook.local> <20050921051839.GA39942@lizzy.catnook.local> 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-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: multimedia@freebsd.org Subject: Re: Curious sound playback slowdown 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, 21 Sep 2005 09:17:58 -0000 On Tue, 20 Sep 2005 22:18:17 -0700 Jos Backus wrote: > On Fri, Sep 16, 2005 at 10:43:59PM -0701, Jos Backus wrote: > ... > > 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_STEREO,0xbfbf6ca0) > > 92231 firefox-bin RET ioctl 0 > > 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_SPEED,0xbfbf6cdc) > > 92231 firefox-bin RET ioctl 0 > > 92231 firefox-bin CALL > > ioctl(0x13,SNDCTL_DSP_SETFRAGMENT,0xbfbf6d08) 92231 firefox-bin RET > > ioctl 0 > > 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_GETCAPS,0xbfbf6d04) > > 92231 firefox-bin RET ioctl 0 > > 92231 firefox-bin CALL fcntl(0x13,0x4,0) > > 92231 firefox-bin RET fcntl 0 > > 92231 firefox-bin CALL close(0x13) > ... > > It's unclear to me why the SNDCTL_DSP_SPEED ioctl is stuffing the > wrong value into the device. Running the program below as > `set-samplerate 22050' appears to mimic the change the Flash plugin > effects. Running `set-samplerate' restores sound pitch to a normal > value. So I have a workaround for now at least. > Luckily I have this card and do realize this problem. That's because flash plugin trying to set speed for recording that differ from playback speed. I will examine this issue 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 Wed Sep 21 11:48:47 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 BCD6B16A41F for ; Wed, 21 Sep 2005 11:48:47 +0000 (GMT) (envelope-from freebsd@fadesa.es) Received: from fuego.fadesa.es (fuego.fadesa.es [195.55.55.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id C723E43D45 for ; Wed, 21 Sep 2005 11:48:45 +0000 (GMT) (envelope-from freebsd@fadesa.es) Received: (from root@localhost) by fuego.fadesa.es (8.9.3p2/8.8.8) id NAA26914 for ; Wed, 21 Sep 2005 13:50:38 +0200 Received: from tierra.fadesa.es(195.55.55.7) by fuego.fadesa.es Wed, 21 Sep 05 13:50:28 +0200 Received: from fadesa.es (filemon.fadesa.es [195.55.55.6] (may be forged)) by tierra.fadesa.es (8.9.3p2/8.8.8) with ESMTP id NAA19612 for ; Wed, 21 Sep 2005 13:48:23 +0200 Sender: fan@fadesa.es Message-ID: <43314887.28A8E63A@fadesa.es> Date: Wed, 21 Sep 2005 13:48:23 +0200 From: "=?iso-8859-15?Q?Jos=E9?= M. =?iso-8859-15?Q?Fandi=F1o?=" Organization: Inmobiliaria FADESA X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.30-ow1 i686) X-Accept-Language: gl, en, es MIME-Version: 1.0 To: multimedia@freebsd.org Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Logged: Logged by tierra.fadesa.es as NAA19612 at Wed Sep 21 13:48:23 2005 Cc: Subject: (iodump.c) unable to open directory "/dev/bktr0" (multimedia/transcode) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@fadesa.es List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 11:48:47 -0000 Hello, I am trying to record a tv program with transcode 1.0.0 (from ports) with bktr support. I think I don't forget anything but it doesn't works for me. could someone tell me that I'm missing? Thank you. full ktrace and dmesg: http://195.55.55.164/tests/FreeBSD/multimedia/transcode.txt (413kB) /--------/ card = 2 -> FLYVIDEO tuner = 10 -> PHILIPS_FR1216_PAL bktr0@pci1:10:0: class=0x040000 card=0x00000000 chip=0x036e109e rev=0x11 hdr=0x00 vendor = 'Conexant (Was: Brooktree Corp)' device = 'Bt878/Fusion 878A Mediastream Controller' class = multimedia subclass = video none6@pci1:10:1: class=0x048000 card=0x00000000 chip=0x0878109e rev=0x11 hdr=0x00 vendor = 'Conexant (Was: Brooktree Corp)' device = 'Bt878/Fusion878A Video Capture (Audio Section)' class = multimedia > transcode -i /dev/bktr0 -x bktr=norm=pal:vsource=tuner:asource=tuner,null -g 640x480 -y ffmpeg -F mpeg4 -o test transcode v1.0.0 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg libdvdread: Using libdvdcss version 1.2.8 for DVD access libdvdread: Can't open file VIDEO_TS.IFO. (iodump.c) unable to open directory "/dev/bktr0" [transcode] auto-probing source /dev/bktr0 (failed) [transcode] V: import format | unknown (V=bktr|A=null) [transcode] V: import frame | 640x480 1.33:1 [transcode] V: bits/pixel | 0.234 [transcode] V: decoding fps,frc | 25.000,0 [transcode] V: Y'CbCr | YV12/I420 [transcode] A: import format | 0x2000 AC3 [48000,16,2] [transcode] A: export format | 0x55 MPEG layer-3 [48000,16,2] 128 kbps [transcode] V: encoding fps,frc | 25.000,3 [transcode] A: bytes per frame | 7680 (7680.000000) [transcode] A: adjustment | 0@1000 [transcode] V: IA32/AMD64 accel | sse3 (sse3 sse 3dnowext 3dnow mmxext mmx asm C) tc_memcpy: using sse for memcpy [transcode] V: video buffer | 10 @ 640x480 [import_null.so] v0.2.0 (2002-01-19) (video) null | (audio) null [import_bktr.so] v0.0.2 (2004-10-02) (video) bktr [export_ffmpeg.so] v0.3.13 (2004-08-03) (video) FFmpeg0.4.9-pre1b4718 | (audio) MPEG/AC3/PCM [export_ffmpeg.so] Using FFMPEG codec 'mpeg4' (FourCC 'DIVX', MPEG4 compliant video). [export_ffmpeg.so]: WARNING: Interlacing parameters unknown, use --encode_fields [export_ffmpeg.so]: INFO: No profile selected [export_ffmpeg.so] Neither './ffmpeg.cfg' nor '~/.transcode/ffmpeg.cfg' [export_ffmpeg.so] found. Default settings will be used instead. [export_ffmpeg.so]: INFO: Starting 1 thread(s) [export_ffmpeg.so]: INFO: Set display aspect ratio to input [mpeg4 @ 0x286bc2f0]removing common factors from framerate Audio: using new version Audio: using lame-3.96.1 [import_bktr.so]: sigalrm [import_bktr.so]: sigalrm [import_bktr.so]: sigalrm00001], 0.96 fps, EMT: 0:00:00, ( 0| 0| 0) [import_bktr.so]: sigalrm00002], 0.98 fps, EMT: 0:00:00, ( 0| 0| 0) [import_bktr.so]: sigalrm00003], 0.99 fps, EMT: 0:00:00, ( 0| 0| 0) ^Ccoding frames [000000-000004], 1.00 fps, EMT: 0:00:00, ( 0| 0| 0) [transcode] (sighandler) SIGINT received clean up | frame threads | unload modules | cancel signal | internal threads | done [transcode] encoded 5 frames (0 dropped, 0 cloned), clip length 0.20 s -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/IT d- s+:+() a31 C+++ UBL+++$ P+ L+++ E--- W++ N+ o++ K- w--- O+ M+ V- PS+ PE+ Y++ PGP+>+++ t+ 5 X+$ R- tv-- b+++ DI D++>+++ G++ e- h+(++) !r !z ------END GEEK CODE BLOCK------ From owner-freebsd-multimedia@FreeBSD.ORG Fri Sep 23 21:30: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 3957216A436 for ; Fri, 23 Sep 2005 21:30:15 +0000 (GMT) (envelope-from petal@cyberviper.com) Received: from chb63.neoplus.adsl.tpnet.pl (chb63.neoplus.adsl.tpnet.pl [83.30.255.63]) by mx1.FreeBSD.org (Postfix) with SMTP id CF85243D5F for ; Fri, 23 Sep 2005 21:30:13 +0000 (GMT) (envelope-from petal@cyberviper.com) Received: from 110.80.184.223 (EHLO fictional) by chb63.neoplus.adsl.tpnet.pl with SMTP; Fri, 23 Sep 2005 23:30:11 +0200 id 6231996224biophysical88502 for freebsd-multimedia@freebsd.org; Fri, 23 Sep 2005 23:30:11 +0200 Mime-Version: 1.0 (Apple Message framework v728) Content-Transfer-Encoding: 7bit Message-Id: <8599993692.128112114628@chb63.neoplus.adsl.tpnet.pl> Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-multimedia@freebsd.org From: Tilda Date: Fri, 23 Sep 2005 23:30:10 +0200 X-Mailer: Apple Mail (2.728) Subject: sshs.. get low cost software cds or download! 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, 23 Sep 2005 21:30:15 -0000 Welcome to VIP Quality Software. http://rcazfm.429msbsssnsum44zrm4hrm4m.restesibmb.com/?dgj If a child lives with approval, he learns to live with himself. If you are not criticized, you may not be doing much. No machine can replace the human spark: spirit, compassion, love and understanding. One must, from time to time, attempt things beyond one's capacity. People feel comfortable around someone who is comfortable with himself. I have Immortal longings in me. From owner-freebsd-multimedia@FreeBSD.ORG Sat Sep 24 05:13:40 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 0C90A16A41F for ; Sat, 24 Sep 2005 05:13: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 42FB943D48 for ; Sat, 24 Sep 2005 05:13: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 0D57E6CC35; Sat, 24 Sep 2005 13:22:21 +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 45574-08; Sat, 24 Sep 2005 13:22:19 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [218.111.24.109]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 68F186CC2E; Sat, 24 Sep 2005 13:22:05 +0800 (MYT) Date: Sat, 24 Sep 2005 13:13:32 +0800 From: Ariff Abdullah To: jos@catnook.com Message-Id: <20050924131332.49fc7f34.skywizard@MyBSD.org.my> In-Reply-To: <20050921171740.62f09414.skywizard@MyBSD.org.my> References: <20050917054421.GA93917@lizzy.catnook.local> <20050921051839.GA39942@lizzy.catnook.local> <20050921171740.62f09414.skywizard@MyBSD.org.my> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Sat__24_Sep_2005_13_13_32_+0800_MeagRO0kLx3ATcY9" X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: multimedia@freebsd.org Subject: Re: Curious sound playback slowdown 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, 24 Sep 2005 05:13:40 -0000 This is a multi-part message in MIME format. --Multipart=_Sat__24_Sep_2005_13_13_32_+0800_MeagRO0kLx3ATcY9 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 21 Sep 2005 17:17:40 +0800 Ariff Abdullah wrote: > On Tue, 20 Sep 2005 22:18:17 -0700 > Jos Backus wrote: > > On Fri, Sep 16, 2005 at 10:43:59PM -0701, Jos Backus wrote: > > ... > > > 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_STEREO,0xbfbf6ca0) > > > 92231 firefox-bin RET ioctl 0 > > > 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_SPEED,0xbfbf6cdc) > > > 92231 firefox-bin RET ioctl 0 > > > 92231 firefox-bin CALL > > > ioctl(0x13,SNDCTL_DSP_SETFRAGMENT,0xbfbf6d08) 92231 firefox-bin > > > RET > > > ioctl 0 > > > 92231 firefox-bin CALL ioctl(0x13,SNDCTL_DSP_GETCAPS,0xbfbf6d04) > > > 92231 firefox-bin RET ioctl 0 > > > 92231 firefox-bin CALL fcntl(0x13,0x4,0) > > > 92231 firefox-bin RET fcntl 0 > > > 92231 firefox-bin CALL close(0x13) > > ... > > > > It's unclear to me why the SNDCTL_DSP_SPEED ioctl is stuffing the > > wrong value into the device. Running the program below as > > `set-samplerate 22050' appears to mimic the change the Flash plugin > > effects. Running `set-samplerate' restores sound pitch to a normal > > value. So I have a workaround for now at least. > > > Luckily I have this card and do realize this problem. That's because > flash plugin trying to set speed for recording that differ from > playback speed. > > I will examine this issue later this day. > Please try this attached patch. es1370 locked both playback (dac) and recording (adc), conflicting each other while doing full duplex operation, so the only way to solve this conflicting sampling rate is to treat the chip as a single fixed rate codec. Fortunately our soft sample rate converter is quite decent to handle varying sample rate both for playback and recording operation, not a big issue unless you're *extremely* picky about sound quality with hearing beyond average. Note that you can return to the old behaviour either with hint.pcm.0.fixed_rate=0 (/boot/device.hints) or simply sysctl hw.snd.pcm0.fixed_rate=0. You can set you prefered default fixed rate with these settings, but pay attention on hw.snd.pcm0.vchanrate too. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) --Multipart=_Sat__24_Sep_2005_13_13_32_+0800_MeagRO0kLx3ATcY9 Content-Type: text/plain; name="es137x.c.diff" Content-Disposition: attachment; filename="es137x.c.diff" Content-Transfer-Encoding: 7bit --- sys/dev/sound/pci/es137x.c.orig Sun Jul 31 21:19:38 2005 +++ sys/dev/sound/pci/es137x.c Sat Sep 24 11:04:48 2005 @@ -111,6 +111,7 @@ int num; int spdif_en; unsigned int bufsz; + struct pcmchan_caps caps; /* Contents of board's registers */ u_long ctrl; @@ -128,27 +129,18 @@ static void es1371_src_write(struct es_info *, u_short, unsigned short); static u_int es1371_adc_rate(struct es_info *, u_int, int); static u_int es1371_dac_rate(struct es_info *, u_int, int); -static int es1371_init(struct es_info *, device_t); +static int es1371_init(struct es_info *); static int es1370_init(struct es_info *); static int es1370_wrcodec(struct es_info *, u_char, u_char); -static u_int32_t es_playfmt[] = { +static u_int32_t es_fmt[] = { AFMT_U8, AFMT_STEREO | AFMT_U8, AFMT_S16_LE, AFMT_STEREO | AFMT_S16_LE, 0 }; -static struct pcmchan_caps es_playcaps = {4000, 48000, es_playfmt, 0}; - -static u_int32_t es_recfmt[] = { - AFMT_U8, - AFMT_STEREO | AFMT_U8, - AFMT_S16_LE, - AFMT_STEREO | AFMT_S16_LE, - 0 -}; -static struct pcmchan_caps es_reccaps = {4000, 48000, es_recfmt, 0}; +static struct pcmchan_caps es_caps = {4000, 48000, es_fmt, 0}; static const struct { unsigned volidx:4; @@ -309,15 +301,7 @@ snd_mtxunlock(es->lock); if (sndbuf_alloc(ch->buffer, es->parent_dmat, ch->bufsz) != 0) return NULL; - return ch; -} - -static int -eschan_setdir(kobj_t obj, void *data, int dir) -{ - struct es_chinfo *ch = data; - struct es_info *es = ch->parent; - + snd_mtxlock(es->lock); if (dir == PCMDIR_PLAY) { es_wr(es, ES1370_REG_MEMPAGE, ES1370_REG_DAC2_FRAMEADR >> 8, 1); es_wr(es, ES1370_REG_DAC2_FRAMEADR & 0xff, sndbuf_getbufaddr(ch->buffer), 4); @@ -328,7 +312,8 @@ es_wr(es, ES1370_REG_ADC_FRAMECNT & 0xff, (ch->bufsz >> 2) - 1, 4); } ch->dir = dir; - return 0; + snd_mtxunlock(es->lock); + return ch; } static int @@ -357,6 +342,13 @@ struct es_chinfo *ch = data; struct es_info *es = ch->parent; + /* XXX Fixed rate , do nothing. */ + if (es->caps.minspeed == es->caps.maxspeed) + return es->caps.maxspeed; + if (speed < es->caps.minspeed) + speed = es->caps.minspeed; + if (speed > es->caps.maxspeed) + speed = es->caps.maxspeed; es->ctrl &= ~CTRL_PCLKDIV; es->ctrl |= DAC2_SRTODIV(speed) << CTRL_SH_PCLKDIV; es_wr(es, ES1370_REG_CONTROL, es->ctrl, 4); @@ -452,12 +444,13 @@ eschan_getcaps(kobj_t obj, void *data) { struct es_chinfo *ch = data; - return (ch->dir == PCMDIR_PLAY)? &es_playcaps : &es_reccaps; + struct es_info *es = ch->parent; + + return &es->caps; } static kobj_method_t eschan1370_methods[] = { KOBJMETHOD(channel_init, eschan_init), - KOBJMETHOD(channel_setdir, eschan_setdir), KOBJMETHOD(channel_setformat, eschan_setformat), KOBJMETHOD(channel_setspeed, eschan1370_setspeed), KOBJMETHOD(channel_setblocksize, eschan_setblocksize), @@ -470,7 +463,6 @@ static kobj_method_t eschan1371_methods[] = { KOBJMETHOD(channel_init, eschan_init), - KOBJMETHOD(channel_setdir, eschan_setdir), KOBJMETHOD(channel_setformat, eschan_setformat), KOBJMETHOD(channel_setspeed, eschan1371_setspeed), KOBJMETHOD(channel_setblocksize, eschan_setblocksize), @@ -515,8 +507,26 @@ static int es1370_init(struct es_info *es) { + int r; + + /* XXX ES1370 default to fixed rate operation */ + if (resource_int_value(device_get_name(es->dev), + device_get_unit(es->dev), "fixed_rate", &r) == 0) { + if (r != 0) { + if (r < es_caps.minspeed) + r = es_caps.minspeed; + if (r > es_caps.maxspeed) + r = es_caps.maxspeed; + } + } else + r = es_caps.maxspeed; + es->caps = es_caps; + if (r != 0) { + es->caps.minspeed = r; + es->caps.maxspeed = r; + } es->ctrl = CTRL_CDC_EN | CTRL_SERR_DIS | - (DAC2_SRTODIV(DSP_DEFAULT_SPEED) << CTRL_SH_PCLKDIV); + (DAC2_SRTODIV(es->caps.maxspeed) << CTRL_SH_PCLKDIV); es_wr(es, ES1370_REG_CONTROL, es->ctrl, 4); es->sctrl = 0; @@ -534,16 +544,17 @@ /* ES1371 specific */ int -es1371_init(struct es_info *es, device_t dev) +es1371_init(struct es_info *es) { u_long cssr; int idx; - int devid = pci_get_devid(dev); - int revid = pci_get_revid(dev); + int devid = pci_get_devid(es->dev); + int revid = pci_get_revid(es->dev); es->num = 0; es->ctrl = 0; es->sctrl = 0; + es->caps = es_caps; cssr = 0; if (devid == CT4730_PCI_ID) { /* XXX amplifier hack? */ @@ -870,7 +881,7 @@ #ifdef SND_DYNSYSCTL static int -sysctl_es1371x_spdif_enable(SYSCTL_HANDLER_ARGS) +sysctl_es137x_spdif_enable(SYSCTL_HANDLER_ARGS) { struct es_info *es; device_t dev; @@ -907,7 +918,7 @@ } static int -sysctl_es1371x_latency_timer(SYSCTL_HANDLER_ARGS) +sysctl_es137x_latency_timer(SYSCTL_HANDLER_ARGS) { struct es_info *es; device_t dev; @@ -930,6 +941,43 @@ snd_mtxunlock(es->lock); return 0; } + +static int +sysctl_es137x_fixed_rate(SYSCTL_HANDLER_ARGS) +{ + struct es_info *es; + device_t dev; + int err, val; + + dev = oidp->oid_arg1; + es = pcm_getdevinfo(dev); + snd_mtxlock(es->lock); + if (es->caps.minspeed == es->caps.maxspeed) + val = es->caps.maxspeed; + else + val = 0; + snd_mtxunlock(es->lock); + err = sysctl_handle_int(oidp, &val, sizeof(val), req); + + if (err || req->newptr == NULL) + return err; + if (val != 0 && (val < es_caps.minspeed || val> es_caps.maxspeed)) + return EINVAL; + + snd_mtxlock(es->lock); + if (val) { + es->caps.minspeed = val; + es->caps.maxspeed = val; + es->ctrl &= ~CTRL_PCLKDIV; + es->ctrl |= DAC2_SRTODIV(val) << CTRL_SH_PCLKDIV; + es_wr(es, ES1370_REG_CONTROL, es->ctrl, 4); + } else { + es->caps.minspeed = es_caps.minspeed; + es->caps.maxspeed = es_caps.maxspeed; + } + snd_mtxunlock(es->lock); + return 0; +} #endif /* SND_DYNSYSCTL */ static void @@ -953,8 +1001,15 @@ SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)), OID_AUTO, "spdif_enabled", CTLTYPE_INT | CTLFLAG_RW, dev, sizeof(dev), - sysctl_es1371x_spdif_enable, "I", + sysctl_es137x_spdif_enable, "I", "Enable S/PDIF output on primary playback channel"); + } else if (devid == ES1370_PCI_ID) { + SYSCTL_ADD_PROC(snd_sysctl_tree(dev), + SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)), + OID_AUTO, "fixed_rate", + CTLTYPE_INT | CTLFLAG_RW, dev, sizeof(dev), + sysctl_es137x_fixed_rate, "I", + "Enable fixed rate playback/recording"); } if (resource_int_value(device_get_name(dev), device_get_unit(dev), "latency_timer", &r) == 0 && @@ -964,7 +1019,7 @@ SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)), OID_AUTO, "latency_timer", CTLTYPE_INT | CTLFLAG_RW, dev, sizeof(dev), - sysctl_es1371x_latency_timer, "I", + sysctl_es137x_latency_timer, "I", "PCI Latency Timer configuration"); #endif /* SND_DYNSYSCTL */ } @@ -1025,7 +1080,7 @@ if (devid == ES1371_PCI_ID || devid == ES1371_PCI_ID2 || devid == CT5880_PCI_ID || devid == CT4730_PCI_ID) { - if(-1 == es1371_init(es, dev)) { + if(-1 == es1371_init(es)) { device_printf(dev, "unable to initialize the card\n"); goto bad; } --Multipart=_Sat__24_Sep_2005_13_13_32_+0800_MeagRO0kLx3ATcY9-- From owner-freebsd-multimedia@FreeBSD.ORG Sat Sep 24 14:42:56 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 69F7316A41F; Sat, 24 Sep 2005 14:42:56 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28F2443D49; Sat, 24 Sep 2005 14:42:56 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8OEguLb090125; Sat, 24 Sep 2005 14:42:56 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8OEgtR7090121; Sat, 24 Sep 2005 14:42:55 GMT (envelope-from netchild) Date: Sat, 24 Sep 2005 14:42:55 GMT From: Alexander Leidinger Message-Id: <200509241442.j8OEgtR7090121@freefall.freebsd.org> To: hartmann@edda.physik.uni-mainz.de, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/72738: [sound] pcm0:play:0: play interrupt timeout, channel dead 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, 24 Sep 2005 14:42:56 -0000 Synopsis: [sound] pcm0:play:0: play interrupt timeout, channel dead State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sat Sep 24 14:41:25 GMT 2005 State-Changed-Why: Feedback request bounced, closing PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=72738 From owner-freebsd-multimedia@FreeBSD.ORG Sat Sep 24 14:44:14 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 6606D16A420; Sat, 24 Sep 2005 14:44:14 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 247CC43D4C; Sat, 24 Sep 2005 14:44:14 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8OEiEFj090177; Sat, 24 Sep 2005 14:44:14 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8OEiDHD090173; Sat, 24 Sep 2005 14:44:13 GMT (envelope-from netchild) Date: Sat, 24 Sep 2005 14:44:13 GMT From: Alexander Leidinger Message-Id: <200509241444.j8OEiDHD090173@freefall.freebsd.org> To: lanjoe9@prodigy.net.mx, netchild@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/64879: [sound] [hang] 4.9 freezes when I try to get the ICH3 compatible sound card working 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, 24 Sep 2005 14:44:14 -0000 Synopsis: [sound] [hang] 4.9 freezes when I try to get the ICH3 compatible sound card working State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Sat Sep 24 14:43:57 GMT 2005 State-Changed-Why: Problem is already fixed. http://www.freebsd.org/cgi/query-pr.cgi?pr=64879