From owner-freebsd-multimedia@FreeBSD.ORG Tue May 13 18:30:32 2014 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AF88D145 for ; Tue, 13 May 2014 18:30:32 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 74D672262 for ; Tue, 13 May 2014 18:30:29 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 3C7061FE029 for ; Tue, 13 May 2014 20:30:28 +0200 (CEST) Message-ID: <537264F6.5060808@selasky.org> Date: Tue, 13 May 2014 20:31:18 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: freebsd-multimedia@FreeBSD.org Subject: OSS mains HUM filtering 50Hz / 60Hz ? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2014 18:30:32 -0000 Hi, Some of my USB audio headsets seems to be picking up mains HUM even if powered from battery. At first I thought the mains HUM came from the computer, but then I did some work and I verified my findings by sampling the AC network using a non-switching power supply. Maybe it does not belong in the FreeBSD audio stack, but I think it would be very clever to have a configurable band-reject filter in the FreeBSD DSP framework for 50 and 60Hz? Do we have such a filter mechanism already? Not sure if this is a so-called "feature" or not ... :-) http://en.wikipedia.org/wiki/Mains_hum http://www.selasky.org/hans_petter/hum.png --HPS