Received: by 10.213.65.68 with SMTP id h4csp1001202imn; Sun, 18 Mar 2018 10:24:29 -0700 (PDT) X-Google-Smtp-Source: AG47ELuGHJBulkiDI4lI4pxcUz84VdWecbRutgl9WbwIO+I8kO6sqnH5WSFopWp91zrcRupYzAPk X-Received: by 10.101.70.8 with SMTP id v8mr6564373pgq.336.1521393869301; Sun, 18 Mar 2018 10:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521393869; cv=none; d=google.com; s=arc-20160816; b=TWtFY5QfoNzitYyooG+V1W2AURID40mSnJLiDdXS7zZ55UiqGWzUPPOj3OdwRT/dcI TcOo2gJj7pn8XO9na3PTeYtAj8Yoc+nJ0IdnxrUi/T0nfTz8b7gwVW/Ik/lep5AYV+iA dePPWGzRkiVWpjfjaDa/xcu35OBeNXr9HvH0+yYbQEPzTCOBtK3SyynQsPFEP5TVJQEa A6Khif6VI2P/4Pc2FyXXSlWi39NM3GdaA/oN+q18r0zAAGYfM40KUWdH5Z9B0s4lxmzy O+ySXpQCrwrHnn6Px5Uf35fSn7eQeqrXcawR8x1fLkOs7BUWXErEd2W6aOkhCKTtmIhV vW+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=UssbJ5/Vid8gtF8sdz3jzhv7YTcGWkISPS5TitvccSQ=; b=Fgq8n/Wxu7UBRU1CqazMy8imfsVD0f2Zgv3oyFKmnxTKjOTPQI/as+fkrBjDTlrYiT BsyjMhBjepi/B55VCTWexDPWsiY7+DetCdmLN/5lOyUakh1KsdYfEMOCU+KW9HhueSw3 j+gvUzrUj3uarwduX1CcH7gBPsx6KSYTXfYPdCyG8JJViv0RpB74g3la7vrRq9b5Wn57 aHPeqfqaNN/dT6oWlINR8sYTonkIEm9DUrcdwTVmfyzqvAJ/9PVf/W3PJ+xFQ6gc0Ixd XDCS0hnocdQ34mr0Q8saIr8Bw2Jf2JG2HXC+Ai9b//ofHwYph2RPOsQB0kdeMtrTEDET UDOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@konsulko.com header.s=google header.b=YApno8HX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p11-v6si5953488pll.308.2018.03.18.10.24.15; Sun, 18 Mar 2018 10:24:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@konsulko.com header.s=google header.b=YApno8HX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754162AbeCRRWH (ORCPT + 99 others); Sun, 18 Mar 2018 13:22:07 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:36311 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751750AbeCRRWD (ORCPT ); Sun, 18 Mar 2018 13:22:03 -0400 Received: by mail-io0-f194.google.com with SMTP id o4so3766408iod.3 for ; Sun, 18 Mar 2018 10:22:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=UssbJ5/Vid8gtF8sdz3jzhv7YTcGWkISPS5TitvccSQ=; b=YApno8HXCyDXcEMwVDgXU+TElEhRIAnsci6gDUd0xYu1FpR8xpKXRvA65V7cmlznGc dgVlgGxnXCmjkQoi5s4IqFs/fGqNjv3qDv2plf0Ys9YabohOafy6jWm4VUR8K/Os1ar/ 82HGtPt0vBlVl1jwW4NNoAeCLv31SD1jFtozc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=UssbJ5/Vid8gtF8sdz3jzhv7YTcGWkISPS5TitvccSQ=; b=FjWTamMLlDh1YZX9bvLrKlOhZ7syzeDhMfnw7GvRkxt6mNW1Q8s+FA/rVG41ZKkiRF zoWJt/Qcrkq7n4VZSmBym5BoThNc/37rX8BxoLOqL8RS0t1oC4O4Yu+jcoc/q3Q0P2bB nAljR18f7s5Fau6hVAXHruCR5wGg3t/rLfDEeYF5ePWKrpUP90JDgG2uXrtavlBkAxG4 Mest9+MEjgVuZkGJq3bJ0+pWMgjTUnyNaeR/Juu+34ELZNb33pdHOzIaUA/E+mmwfo59 Z2blVS42Fk5679zBMKPoUAr/T2YErSSZWUMI2SVg6PakMpXli677tKI97B/GbSmaAC5t Spvg== X-Gm-Message-State: AElRT7HOGvwa8xhvjY74+wdfoz8nu2+g9g9F0rAHcnefSM0PCG+tm7XB uGKnbsubt2o6wbfPELdNXC0YRg== X-Received: by 10.107.30.70 with SMTP id e67mr9092448ioe.57.1521393722334; Sun, 18 Mar 2018 10:22:02 -0700 (PDT) Received: from bacon.ohporter.com (cpe-173-90-206-207.neo.res.rr.com. [173.90.206.207]) by smtp.gmail.com with ESMTPSA id u204sm379322iod.48.2018.03.18.10.22.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 10:22:01 -0700 (PDT) Date: Sun, 18 Mar 2018 13:21:59 -0400 From: Matt Porter To: Mark Brown Cc: Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Rob Herring , Mark Rutland , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] ASoC: add tda7419 audio processor driver Message-ID: <20180318172159.cp3qfyprfkk6rueb@bacon.ohporter.com> References: <20180227225128.17815-1-mporter@konsulko.com> <20180227225128.17815-3-mporter@konsulko.com> <20180228110038.GA6722@sirena.org.uk> <20180309143548.xuajwfhiwuua7jg5@bacon.ohporter.com> <20180309152912.GF5252@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180309152912.GF5252@sirena.org.uk> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 09, 2018 at 03:29:12PM +0000, Mark Brown wrote: > On Fri, Mar 09, 2018 at 09:35:48AM -0500, Matt Porter wrote: > > On Wed, Feb 28, 2018 at 11:00:38AM +0000, Mark Brown wrote: > > > On Tue, Feb 27, 2018 at 05:51:28PM -0500, Matt Porter wrote: > > > > > +static struct snd_kcontrol_new tda7419_controls[] = { > > > > +SOC_ENUM("Main Source Select", soc_enum_main_src_sel), > > > > Should this be a DAPM route? > > > Ultimately yes. I initially took the path of ignoring DAPM support in > > interests of getting some clean done. Is it ok to merge DAPM support > > later or do you prefer just having it in the intitial driver? For > > routes, it'll include Main/Second source selects, the Rear Source > > switch, and Mix enable at least. > > You definitely shouldn't be implementing things that should be in DAPM > as non-DAPM controls. Ok, I addressed this by adding DAPM support in v2. > > > > + regmap_write(tda7419->regmap, TDA7419_ATTENUATOR_SUB_REG, 0xe0); > > > > This looks like it's setting default volumes - just leave those at the > > > chip defaults and let userspace handle setting them, what works for one > > > board may be totally inappropriate on another board and using the chip > > > default means we've got some fixed thing we don't need to discuss. > > > This is actually setting the default/cache to the first mute value due > > to the assumption in my implementation of the tda7419-specific get/set > > for these registers. It simplified the code a bit to have these > > initialized like this. e.g. for the attenuator group of registers, > > x11xxxxx are all mute values, so 0xe0 is setting these regs to that > > first mute value to simplify things. I'll take another look at > > eliminating this. As it is, it does not change the fact that the actual > > reset value of 0xff is also mute from a user POV. > > If it is useful it definitely needs a comment explaining what's > happening and that there's no practical change to the configuration. It > would be nicer to be robust against the device getting a wider range of > values in the register but that seems plausible. I did some rework to make this unnecessary in v2. Thanks, Matt