From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 9FD9BE00873; Tue, 20 Jan 2015 14:19:46 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (picmaster[at]mail.bg) * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [193.201.172.117 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Greylist: delayed 396 seconds by postgrey-1.32 at yocto-www; Tue, 20 Jan 2015 14:19:42 PST Received: from mx1.mail.bg (mx1.mail.bg [193.201.172.117]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 79296E00860 for ; Tue, 20 Jan 2015 14:19:42 -0800 (PST) Received: from [192.168.0.123] (unknown [93.152.132.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.mail.bg (Postfix) with ESMTPSA id 413616000CA6 for ; Wed, 21 Jan 2015 00:13:04 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mail.bg; s=default; t=1421791984; bh=JiSYulqFKcHlOcOJGcJ22s9IFERS1c/pqAIuIqPksq0=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=7X5Sa87OjPLJoIi3Rr8PU1OYHe7NbgYrcn7yn3EpqJaxepmmUumrufPVtRHXTDKLW 3ikPepsg/G94AubVyz1xdumIofYu67T1FXgHlCAM2OAw2Ows9kviWQnC/H9JlpbiW5 UZWfk+1wJMpZPVc1yb54wgc07piPBW+a/O7ukYYA= Message-ID: <54BED2E8.70901@mail.bg> Date: Wed, 21 Jan 2015 00:12:56 +0200 From: Nikolay Dimitrov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 MIME-Version: 1.0 To: meta-freescale@yoctoproject.org Subject: Audio glitch with SGTL5000 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2015 22:19:46 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi guys, I'm observing a specific issue with SGTL5000 - after I stop the audio playback, after several seconds there's a single strong audio glitch (thump, pulse). In my case the audio codec is directly connected to the product speaker amps (without any attenuators) and the experience can be hardly described as pleasant... I traced this behavior to the Linux kernel DAPM (Dynamic Audio Power Management), which turns off all the analog and digital circuitry after there's no audio stream for several seconds. It looks like DAPM is not designed to be switched off, so I had to do some (brutal) surgery to quick-solve the issue. I still have the following gut feelings: 1. If this is an widespread issue, others should have seen it already. 2. If not, than maybe I have issue with my device tree and/or kernel config. Some info about my setup - imx6d, kernel 3.10.17-1.0.0ga, yocto daisy, direct ALSA playback. Here's an extract of my DT audio settings: sound { compatible = "fsl,imx-audio-sgtl5000"; model = "imx6-myboard-sgtl5000"; ssi-controller = <&ssi1>; audio-codec = <&codec>; audio-routing = "MIC_IN", "Mic Jack", "Mic Jack", "Mic Bias", "Headphone Jack", "HP_OUT"; mux-int-port = <1>; mux-ext-port = <3>; }; &ssi1 { fsl,mode = "i2s-slave"; status = "okay"; }; Please share if you have observed similar behavior on your boards. Thanks in advance! Kind regards, Nikolay