From owner-freebsd-multimedia@FreeBSD.ORG Mon Mar 11 07:54:50 2013 Return-Path: Delivered-To: freebsd-multimedia@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 28521500; Mon, 11 Mar 2013 07:54:50 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 02980B5F; Mon, 11 Mar 2013 07:54:50 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2B7snYS051005; Mon, 11 Mar 2013 07:54:49 GMT (envelope-from mav@freefall.freebsd.org) Received: (from mav@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2B7snoN051004; Mon, 11 Mar 2013 07:54:49 GMT (envelope-from mav) Date: Mon, 11 Mar 2013 07:54:49 GMT Message-Id: <201303110754.r2B7snoN051004@freefall.freebsd.org> To: jrm@ftfl.ca, mav@FreeBSD.org, freebsd-multimedia@FreeBSD.org From: mav@FreeBSD.org Subject: Re: kern/174876: [sound] After upgrading to 9-STABLE from 9.0-RELEASE plugging headphones or external speakers into the mic/audio jack doesn't cause audio to switch (Lenovo X220) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Mar 2013 07:54:50 -0000 Synopsis: [sound] After upgrading to 9-STABLE from 9.0-RELEASE plugging headphones or external speakers into the mic/audio jack doesn't cause audio to switch (Lenovo X220) State-Changed-From-To: open->closed State-Changed-By: mav State-Changed-When: Mon Mar 11 07:54:13 UTC 2013 State-Changed-Why: Fix committed and merged to 9-STABLE. http://www.freebsd.org/cgi/query-pr.cgi?pr=174876 From owner-freebsd-multimedia@FreeBSD.ORG Mon Mar 11 08:00:01 2013 Return-Path: Delivered-To: freebsd-multimedia@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 582C96CD for ; Mon, 11 Mar 2013 08:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 32C6CBFA for ; Mon, 11 Mar 2013 08:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2B801Ld051169 for ; Mon, 11 Mar 2013 08:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2B801jM051168; Mon, 11 Mar 2013 08:00:01 GMT (envelope-from gnats) Date: Mon, 11 Mar 2013 08:00:01 GMT Message-Id: <201303110800.r2B801jM051168@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org Cc: From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: kern/174876: commit references a PR X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: dfilter service List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Mar 2013 08:00:01 -0000 The following reply was made to PR kern/174876; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/174876: commit references a PR Date: Mon, 11 Mar 2013 07:54:09 +0000 (UTC) Author: mav Date: Mon Mar 11 07:53:51 2013 New Revision: 248148 URL: http://svnweb.freebsd.org/changeset/base/248148 Log: MFC r247815: Add quirk to enable headphones redirection on Lenovo X220. PR: kern/174876 Modified: stable/9/sys/dev/sound/pci/hda/hdaa_patches.c stable/9/sys/dev/sound/pci/hda/hdac.h Directory Properties: stable/9/sys/ (props changed) stable/9/sys/dev/ (props changed) Modified: stable/9/sys/dev/sound/pci/hda/hdaa_patches.c ============================================================================== --- stable/9/sys/dev/sound/pci/hda/hdaa_patches.c Mon Mar 11 07:10:15 2013 (r248147) +++ stable/9/sys/dev/sound/pci/hda/hdaa_patches.c Mon Mar 11 07:53:51 2013 (r248148) @@ -333,6 +333,13 @@ hdac_pin_patch(struct hdaa_widget *w) patch = "as=1 seq=15"; break; } + } else if (id == HDA_CODEC_CX20590 && + subid == LENOVO_X220_SUBVENDOR) { + switch (nid) { + case 25: + patch = "as=1 seq=15"; + break; + } } if (patch != NULL) Modified: stable/9/sys/dev/sound/pci/hda/hdac.h ============================================================================== --- stable/9/sys/dev/sound/pci/hda/hdac.h Mon Mar 11 07:10:15 2013 (r248147) +++ stable/9/sys/dev/sound/pci/hda/hdac.h Mon Mar 11 07:53:51 2013 (r248148) @@ -220,6 +220,7 @@ #define LENOVO_3KN200_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x384e) #define LENOVO_B450_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x3a0d) #define LENOVO_TCA55_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x1015) +#define LENOVO_X220_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x21da) #define LENOVO_X300_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x20ac) #define LENOVO_ALL_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0xffff) _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-multimedia@FreeBSD.ORG Mon Mar 11 11:06:46 2013 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3B1C8B26 for ; Mon, 11 Mar 2013 11:06:46 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 2C0BF7D0 for ; Mon, 11 Mar 2013 11:06:46 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2BB6knD089062 for ; Mon, 11 Mar 2013 11:06:46 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2BB6jHQ089058 for freebsd-multimedia@FreeBSD.org; Mon, 11 Mar 2013 11:06:45 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 11 Mar 2013 11:06:45 GMT Message-Id: <201303111106.r2BB6jHQ089058@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-multimedia@FreeBSD.org Subject: Current problem reports assigned to freebsd-multimedia@FreeBSD.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Mar 2013 11:06:46 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/175965 multimedia multimedia/libmpeg2 don't register x11 deps o ports/175963 multimedia graphics/libcaca o ports/175941 multimedia audio/gstreamer-plugins-ladspa add missing dependency o ports/175940 multimedia multimedia/gstreamer-plugins-good add missing dependen o ports/175865 multimedia audio/denemo 0.9.2_2 does not build o kern/175306 multimedia [snd_hda] snd_hda does not produce 7.1 sound on ALC892 o kern/175220 multimedia [sound] sound stopping: play interrupt timeout, channe f ports/175008 multimedia audio/gstreamer-plugins-soundtouch C++ compiler error o kern/174828 multimedia [sound] [snd_emu10kx]: "Creative SB PCI512 [CT4790]" i o kern/174796 multimedia [emu10kx]: Audigy ZS driver produce strange noises o kern/174573 multimedia [snd_hda] headphones on front panel not working anymor o ports/174338 multimedia [patch] multimedia/mkvtoolnix: update to 5.9.0 o ports/174287 multimedia multimedia/gstreamer-plugins-good fails to compile wit o ports/173741 multimedia multimedia/dirac fails to compile with clang o ports/172185 multimedia multimedia/vlc build fail with gmake core dump at modu o ports/172128 multimedia building multimedia/vlc fails o kern/171937 multimedia [pcm] Notebook Toshiba Satellite C850-B1K and problem o ports/171888 multimedia [PATCH] multimedia/gpac-libgpac: update to 0.5.0,1 o ports/171248 multimedia multimedia/win32-codecs: Fix pkg-plist o ports/170517 multimedia [patch] Correct audio/jack Dependency Declaration o ports/170032 multimedia Some ports not bumped after libogg update o ports/165090 multimedia audio/faad missing head files o kern/162181 multimedia [snd_emu10k1] [patch] The kernel sound driver module s o ports/161783 multimedia [PATCH] multimedia/gpac-libgpac: Fix build with gcc46 o ports/161568 multimedia [PATCH] audio/libsamplerate: samplerate.h has comma at o ports/161546 multimedia [PATCH] multimedia/mkvtoolnix: make some dependencies o kern/159236 multimedia [pcm] [patch] set PCM_CAP_DEFAULT for the default snd o kern/158979 multimedia [snd_uadio] snd_uaudio fails to initialize built-in mi o kern/158542 multimedia [snd_hda] hdac0: hdac_get_capabilities: Invalid corb s o stand/157050 multimedia OSS implementation lacks AFMT_FLOAT o kern/156198 multimedia [snd_hda] [hang] loading snd_hda kernel module hangs s o kern/156165 multimedia [hdac] Missing card definition for hdac audio device, o ports/153846 multimedia graphics/libcaca 0.99.beta17 - Hidden dependency on Xl a ports/153735 multimedia multimedia/vlc: install error: `Permission denied' for o kern/152622 multimedia [pcm] uaudio recording problem o kern/152500 multimedia [hdac] play interrupt timeout, channel dead o kern/152378 multimedia [sound][patch] Update snd_envy24ht to be MPSAFE and us f ports/150502 multimedia multimedia/gpac-libgpac 0.4.5_4,1 fails to compile on o kern/150284 multimedia [snd_hda] No gain with Audio o kern/149943 multimedia [pcm]: CS4236 audio problem o kern/147504 multimedia [oss] [panic] panic: dev_pager_getpage: map function r o kern/146031 multimedia [snd_hda] race condition when kldunload snd_hda sound o kern/144659 multimedia [pcm] The distortion of the sound playback of music at o kern/143505 multimedia [pcm] FreeBSD 8.0-RELEASE (x64) won't make sound card o kern/141826 multimedia [snd_hda] load of snd_hda module fails o kern/140591 multimedia [PATCH][sound] No sound output on lineout/headphone ja o kern/137589 multimedia [snd_uaudio] snd_uaudio.ko (USB audio driver) doesn't o kern/134767 multimedia [sound] [snd_hda] [regression] Sigmatel STAC9205X no s o kern/132848 multimedia [sound] [snd_emu10kx] driver problem with card init, s o kern/132511 multimedia [sound] [snd_hda] Probing ALC888 codec on ASRock K10N7 o kern/129604 multimedia [sound] Sound stops with error: pcm0:virtual:dsp0.vp0: o kern/127131 multimedia [bktr] /usr/src/sys/dev/bktr/bktr_os.c, line 469: wron s kern/125756 multimedia [sound] [patch] cannot detect soft-modem on HDA bus o kern/124319 multimedia [sound] [snd_emu10k1] [regression] Cannot record from o kern/122086 multimedia [sound] maestro sound driver is working, but mixer ini p kern/121156 multimedia [sound] [patch] Turn on inverted external amplifier se o kern/120857 multimedia [sound] [snd_emu10k1] snd_emu10k1 driver issues a warn o kern/120780 multimedia [sound] [snd_hda] snd_hda doesn't work on Dell Latitut o kern/119973 multimedia [sound] [snd_maestro] [regression] snd_maestro only wo o kern/119931 multimedia [sound] No sound card detected on ASUS "K8V-X SE R2.00 o kern/119759 multimedia [sound] [snd_emu10k1] [regression] Can not record anyt o kern/115300 multimedia [sound] [snd_hda] [regression] snd_hda(4) fails to att o kern/114760 multimedia [sound] [snd_cmi] snd_cmi driver causing sporadic syst o kern/111767 multimedia [sound] ATI SB450 High Definition Audio Controller sou o kern/107516 multimedia [sound] [snd_emu10k1] - skips, clicks and lag after a o kern/107051 multimedia [sound] only 2 channels output works for the ALC850 (o o kern/104874 multimedia [sound] [snd_emu10k1] kldload snd_emu10k1 hangs system o kern/101417 multimedia [sound] 4-speakers output not possible on Asus A8V-Del o kern/100859 multimedia [sound] [snd_ich] snd_ich broken on GIGABYTE 915 syste o kern/98752 multimedia [sound] Intel ich6 82801 FB - on Packard Bell A8810 la o kern/98504 multimedia [sound] Sound is distorted with SB Live 5.1 o kern/98496 multimedia [sound] [snd_ich] some functions don't work in my soun o kern/97609 multimedia [sound] Load Sound Module - VIA8233 - fails o kern/97535 multimedia [sound] [snd_mss] doesn't work in 6.0-RELEASE and abov o kern/96538 multimedia [sound] emu10k1-driver inverts channels o kern/95086 multimedia [sound] uaudio line in problem with sbdm lx o kern/94279 multimedia [sound] [snd_neomagic] snd_neomagic crashes on FreeBSD o kern/93986 multimedia [sound] Acer TravelMate 4652LMi pcm0 channel dead o kern/92512 multimedia [sound] distorted mono output with emu10k1 o kern/87782 multimedia [sound] snd_t4dwave and pcm0:record:0: record interrup o kern/82043 multimedia [sound] snd_emu10k1 - mixer does not work. o kern/81146 multimedia [sound] Sound isn't working AT ALL for Sis7012 onboard o kern/80632 multimedia [sound] pcm driver missing support for CMI8738 auxilla o kern/79912 multimedia [sound] sound broken for 2 VIA chipsets: interrupt sto o kern/79905 multimedia [sound] sis7018 sound module problem o kern/79678 multimedia [sound] sound works except recording from any source o conf/75137 multimedia [sound] add snd_* modules support to /etc/rc.d/mixer f kern/72995 multimedia [sound] Intel ICH2 (82801BA) - sound nearly inaudible o kern/63204 multimedia [sound] /dev/mixer broken with ESS Maestro-2E (still o o kern/60677 multimedia [sound] [patch] No reaction of volume controy key on I s kern/60599 multimedia [bktr] [partial patch] No sound for ATI TV Wonder (ste o kern/37600 multimedia [sound] [partial patch] t4dwave drive doesn't record. o kern/23546 multimedia [sound] [snd_csa] [patch] csa DMA-interrupt problem 93 problems total. From owner-freebsd-multimedia@FreeBSD.ORG Tue Mar 12 22:31:14 2013 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 779DAE1A for ; Tue, 12 Mar 2013 22:31:14 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x232.google.com (mail-we0-x232.google.com [IPv6:2a00:1450:400c:c03::232]) by mx1.freebsd.org (Postfix) with ESMTP id 05E9DD12 for ; Tue, 12 Mar 2013 22:31:13 +0000 (UTC) Received: by mail-we0-f178.google.com with SMTP id o45so371866wer.23 for ; Tue, 12 Mar 2013 15:31:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type; bh=AEDZDB+6qUsQ4b5VbETb6dCCgmsix9JwRgFOg2sAgBw=; b=SQr7+gkszjcVSH4pPrzbPDEgvcJNeiNYLqyKls2BfqXuJNp7KbuRJkK3T3uHKDoefP rhQt/EEeqtHIbqgaKmmzeP7VC0YU6ComX88z5v2ldD/N39ssnVJ0tTpXoPyheet6aM7E r7HuxmwOqYKoOKmmjwCjuJuCusL1554K+QCquceObrDfcswFnfPfyqzd6GTfKvDALbZ+ CQrLYNvnmgW+I8SKr1u5KQv6GMKdgl/KxTRhRVJWlI6ZvIwa2XRStU7hqULX9qwdSyNT uXdFFiuPvP2I3UNJDTJyL8gm5r+ewsHgdx0pD9pDcU7nK/c49ekPIX9b8fWa6GYqj9NJ CYRg== MIME-Version: 1.0 X-Received: by 10.180.87.129 with SMTP id ay1mr22975456wib.1.1363127473137; Tue, 12 Mar 2013 15:31:13 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.111.201 with HTTP; Tue, 12 Mar 2013 15:31:13 -0700 (PDT) Date: Tue, 12 Mar 2013 15:31:13 -0700 X-Google-Sender-Auth: gXz0N58P64Zog11G5wq2JCj-j9A Message-ID: Subject: FreeBSD OSS + Alsa - what's the right behaviour for non-blocking IO? From: Adrian Chadd To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Mar 2013 22:31:14 -0000 Hi, I've been hacking on some Alsa code on Linux which uses poll() and non-blocking IO to schedule audio. When I run that code on FreeBSD, it chews 100% of CPU. Now, the mechanics are pretty clear: * the /dev/dsp.X FD always returns POLLOUT; * when I then call alsalib to fetch the number of samples available to write into the playback buffer, I get 0 * this happens for quite a while until it finally returns non-zero. Digging into it (ie, snd.verbose=4 and looking at the sound setup routines) I discovered that the watermark was being set to the playback buffer size (32768 frames in my case, so 131072 bytes) and no subsequent adjustment was done. The oss plugin for alsa-lib calls SNDCTL_DSP_LOW_WATER So I'll go and tinker with the ALSA setup side in order to see what the story is (it's almost certain I'm setting things up incorrectly for non-blocking IO here and I need to to wave the right magic wand to get the low watermark reset right. However, there's definitely a behavioural difference here - FreeBSD shouldn't be returning POLLOUT on the dsp device, only to find that there's no space in the playback FIFO. Any ideas? Thanks, Adrian From owner-freebsd-multimedia@FreeBSD.ORG Tue Mar 12 22:58:35 2013 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A40F8790 for ; Tue, 12 Mar 2013 22:58:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 28AB7EB5 for ; Tue, 12 Mar 2013 22:58:35 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id 12so3831531wgh.1 for ; Tue, 12 Mar 2013 15:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=OeroWeB4yPDDYG56aWAM1TWa07g3pYKfbVmuaZIyP0A=; b=dZtP59z0tkLr8MALvKxV2xwQ5ABW3MfmXXGo+kgpyVsFUr7Awjbw/1oZaUluB4o22o 1hWQdP8w6vCifEi3UkT2OaDMibwb0GTPwOeRufA7NXtnJ5hf3vaMScEUsPGWTQLiEXDh t/jHNG2ni/mdgarzw3ykhB85vo6RcXo2bGn/YVQIBeX4s/c4KgzWqIUzZ95lnWEuwyrL I2DDjFoY7sTaCFAlJwoUHCJ7K6ItESsTIITx5R9w/JQn7tGv0sg4Ttd29BG7hNmuxwHc ywY2vIEmmFmCKkTo3IVrC87BneBsJ9yyLJg+rV40IVNizaMIIFZl//iGF0WLVSfGv2J9 dN6Q== MIME-Version: 1.0 X-Received: by 10.194.87.229 with SMTP id bb5mr30027503wjb.32.1363129114340; Tue, 12 Mar 2013 15:58:34 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.111.201 with HTTP; Tue, 12 Mar 2013 15:58:34 -0700 (PDT) In-Reply-To: References: Date: Tue, 12 Mar 2013 15:58:34 -0700 X-Google-Sender-Auth: O4kS4VUH_Cb5cSVVv6Cx1c6yAko Message-ID: Subject: Re: FreeBSD OSS + Alsa - what's the right behaviour for non-blocking IO? From: Adrian Chadd To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Mar 2013 22:58:35 -0000 On 12 March 2013 15:31, Adrian Chadd wrote: > So I'll go and tinker with the ALSA setup side in order to see what > the story is (it's almost certain I'm setting things up incorrectly > for non-blocking IO here and I need to to wave the right magic wand to > get the low watermark reset right. > > However, there's definitely a behavioural difference here - FreeBSD > shouldn't be returning POLLOUT on the dsp device, only to find that > there's no space in the playback FIFO. As a follow-up, I hacked the alsa oss plugin to see what was going on, and here's what is happening inside oss_pointer(): oss_pointer: bi.bytes=3764, bi.fragments=0, bi.fragstotal=32, bi.fragsize=4096 (and 100 more of the above..) oss_pointer: bi.bytes=5644, bi.fragments=1, bi.fragstotal=32, bi.fragsize=4096 oss_pointer: bi.bytes=5644, bi.fragments=1, bi.fragstotal=32, bi.fragsize=4096 each one of those is from a trip through poll() -> alsa get navail. So I think the kernel sound code is returning that the FD is ready even though there's no space in the write FIFO. Is this enough for a PR? Thanks, Adrian From owner-freebsd-multimedia@FreeBSD.ORG Tue Mar 12 23:12:49 2013 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1EE7CD42 for ; Tue, 12 Mar 2013 23:12:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com [74.125.82.44]) by mx1.freebsd.org (Postfix) with ESMTP id B324EF8D for ; Tue, 12 Mar 2013 23:12:48 +0000 (UTC) Received: by mail-wg0-f44.google.com with SMTP id dr12so396862wgb.35 for ; Tue, 12 Mar 2013 16:12:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=+QjNkSUgXHKWtb7g2ZWXKF8y4HQ4kIZ+GgyB555fbSA=; b=vRWWOhDOl6VUVMgkLaWQxEvsV9GKEC/FQwuvfOherAB6MXMXwjxkmoqFCy1UQAqu6P SUY+Xc8xctuJbdaSzbKSx+dk9bAIcN2+lFWl8ie47+K3uj6uj8faEaywFqcRHaMmuFxW YBkFnc7CSOrNjmuJhyOOQgK7yJgq9rBwY94H9wj3Pg2R6o3k2DWWFXrEPCqsYYHamTse LcunRk74POupS0NSMduDgDoweJvsxdy28oYoIuNpo8VUx2YmFf80uUf2DURzvmtrTfKY NvVh8JX10ma9xrR+X4narrgEUVMsafuekj/xSBUHaITd2QMoX5LyoCBpnwnQdCUraiVA zpoQ== MIME-Version: 1.0 X-Received: by 10.194.133.98 with SMTP id pb2mr30190544wjb.20.1363129962202; Tue, 12 Mar 2013 16:12:42 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.111.201 with HTTP; Tue, 12 Mar 2013 16:12:42 -0700 (PDT) In-Reply-To: References: Date: Tue, 12 Mar 2013 16:12:42 -0700 X-Google-Sender-Auth: f8NiayTSwRy9iTF1f1CUOHgP3T4 Message-ID: Subject: Re: FreeBSD OSS + Alsa - what's the right behaviour for non-blocking IO? From: Adrian Chadd To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Mar 2013 23:12:49 -0000 .. and a further update: Here's what the setup code ends up doing inside alsa: snd_pcm_sw_params_set_avail_min: val=4096, period_size=1024 snd_pcm_sw_params_set_avail_min: avail_min is now 4096 So the avail min value is being setup fine. Next, what's going on at the sound driver layer: From owner-freebsd-multimedia@FreeBSD.ORG Tue Mar 12 23:15:33 2013 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 17495F4E for ; Tue, 12 Mar 2013 23:15:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) by mx1.freebsd.org (Postfix) with ESMTP id A12E5FC4 for ; Tue, 12 Mar 2013 23:15:32 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id hn17so2310136wib.10 for ; Tue, 12 Mar 2013 16:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=2+DsAAxOPImxXS/r03gAlOUTx6kAcTyYF7twfHbmYus=; b=eagwlhB0jC28Cb8T4HVprhKQVwPu1qJGhbfCAO0SC5cXf9/K1EHAc/kvkSpVbfpCxS PwqwfCP/LhQ4/4VzJJmIXJc5gln2NWSLDz2uPBkn82gcYWqvwOjtbqmJxdE3uBKOTPzC Ri3waSX+V5w4mNXW5Wmn6mf8dEFT310kmOLXVq0lt2SVp8acnlHv4EhoCgIEW0j3rSKQ oMiw6YgvsxsPXmyntGjJdr/ZP6DFOXYp98nHcNHqVg9K624EgllSUlJLPyGkq1XpOyg+ d1VF2MKjcESg7inwOx9APvrE2okK69qjc6T+nNMkIRruVE6xaqR/wJWdjq7PTwmMjbIM oOaw== MIME-Version: 1.0 X-Received: by 10.180.73.212 with SMTP id n20mr23183888wiv.11.1363130131895; Tue, 12 Mar 2013 16:15:31 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.111.201 with HTTP; Tue, 12 Mar 2013 16:15:31 -0700 (PDT) In-Reply-To: References: Date: Tue, 12 Mar 2013 16:15:31 -0700 X-Google-Sender-Auth: NscDekKkLmHs3DpkXL7OS4WbiKI Message-ID: Subject: Re: FreeBSD OSS + Alsa - what's the right behaviour for non-blocking IO? From: Adrian Chadd To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Mar 2013 23:15:33 -0000 On 12 March 2013 16:12, Adrian Chadd wrote: > .. and a further update: > > Here's what the setup code ends up doing inside alsa: > > > snd_pcm_sw_params_set_avail_min: val=4096, period_size=1024 > snd_pcm_sw_params_set_avail_min: avail_min is now 4096 > > So the avail min value is being setup fine. > > Next, what's going on at the sound driver layer: grr. Mar 12 16:10:55 lucy kernel: [100418] pcm0: chn_resizebuf(): PCMDIR_PLAY (virtual) timeout=21 b[0/0/0] bs[131072/4096/32] limit=170 Mar 12 16:10:55 lucy kernel: [100418] pcm0: chn_resizebuf(): PCMDIR_PLAY (virtual) timeout=21 b[0/0/0] bs[131072/4096/32] limit=341 Mar 12 16:10:55 lucy kernel: [100418] pcm0: chn_resizebuf(): PCMDIR_PLAY (virtual) timeout=21 b[0/0/0] bs[131072/4096/32] limit=682 Mar 12 16:10:55 lucy kernel: [100418] pcm0: chn_resizebuf(): PCMDIR_PLAY (virtual) timeout=21 b[0/0/0] bs[131072/4096/32] limit=3763 -- I've set the playback buffer size to be 32768 frames, But there doesn't seem to be any subsequent adjustments of the low watermark based on what I've setup the ALSA avail_min parameter to be. Adrian From owner-freebsd-multimedia@FreeBSD.ORG Tue Mar 12 23:34:05 2013 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6CAE5565 for ; Tue, 12 Mar 2013 23:34:05 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [94.23.254.147]) by mx1.freebsd.org (Postfix) with ESMTP id 37900147 for ; Tue, 12 Mar 2013 23:34:04 +0000 (UTC) Received: from roxette.lamaiziere.net (228.9.74.86.rev.sfr.net [86.74.9.228]) by smtp.lamaiziere.net (Postfix) with ESMTPA id ABD8EA6BF; Wed, 13 Mar 2013 00:27:00 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by roxette.lamaiziere.net (Postfix) with ESMTP id E0EDD32A; Wed, 13 Mar 2013 00:26:59 +0100 (CET) Date: Wed, 13 Mar 2013 00:26:59 +0100 From: Patrick Lamaiziere To: Pierre Emeriaud Subject: Re: ATI IXP400 issue : very low output Message-ID: <20130313002659.2763924f@davenulle.org> In-Reply-To: References: X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.17; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Mar 2013 23:34:05 -0000 Le Sat, 9 Mar 2013 15:04:15 +0100, Pierre Emeriaud a écrit : Hello, > I have a sound issue with my recently-installed FreeBSD. The > motherboard has a ATI IXP400 with an ALC655 chip. > > At first I thought that output wasn't working. But increasing the > volume on the amplifier I was using resulted in a *very* weak sound > output, which sounds like a leakage current being amplified. Whereas > I'm using an application (I've been testing with vlc) or directly > piping random to /dev/dsp0, I get the same output level. I've seen something similar on a Macbook pro (very very low output). I must add an "ovref" quirk. (/boot/loader.conf) hint.hdaa.0.config="ovref" (for the record it was: http://lists.freebsd.org/pipermail/freebsd-multimedia/2009-January/009703.html) Not sure if this will help. Regards. From owner-freebsd-multimedia@FreeBSD.ORG Wed Mar 13 02:19:55 2013 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BEB6A19A for ; Wed, 13 Mar 2013 02:19:55 +0000 (UTC) (envelope-from bjk@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id AFA2F96B for ; Wed, 13 Mar 2013 02:19:55 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2D2JtHM074959 for ; Wed, 13 Mar 2013 02:19:55 GMT (envelope-from bjk@freebsd.org) Received: from localhost (bjk@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) with ESMTP id r2D2JtJv074956 for ; Wed, 13 Mar 2013 02:19:55 GMT (envelope-from bjk@freebsd.org) X-Authentication-Warning: freefall.freebsd.org: bjk owned process doing -bs Date: Wed, 13 Mar 2013 02:19:55 +0000 (UTC) From: Benjamin Kaduk To: freebsd-multimedia@freebsd.org Subject: snd_envy24{,ht} recording support? Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Mar 2013 02:19:55 -0000 Hi all, I picked up the PR docs/166755 quite some time ago, intending to do some research in the driver source and see which (all?) cards lack recording support. Per https://wiki.freebsd.org/Sound, recording support should not be available for most/all versions of this card, yet the driver quite clearly registers recording channels as available. Just reading the driver source seems to be insufficient to determine whether recording works, so I am hoping that some person or persons with such a card would be able to check and possibly run a patched kernel for getting debugging output. Thanks, Ben From owner-freebsd-multimedia@FreeBSD.ORG Wed Mar 13 08:34:41 2013 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D0899DFC for ; Wed, 13 Mar 2013 08:34:41 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from mail-ob0-x230.google.com (mail-ob0-x230.google.com [IPv6:2607:f8b0:4003:c01::230]) by mx1.freebsd.org (Postfix) with ESMTP id 9781ECFD for ; Wed, 13 Mar 2013 08:34:41 +0000 (UTC) Received: by mail-ob0-f176.google.com with SMTP id v19so737853obq.7 for ; Wed, 13 Mar 2013 01:34:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluelife.at; s=google; h=mime-version:x-received:sender:x-originating-ip:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=WE+intp5asbmgn+EKEmcuL0EMKGCLcvJ2tV3nbDgEU4=; b=fhSd9it44G3o9cWTNvY7TRCafiMJyplR03sjkmzUMc+gwFlDS06XIo2RIuM6CptTca WGakta66sA2m+biO7LFvm25jzKXel2YlwXdJYrSpKuSncPziXr9Br8cy4k7zDve8WIti Z8b5edpsfOdZeeDUU/yeEzLlaK5I0GnD9PCIk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:x-originating-ip:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:x-gm-message-state; bh=WE+intp5asbmgn+EKEmcuL0EMKGCLcvJ2tV3nbDgEU4=; b=jYun3RnjfV+QADRNs64ibhVGBupELP+3AWviuq0RIhfQOldgwzOldP6M8GCAs+GvMa v0eTRmq8GdQ03qEJ2lP2LC0/ikNcE/gPyf6H/k5SG8/t+dQ1HswTe2eUQdPM2PPc0gkm cOoTJqgrEav48joSc6PNJuOip+3yZM/e7huvl9tGWhRySb0b9LYhiLz0J+N01h2k0yac v3n7sKKyHVQcbCA8LCeegL21aXM6hYxFZsD7SGWF4xZBPn3/sj5ykAa2tFldtB1JsUbm YqXo8OYd6qjZT2UTnvZP0i3ySmuGm9eKi6D+fHvsV9U9Lgxd+LxEKPWEqd7ZaNn8HRLV db6A== MIME-Version: 1.0 X-Received: by 10.60.7.3 with SMTP id f3mr14309101oea.64.1363163681247; Wed, 13 Mar 2013 01:34:41 -0700 (PDT) Sender: decke@bluelife.at Received: by 10.76.154.199 with HTTP; Wed, 13 Mar 2013 01:34:41 -0700 (PDT) X-Originating-IP: [80.123.233.199] In-Reply-To: References: Date: Wed, 13 Mar 2013 09:34:41 +0100 X-Google-Sender-Auth: BJXwq-tIDgGkkmulTsN5_nWFdBI Message-ID: Subject: Re: FreeBSD OSS + Alsa - what's the right behaviour for non-blocking IO? From: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnTQN0cLxrZRYQHg05gxCCbuyn5CP545tdYNYdzsneaWZxjl+vb+Wb1Wz76jiUs7XSCXpH1 Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Mar 2013 08:34:41 -0000 On Wed, Mar 13, 2013 at 12:15 AM, Adrian Chadd wrote: > On 12 March 2013 16:12, Adrian Chadd wrote: >> .. and a further update: >> >> Here's what the setup code ends up doing inside alsa: >> >> >> snd_pcm_sw_params_set_avail_min: val=4096, period_size=1024 >> snd_pcm_sw_params_set_avail_min: avail_min is now 4096 >> >> So the avail min value is being setup fine. >> >> Next, what's going on at the sound driver layer: > > grr. > > Mar 12 16:10:55 lucy kernel: [100418] pcm0: chn_resizebuf(): > PCMDIR_PLAY (virtual) timeout=21 b[0/0/0] bs[131072/4096/32] limit=170 > Mar 12 16:10:55 lucy kernel: [100418] pcm0: chn_resizebuf(): > PCMDIR_PLAY (virtual) timeout=21 b[0/0/0] bs[131072/4096/32] limit=341 > Mar 12 16:10:55 lucy kernel: [100418] pcm0: chn_resizebuf(): > PCMDIR_PLAY (virtual) timeout=21 b[0/0/0] bs[131072/4096/32] limit=682 > Mar 12 16:10:55 lucy kernel: [100418] pcm0: chn_resizebuf(): > PCMDIR_PLAY (virtual) timeout=21 b[0/0/0] bs[131072/4096/32] > limit=3763 > > -- I've set the playback buffer size to be 32768 frames, > > But there doesn't seem to be any subsequent adjustments of the low > watermark based on what I've setup the ALSA avail_min parameter to be. I think a very similar bug was reported and analyzed for multimedia/xbmc some time ago. If I remember correctly there was also another problems connected to sample rate differences. I've CC'd the xbmc maintainer Mickael Maillot because he probably remembers better than I do. -- Bernhard Froehlich http://www.bluelife.at/ From owner-freebsd-multimedia@FreeBSD.ORG Wed Mar 13 08:43:44 2013 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0F12DFE0 for ; Wed, 13 Mar 2013 08:43:44 +0000 (UTC) (envelope-from ralf.mardorf@rocketmail.com) Received: from nm21-vm6.bullet.mail.ird.yahoo.com (nm21-vm6.bullet.mail.ird.yahoo.com [212.82.109.246]) by mx1.freebsd.org (Postfix) with SMTP id 3CD75D89 for ; Wed, 13 Mar 2013 08:43:42 +0000 (UTC) Received: from [77.238.189.49] by nm21.bullet.mail.ird.yahoo.com with NNFMP; 13 Mar 2013 08:43:41 -0000 Received: from [46.228.39.124] by tm2.bullet.mail.ird.yahoo.com with NNFMP; 13 Mar 2013 08:43:41 -0000 Received: from [127.0.0.1] by smtp161.mail.ir2.yahoo.com with NNFMP; 13 Mar 2013 08:43:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s1024; t=1363164221; bh=j97lauOPm0B+6hCn89tPs9aXJaSrvTq1LKcp0aitutI=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Subject:From:To:Date:In-Reply-To:References:Content-Type:X-Mailer:Mime-Version:Content-Transfer-Encoding; b=FEIc1xaNHJ4i4eNBnSqI5g89BeE/0pVxNpSmKqR3bQXA6OyX127O/3jNVCqIwJiAivMdEFder66tY5krcYsJxULX4EXiZqm/vAgMFDCr7XPxEYlB1IAFm/pVOowmfXpsZoGidvK5P3/PdUAMaxKlhR3wITqS5Fgh9DKM7ecjLI4= X-Yahoo-Newman-Id: 850499.81579.bm@smtp161.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: ERrSMO4VM1ngjajLfkuvzmJX65jD7q92TsGJR7L4rwh2K1K kvEG4J9XozvRHNT60TF2azDbYReLmbNhw4Nty.Z9urUMFrQKg_YJPyuh6Jrr nAfuQQ0186ZlNkILgXhA9uF9ymVmE1q9Xo.Msxk3CGUE_yuUhQl7oMKyJ.NU NAIMJmUZum1w4va4T8nduQ3QNZ0DsEZ_OO7OYpAl7FrUIX1tquuk_30ETdoE wobUgcmMwAOjsfBa83mYHaEeadr6K_b6EbczJBKzT9H8gvMASIZkE.TK.DZB jqdIrt6G.nIOrvk2R7uqIM.2yF02r7Z2LHRRkCZOhlA_iFjLmKXx.8jL160X goYPA4oYjVhEwtjhSw8qnneNmmhJGHE3MzwSXlbZd3J.qw3sEyTy8amF122L _hUT8S7WZlTP0DfD9UgZvp2KaGMBAaXeXw1OR64lHFvbIYCDeFFvx9nQ.YRc cUTGEYhjrk8bQ5dcpOIt2V8S4aAQ78nPopakZj0IGWl.__qI0aWpzb3lt X-Yahoo-SMTP: BeMCPs2swBABTJ3kAeEiC_hE0mz8jRexLddJfD8pI2j32fOacjBmXg-- Received: from [85.182.23.245] (ralf.mardorf@85.182.23.245 with login) by smtp161.mail.ir2.yahoo.com with SMTP; 13 Mar 2013 08:43:41 +0000 UTC Message-ID: <1363164220.1445.476.camel@archlinux> Subject: Re: snd_envy24{,ht} recording support? From: Ralf Mardorf To: freebsd-multimedia@freebsd.org Date: Wed, 13 Mar 2013 09:43:40 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Mar 2013 08:43:44 -0000 On Wed, 2013-03-13 at 02:19 +0000, Benjamin Kaduk wrote: > Hi all, > > I picked up the PR docs/166755 quite some time ago, intending to do some > research in the driver source and see which (all?) cards lack recording > support. Per https://wiki.freebsd.org/Sound, recording support should not > be available for most/all versions of this card, yet the driver quite > clearly registers recording channels as available. > Just reading the driver source seems to be insufficient to determine > whether recording works, so I am hoping that some person or persons with > such a card would be able to check and possibly run a patched kernel for > getting debugging output. > > Thanks, > > Ben Ben, marked as to do, on my machine is one RME HDSPe AIO (not Envy24) and 2 TerraTec EWX 24/96 (ICE1712, aka Envy24). Unfortunately I already have a long todo list for next month and no time this month. If nobody else should test it and I should forget it, then please remember me in the middle of the next month to test it. If my help shouldn't be needed it would be good, but if nobody else can test it, I'm willing to do it ASAP. Regards, Ralf From owner-freebsd-multimedia@FreeBSD.ORG Wed Mar 13 20:53:37 2013 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3AD3275; Wed, 13 Mar 2013 20:53:37 +0000 (UTC) (envelope-from lists@yamagi.org) Received: from mail.yamagi.org (mail.yamagi.org [IPv6:2a01:4f8:121:2102:1::7]) by mx1.freebsd.org (Postfix) with ESMTP id E648E94E; Wed, 13 Mar 2013 20:53:36 +0000 (UTC) Received: from maka.home.yamagi.org (p579A7208.dip.t-dialin.net [87.154.114.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.yamagi.org (Postfix) with ESMTPSA id B1F0B1666312; Wed, 13 Mar 2013 21:53:34 +0100 (CET) Date: Wed, 13 Mar 2013 21:53:27 +0100 From: Yamagi Burmeister To: bjk@freebsd.org Subject: Re: snd_envy24{,ht} recording support? Message-Id: <20130313215327.d4d84624ddc07ca07b83a879@yamagi.org> In-Reply-To: References: X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.3) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Wed__13_Mar_2013_21_53_27_+0100_R95K=RBIhNU_+PG=" Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Mar 2013 20:53:37 -0000 --Signature=_Wed__13_Mar_2013_21_53_27_+0100_R95K=RBIhNU_+PG= Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello. On Wed, 13 Mar 2013 02:19:55 +0000 (UTC) Benjamin Kaduk wrote: > I picked up the PR docs/166755 quite some time ago, intending to do some= =20 > research in the driver source and see which (all?) cards lack recording=20 > support. Per https://wiki.freebsd.org/Sound, recording support should no= t=20 > be available for most/all versions of this card, yet the driver quite=20 > clearly registers recording channels as available. > Just reading the driver source seems to be insufficient to determine=20 > whether recording works, so I am hoping that some person or persons with= =20 > such a card would be able to check and possibly run a patched kernel for= =20 > getting debugging output. I've got an Audiotrak Prodigy HD2 - supported by snd_envy24ht - in my desktop system and can confirm that recording doesn't work. While the mixer shows the recording channels all I get is noise. On the playback site the mixer also shows a lot non working channels: Mixer vol is currently set to 10:10 Mixer bass is currently set to 50:50 Mixer treble is currently set to 50:50 Mixer synth is currently set to 0:0 Mixer pcm is currently set to 50:50 Mixer speaker is currently set to 0:0 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer cd is currently set to 0:0 Mixer mix is currently set to 0:0 The only working channels are "vol" and "pcm". The equaliter channels "treble" and "bass" have no effect. "synth", "speaker", "mic", "cd" and "mix" result in: mixer: WRITE_MIXER: Device not configured I'm happy to provide some more information, just send me the patches=20 to test. Ciao, Yamagi --=20 Homepage: www.yamagi.org XMPP: yamagi@yamagi.org GnuPG/GPG: 0xEFBCCBCB --Signature=_Wed__13_Mar_2013_21_53_27_+0100_R95K=RBIhNU_+PG= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlFA500ACgkQWTjlg++8y8tDbQCdHNYR0L+xQKZfMmI9amN8q2IX fxIAnjyWz5Pmmv2dRT/2dLcXmnzQbfjH =felD -----END PGP SIGNATURE----- --Signature=_Wed__13_Mar_2013_21_53_27_+0100_R95K=RBIhNU_+PG=-- From owner-freebsd-multimedia@FreeBSD.ORG Thu Mar 14 13:01:51 2013 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2307F8BC; Thu, 14 Mar 2013 13:01:51 +0000 (UTC) (envelope-from makc@freebsd.org) Received: from mail.issp.ac.ru (mail.issp.ac.ru [77.236.34.3]) by mx1.freebsd.org (Postfix) with ESMTP id 896C1A9B; Thu, 14 Mar 2013 13:01:49 +0000 (UTC) Received: from mercury.ph.man.ac.uk [130.88.75.175:4705] (HELO/EHLO mercury.ph.man.ac.uk, authenticated with LOGIN) by mail.issp.ac.ru with ESMTP/inet id r2ED1iFx096223 (using TLSv1/SSLv3, with cipher DHE-RSA-AES256-SHA (256 bits), verified NO) Thu, 14 Mar 2013 17:01:46 +0400 (MSK) From: Max Brazhnikov To: Gabor@zahemszky.hu, darcsis@gmail.com, tkjacobsen@gmail.com, lme@freebsd.org, tzhuan@csie.org, support@rtmpd.com, jwbacon@tds.net, henry.hu.sh@gmail.com, freebsd-multimedia@freebsd.org Subject: clean up cmake usage Date: Thu, 14 Mar 2013 13:02:49 +0000 Message-ID: <1736003.MY0psT466b@mercury.ph.man.ac.uk> User-Agent: KMail/4.9.5 (FreeBSD/9.1-STABLE; KDE/4.10.1; amd64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Mar 2013 13:01:51 -0000 Hi, Please approve some cleanups for your ports mostly related to cmake usage. You can find patches at http://people.freebsd.org/~makc/patches/cmake/ Thanks, Max From owner-freebsd-multimedia@FreeBSD.ORG Thu Mar 14 14:08:02 2013 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 24819BFA for ; Thu, 14 Mar 2013 14:08:02 +0000 (UTC) (envelope-from portscout@portscout.freebsd.org) Received: from null.zi0r.com (null.zi0r.com [71.245.171.204]) by mx1.freebsd.org (Postfix) with ESMTP id DBE80F27 for ; Thu, 14 Mar 2013 14:08:01 +0000 (UTC) Received: from null.zi0r.com (localhost [127.0.0.1]) by null.zi0r.com (8.14.5/8.14.5) with ESMTP id r2EE81Av022626 for ; Thu, 14 Mar 2013 10:08:01 -0400 (EDT) (envelope-from portscout@null.zi0r.com) Received: (from portscout@localhost) by null.zi0r.com (8.14.5/8.14.5/Submit) id r2EE81tv022354; Thu, 14 Mar 2013 10:08:01 -0400 (EDT) (envelope-from portscout) Message-Id: <201303141408.r2EE81tv022354@null.zi0r.com> MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain Date: Thu, 14 Mar 2013 10:08:01 -0400 From: portscout@portscout.freebsd.org To: multimedia@freebsd.org Subject: FreeBSD ports you maintain which are out of date X-Mailer: portscout/0.8.1 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Mar 2013 14:08:02 -0000 Dear port maintainer, The portscout new distfile checker has detected that one or more of your ports appears to be out of date. Please take the opportunity to check each of the ports listed below, and if possible and appropriate, submit/commit an update. If any ports have already been updated, you can safely ignore the entry. You will not be e-mailed again for any of the port/version combinations below. Full details can be found at the following URL: http://portscout.freebsd.org/multimedia@freebsd.org.html Port | Current version | New version ------------------------------------------------+-----------------+------------ multimedia/avidemux2 | 2.5.6 | 2.6.2 ------------------------------------------------+-----------------+------------ multimedia/avidemux2-plugins | 2.5.6 | 2.6.2 ------------------------------------------------+-----------------+------------ If any of the above results are invalid, please check the following page for details on how to improve portscout's detection and selection of distfiles on a per-port basis: http://portscout.freebsd.org/info/portscout-portconfig.txt If wish to stop receiving portscout reminders, please contact portscout@portscout.freebsd.org Thanks. From owner-freebsd-multimedia@FreeBSD.ORG Fri Mar 15 13:05:31 2013 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0E5D3A32 for ; Fri, 15 Mar 2013 13:05:31 +0000 (UTC) (envelope-from portscout@portscout.freebsd.org) Received: from null.zi0r.com (null.zi0r.com [71.245.171.204]) by mx1.freebsd.org (Postfix) with ESMTP id C3F51D95 for ; Fri, 15 Mar 2013 13:05:30 +0000 (UTC) Received: from null.zi0r.com (localhost [127.0.0.1]) by null.zi0r.com (8.14.5/8.14.5) with ESMTP id r2FD5UGg030379 for ; Fri, 15 Mar 2013 09:05:30 -0400 (EDT) (envelope-from portscout@null.zi0r.com) Received: (from portscout@localhost) by null.zi0r.com (8.14.5/8.14.5/Submit) id r2FD5UTr030289; Fri, 15 Mar 2013 09:05:30 -0400 (EDT) (envelope-from portscout) Message-Id: <201303151305.r2FD5UTr030289@null.zi0r.com> MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain Date: Fri, 15 Mar 2013 09:05:30 -0400 From: portscout@portscout.freebsd.org To: multimedia@freebsd.org Subject: FreeBSD ports you maintain which are out of date X-Mailer: portscout/0.8.1 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Mar 2013 13:05:31 -0000 Dear port maintainer, The portscout new distfile checker has detected that one or more of your ports appears to be out of date. Please take the opportunity to check each of the ports listed below, and if possible and appropriate, submit/commit an update. If any ports have already been updated, you can safely ignore the entry. You will not be e-mailed again for any of the port/version combinations below. Full details can be found at the following URL: http://portscout.freebsd.org/multimedia@freebsd.org.html Port | Current version | New version ------------------------------------------------+-----------------+------------ multimedia/dvdstyler | 2.1 | 2.4.2 ------------------------------------------------+-----------------+------------ If any of the above results are invalid, please check the following page for details on how to improve portscout's detection and selection of distfiles on a per-port basis: http://portscout.freebsd.org/info/portscout-portconfig.txt If wish to stop receiving portscout reminders, please contact portscout@portscout.freebsd.org Thanks. From owner-freebsd-multimedia@FreeBSD.ORG Fri Mar 15 23:34:47 2013 Return-Path: Delivered-To: freebsd-multimedia@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EA2837A8; Fri, 15 Mar 2013 23:34:47 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id BC3FC63F; Fri, 15 Mar 2013 23:34:47 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2FNYlpL055724; Fri, 15 Mar 2013 23:34:47 GMT (envelope-from eadler@freefall.freebsd.org) Received: (from eadler@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2FNYlYP055723; Fri, 15 Mar 2013 23:34:47 GMT (envelope-from eadler) Date: Fri, 15 Mar 2013 23:34:47 GMT Message-Id: <201303152334.r2FNYlYP055723@freefall.freebsd.org> To: clarity256@yahoo.com, eadler@FreeBSD.org, freebsd-multimedia@FreeBSD.org From: eadler@FreeBSD.org Subject: Re: kern/121156: [sound] [patch] Turn on inverted external amplifier sense flags for Gateway GZ3520/M210 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Mar 2013 23:34:48 -0000 Synopsis: [sound] [patch] Turn on inverted external amplifier sense flags for Gateway GZ3520/M210 State-Changed-From-To: patched->closed State-Changed-By: eadler State-Changed-When: Fri Mar 15 23:34:47 UTC 2013 State-Changed-Why: MFCed/fixed by now or it will never be MFCed http://www.freebsd.org/cgi/query-pr.cgi?pr=121156