From owner-freebsd-arm@freebsd.org Sat Apr 9 03:00:49 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EDE63B09AA1 for ; Sat, 9 Apr 2016 03:00:49 +0000 (UTC) (envelope-from sylgar@gmail.com) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9D16414B3 for ; Sat, 9 Apr 2016 03:00:49 +0000 (UTC) (envelope-from sylgar@gmail.com) Received: by mail-wm0-f45.google.com with SMTP id n3so42234888wmn.0 for ; Fri, 08 Apr 2016 20:00:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-transfer-encoding:subject :message-id:date:to:mime-version; bh=SXVJchn3xbHi3H0SMoRa47BlGK7eL9PaxMX1yRRoMvQ=; b=iroOBcJsDZvgCkUON1UPVSJ32n9/oPAsJ/UUF3jNKVqOiCeIQ4rGD1ryZZggOFOfH5 BnsL0eGDj9g243Gc/5nS4uMdg1ocOWkoPLTv05Tc4Tjp53+uM3ExZ4jmU6W7OoMoZ+3k y5Rkv/MjQPvyBTdNkUP4Td+Wbe2IzEA8nsa91t5JsE2IccepbUppBi+nAAU9eG7R9IE1 FGk1kYy3rBqs9dapn2/sdTdl5prHT0v5bk/+aAhvO9s4gzsXdE7OIqjVyy8Xaq/4yR7P hFzUrwiaGMbKgnM478Ly6nvtyEp7h72mprkgcVeWxx777Dd6ZJvBWVTvclZqliBs5G+6 74eQ== X-Gm-Message-State: AD7BkJIaXc4cUml8yy1G+NLxZtm4qJDvmuFvubQ8G3M0Uc97d0M/nbk8GVhaHnP3BIrgsg== X-Received: by 10.28.156.10 with SMTP id f10mr4653261wme.42.1460129318965; Fri, 08 Apr 2016 08:28:38 -0700 (PDT) Received: from [192.168.0.11] (plr75-1-82-226-218-68.fbx.proxad.net. [82.226.218.68]) by smtp.gmail.com with ESMTPSA id ks5sm14014260wjb.13.2016.04.08.08.28.37 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Apr 2016 08:28:37 -0700 (PDT) From: Sylvain Garrigues Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Distorted sound on Raspberry Pi 2 Message-Id: Date: Fri, 8 Apr 2016 17:28:36 +0200 To: freebsd-arm Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Apr 2016 03:00:50 -0000 Hello, I have continuous warnings on my Raspberry PI 2 regarding sound when = hw.snd.verbose=3D4: ... pcm0: WARNING: PCMDIR_PLAY DMA completion too fast/slow ! hwptr=3D120000, = old=3D120000 delta=3D0 amt=3D0 ready=3D8192 free=3D119808 pcm0: WARNING: PCMDIR_PLAY DMA completion too fast/slow ! hwptr=3D124000, = old=3D124000 delta=3D0 amt=3D0 ready=3D8192 free=3D119808 pcm0: WARNING: PCMDIR_PLAY DMA completion too fast/slow ! hwptr=3D0, = old=3D0 delta=3D0 amt=3D0 ready=3D8192 free=3D119808 pcm0: WARNING: PCMDIR_PLAY DMA completion too fast/slow ! hwptr=3D4000, = old=3D4000 delta=3D0 amt=3D0 ready=3D8192 free=3D119808 pcm0: WARNING: PCMDIR_PLAY DMA completion too fast/slow ! hwptr=3D8000, = old=3D8000 delta=3D0 amt=3D0 ready=3D8192 free=3D119808 pcm0: WARNING: PCMDIR_PLAY DMA completion too fast/slow ! hwptr=3D12000, = old=3D12000 delta=3D0 amt=3D0 ready=3D8192 free=3D119808 pcm0: WARNING: PCMDIR_PLAY DMA completion too fast/slow ! hwptr=3D16000, = old=3D16000 delta=3D0 amt=3D0 ready=3D8192 free=3D119808 pcm0: WARNING: PCMDIR_PLAY DMA completion too fast/slow ! hwptr=3D16000, = old=3D16000 delta=3D0 amt=3D0 ready=3D8192 free=3D119808 pcm0: WARNING: PCMDIR_PLAY DMA completion too fast/slow ! hwptr=3D20000, = old=3D20000 delta=3D0 amt=3D0 ready=3D8192 free=3D119808 =E2=80=A6 The sound is frequently slightly distorted (like every 5s), and I am = trying to figure out why. To reproduce: # sysctl dev.pcm.0.dest=3D1 # sysctl hw.snd.verbose=3D4 # mpg123 anympegfile I still get the warnings on the HDMI output (dev.pcm.0.dest=3D2) but the = sound is not distorted. Any idea? Best, Sylvain.=