From owner-freebsd-multimedia@FreeBSD.ORG Tue Feb 19 22:00:06 2008 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1C9C16A417 for ; Tue, 19 Feb 2008 22:00:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E2E8913C45E for ; Tue, 19 Feb 2008 22:00:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1JM06wh034106 for ; Tue, 19 Feb 2008 22:00:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1JM06qO034099; Tue, 19 Feb 2008 22:00:06 GMT (envelope-from gnats) Date: Tue, 19 Feb 2008 22:00:06 GMT Message-Id: <200802192200.m1JM06qO034099@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Mark Kane Cc: Subject: Re: kern/119759: [emu10k1] Can not record anything with emu10k1 on 7.0-PRERELEASE (Invalid argument) (regression) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mark Kane List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2008 22:00:07 -0000 The following reply was made to PR kern/119759; it has been noted by GNATS. From: Mark Kane To: Yuri , bug-followup@FreeBSD.org Cc: Subject: Re: kern/119759: [emu10k1] Can not record anything with emu10k1 on 7.0-PRERELEASE (Invalid argument) (regression) Date: Tue, 19 Feb 2008 15:55:58 -0600 On Tue, Feb 19, 2008, at 20:20:03 GMT, Yuri wrote: > Now I tried again and it doesn't work again for me. > Kernel: 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #4: Tue Feb 19 > 08:18:11 PST 2008 > Seems the problem is intermittent or dependent on the version of 7.0. > > Relevant dmesg messages: > pcm0: > pcm0: [ITHREAD] > at the time of failure: > pcm0:record:dsp0.r1: record interrupt timeout, channel dead > > Sound recording is a major function and emu10k1 is probably a very > (if not most) common card. > > Is there any more debug messaging that could be turned on for this > driver? I was just writing another reply to the PR with some additional information (mainly the dmesg messages and a workaround) but I will answer in reply to you here instead. Yesterday I came across kern/118546 and tried the suggestion of setting "dev.pcm.0.rec.vchans" to 0 which appears to have fixed the recording problem for me here on emu10k1. When set to 1 (the default) it does not record properly. I tried to adapt the patch from snd_ich in kern/118546 and in the commit that fixed the problem for that driver to emu10k1 but I am not very experienced in C yet so I did not have much luck. So for now, "sysctl dev.pcm.0.rec.vchans=0" allows recording to work again for me on an Audigy 2 Platinum with emu10k1 but a proper fix would be great too. Thanks! -Mark