From owner-freebsd-multimedia@FreeBSD.ORG Sun Jul 10 00:04:35 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 9E8BF16A41C for ; Sun, 10 Jul 2005 00:04:35 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from smtp107.sbc.mail.mud.yahoo.com (smtp107.sbc.mail.mud.yahoo.com [68.142.198.206]) by mx1.FreeBSD.org (Postfix) with SMTP id 1AAAB43D49 for ; Sun, 10 Jul 2005 00:04:34 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: (qmail 24372 invoked from network); 10 Jul 2005 00:04:34 -0000 Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.213.247 with login) by smtp107.sbc.mail.mud.yahoo.com with SMTP; 10 Jul 2005 00:04:34 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 89CCE60EB; Sat, 9 Jul 2005 19:04:33 -0500 (CDT) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00635-02; Sat, 9 Jul 2005 19:04:30 -0500 (CDT) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id 89B0460E8; Sat, 9 Jul 2005 19:04:30 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.13.4/8.13.4) with ESMTP id j6A04SOu001080; Sat, 9 Jul 2005 19:04:29 -0500 (CDT) (envelope-from noackjr@alumni.rice.edu) Message-ID: <42D06607.20307@alumni.rice.edu> Date: Sat, 09 Jul 2005 19:04:23 -0500 From: Jonathan Noack User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050428) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ariff Abdullah References: <42D02CA9.4080201@alumni.rice.edu> <20050710051523.0a67cd91.skywizard@MyBSD.org.my> In-Reply-To: <20050710051523.0a67cd91.skywizard@MyBSD.org.my> X-Enigmail-Version: 0.91.0.0 OpenPGP: id=991D8195; url=http://www.noacks.org/cert/noackjr.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig85008349A05A9F4CCC2523DD" X-Virus-Scanned: amavisd-new at noacks.org Cc: freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jul 2005 00:04:35 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig85008349A05A9F4CCC2523DD Content-Type: multipart/mixed; boundary="------------050908000006080801060802" This is a multi-part message in MIME format. --------------050908000006080801060802 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 07/09/05 16:15, Ariff Abdullah wrote: > There are few LORs (during boot) with this much integrated es137x > (which I do believe false positives). Perhaps you can reproduce > it by enabling WITNESS? > > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/LOR/es137x_lor.txt > (This is slightly outdated, some of it have bean dealt with) The LORs didn't happen with my old patch even though the direct code in question doesn't appear to have changed. I'll keep digging, but my first high-level pass didn't reveal anything wrong. I AM getting a lot of the following: sysctl_old_user() with the following non-sleepable locks held: exclusive sleep mutex pcm0 (sound softc)... You can't hold the es->lock over a sysctl_handle_int call. See attached patch. Note that it performs an unlocked read of the current status of es1371x_spdif_en or es1371_latency_timer, but I think this is safe. If not, we'll have to lock, get the current status, unlock for the sysctl_handle_int call, and then relock... -- Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195 --------------050908000006080801060802 Content-Type: text/x-patch; name="es137x_sysctl.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="es137x_sysctl.diff" --- es137x.c.diff Sat Jul 9 18:48:31 2005 +++ es137x.c Sat Jul 9 18:53:23 2005 @@ -897,18 +897,14 @@ dev = oidp->oid_arg1; es = pcm_getdevinfo(dev); - snd_mtxlock(es->lock); new_en = es1371x_spdif_en; err = sysctl_handle_int(oidp, &new_en, sizeof(new_en), req); - if (err || req->newptr == NULL) { - snd_mtxunlock(es->lock); + if (err || req->newptr == NULL) return err; - } - if (new_en < 0 || new_en > 1) { - snd_mtxunlock(es->lock); + if (new_en < 0 || new_en > 1) return EINVAL; - } + snd_mtxlock(es->lock); es1371x_spdif_en = new_en; r = es_rd(es, ES1370_REG_STATUS, 4); if (new_en) { @@ -938,17 +934,14 @@ dev = oidp->oid_arg1; es = pcm_getdevinfo(dev); - snd_mtxlock(es->lock); new_val = es1371_latency_timer; err = sysctl_handle_int(oidp, &new_val, sizeof(new_val), req); - if (err || req->newptr == NULL) { - snd_mtxunlock(es->lock); + if (err || req->newptr == NULL) return err; - } - if (new_val < 0 || new_val > 255) { - snd_mtxunlock(es->lock); + if (new_val < 0 || new_val > 255) return EINVAL; - } + + snd_mtxlock(es->lock); pci_write_config(dev, PCIR_LATTIMER, new_val, 1); es1371_latency_timer = pci_read_config(dev, PCIR_LATTIMER, 1); snd_mtxunlock(es->lock); --------------050908000006080801060802-- --------------enig85008349A05A9F4CCC2523DD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC0GYMUFz01pkdgZURAsMhAKDSnNp2TY93n/QolmIHwImFBW+C/ACfYqXA QAXmvLCxhmV1N0129eA+1fY= =1plV -----END PGP SIGNATURE----- --------------enig85008349A05A9F4CCC2523DD-- From owner-freebsd-multimedia@FreeBSD.ORG Sun Jul 10 06:49:49 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 5784A16A41C for ; Sun, 10 Jul 2005 06:49:49 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from smtp104.sbc.mail.mud.yahoo.com (smtp104.sbc.mail.mud.yahoo.com [68.142.198.203]) by mx1.FreeBSD.org (Postfix) with SMTP id C350443D48 for ; Sun, 10 Jul 2005 06:49:48 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: (qmail 77039 invoked from network); 10 Jul 2005 06:49:48 -0000 Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.213.247 with login) by smtp104.sbc.mail.mud.yahoo.com with SMTP; 10 Jul 2005 06:49:47 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 84AC3612E; Sun, 10 Jul 2005 01:49:47 -0500 (CDT) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00635-13; Sun, 10 Jul 2005 01:49:44 -0500 (CDT) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id C59F960EB; Sun, 10 Jul 2005 01:49:44 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.13.4/8.13.4) with ESMTP id j6A6ng6W002393; Sun, 10 Jul 2005 01:49:44 -0500 (CDT) (envelope-from noackjr@alumni.rice.edu) Message-ID: <42D0C502.9030906@alumni.rice.edu> Date: Sun, 10 Jul 2005 01:49:38 -0500 From: Jonathan Noack User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050428) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ariff Abdullah References: <42D02CA9.4080201@alumni.rice.edu> <20050710051523.0a67cd91.skywizard@MyBSD.org.my> In-Reply-To: <20050710051523.0a67cd91.skywizard@MyBSD.org.my> X-Enigmail-Version: 0.91.0.0 OpenPGP: id=991D8195; url=http://www.noacks.org/cert/noackjr.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4D1A27AC5253E68BA4654C9E" X-Virus-Scanned: amavisd-new at noacks.org Cc: freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jul 2005 06:49:49 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4D1A27AC5253E68BA4654C9E Content-Type: multipart/mixed; boundary="------------070608050506050509070005" This is a multi-part message in MIME format. --------------070608050506050509070005 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit On 07/09/05 16:15, Ariff Abdullah wrote: > On Sat, 09 Jul 2005 14:59:37 -0500 > Jonathan Noack wrote: >>I don't know if you've touched the man pages at all, but my latest >>patch includes a man page update for the spdif sysctl: >>http://www.noacks.org/freebsd/es137x.diff > > Currently I haven't touched any man pages at all. Can you do separate > patches for that? There are few new sysctls need to be documented, > perhaps you can do that too. > > es137x: > 1) hw.snd.pcm.latency_timer > - PCI latency timer adjustment. Most pops / > crackling issue can be solved by adjusting it to > appropriate value (especially on VIA mobo). See the attached patch to the es137x man page. I'm a newcomer to the editing man pages, so a review would be appreciated. -- Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195 --------------070608050506050509070005 Content-Type: text/x-patch; name="es137x_man.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="es137x_man.diff" Index: snd_es137x.4 =================================================================== RCS file: /home/ncvs/src/share/man/man4/snd_es137x.4,v retrieving revision 1.4 diff -u -r1.4 snd_es137x.4 --- snd_es137x.4 22 May 2005 16:14:55 -0000 1.4 +++ snd_es137x.4 10 Jul 2005 06:44:49 -0000 @@ -39,6 +39,23 @@ bridge driver allows the generic audio driver .Xr sound 4 to attach to the Ensoniq 137x audio cards. +.Ss Runtime Configuration +The following +.Xr sysctl 8 +variables are available in addition to those available to all +.Xr sound 4 +devices: +.Bl -tag -width ".Va hw.snd.report_soft_formats" -offset indent +.It Va hw.snd.pcm%d.latency_timer +Controls the PCI latency timer setting. +Adjusting this to an appropriate value will solve most popping and crackling issues +(especially on VIA motherboards). +.It Va hw.snd.pcm%d.spdif_enabled +Enables S/PDIF output on the primary playback channel. +This +.Xr sysctl 8 +variable is available only if the device is known to support S/PDIF output. +.El .Sh HARDWARE The .Nm @@ -59,3 +76,4 @@ .An "Russell Cattelan" Aq cattelan@thebarn.com .An "Cameron Grant" Aq cg@FreeBSD.org .An "Joachim Kuebart" +.An "Jonathan Noack" Aq noackjr@alumni.rice.edu --------------070608050506050509070005-- --------------enig4D1A27AC5253E68BA4654C9E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC0MUGUFz01pkdgZURAlbCAJ0b4DtOedFYjjZtCJqG3MRMICZbDQCfcgbb f3OGS2eLcGaSol0C+yfF70k= =HuUi -----END PGP SIGNATURE----- --------------enig4D1A27AC5253E68BA4654C9E-- From owner-freebsd-multimedia@FreeBSD.ORG Sun Jul 10 10:13: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 AA0DC16A41C for ; Sun, 10 Jul 2005 10:13:52 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from smtp109.sbc.mail.mud.yahoo.com (smtp109.sbc.mail.mud.yahoo.com [68.142.198.208]) by mx1.FreeBSD.org (Postfix) with SMTP id 2C06043D45 for ; Sun, 10 Jul 2005 10:13:51 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: (qmail 77295 invoked from network); 10 Jul 2005 10:13:51 -0000 Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.213.247 with login) by smtp109.sbc.mail.mud.yahoo.com with SMTP; 10 Jul 2005 10:13:51 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id B9EC3612E; Sun, 10 Jul 2005 05:13:50 -0500 (CDT) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07453-04; Sun, 10 Jul 2005 05:13:47 -0500 (CDT) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id CD70060EB; Sun, 10 Jul 2005 05:13:47 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.13.4/8.13.4) with ESMTP id j6AADkAX005664; Sun, 10 Jul 2005 05:13:47 -0500 (CDT) (envelope-from noackjr@alumni.rice.edu) Message-ID: <42D0F4D4.10700@alumni.rice.edu> Date: Sun, 10 Jul 2005 05:13:40 -0500 From: Jonathan Noack User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050428) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ariff Abdullah References: <42D02CA9.4080201@alumni.rice.edu> <20050710051523.0a67cd91.skywizard@MyBSD.org.my> In-Reply-To: <20050710051523.0a67cd91.skywizard@MyBSD.org.my> X-Enigmail-Version: 0.91.0.0 OpenPGP: id=991D8195; url=http://www.noacks.org/cert/noackjr.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB9887BADA41F076C833F1489" X-Virus-Scanned: amavisd-new at noacks.org Cc: freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jul 2005 10:13:52 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB9887BADA41F076C833F1489 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 07/09/05 16:15, Ariff Abdullah wrote: > There are few LORs (during boot) with this much integrated es137x > (which I do believe false positives). Perhaps you can reproduce > it by enabling WITNESS? > > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/LOR/es137x_lor.txt > (This is slightly outdated, some of it have bean dealt with) The eschan_setdir method is called with the channel lock held. We get the LOR when we grab the es lock in eschan_setdir. Looking through the code, eschan_setformat, eschan1370_setspeed, eschan1371_setspeed, eschan_trigger, and eschan_getptr are called with the channel lock held and also grab the es lock. Is there a path where we try to grab the channel lock while holding the es lock? Why yes, there are at least two such paths: eschan_init (sndbuf_alloc -> sndbuf_resize) and eschan_setblocksize (sndbuf_resize). So a deadlock is possible, but it seems unlikely. I'm not sure how to handle this. This is the same basic issue as is present with the via8233 (seen in your LOR directory). I also see this LOR when detaching: lock order reversal 1st 0xc23a2cc0 pcm0 (sound cdev) @ /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/sound.c:706 2nd 0xc0837760 sndstat (sndstat) @ /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/sndstat.c:256 KDB: stack backtrace: witness_checkorder(c0837760,9,c08330a8,100,c050c874) at witness_checkorder+0x3af _sx_xlock(c0837760,c08330a8,100,0,c234ca00) at _sx_xlock+0x5c sndstat_unregister(c2376e00,c25f4700,c08331a6,2c2,c2376e00) at sndstat_unregister+0x27 pcm_unregister(c2376e00,c06f75b0,c2376e00,f9771be8,c2376e00) at pcm_unregister+0x112 es_pci_detach(c2376e00,c2333850,c06f75b0,961,c08439c0) at es_pci_detach+0x17 device_detach(c2376e00,c08425f0,c2320640,1,c22fb000) at device_detach+0x8f devclass_delete_driver(c22fb000,c08439c0,0,0,c226edc0) at devclass_delete_driver+0xcb driver_module_handler(c226edc0,1,c08439ac) at driver_module_handler+0xd9 module_unload(c226edc0,0,1fb,c2274d00,3) at module_unload+0x66 linker_file_unload(c2274d00,0,c06c4f26,327,bfbfe890) at linker_file_unload+0x276 kern_kldunload(0,f9771d04,8,421,2) at kern_kldunload+0x8d syscall(3b,3b,3b,3,bfbfedf6) at syscall+0x13b Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (444, FreeBSD ELF32, kldunloadf), eip = 0x280c0e63, esp = 0xbfbfe88c, ebp = 0xbfbfecf8 --- -- Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195 --------------enigB9887BADA41F076C833F1489 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC0PTaUFz01pkdgZURArwqAKCPuzQ9s87rZEJ2XIFE7mGPdOABKgCfRLdf RMTq4zmHr6kNKAWao8iO89c= =1+pi -----END PGP SIGNATURE----- --------------enigB9887BADA41F076C833F1489-- From owner-freebsd-multimedia@FreeBSD.ORG Sun Jul 10 11:25:56 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CA8616A41C for ; Sun, 10 Jul 2005 11:25:56 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F67743D46 for ; Sun, 10 Jul 2005 11:25:55 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd16.aul.t-online.de by mailout01.sul.t-online.com with smtp id 1DrZwU-00007y-01; Sun, 10 Jul 2005 13:25:50 +0200 Received: from Andro-Beta.Leidinger.net (VT9LFsZvoewwCd5TLI6qmh+MSKvSA9jx0EgI8IL4-T10c9p4+ATrwZ@[84.165.226.122]) by fwd16.sul.t-online.de with esmtp id 1DrZwJ-0ci2rY0; Sun, 10 Jul 2005 13:25:39 +0200 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j6ABPbQA033603; Sun, 10 Jul 2005 13:25:37 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 10 Jul 2005 13:25:37 +0200 From: Alexander Leidinger To: noackjr@alumni.rice.edu Message-ID: <20050710132537.16559eec@Magellan.Leidinger.net> In-Reply-To: <42D0C502.9030906@alumni.rice.edu> References: <42D02CA9.4080201@alumni.rice.edu> <20050710051523.0a67cd91.skywizard@MyBSD.org.my> <42D0C502.9030906@alumni.rice.edu> X-Mailer: Sylpheed-Claws 1.9.11 (GTK+ 2.6.8; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ID: VT9LFsZvoewwCd5TLI6qmh+MSKvSA9jx0EgI8IL4-T10c9p4+ATrwZ@t-dialin.net X-TOI-MSGID: 9a7a7468-de03-44d9-b76d-6ad322cb1a66 Cc: freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca, Ariff Abdullah Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) 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, 10 Jul 2005 11:25:56 -0000 On Sun, 10 Jul 2005 01:49:38 -0500 Jonathan Noack wrote: > +.It Va hw.snd.pcm%d.latency_timer > +Controls the PCI latency timer setting. > +Adjusting this to an appropriate value will solve most popping and crackling issues > +(especially on VIA motherboards). I think "Increasing this value will solve" would be better, since the man-page doesn't say what "an appropriate" value is. "Incresing" on the other side at least tells the user what values he should try. Bye, Alexander. -- It's not a bug, it's tradition! http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 From owner-freebsd-multimedia@FreeBSD.ORG Sun Jul 10 17:31: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 466D016A41C for ; Sun, 10 Jul 2005 17:31:52 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from smtp111.sbc.mail.mud.yahoo.com (smtp111.sbc.mail.mud.yahoo.com [68.142.198.210]) by mx1.FreeBSD.org (Postfix) with SMTP id B009643D46 for ; Sun, 10 Jul 2005 17:31:51 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: (qmail 35954 invoked from network); 10 Jul 2005 17:31:51 -0000 Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.213.247 with login) by smtp111.sbc.mail.mud.yahoo.com with SMTP; 10 Jul 2005 17:31:50 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 7EF09612E; Sun, 10 Jul 2005 12:31:50 -0500 (CDT) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09852-01; Sun, 10 Jul 2005 12:31:48 -0500 (CDT) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id 7D0F960EB; Sun, 10 Jul 2005 12:31:48 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.13.4/8.13.4) with ESMTP id j6AHVkUl007060; Sun, 10 Jul 2005 12:31:47 -0500 (CDT) (envelope-from noackjr@alumni.rice.edu) Message-ID: <42D15B7D.90805@alumni.rice.edu> Date: Sun, 10 Jul 2005 12:31:41 -0500 From: Jonathan Noack User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050428) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexander Leidinger References: <42D02CA9.4080201@alumni.rice.edu> <20050710051523.0a67cd91.skywizard@MyBSD.org.my> <42D0C502.9030906@alumni.rice.edu> <20050710132537.16559eec@Magellan.Leidinger.net> In-Reply-To: <20050710132537.16559eec@Magellan.Leidinger.net> X-Enigmail-Version: 0.91.0.0 OpenPGP: id=991D8195; url=http://www.noacks.org/cert/noackjr.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigFF8727EA11F6BB33145175CE" X-Virus-Scanned: amavisd-new at noacks.org Cc: freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca, Ariff Abdullah Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jul 2005 17:31:52 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFF8727EA11F6BB33145175CE Content-Type: multipart/mixed; boundary="------------010407040300090207000701" This is a multi-part message in MIME format. --------------010407040300090207000701 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 07/10/05 06:25, Alexander Leidinger wrote: > On Sun, 10 Jul 2005 01:49:38 -0500 > Jonathan Noack wrote: >>+.It Va hw.snd.pcm%d.latency_timer >>+Controls the PCI latency timer setting. >>+Adjusting this to an appropriate value will solve most popping and crackling issues >>+(especially on VIA motherboards). > > I think "Increasing this value will solve" would be better, since the > man-page doesn't say what "an appropriate" value is. "Incresing" on the > other side at least tells the user what values he should try. Thanks! New patch attached. -- Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195 --------------010407040300090207000701 Content-Type: text/x-patch; name="es137x_man.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="es137x_man.diff" Index: snd_es137x.4 =================================================================== RCS file: /home/ncvs/src/share/man/man4/snd_es137x.4,v retrieving revision 1.4 diff -u -r1.4 snd_es137x.4 --- snd_es137x.4 22 May 2005 16:14:55 -0000 1.4 +++ snd_es137x.4 10 Jul 2005 17:30:37 -0000 @@ -39,6 +39,23 @@ bridge driver allows the generic audio driver .Xr sound 4 to attach to the Ensoniq 137x audio cards. +.Ss Runtime Configuration +The following +.Xr sysctl 8 +variables are available in addition to those available to all +.Xr sound 4 +devices: +.Bl -tag -width ".Va hw.snd.report_soft_formats" -offset indent +.It Va hw.snd.pcm%d.latency_timer +Controls the PCI latency timer setting. +Increasing this value will solve most popping and crackling issues +(especially on VIA motherboards). +.It Va hw.snd.pcm%d.spdif_enabled +Enables S/PDIF output on the primary playback channel. +This +.Xr sysctl 8 +variable is available only if the device is known to support S/PDIF output. +.El .Sh HARDWARE The .Nm @@ -59,3 +76,4 @@ .An "Russell Cattelan" Aq cattelan@thebarn.com .An "Cameron Grant" Aq cg@FreeBSD.org .An "Joachim Kuebart" +.An "Jonathan Noack" Aq noackjr@alumni.rice.edu --------------010407040300090207000701-- --------------enigFF8727EA11F6BB33145175CE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC0VuCUFz01pkdgZURAh2+AKCD/XU/4jLykzHxURQvFsiX1rPdWQCfS7pi TYaeCauTpf9xboekYrNQva4= =J4Ao -----END PGP SIGNATURE----- --------------enigFF8727EA11F6BB33145175CE-- From owner-freebsd-multimedia@FreeBSD.ORG Sun Jul 10 17:55:33 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 25C1516A41C for ; Sun, 10 Jul 2005 17:55:33 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (duke.voidnetwork.com [202.157.186.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C74D43D46 for ; Sun, 10 Jul 2005 17:55:31 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 361A86CC2A; Mon, 11 Jul 2005 02:01:02 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (duke.voidnetwork.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12657-10; Mon, 11 Jul 2005 02:01:01 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [60.48.110.63]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id DA7B56CC29; Mon, 11 Jul 2005 02:00:55 +0800 (MYT) Date: Mon, 11 Jul 2005 01:55:35 +0800 From: Ariff Abdullah To: noackjr@alumni.rice.edu Message-Id: <20050711015535.3d5bddb9.skywizard@MyBSD.org.my> In-Reply-To: <42D15B7D.90805@alumni.rice.edu> References: <42D02CA9.4080201@alumni.rice.edu> <20050710051523.0a67cd91.skywizard@MyBSD.org.my> <42D0C502.9030906@alumni.rice.edu> <20050710132537.16559eec@Magellan.Leidinger.net> <42D15B7D.90805@alumni.rice.edu> 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, Alexander@Leidinger.net, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) 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, 10 Jul 2005 17:55:33 -0000 On Sun, 10 Jul 2005 12:31:41 -0500 Jonathan Noack wrote: > On 07/10/05 06:25, Alexander Leidinger wrote: > > On Sun, 10 Jul 2005 01:49:38 -0500 > > Jonathan Noack wrote: > >>+.It Va hw.snd.pcm%d.latency_timer > >>+Controls the PCI latency timer setting. > >>+Adjusting this to an appropriate value will solve most popping > >and crackling issues >+(especially on VIA motherboards). > > > > I think "Increasing this value will solve" would be better, since > > the man-page doesn't say what "an appropriate" value is. > > "Incresing" on the other side at least tells the user what values > > he should try. > > Thanks! New patch attached. > Thanks! I'll merge it as soon as possible. -- 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 Jul 11 02:16:40 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA75E16A41C for ; Mon, 11 Jul 2005 02:16:40 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA6F843D46 for ; Mon, 11 Jul 2005 02:16:39 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by wproxy.gmail.com with SMTP id 50so759438wri for ; Sun, 10 Jul 2005 19:16:39 -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=GpJh1XkeZenOICAO8V4T72lG82OFWk9/kC0FCviQeNOJ3gee2MjRuhERSoPQ1WKXDx6RPPQE9fxfuv/3Hgtoh0CjNDKVYwpNZEa/KLsZAInE89RkuQMlg65YYYSUYAM73I168PAgBOKs1LcMF2Lr0ykon/16Nu6J7egIvWVKOSU= Received: by 10.54.26.4 with SMTP id 4mr3622161wrz; Sun, 10 Jul 2005 19:16:39 -0700 (PDT) Received: from michelle.rndsoft.co.kr ([211.32.202.209]) by mx.gmail.com with ESMTP id d7sm2188037wra.2005.07.10.19.16.37; Sun, 10 Jul 2005 19:16:39 -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 j6B2FKF2001302 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 11 Jul 2005 11:15:20 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id j6B2FDPO001301; Mon, 11 Jul 2005 11:15:13 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Date: Mon, 11 Jul 2005 11:15:13 +0900 From: Pyun YongHyeon To: Jonathan Noack Message-ID: <20050711021513.GA858@rndsoft.co.kr> References: <42D02CA9.4080201@alumni.rice.edu> <20050710051523.0a67cd91.skywizard@MyBSD.org.my> <42D0F4D4.10700@alumni.rice.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42D0F4D4.10700@alumni.rice.edu> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca, Ariff Abdullah Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) 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: Mon, 11 Jul 2005 02:16:40 -0000 On Sun, Jul 10, 2005 at 05:13:40AM -0500, Jonathan Noack wrote: [...] > > I also see this LOR when detaching: > lock order reversal > 1st 0xc23a2cc0 pcm0 (sound cdev) @ > /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/sound.c:706 > 2nd 0xc0837760 sndstat (sndstat) @ > /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/sndstat.c:256 > KDB: stack backtrace: > witness_checkorder(c0837760,9,c08330a8,100,c050c874) at > witness_checkorder+0x3af > _sx_xlock(c0837760,c08330a8,100,0,c234ca00) at _sx_xlock+0x5c > sndstat_unregister(c2376e00,c25f4700,c08331a6,2c2,c2376e00) at > sndstat_unregister+0x27 > pcm_unregister(c2376e00,c06f75b0,c2376e00,f9771be8,c2376e00) at > pcm_unregister+0x112 > es_pci_detach(c2376e00,c2333850,c06f75b0,961,c08439c0) at es_pci_detach+0x17 > device_detach(c2376e00,c08425f0,c2320640,1,c22fb000) at device_detach+0x8f > devclass_delete_driver(c22fb000,c08439c0,0,0,c226edc0) at > devclass_delete_driver+0xcb > driver_module_handler(c226edc0,1,c08439ac) at driver_module_handler+0xd9 > module_unload(c226edc0,0,1fb,c2274d00,3) at module_unload+0x66 > linker_file_unload(c2274d00,0,c06c4f26,327,bfbfe890) at > linker_file_unload+0x276 > kern_kldunload(0,f9771d04,8,421,2) at kern_kldunload+0x8d > syscall(3b,3b,3b,3,bfbfedf6) at syscall+0x13b > Xint0x80_syscall() at Xint0x80_syscall+0x1f > --- syscall (444, FreeBSD ELF32, kldunloadf), eip = 0x280c0e63, esp = > 0xbfbfe88c, ebp = 0xbfbfecf8 --- > AFAIK this is not real LOR(WITNESS was confused). As you know it's not legal to grab sx lock while holding a mutex. I think almost all MPSAFE audio drivers suffer from the same issue. So I guess it's ok to ignore the issue for a while. The LOR message would be the result of truckman's commit(rev. 1.18 sndstat.c). He already knows the issue but I don't know current status of the fix. -- Regards, Pyun YongHyeon From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 11 09:03:21 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6B8916A41C for ; Mon, 11 Jul 2005 09:03:21 +0000 (GMT) (envelope-from mus.bsd@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54AB043D46 for ; Mon, 11 Jul 2005 09:03:19 +0000 (GMT) (envelope-from mus.bsd@gmail.com) Received: by wproxy.gmail.com with SMTP id i14so854744wra for ; Mon, 11 Jul 2005 02:03:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WAZ9f9A4v3XEWEzVlUAHIyzY+FANbMWlsuYRbz2yx6hEm0JQYDg1zJHPni0QtFVD0KXKwauLmBYjzBqHyMRyOlILttE54m1zXcctQHnYziiZufwyBSw6+ovVi56vrxv6ab3i3MDHHQgY4I9TeajFtpKwFuyN7B8Kifxg3O0QFsI= Received: by 10.54.14.52 with SMTP id 52mr3611720wrn; Mon, 11 Jul 2005 02:03:18 -0700 (PDT) Received: by 10.54.129.5 with HTTP; Mon, 11 Jul 2005 02:03:18 -0700 (PDT) Message-ID: <8eb2b810507110203229b46b@mail.gmail.com> Date: Mon, 11 Jul 2005 17:03:18 +0800 From: Muzaffar Ariff To: yongari@rndsoft.co.kr In-Reply-To: <20050701014258.GE17058@rndsoft.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8eb2b81050628200659d338ab@mail.gmail.com> <20050629043027.GB8832@rndsoft.co.kr> <42C2B94F.2010708@samsco.org> <20050701014258.GE17058@rndsoft.co.kr> Cc: freebsd-multimedia@freebsd.org Subject: Re: ESS Maestro3 no sound X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Muzaffar Ariff List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2005 09:03:21 -0000 After much searching on how to do the patching I think i got it right, but it still does not solve my problem. Here is what I did: 1. Tired to use the patch command and didn't work, because it can't find line 1023 in the original maestro3.c (on my machine). I knew about this but just gave it a try, hoping that I don't have to go the long way :-) 2. Went to locate my sound driver modules and found it in /usr/src/sys/modules/sound/driver/maestro3. Use to the make command to see what it does. *Q1: Is this the source code for the maestro3? 3. I then located and modified my maestro3.c file in /usr/src/sys/dev/sound/pci/maestro3.c (before that made a copy of the old one). Add and commenting out the stuff that you suggested. 4. went back to ~/sound/driver/maestro3 and recompiled it again. It compiled without a problem and I then loaded the module by using #kldload snd_driver. Look up /dev/sndstat and it showed the same thing as before: Installed devices: pcm0: at io 0xd800 irq 5 kld snd_maestro3 (4p/1r/0v channels duplex default) 5. Restarted my machine by having snd_maestro3_load=3D"YES" loaded into /boot/loader.conf 6. Tried using xmms and the same problem happened, the xmms plays the song but with no sound. Looked at /var/run/dmesg.boot to see what went wrong and it output the same problem: pci0: at device 7.3 (no driver attached) pcm0: port 0xd800-0xd8ff mem 0xf3ffe000-0xf3ffffff irq 5 at device 8.0 on pci0 pcm0: failed: rid 0x10 is ioport, requested 3 Q2: Now I might have compiled the code right but did I load the module correctly? (i seem to be at the same conclusion, so I'm guessing it didn't load). Q3: If this does not work do I need to tweek the source to make my card work? If so looking at the code I don't know where to begin :(=20 Hopeless and confuse Muzaffar Ariff On 7/1/05, Pyun YongHyeon wrote: > On Wed, Jun 29, 2005 at 09:07:59AM -0600, Scott Long wrote: >=20 > [...] >=20 > > It looks like yet more decay in the driver. When I wrote it, I was la= zy > > and didn't want to figure out which chip versions preferred IOPORT > > mapping and which ones preferred MEMIO, so I just had it try MEMIO fir= st > > (since that is a better choice) and then fail back to IOPORT. The > > resource manager seemed to tolerate this back then, but apparently it > > doesn't now. My guess is that the first call to bus_alloc_resource > > returns success but actually fails, and in the process it leaks the > > resource out of the resource manager. Then when you unload and load > > again, the resource is unavailable (since it was leaked) so the first > > call to fails, prompting it to go to the second call which succeeds > > fully. This would mean that there are now a number of bugs in the > > resource manager which need to be fixed. > > > > Based on what I've seen over the years, it might be safe to assume tha= t > > BAR0 on both the meastro3 and allegro1 is IOPORT and that BAR1 on the > > maestro3 is MEMIO. Thus, the easiest change might be to just remove > > the first bus_alloc_resource call and force the driver to always use > > IOPORT. I'd still like to use this as a test case for fixing the deep= er > > bugs in the resource manager, though. > > >=20 > Thanks for detailed explanation. :-) > Here is patch. Muzaffar, does the patch change your situation? >=20 > Btw, I encountered dreasful message "play interrupt timeout, channel dead= " > again. Unloading the driver and then reloading the driver fixed it. > Since I see "pci_link2: Unable to choose an IRQ" during driver load > I can't sure it's fault of maestro3(4) driver. >=20 > -- > Regards, > Pyun YongHyeon > http://www.kr.freebsd.org/~yongari | yongari@freebsd.org >=20 >=20 >=20 --=20 Muzaffar Ariff mus.bsd@gmail.com From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 11 09:23: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 C992C16A41C for ; Mon, 11 Jul 2005 09:23:54 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4189C43D46 for ; Mon, 11 Jul 2005 09:23:54 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by wproxy.gmail.com with SMTP id 50so802047wri for ; Mon, 11 Jul 2005 02:23: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=SP0mM/dIKr5iNMKq+OHyGqMMr8D/PAzQkh3SKY3nf8G1M6BXBeiSxk93IHNfucPb9DeNoRGYVjsmWyFI8Ow4BRgW5Mo5y+hV+xDP3BqSUoT2/Qk6DUoSl1J9O6RtH8w/+gcxWd7ZBO6xk1Jy2WMZZZfO9i/MFlK0M7FqH21Vvh4= Received: by 10.54.30.4 with SMTP id d4mr3852001wrd; Mon, 11 Jul 2005 02:23:53 -0700 (PDT) Received: from michelle.rndsoft.co.kr ([211.32.202.209]) by mx.gmail.com with ESMTP id 64sm5656898wra.2005.07.11.02.23.52; Mon, 11 Jul 2005 02:23:53 -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 j6B9Mc2e002744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 11 Jul 2005 18:22:39 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id j6B9McPh002743; Mon, 11 Jul 2005 18:22:38 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Date: Mon, 11 Jul 2005 18:22:38 +0900 From: Pyun YongHyeon To: Muzaffar Ariff Message-ID: <20050711092238.GC858@rndsoft.co.kr> References: <8eb2b81050628200659d338ab@mail.gmail.com> <20050629043027.GB8832@rndsoft.co.kr> <42C2B94F.2010708@samsco.org> <20050701014258.GE17058@rndsoft.co.kr> <8eb2b810507110203229b46b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8eb2b810507110203229b46b@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org Subject: Re: ESS Maestro3 no sound 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: Mon, 11 Jul 2005 09:23:55 -0000 On Mon, Jul 11, 2005 at 05:03:18PM +0800, Muzaffar Ariff wrote: > After much searching on how to do the patching I think i got it right, > but it still does not solve my problem. Here is what I did: > > 1. Tired to use the patch command and didn't work, because it can't > find line 1023 in the original maestro3.c (on my machine). I knew > about this but just gave it a try, hoping that I don't have to go the > long way :-) > Sorry. I had to say the patch was for CURRENT. > 2. Went to locate my sound driver modules and found it in > /usr/src/sys/modules/sound/driver/maestro3. Use to the make command to > see what it does. > *Q1: Is this the source code for the maestro3? > Yes. > 3. I then located and modified my maestro3.c file in > /usr/src/sys/dev/sound/pci/maestro3.c (before that made a copy of the > old one). Add and commenting out the stuff that you suggested. > > 4. went back to ~/sound/driver/maestro3 and recompiled it again. It > compiled without a problem and I then loaded the module by using > #kldload snd_driver. Look up /dev/sndstat and it showed the same thing > as before: > > Installed devices: > pcm0: at io 0xd800 irq 5 kld snd_maestro3 > (4p/1r/0v channels duplex default) > > 5. Restarted my machine by having snd_maestro3_load="YES" loaded into > /boot/loader.conf > > 6. Tried using xmms and the same problem happened, the xmms plays the > song but with no sound. Looked at /var/run/dmesg.boot to see what went > wrong and it output the same problem: > > pci0: at device 7.3 (no driver attached) > pcm0: port 0xd800-0xd8ff mem > 0xf3ffe000-0xf3ffffff irq 5 at device 8.0 on pci0 > pcm0: failed: rid 0x10 is ioport, requested 3 > Hmm, I'm afraid you loaded old module again. Please let me know which FreeBSD version you used. I can make a patch for the specific FreeBSD version. > Q2: Now I might have compiled the code right but did I load the module > correctly? (i seem to be at the same conclusion, so I'm guessing it > didn't load). According to the dmesg output, you loaded old module again. -- Regards, Pyun YongHyeon From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 11 11:02: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 37EFF16A423 for ; Mon, 11 Jul 2005 11:02:13 +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 212B043D58 for ; Mon, 11 Jul 2005 11:02:12 +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 j6BB2Bqu011500 for ; Mon, 11 Jul 2005 11:02:11 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6BB2BGl011494 for freebsd-multimedia@freebsd.org; Mon, 11 Jul 2005 11:02:11 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 11 Jul 2005 11:02:11 GMT Message-Id: <200507111102.j6BB2BGl011494@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, 11 Jul 2005 11:02:13 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/12/26] kern/60599 multimedia [sound] [partial patch] No sound for ATI 1 problem total. From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 11 20:16:25 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BEB616A41C for ; Mon, 11 Jul 2005 20:16:25 +0000 (GMT) (envelope-from caked@bucca.ch) Received: from dgj159.neoplus.adsl.tpnet.pl (dgj159.neoplus.adsl.tpnet.pl [83.23.165.159]) by mx1.FreeBSD.org (Postfix) with SMTP id 849D243D58 for ; Mon, 11 Jul 2005 20:16:24 +0000 (GMT) (envelope-from caked@bucca.ch) Received: from [68.71.71.188] (port=4035 helo=[writs]) by dgj159.neoplus.adsl.tpnet.pl with esmtp id 4001126769Yakima122345 for freebsd-multimedia@freebsd.org; Mon, 11 Jul 2005 22:24:49 +0200 Mime-Version: 1.0 (Apple Message framework v728) Content-Transfer-Encoding: 7bit Message-Id: <9576432020.1023279589@dgj159.neoplus.adsl.tpnet.pl> Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-multimedia@freebsd.org From: Christy Date: Mon, 11 Jul 2005 22:24:48 +0200 X-Mailer: Apple Mail (2.728) Subject: Send the love home with an online photo album 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, 11 Jul 2005 20:16:25 -0000 Buy Cheap PC Software from Special Reserve. http://nftpg.gn2d1fyrdqy5vhg.oughtniknk.biz Prejudice is ignorance. If little else, the brain is an educational toy. From owner-freebsd-multimedia@FreeBSD.ORG Tue Jul 12 20:44:25 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4020F16A41C for ; Tue, 12 Jul 2005 20:44:25 +0000 (GMT) (envelope-from sklauder@trimind.de) Received: from sianna.shopkeeper.de (sianna.shopkeeper.de [217.17.196.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C83543D45 for ; Tue, 12 Jul 2005 20:44:23 +0000 (GMT) (envelope-from sklauder@trimind.de) Received: from avalon.dobu.local (p54B87DD4.dip.t-dialin.net [84.184.125.212]) (authenticated bits=0) by sianna.shopkeeper.de (8.13.1/8.13.1) with ESMTP id j6CKiAsp075609; Tue, 12 Jul 2005 22:44:11 +0200 (CEST) (envelope-from sklauder@trimind.de) Received: from avalon.dobu.local (localhost [127.0.0.1]) by avalon.dobu.local (8.13.3/8.12.11) with ESMTP id j6CKi5wK003956; Tue, 12 Jul 2005 22:44:06 +0200 (CEST) (envelope-from sklauder@avalon.dobu.local) Received: (from sklauder@localhost) by avalon.dobu.local (8.13.3/8.13.3/Submit) id j6CKi4H7003955; Tue, 12 Jul 2005 22:44:04 +0200 (CEST) (envelope-from sklauder) Date: Tue, 12 Jul 2005 22:44:04 +0200 From: Sascha Klauder To: Ariff Abdullah Message-ID: <20050712204404.GA3835@trimind.de> References: <20050707064603.6c295451.skywizard@MyBSD.org.my> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050707064603.6c295451.skywizard@MyBSD.org.my> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) 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, 12 Jul 2005 20:44:25 -0000 On Thu, Jul 07, 2005 at 06:46:03AM +0800, Ariff Abdullah wrote: > After sometimes, I've decided to release this (massive 4k lines) diff > to our sound driver. This need proper review and confirmation, before > it can be committed. > > Patches for both HEAD / RELENG_5 available at: > > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/ Just applied snd_RELENG_5_20050709_006.diff. System is 5.4-STABLE (from 2005-06-12), tested hardware: $ cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xe000 irq 10 kld snd_emu10k1 (4p/2r/2v channels duplex default) pcm1: at io 0x220 irq 5 drq 1:5 bufsz 4096d kld snd_sb16 (1p/1r/1v channels duplex) Something's not right here. I had some minor issues with crackling noise on PCM playback with pcm1 (it's an AWE64), which seems to be gone now, but the playback is just a bit too slow, which sounds pretty strange. Playback on pcm0 (old SB Live!) is just fine, as it was before applying the patch. Recompiling mpg321 and settings vchans didn't help. Where to start looking? Cheers, -sascha From owner-freebsd-multimedia@FreeBSD.ORG Tue Jul 12 22:13: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 6744816A41C for ; Tue, 12 Jul 2005 22:13:36 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (duke.voidnetwork.com [202.157.186.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id B35D443D46 for ; Tue, 12 Jul 2005 22:13:34 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 3404B6CC84; Wed, 13 Jul 2005 06:19:14 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (duke.voidnetwork.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 45956-05; Wed, 13 Jul 2005 06:19:13 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [60.48.109.122]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 0F3F76CC7F; Wed, 13 Jul 2005 06:19:12 +0800 (MYT) Date: Wed, 13 Jul 2005 06:13:47 +0800 From: Ariff Abdullah To: Sascha Klauder Message-Id: <20050713061347.61f719c8.skywizard@MyBSD.org.my> In-Reply-To: <20050712204404.GA3835@trimind.de> References: <20050707064603.6c295451.skywizard@MyBSD.org.my> <20050712204404.GA3835@trimind.de> 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, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) 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, 12 Jul 2005 22:13:36 -0000 On Tue, 12 Jul 2005 22:44:04 +0200 Sascha Klauder wrote: > On Thu, Jul 07, 2005 at 06:46:03AM +0800, Ariff Abdullah wrote: > > After sometimes, I've decided to release this (massive 4k lines) > > diff to our sound driver. This need proper review and > > confirmation, before it can be committed. > > > > Patches for both HEAD / RELENG_5 available at: > > > > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/ > > Just applied snd_RELENG_5_20050709_006.diff. > System is 5.4-STABLE (from 2005-06-12), tested hardware: > > $ cat /dev/sndstat > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at io 0xe000 irq 10 kld snd_emu10k1 > (4p/2r/2v channels duplex default) pcm1: at io 0x220 > irq 5 drq 1:5 bufsz 4096d kld snd_sb16 (1p/1r/1v channels duplex) > > Something's not right here. I had some minor issues with > crackling noise on PCM playback with pcm1 (it's an AWE64), > which seems to be gone now, but the playback is just a bit > too slow, which sounds pretty strange. Playback on pcm0 > (old SB Live!) is just fine, as it was before applying the > patch. > > Recompiling mpg321 and settings vchans didn't help. Where > to start looking? > AWE64 is actually not capable of driving sampling rate at 48k (which is the current default value for vchan). Fortunately you can tune default sampling rate using kernel hint by adding this to your /boot/device.hints: hint.pcm.1.vchanrate="44100" More good news is, I've already added sysctl controller to tune vchan rate on the fly, something like sysctl hw.snd.pcm0.vchanrate=xxx. Stay tuned. If you insist, you may try my latest (revision 8) patch from: http://staff.mybsd.org.my/skywizard/FreeBSD/sound/incoming/ I do have general solution to entirely eliminate noise / crackling issues (which plagued most SBLive!), which is part of my TODO list. Thanks for that feedback! -- 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 Jul 13 00:47: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 DB75716A41C for ; Wed, 13 Jul 2005 00:47:03 +0000 (GMT) (envelope-from mus.bsd@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72EDB43D46 for ; Wed, 13 Jul 2005 00:47:01 +0000 (GMT) (envelope-from mus.bsd@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so65637wra for ; Tue, 12 Jul 2005 17:47:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZM1QQgTbUqmIW2qrs4lmbiBFeQ9bithBcjAHCMktEPpyFDrp/ZtymPTX1h9vqiJX/NK1YwwYh6LdEf6oLQi5ZOYuCrb+22ckFFdZC9VSQofuw263wpyVCmgYRpEJew/X9uhw1kYotvArg8jQ4e8YHhakMihHCto6X+XO999N08k= Received: by 10.54.62.19 with SMTP id k19mr130578wra; Tue, 12 Jul 2005 17:47:00 -0700 (PDT) Received: by 10.54.129.5 with HTTP; Tue, 12 Jul 2005 17:47:00 -0700 (PDT) Message-ID: <8eb2b8105071217477e240667@mail.gmail.com> Date: Wed, 13 Jul 2005 08:47:00 +0800 From: Muzaffar Ariff To: pyunyh@gmail.com In-Reply-To: <20050711092238.GC858@rndsoft.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8eb2b81050628200659d338ab@mail.gmail.com> <20050629043027.GB8832@rndsoft.co.kr> <42C2B94F.2010708@samsco.org> <20050701014258.GE17058@rndsoft.co.kr> <8eb2b810507110203229b46b@mail.gmail.com> <20050711092238.GC858@rndsoft.co.kr> Cc: freebsd-multimedia@freebsd.org Subject: Re: ESS Maestro3 no sound X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Muzaffar Ariff List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2005 00:47:04 -0000 > Hmm, I'm afraid you loaded old module again. Please let me know which > FreeBSD version you used. I can make a patch for the specific FreeBSD > version. I'm using FreeBSD 5.3-release. Are you saying that I did the patching and loading of the patch correctly, its just you gave the wrong one? (need to know either my methods were right) ---=20 Muzaffar Ariff mus.bsd@gmail.com From owner-freebsd-multimedia@FreeBSD.ORG Wed Jul 13 01:11:34 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20BCF16A41F for ; Wed, 13 Jul 2005 01:11:33 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F8C643D49 for ; Wed, 13 Jul 2005 01:11:31 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by wproxy.gmail.com with SMTP id i13so70912wra for ; Tue, 12 Jul 2005 18:11:30 -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=J7ARCir1lapqDk1Wy35/7ZAHyY1V9GRWAI3YMspSZfaNOMcmNIOhl8hiHepHQrvNi9wCDSXXfXKtJnY0fOiBYAuhwHxtEeovJ3urOLSamiFeOzLKfBcIs2fi41UJOc+Kn8fq+bG+WJqIQrxVS1bdnzsEn94FvL5B4RCywRXi16k= Received: by 10.54.57.46 with SMTP id f46mr131731wra; Tue, 12 Jul 2005 18:11:30 -0700 (PDT) Received: from michelle.rndsoft.co.kr ([211.32.202.209]) by mx.gmail.com with ESMTP id 33sm706734wra.2005.07.12.18.11.29; Tue, 12 Jul 2005 18:11:30 -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 j6D1AJDb004803 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Jul 2005 10:10:19 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id j6D1AIVm004802; Wed, 13 Jul 2005 10:10:18 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Date: Wed, 13 Jul 2005 10:10:18 +0900 From: Pyun YongHyeon To: Muzaffar Ariff Message-ID: <20050713011018.GB4479@rndsoft.co.kr> References: <8eb2b81050628200659d338ab@mail.gmail.com> <20050629043027.GB8832@rndsoft.co.kr> <42C2B94F.2010708@samsco.org> <20050701014258.GE17058@rndsoft.co.kr> <8eb2b810507110203229b46b@mail.gmail.com> <20050711092238.GC858@rndsoft.co.kr> <8eb2b8105071217477e240667@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: <8eb2b8105071217477e240667@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org Subject: Re: ESS Maestro3 no sound 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: Wed, 13 Jul 2005 01:11:34 -0000 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jul 13, 2005 at 08:47:00AM +0800, Muzaffar Ariff wrote: > > Hmm, I'm afraid you loaded old module again. Please let me know which > > FreeBSD version you used. I can make a patch for the specific FreeBSD > > version. > > I'm using FreeBSD 5.3-release. Are you saying that I did the patching > and loading of the patch correctly, its just you gave the wrong one? > (need to know either my methods were right) > I can't sure but your dmeseg output says it was not patched. Try attached patch on your system. 1. Save attached patch file to your system(e.g. /tmp). 2. Patch and build. #cd /usr/src #patch -p0 < /path/to/patchfile #cd /usr/src/sys/modules/sound/driver/maestro3 #make 3. Load built module and experiment it. #kldload ./snd_maestro3.ko 4. It the driver works then install it. #make install Please let me know how it goes on your system. -- Regards, Pyun YongHyeon --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="maestro3.resource.diff2" --- sys/dev/sound/pci/maestro3.c.orig Fri Jul 16 12:59:27 2004 +++ sys/dev/sound/pci/maestro3.c Wed Jul 13 10:02:46 2005 @@ -1105,19 +1105,21 @@ } } + pci_enable_busmaster(dev); data = pci_read_config(dev, PCIR_COMMAND, 2); - data |= (PCIM_CMD_PORTEN | PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN); + data |= (PCIM_CMD_PORTEN | PCIM_CMD_MEMEN); pci_write_config(dev, PCIR_COMMAND, data, 2); sc->regid = PCIR_BAR(0); - sc->regtype = SYS_RES_MEMORY; + data = pci_read_config(dev, PCIR_COMMAND, 2); + device_printf(dev,"PCIR_COMMAND = 0x%x\n", data); + sc->regtype = SYS_RES_IOPORT; + if ((data & PCIM_CMD_PORTEN) == 0) { + sc->regtype = SYS_RES_MEMORY; + device_printf(dev,"using memory mapped I/O\n"); + } sc->reg = bus_alloc_resource_any(dev, sc->regtype, &sc->regid, RF_ACTIVE); - if (!sc->reg) { - sc->regtype = SYS_RES_IOPORT; - sc->reg = bus_alloc_resource_any(dev, sc->regtype, &sc->regid, - RF_ACTIVE); - } if (!sc->reg) { device_printf(dev, "unable to allocate register space\n"); goto bad; --5mCyUwZo2JvN/JJP-- From owner-freebsd-multimedia@FreeBSD.ORG Wed Jul 13 08:38: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 0E06016A41C for ; Wed, 13 Jul 2005 08:38:20 +0000 (GMT) (envelope-from sklauder@trimind.de) Received: from sianna.shopkeeper.de (sianna.shopkeeper.de [217.17.196.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6906D43D45 for ; Wed, 13 Jul 2005 08:38:18 +0000 (GMT) (envelope-from sklauder@trimind.de) Received: from avalon.dobu.local (p54B87DD4.dip.t-dialin.net [84.184.125.212]) (authenticated bits=0) by sianna.shopkeeper.de (8.13.1/8.13.1) with ESMTP id j6D8cDRA014276; Wed, 13 Jul 2005 10:38:14 +0200 (CEST) (envelope-from sklauder@trimind.de) Received: from avalon.dobu.local (localhost [127.0.0.1]) by avalon.dobu.local (8.13.3/8.12.11) with ESMTP id j6D8cBDh000739; Wed, 13 Jul 2005 10:38:11 +0200 (CEST) (envelope-from sklauder@avalon.dobu.local) Received: (from sklauder@localhost) by avalon.dobu.local (8.13.3/8.13.3/Submit) id j6D8cBsV000738; Wed, 13 Jul 2005 10:38:11 +0200 (CEST) (envelope-from sklauder) Date: Wed, 13 Jul 2005 10:38:11 +0200 From: Sascha Klauder To: Ariff Abdullah Message-ID: <20050713083811.GA609@trimind.de> References: <20050707064603.6c295451.skywizard@MyBSD.org.my> <20050712204404.GA3835@trimind.de> <20050713061347.61f719c8.skywizard@MyBSD.org.my> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050713061347.61f719c8.skywizard@MyBSD.org.my> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) 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, 13 Jul 2005 08:38:20 -0000 On Wed, Jul 13, 2005 at 06:13:47AM +0800, Ariff Abdullah wrote: > On Tue, 12 Jul 2005 22:44:04 +0200 > Sascha Klauder wrote: > > Something's not right here. I had some minor issues with > > crackling noise on PCM playback with pcm1 (it's an AWE64), > > which seems to be gone now, but the playback is just a bit > > too slow, which sounds pretty strange. Playback on pcm0 > > (old SB Live!) is just fine, as it was before applying the > > patch. > AWE64 is actually not capable of driving sampling rate at 48k (which > is the current default value for vchan). Fortunately you can tune > default sampling rate using kernel hint by adding this to your > /boot/device.hints: > > hint.pcm.1.vchanrate="44100" Works fine, thanks! > rate on the fly, something like sysctl hw.snd.pcm0.vchanrate=xxx. Stay > tuned. If you insist, you may try my latest (revision 8) patch from: > > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/incoming/ Sounds nice, will try that later! > I do have general solution to entirely eliminate noise / crackling > issues (which plagued most SBLive!), which is part of my TODO list. I have no problems whatsoever with noise on the Live!, but had some slightly crackling noise on the AWE card ever since I switched from 4.10 to 5.4, which is gone now with your patch. Thank you! :) Cheers, -sascha From owner-freebsd-multimedia@FreeBSD.ORG Wed Jul 13 12:22:11 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1811C16A41F for ; Wed, 13 Jul 2005 12:22:11 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66D5843D45 for ; Wed, 13 Jul 2005 12:22:09 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd17.aul.t-online.de by mailout03.sul.t-online.com with smtp id 1DsgFW-0000UQ-04; Wed, 13 Jul 2005 14:22:02 +0200 Received: from Andro-Beta.Leidinger.net (VgwhREZr8e8d7BAAKHqCinstZsdTjz18Ah-WS2w8wrXUToAR9SIdZJ@[84.165.215.47]) by fwd17.sul.t-online.de with esmtp id 1DsgFS-2F8TGy0; Wed, 13 Jul 2005 14:21:58 +0200 Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j6DCLvJ9003055; Wed, 13 Jul 2005 14:21:57 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from 141.113.101.31 ([141.113.101.31]) by netchild.homeip.net (Horde MIME library) with HTTP for ; Wed, 13 Jul 2005 14:21:57 +0200 Message-ID: <20050713142157.99y2jio3dw0sc404@netchild.homeip.net> X-Priority: 3 (Normal) Date: Wed, 13 Jul 2005 14:21:57 +0200 From: Alexander Leidinger To: Ariff Abdullah References: <20050707064603.6c295451.skywizard@MyBSD.org.my> <20050712204404.GA3835@trimind.de> <20050713061347.61f719c8.skywizard@MyBSD.org.my> In-Reply-To: <20050713061347.61f719c8.skywizard@MyBSD.org.my> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-ID: VgwhREZr8e8d7BAAKHqCinstZsdTjz18Ah-WS2w8wrXUToAR9SIdZJ@t-dialin.net X-TOI-MSGID: d9a11475-83ed-4bd0-92c6-85abdfd533ab Cc: freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) 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, 13 Jul 2005 12:22:11 -0000 Ariff Abdullah wrote: > More good news is, I've already added sysctl controller to tune vchan > rate on the fly, something like sysctl hw.snd.pcm0.vchanrate=xxx. Stay > tuned. While a sysctl is an easy solution, I don't think we should go this route. A sysctl is only settable by root, but such device specific sound tuning (or more abstract: user changeable parts) should be made user configurable, e.g. with a .ctl device in /dev and an ioctl interface (or maybe an extended ioctl interface for /dev/dsp*). A sndctl application (or the mixer application in case of switching to spdif output) can then change it without the need for superuser privileges. In case the user should be able to modify parts where he may cause a DoS (e.g. because a setting results in allocating memory depending on the value of the setting), a sysctl to limit the range of values makes sense (additionally to sanity checking of the values in the kernel). Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 Painting, n.: The art of protecting flat surfaces from the weather, and exposing them to the critic. -- Ambrose Bierce From owner-freebsd-multimedia@FreeBSD.ORG Wed Jul 13 13:01:12 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4A8016A41C for ; Wed, 13 Jul 2005 13:01:12 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (duke.voidnetwork.com [202.157.186.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB37E43D48 for ; Wed, 13 Jul 2005 13:01:08 +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 2273A6CC57; Wed, 13 Jul 2005 21:06:52 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (duke.voidnetwork.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 51927-01; Wed, 13 Jul 2005 21:06:50 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [60.48.109.122]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 504346CC3D; Wed, 13 Jul 2005 21:06:46 +0800 (MYT) Date: Wed, 13 Jul 2005 21:01:22 +0800 From: Ariff Abdullah To: Sascha Klauder Message-Id: <20050713210122.68332fe3.skywizard@MyBSD.org.my> In-Reply-To: <20050713083811.GA609@trimind.de> References: <20050707064603.6c295451.skywizard@MyBSD.org.my> <20050712204404.GA3835@trimind.de> <20050713061347.61f719c8.skywizard@MyBSD.org.my> <20050713083811.GA609@trimind.de> 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, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) 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, 13 Jul 2005 13:01:12 -0000 On Wed, 13 Jul 2005 10:38:11 +0200 Sascha Klauder wrote: > On Wed, Jul 13, 2005 at 06:13:47AM +0800, Ariff Abdullah wrote: > > On Tue, 12 Jul 2005 22:44:04 +0200 > > Sascha Klauder wrote: > > > Something's not right here. I had some minor issues with > > > crackling noise on PCM playback with pcm1 (it's an AWE64), > > > which seems to be gone now, but the playback is just a bit > > > too slow, which sounds pretty strange. Playback on pcm0 > > > (old SB Live!) is just fine, as it was before applying the > > > patch. > > AWE64 is actually not capable of driving sampling rate at 48k > > (which is the current default value for vchan). Fortunately you > > can tune default sampling rate using kernel hint by adding this to > > your /boot/device.hints: > > > > hint.pcm.1.vchanrate="44100" > > Works fine, thanks! > > > rate on the fly, something like sysctl hw.snd.pcm0.vchanrate=xxx. > > Stay tuned. If you insist, you may try my latest (revision 8) > > patch from: > > > > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/incoming/ > > Sounds nice, will try that later! > > > I do have general solution to entirely eliminate noise / crackling > > issues (which plagued most SBLive!), which is part of my TODO > > list. > > I have no problems whatsoever with noise on the Live!, but > had some slightly crackling noise on the AWE card ever since > I switched from 4.10 to 5.4, which is gone now with your patch. > Thank you! :) > Nice to hear that. Thank you. -- 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 Jul 13 14:16:35 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 D4D4816A41C for ; Wed, 13 Jul 2005 14:16:35 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (duke.voidnetwork.com [202.157.186.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CAE743D55 for ; Wed, 13 Jul 2005 14:16:35 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 011226CCC0; Wed, 13 Jul 2005 22:22:19 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (duke.voidnetwork.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 51927-06; Wed, 13 Jul 2005 22:22:17 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [60.48.109.122]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 3AF0F6CC3D; Wed, 13 Jul 2005 22:22:16 +0800 (MYT) Date: Wed, 13 Jul 2005 22:16:51 +0800 From: Ariff Abdullah To: Alexander Leidinger Message-Id: <20050713221651.10c6ca19.skywizard@MyBSD.org.my> In-Reply-To: <20050713142157.99y2jio3dw0sc404@netchild.homeip.net> References: <20050707064603.6c295451.skywizard@MyBSD.org.my> <20050712204404.GA3835@trimind.de> <20050713061347.61f719c8.skywizard@MyBSD.org.my> <20050713142157.99y2jio3dw0sc404@netchild.homeip.net> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) 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, 13 Jul 2005 14:16:36 -0000 On Wed, 13 Jul 2005 14:21:57 +0200 Alexander Leidinger wrote: > Ariff Abdullah wrote: > > > More good news is, I've already added sysctl controller to tune > > vchan rate on the fly, something like sysctl > > hw.snd.pcm0.vchanrate=xxx. Stay tuned. > > While a sysctl is an easy solution, I don't think we should go this > route. A sysctl is only settable by root, but such device specific > sound tuning (or more abstract: user changeable parts) should be > made user configurable, e.g. with a .ctl device in /dev and an ioctl > interface (or maybe an extended ioctl interface for /dev/dsp*). A > sndctl application (or the mixer application in case of switching to > spdif output) can then change it without the need for superuser > privileges. > I do agree with you, in fact, I have few ideas in mind to implement something like user personal configs (yuck!, not my preferences). I think we should go with sndctl, at the cost of adding few more ioctls and perhaps incompatibilities. Talking about incompatibilities, first, our mixer infrastructure need to be revamped. It's just too old, too crude to handle modern soundcards. Pretty hard to tame it, really, yet possible. Currently all these sysctls and knobs are just to aid debugging, something for developers to tinker with. I believe this will be changed in near future. Thanks for that suggestion. > In case the user should be able to modify parts where he may cause a > DoS (e.g. because a setting results in allocating memory depending > on the value of the setting), a sysctl to limit the range of values > makes sense (additionally to sanity checking of the values in the > kernel). > > Bye, > Alexander. > -- 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 Jul 13 20:02:42 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD6EF16A41C for ; Wed, 13 Jul 2005 20:02:42 +0000 (GMT) (envelope-from rmgls@wanadoo.fr) Received: from smtp7.wanadoo.fr (smtp7.wanadoo.fr [193.252.22.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D2AF43D46 for ; Wed, 13 Jul 2005 20:02:42 +0000 (GMT) (envelope-from rmgls@wanadoo.fr) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0712.wanadoo.fr (SMTP Server) with ESMTP id CC5C51C0008D for ; Wed, 13 Jul 2005 22:02:40 +0200 (CEST) Received: from wanadoo.fr (ARouen-251-1-43-87.w83-199.abo.wanadoo.fr [83.199.166.87]) by mwinf0712.wanadoo.fr (SMTP Server) with ESMTP id BC3FB1C00083 for ; Wed, 13 Jul 2005 22:02:40 +0200 (CEST) X-ME-UUID: 20050713200240771.BC3FB1C00083@mwinf0712.wanadoo.fr Received: from rmgls by port.private.music with local (Exim 4.20) id 1DsnRB-0000Ke-23 for freebsd-multimedia@freebsd.org; Wed, 13 Jul 2005 22:02:33 +0200 Date: Wed, 13 Jul 2005 22:02:33 +0200 From: raoul megelas To: freebsd-multimedia@freebsd.org Message-ID: <20050713200232.GA1247@wanadoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Massive sound changes / fix (24/32bit pcm support, new 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, 13 Jul 2005 20:02:42 -0000 Hello all, after applying the patch (July, 8), i notice regular pops when adjusting the mixer for any input or output. Is it related to the hardware (ich5), or the driver. I does not know. Any idea to help? thanks a lot. Raoul rmgls]wanadoo.fr From owner-freebsd-multimedia@FreeBSD.ORG Wed Jul 13 20:40: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 7158516A421 for ; Wed, 13 Jul 2005 20:40:28 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (duke.voidnetwork.com [202.157.186.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF9DF43D46 for ; Wed, 13 Jul 2005 20:40: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 46C256CCB3; Thu, 14 Jul 2005 04:46:12 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (duke.voidnetwork.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 53185-07; Thu, 14 Jul 2005 04:46:11 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [60.49.38.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id AE2546CCB2; Thu, 14 Jul 2005 04:46:09 +0800 (MYT) Date: Thu, 14 Jul 2005 04:40:38 +0800 From: Ariff Abdullah To: raoul megelas Message-Id: <20050714044038.0a2d6c81.skywizard@MyBSD.org.my> In-Reply-To: <20050713200232.GA1247@wanadoo.fr> References: <20050713200232.GA1247@wanadoo.fr> 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, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new 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, 13 Jul 2005 20:40:28 -0000 On Wed, 13 Jul 2005 22:02:33 +0200 raoul megelas wrote: > Hello all, > > after applying the patch (July, 8), i notice regular > pops when adjusting the mixer for any input or output. > Is it related to the hardware (ich5), or the driver. > I does not know. Any idea to help? > thanks a lot. > Is the volume level change in a drastic manner or gradually? -- 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 Jul 13 20:44:59 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8EA816A41C for ; Wed, 13 Jul 2005 20:44:59 +0000 (GMT) (envelope-from mat@cnd.mcgill.ca) Received: from torrent.cc.mcgill.ca (torrent.CC.McGill.CA [132.206.27.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB12243D48 for ; Wed, 13 Jul 2005 20:44:58 +0000 (GMT) (envelope-from mat@cnd.mcgill.ca) Received: from mailscan3.cc.mcgill.ca (mailscan3.CC.McGill.CA [132.216.77.250]) by torrent.cc.mcgill.ca (8.12.11/8.12.3) with ESMTP id j6DKire3008840; Wed, 13 Jul 2005 16:44:56 -0400 Received: from cube.cnd.mcgill.ca (cube.CND.McGill.CA [132.216.25.196]) by mailscan3.cc.mcgill.ca (8.13.0/8.13.0) with ESMTP id j6DKijpq015625; Wed, 13 Jul 2005 16:44:46 -0400 (EDT) Received: from localhost.localdomain (giant.cnd.mcgill.ca [132.216.11.153]) by cube.cnd.mcgill.ca (8.12.11/8.12.11) with ESMTP id j6DKiQgY003059; Wed, 13 Jul 2005 16:44:26 -0400 Received: from localhost.localdomain (giant [127.0.0.1]) by localhost.localdomain (8.12.11/8.12.11) with ESMTP id j6DKiQNb029493; Wed, 13 Jul 2005 16:44:26 -0400 Received: (from mat@localhost) by localhost.localdomain (8.12.11/8.12.11/Submit) id j6DKiPRJ029492; Wed, 13 Jul 2005 16:44:25 -0400 Date: Wed, 13 Jul 2005 16:44:24 -0400 From: Mathew Kanner To: Ariff Abdullah Message-ID: <20050713204424.GF20863@cnd.mcgill.ca> References: <20050713200232.GA1247@wanadoo.fr> <20050714044038.0a2d6c81.skywizard@MyBSD.org.my> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050714044038.0a2d6c81.skywizard@MyBSD.org.my> User-Agent: Mutt/1.4.2i Organization: I speak for myself, operating in Montreal, CANADA Cc: raoul megelas , freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new 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, 13 Jul 2005 20:45:00 -0000 On Jul 13, Ariff Abdullah wrote: > On Wed, 13 Jul 2005 22:02:33 +0200 > raoul megelas wrote: > > Hello all, > > > > after applying the patch (July, 8), i notice regular > > pops when adjusting the mixer for any input or output. > > Is it related to the hardware (ich5), or the driver. > > I does not know. Any idea to help? > > thanks a lot. > > > > Is the volume level change in a drastic manner or gradually? Sounds like a locking issue. Writting to the device while another thread is already writting to the device. I don't know this hardward but have seen this on others. --Mat From owner-freebsd-multimedia@FreeBSD.ORG Wed Jul 13 21:13:32 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BCFF16A424 for ; Wed, 13 Jul 2005 21:13:32 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (duke.voidnetwork.com [202.157.186.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FFEA43D48 for ; Wed, 13 Jul 2005 21:13:31 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id EFC166CCB3; Thu, 14 Jul 2005 05:19:16 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (duke.voidnetwork.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 53295-08; Thu, 14 Jul 2005 05:19:15 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [60.49.38.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id EBFD36CCB2; Thu, 14 Jul 2005 05:19:14 +0800 (MYT) Date: Thu, 14 Jul 2005 05:13:47 +0800 From: Ariff Abdullah To: Mathew Kanner Message-Id: <20050714051347.0e21a059.skywizard@MyBSD.org.my> In-Reply-To: <20050713204424.GF20863@cnd.mcgill.ca> References: <20050713200232.GA1247@wanadoo.fr> <20050714044038.0a2d6c81.skywizard@MyBSD.org.my> <20050713204424.GF20863@cnd.mcgill.ca> 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: rmgls@wanadoo.fr, freebsd-multimedia@freebsd.org Subject: Re: Massive sound changes / fix (24/32bit pcm support, new 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, 13 Jul 2005 21:13:32 -0000 On Wed, 13 Jul 2005 16:44:24 -0400 Mathew Kanner wrote: > On Jul 13, Ariff Abdullah wrote: > > On Wed, 13 Jul 2005 22:02:33 +0200 > > raoul megelas wrote: > > > Hello all, > > > > > > after applying the patch (July, 8), i notice regular > > > pops when adjusting the mixer for any input or output. > > > Is it related to the hardware (ich5), or the driver. > > > I does not know. Any idea to help? > > > thanks a lot. > > > > > > > Is the volume level change in a drastic manner or gradually? > > Sounds like a locking issue. Writting to the device while > another thread is already writting to the device. I don't know this > hardward but have seen this on others. > --Mat > (hey welcome back!) I hope so... But one thing about intel ac97 standard itself is stupid incompatibility across different vendor. I'm afraid his problem is because of incorrect mixer resolution detection. ac97.c (line 629) trying its best to calculate *exact* resolution although already predefined up there. In any case, we can simply ignore it and carry on with predefined value (the detection mechanism should be fine though). sigh.. I really hope it's about locking issue, which is easier to mitigate as compare with that. -- 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 Jul 13 21:30: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 74D0516A41C for ; Wed, 13 Jul 2005 21:30:58 +0000 (GMT) (envelope-from mat@cnd.mcgill.ca) Received: from torrent.cc.mcgill.ca (torrent.cc.mcgill.ca [132.206.27.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EE7B43D46 for ; Wed, 13 Jul 2005 21:30:57 +0000 (GMT) (envelope-from mat@cnd.mcgill.ca) Received: from mailscan5.CC.McGill.CA (mailscan5.CC.McGill.CA [132.216.77.252]) by torrent.cc.mcgill.ca (8.12.11/8.12.3) with ESMTP id j6DLUod5021233; Wed, 13 Jul 2005 17:30:55 -0400 Received: from cube.cnd.mcgill.ca (cube.CND.McGill.CA [132.216.25.196]) by mailscan5.CC.McGill.CA (8.12.11/8.12.11) with ESMTP id j6DLUQLg009983; Wed, 13 Jul 2005 17:30:26 -0400 Received: from localhost.localdomain (giant.cnd.mcgill.ca [132.216.11.153]) by cube.cnd.mcgill.ca (8.12.11/8.12.11) with ESMTP id j6DLUKhk003693; Wed, 13 Jul 2005 17:30:20 -0400 Received: from localhost.localdomain (giant [127.0.0.1]) by localhost.localdomain (8.12.11/8.12.11) with ESMTP id j6DLUKIK029521; Wed, 13 Jul 2005 17:30:20 -0400 Received: (from mat@localhost) by localhost.localdomain (8.12.11/8.12.11/Submit) id j6DLUJl7029520; Wed, 13 Jul 2005 17:30:19 -0400 Date: Wed, 13 Jul 2005 17:30:19 -0400 From: Mathew Kanner To: Ariff Abdullah Message-ID: <20050713213018.GG20863@cnd.mcgill.ca> References: <20050713200232.GA1247@wanadoo.fr> <20050714044038.0a2d6c81.skywizard@MyBSD.org.my> <20050713204424.GF20863@cnd.mcgill.ca> <20050714051347.0e21a059.skywizard@MyBSD.org.my> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050714051347.0e21a059.skywizard@MyBSD.org.my> User-Agent: Mutt/1.4.2i Organization: I speak for myself, operating in Montreal, CANADA Cc: rmgls@wanadoo.fr, freebsd-multimedia@freebsd.org, Mathew Kanner Subject: Re: Massive sound changes / fix (24/32bit pcm support, new 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, 13 Jul 2005 21:30:58 -0000 On Jul 13, Ariff Abdullah wrote: > > > On Wed, 13 Jul 2005 16:44:24 -0400 > Mathew Kanner wrote: > > On Jul 13, Ariff Abdullah wrote: > > > On Wed, 13 Jul 2005 22:02:33 +0200 > > > raoul megelas wrote: > > > > Hello all, > > > > > > > > after applying the patch (July, 8), i notice regular > > > > pops when adjusting the mixer for any input or output. > > > > Is it related to the hardware (ich5), or the driver. > > > > I does not know. Any idea to help? > > > > thanks a lot. > > > > > > > > > > Is the volume level change in a drastic manner or gradually? > > > > Sounds like a locking issue. Writting to the device while > > another thread is already writting to the device. I don't know this > > hardward but have seen this on others. > > --Mat > > > > (hey welcome back!) > > I hope so... But one thing about intel ac97 standard itself is stupid > incompatibility across different vendor. I'm afraid his problem is > because of incorrect mixer resolution detection. ac97.c (line 629) > trying its best to calculate *exact* resolution although already > predefined up there. In any case, we can simply ignore it and carry on > with predefined value (the detection mechanism should be fine though). > > sigh.. I really hope it's about locking issue, which is easier to > mitigate as compare with that. Hi, I'm must be missing something, I think the complaint is noise when adjusting the volumen, not the granularity of the volume level. --Mat From owner-freebsd-multimedia@FreeBSD.ORG Wed Jul 13 21:42:40 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3660516A41C for ; Wed, 13 Jul 2005 21:42:40 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (duke.voidnetwork.com [202.157.186.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25FA843D45 for ; Wed, 13 Jul 2005 21:42:37 +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 824286CC5B; Thu, 14 Jul 2005 05:48:22 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (duke.voidnetwork.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 67988-03; Thu, 14 Jul 2005 05:48:19 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [60.49.38.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 363BA6CC20; Thu, 14 Jul 2005 05:48:15 +0800 (MYT) Date: Thu, 14 Jul 2005 05:42:49 +0800 From: Ariff Abdullah To: Mathew Kanner Message-Id: <20050714054249.23aca14a.skywizard@MyBSD.org.my> In-Reply-To: <20050713213018.GG20863@cnd.mcgill.ca> References: <20050713200232.GA1247@wanadoo.fr> <20050714044038.0a2d6c81.skywizard@MyBSD.org.my> <20050713204424.GF20863@cnd.mcgill.ca> <20050714051347.0e21a059.skywizard@MyBSD.org.my> <20050713213018.GG20863@cnd.mcgill.ca> 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: rmgls@wanadoo.fr, freebsd-multimedia@freebsd.org Subject: Re: Massive sound changes / fix (24/32bit pcm support, new 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, 13 Jul 2005 21:42:40 -0000 On Wed, 13 Jul 2005 17:30:19 -0400 Mathew Kanner wrote: > On Jul 13, Ariff Abdullah wrote: > > > > > > On Wed, 13 Jul 2005 16:44:24 -0400 > > Mathew Kanner wrote: > > > On Jul 13, Ariff Abdullah wrote: > > > > On Wed, 13 Jul 2005 22:02:33 +0200 > > > > raoul megelas wrote: > > > > > Hello all, > > > > > > > > > > after applying the patch (July, 8), i notice regular > > > > > pops when adjusting the mixer for any input or output. > > > > > Is it related to the hardware (ich5), or the driver. > > > > > I does not know. Any idea to help? > > > > > thanks a lot. > > > > > > > > > > > > > Is the volume level change in a drastic manner or gradually? > > > > > > Sounds like a locking issue. Writting to the device while > > > another thread is already writting to the device. I don't know > > > this hardward but have seen this on others. > > > --Mat > > > > > > > (hey welcome back!) > > > > I hope so... But one thing about intel ac97 standard itself is > > stupid incompatibility across different vendor. I'm afraid his > > problem is because of incorrect mixer resolution detection. ac97.c > > (line 629) trying its best to calculate *exact* resolution > > although already predefined up there. In any case, we can simply > > ignore it and carry on with predefined value (the detection > > mechanism should be fine though). > > > > sigh.. I really hope it's about locking issue, which is easier to > > mitigate as compare with that. > > Hi, > I'm must be missing something, I think the complaint is noise > when adjusting the volumen, not the granularity of the volume level. > --Mat > I'm worrying too much. Let us hope he can respon quick enough. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Thu Jul 14 03:43:02 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB26016A41F for ; Thu, 14 Jul 2005 03:43:02 +0000 (GMT) (envelope-from mus.bsd@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9F5043D4C for ; Thu, 14 Jul 2005 03:42:59 +0000 (GMT) (envelope-from mus.bsd@gmail.com) Received: by wproxy.gmail.com with SMTP id i18so196144wra for ; Wed, 13 Jul 2005 20:42:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VyfjkpIP5YPmOWrKKT0+qVpLVPirDGHWjh774tpeLTRxD4ci7zkzg+q+g305vz1i+nCatwho4fqKakpuzFrmrFBBeyxLcS4nD9zD3HZIUzA0Gdre3SXKHlmbwLZOlH5zZ6FkoRalRHXtMmmkzdakQq+Hxpw0gqi4+VlBqYtXbWc= Received: by 10.54.14.71 with SMTP id 71mr578899wrn; Wed, 13 Jul 2005 20:41:54 -0700 (PDT) Received: by 10.54.129.5 with HTTP; Wed, 13 Jul 2005 20:41:54 -0700 (PDT) Message-ID: <8eb2b81050713204179cb710c@mail.gmail.com> Date: Thu, 14 Jul 2005 11:41:54 +0800 From: Muzaffar Ariff To: pyunyh@gmail.com In-Reply-To: <20050713011018.GB4479@rndsoft.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8eb2b81050628200659d338ab@mail.gmail.com> <20050629043027.GB8832@rndsoft.co.kr> <42C2B94F.2010708@samsco.org> <20050701014258.GE17058@rndsoft.co.kr> <8eb2b810507110203229b46b@mail.gmail.com> <20050711092238.GC858@rndsoft.co.kr> <8eb2b8105071217477e240667@mail.gmail.com> <20050713011018.GB4479@rndsoft.co.kr> Cc: freebsd-multimedia@freebsd.org Subject: Re: ESS Maestro3 no sound X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Muzaffar Ariff List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 03:43:03 -0000 I've loaded the patch but still I'm having the same problem, xmms plays the mp3 file but no sound. On the brightside there is no error in /var/run/dmesg.boot like before: pcm0: port 0xd800-0xd8ff mem 0xf3ffe000-0xf3ffffff irq 5 at device 8.0 on pci0 pcm0: PCIR_COMMAND =3D 0x7 pcm0: [GIANT-LOCKED] pcm0: So does anyone know what is wrong with my maestro?=20 ps: thanks for the instruction on patching the code. really appreciate it := ) On 7/13/05, Pyun YongHyeon wrote: > On Wed, Jul 13, 2005 at 08:47:00AM +0800, Muzaffar Ariff wrote: > > > Hmm, I'm afraid you loaded old module again. Please let me know whic= h > > > FreeBSD version you used. I can make a patch for the specific FreeBS= D > > > version. > > > > I'm using FreeBSD 5.3-release. Are you saying that I did the patching > > and loading of the patch correctly, its just you gave the wrong one? > > (need to know either my methods were right) > > > I can't sure but your dmeseg output says it was not patched. > Try attached patch on your system. >=20 > 1. Save attached patch file to your system(e.g. /tmp). > 2. Patch and build. > #cd /usr/src > #patch -p0 < /path/to/patchfile > #cd /usr/src/sys/modules/sound/driver/maestro3 > #make > 3. Load built module and experiment it. > #kldload ./snd_maestro3.ko >=20 > 4. It the driver works then install it. > #make install >=20 > Please let me know how it goes on your system. >=20 > -- > Regards, > Pyun YongHyeon >=20 >=20 >=20 --=20 Muzaffar Ariff mus.bsd@gmail.com From owner-freebsd-multimedia@FreeBSD.ORG Thu Jul 14 04:53:33 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 EF5A016A41F for ; Thu, 14 Jul 2005 04:53:33 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AEC743D45 for ; Thu, 14 Jul 2005 04:53:32 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by wproxy.gmail.com with SMTP id 57so349168wri for ; Wed, 13 Jul 2005 21:53:32 -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=cnLdNTOZ4n+XVIHSwFI6VPR+LKE5d5f9uPyqrG5tugdQJWgpPJy22RKnMMwwYfHx2xDAzaMpaD+VfgW51FN062+eSNp0c+pCdgHy5oJ4KXJJ5mBEEGg+3tYVpUoNhFdo+j5Vx+s2FGWyOF05r4vVNyavDPhy/ivJa3FEqHc+K3c= Received: by 10.54.92.18 with SMTP id p18mr619385wrb; Wed, 13 Jul 2005 21:52:18 -0700 (PDT) Received: from michelle.rndsoft.co.kr ([211.32.202.209]) by mx.gmail.com with ESMTP id 64sm1141932wra.2005.07.13.21.52.17; Wed, 13 Jul 2005 21:52:18 -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 j6E4pMqg009611 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 14 Jul 2005 13:51:22 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id j6E4pLJE009610; Thu, 14 Jul 2005 13:51:21 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Date: Thu, 14 Jul 2005 13:51:21 +0900 From: Pyun YongHyeon To: Muzaffar Ariff Message-ID: <20050714045121.GB8764@rndsoft.co.kr> References: <8eb2b81050628200659d338ab@mail.gmail.com> <20050629043027.GB8832@rndsoft.co.kr> <42C2B94F.2010708@samsco.org> <20050701014258.GE17058@rndsoft.co.kr> <8eb2b810507110203229b46b@mail.gmail.com> <20050711092238.GC858@rndsoft.co.kr> <8eb2b8105071217477e240667@mail.gmail.com> <20050713011018.GB4479@rndsoft.co.kr> <8eb2b81050713204179cb710c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8eb2b81050713204179cb710c@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org Subject: Re: ESS Maestro3 no sound 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: Thu, 14 Jul 2005 04:53:34 -0000 On Thu, Jul 14, 2005 at 11:41:54AM +0800, Muzaffar Ariff wrote: > I've loaded the patch but still I'm having the same problem, xmms > plays the mp3 file but no sound. On the brightside there is no error > in /var/run/dmesg.boot like before: > > pcm0: port 0xd800-0xd8ff mem > 0xf3ffe000-0xf3ffffff irq 5 at device 8.0 on pci0 > pcm0: PCIR_COMMAND = 0x7 > pcm0: [GIANT-LOCKED] > pcm0: > > So does anyone know what is wrong with my maestro? > Thanks for your report. It seems that you have other issues not known to me. Does the driver prints timeout message such as "pcm0:play:0: play interrupt timeout, channel dead"? xmms plays songs with normal speed?(i.e. just no sound) Without loading ACPI do you suffer from the same problem? Could show me "pciconf -lv" output for your ESS card? If you can run "pciconf -lv", locate a line somthing like pcm0@pciX:Y:Z. Then show me output of "pciconf -r pciX:Y:Z 0:ff" before and after loading the driver. -- Regards, Pyun YongHyeon From owner-freebsd-multimedia@FreeBSD.ORG Thu Jul 14 08:31:17 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B27316A41C for ; Thu, 14 Jul 2005 08:31:17 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from mailout10.sul.t-online.com (mailout10.sul.t-online.com [194.25.134.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0C9543D46 for ; Thu, 14 Jul 2005 08:31:16 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd21.aul.t-online.de by mailout10.sul.t-online.com with smtp id 1Dsz7e-0000g1-02; Thu, 14 Jul 2005 10:31:10 +0200 Received: from Andro-Beta.Leidinger.net (GMvkP2ZdQeLy0KNFIFAYathbbKaPBecN1gkqsED8mUBNFxFH9X-8Ut@[84.165.210.187]) by fwd21.sul.t-online.de with esmtp id 1Dsz7Q-20DQkS0; Thu, 14 Jul 2005 10:30:56 +0200 Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j6E8UtqF075928; Thu, 14 Jul 2005 10:30:55 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from 141.113.101.31 ([141.113.101.31]) by netchild.homeip.net (Horde MIME library) with HTTP for ; Thu, 14 Jul 2005 10:30:55 +0200 Message-ID: <20050714103055.cqsfhiy7wgscw00o@netchild.homeip.net> X-Priority: 3 (Normal) Date: Thu, 14 Jul 2005 10:30:55 +0200 From: Alexander Leidinger To: Ariff Abdullah References: <20050707064603.6c295451.skywizard@MyBSD.org.my> <20050712204404.GA3835@trimind.de> <20050713061347.61f719c8.skywizard@MyBSD.org.my> <20050713142157.99y2jio3dw0sc404@netchild.homeip.net> <20050713221651.10c6ca19.skywizard@MyBSD.org.my> In-Reply-To: <20050713221651.10c6ca19.skywizard@MyBSD.org.my> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-ID: GMvkP2ZdQeLy0KNFIFAYathbbKaPBecN1gkqsED8mUBNFxFH9X-8Ut@t-dialin.net X-TOI-MSGID: 263c260d-a787-4b7e-91cf-20fe456fc69b Cc: freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 08:31:17 -0000 Ariff Abdullah wrote: > and perhaps incompatibilities. Talking about incompatibilities, > first, our mixer infrastructure need to be revamped. It's just too > old, too crude to handle modern soundcards. Pretty hard to tame it, > really, yet possible. I don't object to have our own mixer interface, but we really need to have compatibility-shims for OSS. And if the new OSS interface suits most of our needs, we should use it and talk with the OSS developers how to extend it for additional features so we can agree to a common API. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 The IBM purchase of ROLM gives new meaning to the term "twisted pair". -- Howard Anderson, "Yankee Group" From owner-freebsd-multimedia@FreeBSD.ORG Thu Jul 14 11:21:47 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33F5016A41C for ; Thu, 14 Jul 2005 11:21:47 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (duke.voidnetwork.com [202.157.186.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BE9443D46 for ; Thu, 14 Jul 2005 11:21:45 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 198B96CC24; Thu, 14 Jul 2005 19:27:33 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (duke.voidnetwork.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 71594-03; Thu, 14 Jul 2005 19:27:31 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [60.49.38.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 9F0796CC2C; Thu, 14 Jul 2005 19:27:30 +0800 (MYT) Date: Thu, 14 Jul 2005 19:21:56 +0800 From: Ariff Abdullah To: raoul megelas Message-Id: <20050714192156.2f42a7a2.skywizard@MyBSD.org.my> In-Reply-To: <20050714071453.GA880@wanadoo.fr> References: <20050713200232.GA1247@wanadoo.fr> <20050714044038.0a2d6c81.skywizard@MyBSD.org.my> <20050713204424.GF20863@cnd.mcgill.ca> <20050714051347.0e21a059.skywizard@MyBSD.org.my> <20050713213018.GG20863@cnd.mcgill.ca> <20050714054249.23aca14a.skywizard@MyBSD.org.my> <20050714071453.GA880@wanadoo.fr> 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, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 11:21:47 -0000 On Thu, 14 Jul 2005 09:14:53 +0200 raoul megelas wrote: > On Thu, Jul 14, 2005 at 05:42:49AM +0800, Ariff Abdullah wrote: > > On Wed, 13 Jul 2005 17:30:19 -0400 > > Mathew Kanner wrote: > > > On Jul 13, Ariff Abdullah wrote: > > > > > > > > > > > > On Wed, 13 Jul 2005 16:44:24 -0400 > > > > Mathew Kanner wrote: > > > > > On Jul 13, Ariff Abdullah wrote: > > > > > > On Wed, 13 Jul 2005 22:02:33 +0200 > > > > > > raoul megelas wrote: > > > > > > > Hello all, > > > > > > > > > > > > > > after applying the patch (July, 8), i notice regular > > > > > > > pops when adjusting the mixer for any input or output. > > > > > > > Is it related to the hardware (ich5), or the driver. > > > > > > > I does not know. Any idea to help? > > > > > > > thanks a lot. > > > > > > > > > > > > > > > > > > > Is the volume level change in a drastic manner or > > > > > > gradually? > > > > > > > > > > Sounds like a locking issue. Writting to the device > > > > > while > > > > > another thread is already writting to the device. I don't > > > > > know this hardward but have seen this on others. > > > > > --Mat > > > > > > > > > > > > > (hey welcome back!) > > > > > > > > I hope so... But one thing about intel ac97 standard itself is > > > > stupid incompatibility across different vendor. I'm afraid his > > > > problem is because of incorrect mixer resolution detection. > > > > ac97.c (line 629) trying its best to calculate *exact* > > > > resolution although already predefined up there. In any case, > > > > we can simply ignore it and carry on with predefined value > > > > (the detection mechanism should be fine though). > > > > > > > > sigh.. I really hope it's about locking issue, which is easier > > > > to mitigate as compare with that. > > > > > > Hi, > > > I'm must be missing something, I think the complaint is noise > > > when adjusting the volumen, not the granularity of the volume > > > level. > > > --Mat > > > > > > > I'm worrying too much. Let us hope he can respon quick enough. > hi, > > sorry, i receive the messages list once a day. > > this happen too on my maestro3 chip on another machine > (now old dell inspiron 8000). > I tend to think it is a general problem. > Windows use a step-by-step method (not very convenient), > but perhaps they have the same problem??? > > the amount of change i tried is simply 50 to 75 75 to 100. > Fill free to ask any test if needed. > thanks > Now that's really weird, you mean, even Windows having that sort of problem too? Let me ask you a question first: Is the problem occur *with* that patch applied, or even *without* it? (Next time, please CC your mail to the ml) -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Thu Jul 14 13:47:47 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1AF5416A41C for ; Thu, 14 Jul 2005 13:47:47 +0000 (GMT) (envelope-from rmgls@wanadoo.fr) Received: from smtp6.wanadoo.fr (smtp6.wanadoo.fr [193.252.22.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39AB243D49 for ; Thu, 14 Jul 2005 13:47:46 +0000 (GMT) (envelope-from rmgls@wanadoo.fr) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0612.wanadoo.fr (SMTP Server) with ESMTP id 032141C00146 for ; Thu, 14 Jul 2005 15:47:45 +0200 (CEST) Received: from wanadoo.fr (ARouen-251-1-43-176.w83-199.abo.wanadoo.fr [83.199.166.176]) by mwinf0612.wanadoo.fr (SMTP Server) with ESMTP id CD0DA1C0013F for ; Thu, 14 Jul 2005 15:47:44 +0200 (CEST) X-ME-UUID: 20050714134744839.CD0DA1C0013F@mwinf0612.wanadoo.fr Received: from rmgls by port.private.music with local (Exim 4.20) id 1Dt43p-0000Df-NR; Thu, 14 Jul 2005 15:47:33 +0200 Date: Thu, 14 Jul 2005 15:47:33 +0200 From: raoul megelas To: Ariff Abdullah Message-ID: <20050714134733.GA788@wanadoo.fr> References: <20050713200232.GA1247@wanadoo.fr> <20050714044038.0a2d6c81.skywizard@MyBSD.org.my> <20050713204424.GF20863@cnd.mcgill.ca> <20050714051347.0e21a059.skywizard@MyBSD.org.my> <20050713213018.GG20863@cnd.mcgill.ca> <20050714054249.23aca14a.skywizard@MyBSD.org.my> <20050714071453.GA880@wanadoo.fr> <20050714192156.2f42a7a2.skywizard@MyBSD.org.my> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050714192156.2f42a7a2.skywizard@MyBSD.org.my> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org Subject: Re: Massive sound changes / fix (24/32bit pcm support, new X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 13:47:47 -0000 On Thu, Jul 14, 2005 at 07:21:56PM +0800, Ariff Abdullah wrote: > On Thu, 14 Jul 2005 09:14:53 +0200 > raoul megelas wrote: > > On Thu, Jul 14, 2005 at 05:42:49AM +0800, Ariff Abdullah wrote: > > > On Wed, 13 Jul 2005 17:30:19 -0400 > > > Mathew Kanner wrote: > > > > On Jul 13, Ariff Abdullah wrote: > > > > > > > > > > > > > > > On Wed, 13 Jul 2005 16:44:24 -0400 > > > > > Mathew Kanner wrote: > > > > > > On Jul 13, Ariff Abdullah wrote: > > > > > > > On Wed, 13 Jul 2005 22:02:33 +0200 > > > > > > > raoul megelas wrote: > > > > > > > > Hello all, > > > > > > > > > > > > > > > > after applying the patch (July, 8), i notice regular > > > > > > > > pops when adjusting the mixer for any input or output. > > > > > > > > Is it related to the hardware (ich5), or the driver. > > > > > > > > I does not know. Any idea to help? > > > > > > > > thanks a lot. > > > > > > > > > > > > > > > > > > > > > > Is the volume level change in a drastic manner or > > > > > > > gradually? > > > > > > > > > > > > Sounds like a locking issue. Writting to the device > > > > > > while > > > > > > another thread is already writting to the device. I don't > > > > > > know this hardward but have seen this on others. > > > > > > --Mat > > > > > > > > > > > > > > > > (hey welcome back!) > > > > > > > > > > I hope so... But one thing about intel ac97 standard itself is > > > > > stupid incompatibility across different vendor. I'm afraid his > > > > > problem is because of incorrect mixer resolution detection. > > > > > ac97.c (line 629) trying its best to calculate *exact* > > > > > resolution although already predefined up there. In any case, > > > > > we can simply ignore it and carry on with predefined value > > > > > (the detection mechanism should be fine though). > > > > > > > > > > sigh.. I really hope it's about locking issue, which is easier > > > > > to mitigate as compare with that. > > > > > > > > Hi, > > > > I'm must be missing something, I think the complaint is noise > > > > when adjusting the volumen, not the granularity of the volume > > > > level. > > > > --Mat > > > > > > > > > > I'm worrying too much. Let us hope he can respon quick enough. > > hi, > > > > sorry, i receive the messages list once a day. > > > > this happen too on my maestro3 chip on another machine > > (now old dell inspiron 8000). > > I tend to think it is a general problem. > > Windows use a step-by-step method (not very convenient), > > but perhaps they have the same problem??? > > > > the amount of change i tried is simply 50 to 75 75 to 100. > > Fill free to ask any test if needed. > > thanks > > > > Now that's really weird, you mean, even Windows having that sort of > problem too? Let me ask you a question first: Is the problem occur > *with* that patch applied, or even *without* it? the problem does not seem to happen on windows, perhaps due to the step-by-step adjustment. I'll will revert compile and try. as soon as possible i'll mail the result. thanks for your time. > (Next time, please CC your mail to the ml) ok, no problem. From owner-freebsd-multimedia@FreeBSD.ORG Thu Jul 14 14:06:48 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F2AB16A421 for ; Thu, 14 Jul 2005 14:06:48 +0000 (GMT) (envelope-from lehmann@ans-netz.de) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [83.136.81.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 665CE43D49 for ; Thu, 14 Jul 2005 14:06:46 +0000 (GMT) (envelope-from lehmann@ans-netz.de) Received: (qmail 27350 invoked by uid 89); 14 Jul 2005 14:06:21 -0000 Received: from unknown (HELO kartoffel.salatschuessel.net) (83.136.81.185) by avocado.salatschuessel.net with SMTP; 14 Jul 2005 14:06:21 -0000 Date: Thu, 14 Jul 2005 16:06:37 +0200 From: Oliver Lehmann To: Sascha Klauder Message-Id: <20050714160637.5a0ae916.lehmann@ans-netz.de> In-Reply-To: <20050712204404.GA3835@trimind.de> References: <20050707064603.6c295451.skywizard@MyBSD.org.my> <20050712204404.GA3835@trimind.de> X-Mailer: Sylpheed version 2.0.0beta5 (GTK+ 2.6.8; amd64-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca, skywizard@MyBSD.org.my Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 14:06:48 -0000 Sascha Klauder wrote: > On Thu, Jul 07, 2005 at 06:46:03AM +0800, Ariff Abdullah wrote: > > After sometimes, I've decided to release this (massive 4k lines) diff > > to our sound driver. This need proper review and confirmation, before > > it can be committed. > > > > Patches for both HEAD / RELENG_5 available at: > > > > http://staff.mybsd.org.my/skywizard/FreeBSD/sound/ I tried http://staff.mybsd.org.my/skywizard/FreeBSD/sound/incoming/snd_HEAD_20050714_009.diff with RELENG_6 and it works! pcm0: port 0xbc00-0xbcff irq 22 at device 17.5 on pci0 pcm0: pcm0: -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/ From owner-freebsd-multimedia@FreeBSD.ORG Thu Jul 14 15:13:31 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 DC56216A41F for ; Thu, 14 Jul 2005 15:13:31 +0000 (GMT) (envelope-from rmgls@wanadoo.fr) Received: from smtp12.wanadoo.fr (smtp12.wanadoo.fr [193.252.22.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FB6A43D48 for ; Thu, 14 Jul 2005 15:13:31 +0000 (GMT) (envelope-from rmgls@wanadoo.fr) Received: from me-wanadoo.net (unknown [127.0.0.1]) by mwinf1201.wanadoo.fr (SMTP Server) with ESMTP id D3CA51C000A5 for ; Thu, 14 Jul 2005 17:13:29 +0200 (CEST) Received: from wanadoo.fr (ARouen-251-1-43-176.w83-199.abo.wanadoo.fr [83.199.166.176]) by mwinf1201.wanadoo.fr (SMTP Server) with ESMTP id B67B11C00085 for ; Thu, 14 Jul 2005 17:13:29 +0200 (CEST) X-ME-UUID: 20050714151329747.B67B11C00085@mwinf1201.wanadoo.fr Received: from rmgls by port.private.music with local (Exim 4.20) id 1Dt5Oo-0000Ea-AW; Thu, 14 Jul 2005 17:13:18 +0200 Date: Thu, 14 Jul 2005 17:13:18 +0200 From: raoul megelas To: skywizard@MyBSD.org.my Message-ID: <20050714151318.GA877@wanadoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org Subject: Re: Massive sound changes / fix (24/32bit pcm support, new X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 15:13:32 -0000 On Thu, 14 Jul 2005 09:14:53 +0200 raoul megelas wrote: Ariff Abdullah ... >> this happen too on my maestro3 chip on another machine >> (now old dell inspiron 8000). >> I tend to think it is a general problem. ... > Now that's really weird, you mean, even Windows having that sort of > problem too? Let me ask you a question first: Is the problem occur > *with* that patch applied, or even *without* it? hi Ariff and all, Clear, the patch sounds better than without it. without the patch, the biggest ppo occurs on adjusting pcm value (50 to 75 or 100) and less audible from adjusting the volume by the same amount. But the click is still audible even not so high. Best regards. raoul mégélas rmgls@wanadoo.fr From owner-freebsd-multimedia@FreeBSD.ORG Thu Jul 14 16:18: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 2D1BC16A41C for ; Thu, 14 Jul 2005 16:18:05 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (duke.voidnetwork.com [202.157.186.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6C2943D48 for ; Thu, 14 Jul 2005 16:18:04 +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 9AE456CC36; Fri, 15 Jul 2005 00:23:53 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (duke.voidnetwork.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 72902-01; Fri, 15 Jul 2005 00:23:52 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [60.49.38.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id DC6506CC20; Fri, 15 Jul 2005 00:23:51 +0800 (MYT) Date: Fri, 15 Jul 2005 00:18:22 +0800 From: Ariff Abdullah To: raoul megelas Message-Id: <20050715001822.1742ad04.skywizard@MyBSD.org.my> In-Reply-To: <20050714151318.GA877@wanadoo.fr> References: <20050714151318.GA877@wanadoo.fr> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 16:18:05 -0000 On Thu, 14 Jul 2005 17:13:18 +0200 raoul megelas wrote: > On Thu, 14 Jul 2005 09:14:53 +0200 > raoul megelas wrote: > Ariff Abdullah >=20 > ... >=20 > >> this happen too on my maestro3 chip on another machine > >> (now old dell inspiron 8000). > >> I tend to think it is a general problem. >=20 > ...=20 >=20 > > Now that's really weird, you mean, even Windows having that sort > > of problem too? Let me ask you a question first: Is the problem > > occur *with* that patch applied, or even *without* it? >=20 > hi Ariff and all, >=20 > Clear, the patch sounds better than without it. That's good... > without the patch, the biggest ppo occurs on adjusting pcm value > (50 to 75 or 100) and less audible from adjusting the volume > by the same amount. > But the click is still audible even not so high. Probably Mat was right about locking issue. Unfortunately, I don't have any ICH5 around to do some thorough examination. Anyway, can you try applying latest (revision 009) patch? You may find that under /incoming/ directory from my patch directory. Listening to music while keep changing volume level up/down is not a pleasant experience, right? :) >=20 > Best regards. >=20 > raoul m=E9g=E9las > rmgls@wanadoo.fr >=20 -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Thu Jul 14 18:50:38 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 D8D8016A41C for ; Thu, 14 Jul 2005 18:50:38 +0000 (GMT) (envelope-from mraught@acm.org) Received: from www.raught.net (pcp0010250657pcs.lpaxtn01.pa.comcast.net [68.36.102.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 688D043D45 for ; Thu, 14 Jul 2005 18:50:38 +0000 (GMT) (envelope-from mraught@acm.org) Received: from [192.168.0.4] ([10.0.0.52]) by www.raught.net (8.12.9/8.12.9) with ESMTP id j6EIcDkn029364; Thu, 14 Jul 2005 14:38:14 -0400 (EDT) Message-ID: <42D6B426.4070600@acm.org> Date: Thu, 14 Jul 2005 14:51:18 -0400 From: "Mark A-J. Raught (from the laptop)" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050528 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Muzaffar Ariff References: <8eb2b81050628200659d338ab@mail.gmail.com> <20050629043027.GB8832@rndsoft.co.kr> <42C2B94F.2010708@samsco.org> <20050701014258.GE17058@rndsoft.co.kr> <8eb2b810507110203229b46b@mail.gmail.com> <20050711092238.GC858@rndsoft.co.kr> <8eb2b8105071217477e240667@mail.gmail.com> <20050713011018.GB4479@rndsoft.co.kr> <8eb2b81050713204179cb710c@mail.gmail.com> In-Reply-To: <8eb2b81050713204179cb710c@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: ESS Maestro3 no sound X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 18:50:39 -0000 Muzaffar Ariff wrote: > I've loaded the patch but still I'm having the same problem, xmms > plays the mp3 file but no sound. On the brightside there is no error > in /var/run/dmesg.boot like before: > > pcm0: port 0xd800-0xd8ff mem > 0xf3ffe000-0xf3ffffff irq 5 at device 8.0 on pci0 > pcm0: PCIR_COMMAND = 0x7 > pcm0: [GIANT-LOCKED] > pcm0: > > So does anyone know what is wrong with my maestro? > > ps: thanks for the instruction on patching the code. really appreciate it :) > > On 7/13/05, Pyun YongHyeon wrote: > >>On Wed, Jul 13, 2005 at 08:47:00AM +0800, Muzaffar Ariff wrote: >> > > Hmm, I'm afraid you loaded old module again. Please let me know which >> > > FreeBSD version you used. I can make a patch for the specific FreeBSD >> > > version. >> > >> > I'm using FreeBSD 5.3-release. Are you saying that I did the patching >> > and loading of the patch correctly, its just you gave the wrong one? >> > (need to know either my methods were right) >> > >>I can't sure but your dmeseg output says it was not patched. >>Try attached patch on your system. >> >>1. Save attached patch file to your system(e.g. /tmp). >>2. Patch and build. >> #cd /usr/src >> #patch -p0 < /path/to/patchfile >> #cd /usr/src/sys/modules/sound/driver/maestro3 >> #make >>3. Load built module and experiment it. >> #kldload ./snd_maestro3.ko >> >>4. It the driver works then install it. >> #make install >> >>Please let me know how it goes on your system. >> >>-- >>Regards, >>Pyun YongHyeon >> >> >> > > > I had a similar problem (looks like it is playing, but no sound) on a snd_ich device which was fixed with changes to the ac97.c and ac97.h. The diffs are at the bottom of: http://lists.freebsd.org/pipermail/freebsd-bugs/2004-May/006684.html -mark From owner-freebsd-multimedia@FreeBSD.ORG Thu Jul 14 19:30:39 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E21BC16A41C for ; Thu, 14 Jul 2005 19:30:39 +0000 (GMT) (envelope-from rmgls@wanadoo.fr) Received: from smtp12.wanadoo.fr (smtp12.wanadoo.fr [193.252.22.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4248D43D4C for ; Thu, 14 Jul 2005 19:30:39 +0000 (GMT) (envelope-from rmgls@wanadoo.fr) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1202.wanadoo.fr (SMTP Server) with ESMTP id BCF7E1C000A2 for ; Thu, 14 Jul 2005 21:30:37 +0200 (CEST) Received: from wanadoo.fr (ARouen-251-1-43-176.w83-199.abo.wanadoo.fr [83.199.166.176]) by mwinf1202.wanadoo.fr (SMTP Server) with ESMTP id 945341C0009C for ; Thu, 14 Jul 2005 21:30:37 +0200 (CEST) X-ME-UUID: 20050714193037607.945341C0009C@mwinf1202.wanadoo.fr Received: from rmgls by port.private.music with local (Exim 4.20) id 1Dt9Pe-0000HC-8l; Thu, 14 Jul 2005 21:30:26 +0200 Date: Thu, 14 Jul 2005 21:30:26 +0200 From: raoul megelas To: Ariff Abdullah Message-ID: <20050714193025.GA1049@wanadoo.fr> References: <20050714151318.GA877@wanadoo.fr> <20050715001822.1742ad04.skywizard@MyBSD.org.my> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050715001822.1742ad04.skywizard@MyBSD.org.my> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org Subject: Re: Massive sound changes / fix (24/32bit pcm support, new X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 19:30:40 -0000 On Fri, Jul 15, 2005 at 12:18:22AM +0800, Ariff Abdullah wrote: > On Thu, 14 Jul 2005 17:13:18 +0200 > raoul megelas wrote: > > On Thu, 14 Jul 2005 09:14:53 +0200 > > raoul megelas wrote: > > Ariff Abdullah > > > > ... > > > > >> this happen too on my maestro3 chip on another machine > > >> (now old dell inspiron 8000). > > >> I tend to think it is a general problem. > > > > ... > > > > > Now that's really weird, you mean, even Windows having that sort > > > of problem too? Let me ask you a question first: Is the problem > > > occur *with* that patch applied, or even *without* it? > > > > hi Ariff and all, > > > > Clear, the patch sounds better than without it. > That's good... > > > without the patch, the biggest ppo occurs on adjusting pcm value > > (50 to 75 or 100) and less audible from adjusting the volume > > by the same amount. > > But the click is still audible even not so high. > Probably Mat was right about locking issue. Unfortunately, I don't > have any ICH5 around to do some thorough examination. > > Anyway, can you try applying latest (revision 009) patch? You may > find that under /incoming/ directory from my patch directory. hi Ariff your patch from 20050714_009 works gread, indeed almost perfect relating to the pops. thanks a log. Raoul rmgls@wanadoo.fr From owner-freebsd-multimedia@FreeBSD.ORG Thu Jul 14 19:48: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 7926916A41C for ; Thu, 14 Jul 2005 19:48:30 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (duke.voidnetwork.com [202.157.186.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC73C43D48 for ; Thu, 14 Jul 2005 19:48: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 753276CC33; Fri, 15 Jul 2005 03:54:18 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (duke.voidnetwork.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 73274-09; Fri, 15 Jul 2005 03:54:17 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [60.49.38.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id B35096CC29; Fri, 15 Jul 2005 03:54:16 +0800 (MYT) Date: Fri, 15 Jul 2005 03:48:47 +0800 From: Ariff Abdullah To: raoul megelas Message-Id: <20050715034847.1443574e.skywizard@MyBSD.org.my> In-Reply-To: <20050714193025.GA1049@wanadoo.fr> References: <20050714151318.GA877@wanadoo.fr> <20050715001822.1742ad04.skywizard@MyBSD.org.my> <20050714193025.GA1049@wanadoo.fr> 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, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 19:48:30 -0000 On Thu, 14 Jul 2005 21:30:26 +0200 raoul megelas wrote: > On Fri, Jul 15, 2005 at 12:18:22AM +0800, Ariff Abdullah wrote: > > On Thu, 14 Jul 2005 17:13:18 +0200 > > raoul megelas wrote: > > > On Thu, 14 Jul 2005 09:14:53 +0200 > > > raoul megelas wrote: > > > Ariff Abdullah > > > > > > ... > > > > > > >> this happen too on my maestro3 chip on another machine > > > >> (now old dell inspiron 8000). > > > >> I tend to think it is a general problem. > > > > > > ... > > > > > > > Now that's really weird, you mean, even Windows having that > > > > sort of problem too? Let me ask you a question first: Is the > > > > problem occur *with* that patch applied, or even *without* it? > > > > > > hi Ariff and all, > > > > > > Clear, the patch sounds better than without it. > > That's good... > > > > > without the patch, the biggest ppo occurs on adjusting pcm value > > > (50 to 75 or 100) and less audible from adjusting the volume > > > by the same amount. > > > But the click is still audible even not so high. > > Probably Mat was right about locking issue. Unfortunately, I don't > > have any ICH5 around to do some thorough examination. > > > > Anyway, can you try applying latest (revision 009) patch? You may > > find that under /incoming/ directory from my patch directory. > > hi Ariff > > your patch from 20050714_009 works gread, indeed > almost perfect relating to the pops. > thanks a log. > *almost perfect*? You mean there are still pops? Well, should be better, right? Can you give me the output of following commands: 1) cat /dev/sndstat 2) grep ^pcm /var/run/dmesg.boot 3) uname -a -- 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 Fri Jul 15 06:32:55 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D35CA16A41C for ; Fri, 15 Jul 2005 06:32:55 +0000 (GMT) (envelope-from mus.bsd@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DFEE43D46 for ; Fri, 15 Jul 2005 06:32:55 +0000 (GMT) (envelope-from mus.bsd@gmail.com) Received: by wproxy.gmail.com with SMTP id i6so561131wra for ; Thu, 14 Jul 2005 23:32:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bhrpAt3qAZqsq5rXwEls5RkQwCrYKZiX4ghu4V1XixuaWpjnakzlVUiShW6ldwPAqeSNgd+FbaVerj/nUrJtsZR0d3JhSm73GQc/cNN3b4eWYJmzvBXxEk4qKvcEjQv6Bka3YJELZHe1TmMbLelVBcVYf07ENkhb5Dey4dj77cs= Received: by 10.54.53.69 with SMTP id b69mr985385wra; Thu, 14 Jul 2005 23:32:54 -0700 (PDT) Received: by 10.54.129.5 with HTTP; Thu, 14 Jul 2005 23:32:54 -0700 (PDT) Message-ID: <8eb2b81050714233235ff3aad@mail.gmail.com> Date: Fri, 15 Jul 2005 14:32:54 +0800 From: Muzaffar Ariff To: pyunyh@gmail.com In-Reply-To: <20050714045121.GB8764@rndsoft.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8eb2b81050628200659d338ab@mail.gmail.com> <20050629043027.GB8832@rndsoft.co.kr> <42C2B94F.2010708@samsco.org> <20050701014258.GE17058@rndsoft.co.kr> <8eb2b810507110203229b46b@mail.gmail.com> <20050711092238.GC858@rndsoft.co.kr> <8eb2b8105071217477e240667@mail.gmail.com> <20050713011018.GB4479@rndsoft.co.kr> <8eb2b81050713204179cb710c@mail.gmail.com> <20050714045121.GB8764@rndsoft.co.kr> Cc: freebsd-multimedia@freebsd.org Subject: Re: ESS Maestro3 no sound X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Muzaffar Ariff List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2005 06:32:55 -0000 Ooohhh thats a whole lot of questions, I'll try my best to answer it :) > Thanks for your report. It seems that you have other issues not > known to me. Does the driver prints timeout message such as > "pcm0:play:0: play interrupt timeout, channel dead"? Nope, I checked in /var/log/messages and there is nothing wrong with it or that line. In fact before I never had that problem. > xmms plays songs with normal speed?(i.e. just no sound) Yup, xmms plays my mp3s fine, its just no sound is coming out of it. I've tried mute & unmute from the function button on the laptop and increasing the volume, but nothing seems to happen. > Without loading ACPI do you suffer from the same problem? If I get you right ACPI means Adv. Configuration and Power Management support right? I can unload an ACPI from /boot/loader.conf but there are several ACPIs, which one you want me to unload? > Could show me "pciconf -lv" output for your ESS card? pcm0@pci0:8:0: class=3D0x040100 card=3D0x00b11028 chip=3D0x1998125d rev=3D= 0x10 hdr=3D0x00 vendor =3D 'ESS Technology' device =3D 'ES1980 Maestro-3 PCI Audio Accelerator' class =3D multimedia subclass =3D audio > If you can run "pciconf -lv", locate a line somthing like > pcm0@pciX:Y:Z. Then show me output of > "pciconf -r pciX:Y:Z 0:ff" before and after loading the drier. After loading the driver this is what i got: #pciconf -r pci0:8:0 0:ff 1998125d=20 Before (I simply recompiled and install the old maestro3.c driver) I got th= is: # pciconf -r pci0:8:0 0:ff 1998125d=20 =20 Both before and after looks the same. Hope thats what you want.=20 Regards, --=20 Muzaffar Ariff mus.bsd@gmail.com From owner-freebsd-multimedia@FreeBSD.ORG Fri Jul 15 07:06:56 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2037616A41F for ; Fri, 15 Jul 2005 07:06:56 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 402F843D58 for ; Fri, 15 Jul 2005 07:06:55 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so561978wri for ; Fri, 15 Jul 2005 00:06:54 -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=HGMkh3qytZdglsp4er1imWOkahVMrr4a/mmTrobE/FZDhNSSg6bj46t3BrqL+neV23h1J8CU/yIWKh5frA9kw0l16m/ACA1kv8vwr+U8MVOf2fsu+iabvMevF+Tbrlvn5mr1gsBN7P4d9R8p14Bf3X+o1s6Je9nU41eTo/WFvb0= Received: by 10.54.86.1 with SMTP id j1mr999676wrb; Fri, 15 Jul 2005 00:06:54 -0700 (PDT) Received: from michelle.rndsoft.co.kr ([211.32.202.209]) by mx.gmail.com with ESMTP id 43sm2485602wri.2005.07.15.00.06.53; Fri, 15 Jul 2005 00:06:54 -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 j6F76B8B014467 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 15 Jul 2005 16:06:12 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id j6F76Bt0014466; Fri, 15 Jul 2005 16:06:11 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Date: Fri, 15 Jul 2005 16:06:11 +0900 From: Pyun YongHyeon To: Muzaffar Ariff Message-ID: <20050715070611.GA13095@rndsoft.co.kr> References: <20050629043027.GB8832@rndsoft.co.kr> <42C2B94F.2010708@samsco.org> <20050701014258.GE17058@rndsoft.co.kr> <8eb2b810507110203229b46b@mail.gmail.com> <20050711092238.GC858@rndsoft.co.kr> <8eb2b8105071217477e240667@mail.gmail.com> <20050713011018.GB4479@rndsoft.co.kr> <8eb2b81050713204179cb710c@mail.gmail.com> <20050714045121.GB8764@rndsoft.co.kr> <8eb2b81050714233235ff3aad@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8eb2b81050714233235ff3aad@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org Subject: Re: ESS Maestro3 no sound 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: Fri, 15 Jul 2005 07:06:56 -0000 On Fri, Jul 15, 2005 at 02:32:54PM +0800, Muzaffar Ariff wrote: > Ooohhh thats a whole lot of questions, I'll try my best to answer it :) > > > Thanks for your report. It seems that you have other issues not > > known to me. Does the driver prints timeout message such as > > "pcm0:play:0: play interrupt timeout, channel dead"? > Nope, I checked in /var/log/messages and there is nothing wrong with > it or that line. In fact before I never had that problem. > > > xmms plays songs with normal speed?(i.e. just no sound) > Yup, xmms plays my mp3s fine, its just no sound is coming out of it. > I've tried mute & unmute from the function button on the laptop and > increasing the volume, but nothing seems to happen. > I see. It sounds like Codec issues. > > Without loading ACPI do you suffer from the same problem? > If I get you right ACPI means Adv. Configuration and Power Management > support right? I can unload an ACPI from /boot/loader.conf but there > are several ACPIs, which one you want me to unload? > You can disable ACPI in loader. If you use beastie menu you can find a menu item that disables ACPI(probably Safe Mode). If you don't use beastie menu then you will see a message "Hit [Enter] to boot immediately, or any other key for command prompt." In that screen, just press SPACE bar to get OK prompt. Once you get the prompt enter "set hint.acpi.0.disabled=1" and then enter "boot". Note, depending on your system booting kernel without ACPI may not work at all. > > Could show me "pciconf -lv" output for your ESS card? > pcm0@pci0:8:0: class=0x040100 card=0x00b11028 chip=0x1998125d rev=0x10 hdr=0x00 > vendor = 'ESS Technology' > device = 'ES1980 Maestro-3 PCI Audio Accelerator' > class = multimedia > subclass = audio > > > If you can run "pciconf -lv", locate a line somthing like > > pcm0@pciX:Y:Z. Then show me output of > > "pciconf -r pciX:Y:Z 0:ff" before and after loading the drier. > After loading the driver this is what i got: > #pciconf -r pci0:8:0 0:ff > 1998125d > > Before (I simply recompiled and install the old maestro3.c driver) I got this: > # pciconf -r pci0:8:0 0:ff > 1998125d > Oops.. It's typo. It should be read "pciconf -r pci0:8:0 0:0xff". > Both before and after looks the same. Hope thats what you want. > -- Regards, Pyun YongHyeon From owner-freebsd-multimedia@FreeBSD.ORG Sat Jul 16 12:40:53 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 62B7A16A41C for ; Sat, 16 Jul 2005 12:40:53 +0000 (GMT) (envelope-from lehmann@ans-netz.de) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [83.136.81.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9558A43D46 for ; Sat, 16 Jul 2005 12:40:52 +0000 (GMT) (envelope-from lehmann@ans-netz.de) Received: (qmail 90076 invoked by uid 89); 16 Jul 2005 12:40:24 -0000 Received: from unknown (HELO kartoffel.salatschuessel.net) (83.136.81.185) by avocado.salatschuessel.net with SMTP; 16 Jul 2005 12:40:24 -0000 Date: Sat, 16 Jul 2005 14:40:42 +0200 From: Oliver Lehmann To: multimedia@freebsd.org Message-Id: <20050716144042.65f846e3.lehmann@ans-netz.de> X-Mailer: Sylpheed version 2.0.0beta6 (GTK+ 2.6.8; amd64-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: doc@freebsd.org Subject: snd_ess needs snd_sbc 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, 16 Jul 2005 12:40:53 -0000 Hi, with "sound" and "snd_ess" in kernelconfig: ess.o(.text+0x17): In function `ess_lock': /usr/src/sys/dev/sound/isa/ess.c:140: undefined reference to `sbc_lock' ess.o(.text+0x37): In function `ess_unlock': /usr/src/sys/dev/sound/isa/ess.c:146: undefined reference to `sbc_unlock' For me it looks like snd_ess needs snd_sbc - shouldn't that been documented somehow? -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/ From owner-freebsd-multimedia@FreeBSD.ORG Sat Jul 16 20:38:12 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 ECAA316A41C; Sat, 16 Jul 2005 20:38:12 +0000 (GMT) (envelope-from chris@haakonia.hitnet.rwth-aachen.de) Received: from ms-dienst.rz.rwth-aachen.de (ms-1.rz.RWTH-Aachen.DE [134.130.3.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B51643D45; Sat, 16 Jul 2005 20:38:12 +0000 (GMT) (envelope-from chris@haakonia.hitnet.rwth-aachen.de) Received: from r220-1 (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0IJQ000NBMNM4Q@ms-dienst.rz.rwth-aachen.de>; Sat, 16 Jul 2005 22:38:11 +0200 (MEST) Received: from relay.rwth-aachen.de ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Sat, 16 Jul 2005 22:38:10 +0200 (MEST) Received: from bigboss.hitnet.rwth-aachen.de (bigspace.hitnet.RWTH-Aachen.DE [137.226.181.2]) by relay.rwth-aachen.de (8.13.3/8.13.3/1) with ESMTP id j6GKc46P019512; Sat, 16 Jul 2005 22:38:10 +0200 (MEST) Received: from lorien.hitnet.rwth-aachen.de ([137.226.181.92] helo=haakonia.hitnet.rwth-aachen.de) by bigboss.hitnet.rwth-aachen.de with esmtp (Exim 3.35 #1 (Debian)) id 1DtsBh-0002VX-00; Sat, 16 Jul 2005 21:19:01 +0200 Received: by haakonia.hitnet.rwth-aachen.de (Postfix, from userid 1001) id 808022846F; Sat, 16 Jul 2005 21:18:35 +0200 (CEST) Date: Sat, 16 Jul 2005 21:18:35 +0200 From: Christian Brueffer In-reply-to: <20050716144042.65f846e3.lehmann@ans-netz.de> To: Oliver Lehmann Message-id: <20050716191835.GE833@unixpages.org> MIME-version: 1.0 Content-type: multipart/signed; boundary="ey/N+yb7u/X9mFhi"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-disposition: inline User-Agent: Mutt/1.5.6i X-Operating-System: FreeBSD 5.4-STABLE X-PGP-Key: http://people.FreeBSD.org/~brueffer/brueffer.key.asc X-PGP-Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D References: <20050716144042.65f846e3.lehmann@ans-netz.de> Cc: doc@freebsd.org, multimedia@freebsd.org Subject: Re: snd_ess needs snd_sbc 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, 16 Jul 2005 20:38:13 -0000 --ey/N+yb7u/X9mFhi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 16, 2005 at 02:40:42PM +0200, Oliver Lehmann wrote: > Hi, >=20 > with "sound" and "snd_ess" in kernelconfig: >=20 > ess.o(.text+0x17): In function `ess_lock': > /usr/src/sys/dev/sound/isa/ess.c:140: undefined reference to `sbc_lock' > ess.o(.text+0x37): In function `ess_unlock': > /usr/src/sys/dev/sound/isa/ess.c:146: undefined reference to `sbc_unlock' >=20 > For me it looks like snd_ess needs snd_sbc - shouldn't that been > documented somehow? >=20 Fixed in CURRENT (snd_ess(4)), thanks. - Christian --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --ey/N+yb7u/X9mFhi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFC2V2LbHYXjKDtmC0RAuvxAKCEyt2WMLpWk5fxnCqfRHbPSANLjwCeLPKD 2ntWKmqSddfgt2XabPQOVXg= =LRST -----END PGP SIGNATURE----- --ey/N+yb7u/X9mFhi--