From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: [PATCH] ASoC: at91sam9g20ek: Automatically disconnect non-connected pins Date: Mon, 13 Apr 2015 11:02:17 +0200 Message-ID: <552B8619.5070703@metafoo.de> References: <1428743923-26675-1-git-send-email-lars@metafoo.de> <552B841A.20008@atmel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: Received: from smtp-out-058.synserver.de (smtp-out-058.synserver.de [212.40.185.58]) by alsa0.perex.cz (Postfix) with ESMTP id D4B9F260666 for ; Mon, 13 Apr 2015 11:02:19 +0200 (CEST) In-Reply-To: <552B841A.20008@atmel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Nicolas Ferre , Mark Brown , Liam Girdwood Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On 04/13/2015 10:53 AM, Nicolas Ferre wrote: > Le 11/04/2015 11:18, Lars-Peter Clausen a =E9crit : >> According to the schematics the both LHPOUT and RHPOUT are connected to = the >> external connector. RHPOUT is missing from the DAPM routes, but otherwise >> they seem to be complete. >> >> This patch adds the missing route and then sets the fully_routed flag for >> the card. This allows to remove all the manual calls to >> snd_soc_dapm_nc_pin(). > > I don't understand: on the schematics, both the "RLINEIN" and "LLINEIN" > are actually not connected. So, why remove these calls to > snd_soc_dapm_nc_pin(). Note also that "ROUT" and "LOUT" signals are not > connected as well. > For legacy reasons by default a INPUT or OUTPUT pin is considered connected = unless explicitly marked as non-connected. When the fully_routed flag is se= t = INPUT and OUTPUT pins are considered to be not connected unless explicitly = connected. What the patch does is set the fully_routed flag and remove the = explicit calls to snd_soc_dapm_nc_pin() since the pins are now considered t= o = be non-connected by default. - Lars