From patchwork Wed Jan 28 22:41:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Machek X-Patchwork-Id: 5732541 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 375A9BF440 for ; Wed, 28 Jan 2015 22:44:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5AA3C20219 for ; Wed, 28 Jan 2015 22:44:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7E12F20218 for ; Wed, 28 Jan 2015 22:44:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YGbJL-0002Hi-3O; Wed, 28 Jan 2015 22:42:11 +0000 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YGbJH-0002GC-A9 for linux-arm-kernel@lists.infradead.org; Wed, 28 Jan 2015 22:42:09 +0000 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id C5E5581CE5; Wed, 28 Jan 2015 23:41:45 +0100 (CET) Date: Wed, 28 Jan 2015 23:41:44 +0100 From: Pavel Machek To: Jarkko Nikula Subject: Re: 3.19 on Nokia n900: audio quality awful Message-ID: <20150128224144.GA28956@amd> References: <20150106170433.GA5408@amd> <20150118120139.GA1509@amd> <54C63F1C.6010703@ti.com> <54C92752.9000004@bitmer.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <54C92752.9000004@bitmer.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150128_144208_572590_BE06E734 X-CRM114-Status: GOOD ( 22.27 ) X-Spam-Score: -2.3 (--) Cc: ivo.g.dimitrov.75@gmail.com, khilman@kernel.org, tony@atomide.com, sre@debian.org, aaro.koskinen@iki.fi, kernel list , sre@ring0.de, pali.rohar@gmail.com, linux-omap@vger.kernel.org, linux-arm-kernel X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Wed 2015-01-28 20:15:46, Jarkko Nikula wrote: > On 01/26/2015 03:20 PM, Peter Ujfalusi wrote: > > On 01/18/2015 02:01 PM, Pavel Machek wrote: > >> In 2.6.28-nokia, it is neccessary to set "Input select" na "digital > >> mic", then it works. Input select being in "playback" option makes it > >> easy to miss. > >> > >> In 3.18 and 3.19-rc3, all I can record are zeros. > >> > >> Does playback/recording work for you on OMAP 3430-based machines? > > > > Same codec (tlv320aic3106) works fine on my am335x and omap-l138 boards. > > BeagleBoard-xM also fine with twl4030 codec. > > > > I don't have my n900 in hacking mode (it is still in use time-to-time) but > > looking at the dts file: you might want to add ai3x-micbias-vg property to the > > aic3x nodes to select the correct mic bias voltage. I can't recall what is > > appropriate for n900, but 2.6.28-nokia sources might give you the answer. > > > No need to go that far. N900 has been supported in mainline since 2.6.39 > or so. Part A of AIC34 (which is basically dual AIC33 in a same package) > drives 2 V for the digital microphone bias and part B 2.5 V for the headset. Let me try... Umm, no change here :-( root@n900:/tmp# arecord delme Recording WAVE 'delme' : Unsigned 8 bit, Rate 8000 Hz, Mono ^CAborted by signal Interrupt... root@n900:/tmp# hexdump delme 0000000 4952 4646 987c 0000 4157 4556 6d66 2074 0000010 0010 0000 0001 0001 1f40 0000 1f40 0000 0000020 0001 0008 6164 6174 9858 0000 8080 8080 0000030 8080 8080 8080 8080 8080 8080 8080 8080 * 0009880 root@n900:/tmp# aplay delme Playing WAVE 'delme' : Unsigned 8 bit, Rate 8000 Hz, Mono root@n900:/tmp# I did this: I'm not sure which one is "main" microphone and which is headset, but I guess 2V should be "close enough" to 2.5V to produce something different from zeros..? > Unfortunately I haven't had time recently to try what might have caused > that regression after 3.18. Thanks, Pavel diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 48b0987..f18a5b0 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts @@ -491,6 +491,8 @@ DRVDD-supply = <&vmmc2>; IOVDD-supply = <&vio>; DVDD-supply = <&vio>; + + ai3x-micbias-vg = <1>; }; tlv320aic3x_aux: tlv320aic3x@19 { @@ -502,6 +504,8 @@ DRVDD-supply = <&vmmc2>; IOVDD-supply = <&vio>; DVDD-supply = <&vio>; + + ai3x-micbias-vg = <1>; }; tsl2563: tsl2563@29 {