From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756777AbbI1Hmw (ORCPT ); Mon, 28 Sep 2015 03:42:52 -0400 Received: from down.free-electrons.com ([37.187.137.238]:53684 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753278AbbI1Hmu (ORCPT ); Mon, 28 Sep 2015 03:42:50 -0400 Date: Mon, 28 Sep 2015 09:42:48 +0200 From: Maxime Ripard To: Priit Laes Cc: Liam Girdwood , Mark Brown , Emilio Lopez , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, alsa-devel@alsa-project.org Subject: Re: [linux-sunxi] [PATCH 0/2] ASoC: Add support for the Allwinner A10 codec Message-ID: <20150928074248.GI7104@lukather> References: <1442064384-23379-1-git-send-email-maxime.ripard@free-electrons.com> <1442928417.6509.12.camel@plaes.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ed/6oDxOLijJh8b0" Content-Disposition: inline In-Reply-To: <1442928417.6509.12.camel@plaes.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ed/6oDxOLijJh8b0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Priit, On Tue, Sep 22, 2015 at 04:26:57PM +0300, Priit Laes wrote: > On Sat, 2015-09-12 at 15:26 +0200, Maxime Ripard wrote: > > Hi everyone, > >=20 > > This patch set adds the support for what Allwinner calls the codec on > > their SoCs. > >=20 > > This codec is actually a combination of a codec and DAI, tied > > together > > in a single memory-mapped IP. It is completely standalone, and > > outputs > > directly the analog signal. > >=20 > > While it supports both playback and capture, the capture is not > > implemented in this patch, and will be posted eventually as a > > separate > > one. > >=20 > > This set, in order to be functional, has a dependency on the audio > > clocks patch set posted separately. However, it doesn't needs this to > > compile properly, so I guess it can be merged without really caring > > for the merging status of the clock patches. >=20 > It works on Gemei G9 tablet which has also extra chip that > automatically switches output over from internal speakers to headphones > when connector is inserted. >=20 > Now I noticed some weird things: >=20 > When I have all the switches as ON in alsamixer, and I start disabling > them, I get following weird results. >=20 > Left Mixer Left - LML > Right Mixer Left - LMR > Right Mixer Right - RMR >=20 > Very faint output: > LML - ON > RML - Mute > RMR - ON >=20 > Output works fully: > LML - Mute > RML - Mute > RMR - Mute >=20 > When I Mute Pre-Amplifier and fiddle any of LML, RML or RMR, the output > stays mute even after setting Pre-Amplifier Mute back on: >=20 > 1. All switches on > 2. Mute pre-amplifier > 3. Mute RMR > 4. Pre-Amilifier Mute Off > .. Music stays off > 5. Toggle Pre-Amplifier twice - output turns on Unfortunately, I don't have access to that SoC or that setup. Do you have another A10 board with a simpler audio setup, like a cubieboard? > And also following in dmesg: > sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok > sun4i-codec 1c22c00.codec: ASoC: no sink widget found for Headphone Jack > sun4i-codec 1c22c00.codec: ASoC: Failed to add route HP Left -> direct ->= Headphone Jack > sun4i-codec 1c22c00.codec: ASoC: no sink widget found for Headphone Jack > sun4i-codec 1c22c00.codec: ASoC: Failed to add route HP Right -> direct -= > Headphone Jack That one is weird, I'll look into this. Thanks! Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com --ed/6oDxOLijJh8b0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJWCO94AAoJEBx+YmzsjxAgfjQP/2yKC5h/4BIfkSHrElVfBj23 HHVv/FNPoHgGs3k3JPUzIV4D2OiwxbRj/nySIez+2ylrRcPqeL/RkO/4+odKPEOO 9azHbwUWowt9xhobIDe5ABvxUtFeHU8W5/rLC7Pgjk/mShFr7fICFS4oSaZPqXtm DWj3IFCrxCKwjsoKYAZ0MLMaj4BHUypZixVFB+CTev2a27Mi7JNT+StjMEjtPH/i ati/EU8vVTvxPNmpTGA3ILRFflvo3nhAhZ74D4K3PgRUvuQboaJnFRJnMfEpr+Cc 4ilbh2k2alIEWFWkfW1Ptg2QtZksBtrCpJtHCmY1+ORiT6Kn6RH7XBaaI4eXOo0F iy/BWLfJU2Db1eyL1swN/R7tXrx+utnqGRdgoNZRON8Ic2hmNl41pdpU+X8O6RjG w11eCMJTMgdkiM5tGDYm/YPKUHZbvLzCp8uOWzPmbesOGxA1cf8iECxqmpguebyv IyyfvUNFvM7auZrn7W643vSgDxoEi+Udzj7jC84WfCCbFsSShFzi+KQbKVZbEcMm RXZZkmtYXXZod6iZoCm8LSrLf58C9IBfkJPlIELe/SyBf817EK88rhUQe/H7tGTH kVt9wGtlOVNmXX/NP0MZlnIGE4yZ6eOUmJYteb2pHYDehafFprxFzISX+H9m7Pmn PV865BW/ceqDI2bk/DC5 =/MMK -----END PGP SIGNATURE----- --ed/6oDxOLijJh8b0--