Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1472673imw; Tue, 5 Jul 2022 10:04:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1txef09ua9xm7tp2BXONnLZ6vwwVIXvD6VEDcdOkqgtIVedtb75ngqKKoLvbVI89oWCq4tv X-Received: by 2002:a17:907:1623:b0:722:ef86:e25c with SMTP id hb35-20020a170907162300b00722ef86e25cmr35506521ejc.461.1657040684971; Tue, 05 Jul 2022 10:04:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657040684; cv=none; d=google.com; s=arc-20160816; b=xjV6CGONqUqaQjhhxuAMZhTPvhy/ab01yZ4vO2SRJnmc8k0JeHeH6EQyl5uneCnZRF Hn2gk2O5AEH9rseEqsslDxuzf7/ELrDyuN9DCq9AE+gXUNk5vl1wrHZC3gKeFYo7Hqp2 CWXLuLpp6udOjN1ZjzAdcyAjKbL9kuPxsv60gjUayD6rFewiMyYMcJt+1q3ZBxe3Q/BJ 5dsX4ovZc5pLvJa/PBkkaHszOc5oHyb4S0kTRHoA3YXarEcsets4H/VPCea64R1588kg cCGtq9i1CU1oTxtmAIA73sPT8Uk14uDjTtnAzamScSv/9ZgZ1Q67Rkwnj6pjaMZ69Dog nunA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1mv3mJqTJJTSx3NpvZlyG+2KI9BHYtO9VrU9ve+aY6E=; b=sMHBcmsVRyjqwOHiKkR1NtLG8xji9ILd19o1w6yi8gWDX09uRcIKeFmx0zZ7xz4c7/ QaOJ1hBOcPvvReRYfor+Y0AkfS7+06ka3X2coExsquWoA56z8VBr1G1CgX4zQamsy6hH KfFyja4NqwCnZ1of4gqgQrB+vyNOZDikxd44eYkrIexS7t5Nii4CaFsj/MsE40BfWdn6 6PjN+Yy7wZ56i6zHfqcqu1eCkRb2uMN9I7D1qzsGT5eRERNjDixfw0xDpZeS9nOWCTjU aEmTCTjqPvxHhML1eronVFgPy1YcAQsXKPmznbDA1OuZyW0r1tx3TJ5ugMHDRYdxVMiH je7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SPEMBybH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r16-20020a05640251d000b0042dc982357fsi11202530edd.156.2022.07.05.10.04.19; Tue, 05 Jul 2022 10:04:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SPEMBybH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232231AbiGEQaZ (ORCPT + 99 others); Tue, 5 Jul 2022 12:30:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231650AbiGEQaB (ORCPT ); Tue, 5 Jul 2022 12:30:01 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A387E1837F for ; Tue, 5 Jul 2022 09:30:00 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id d16so12010161wrv.10 for ; Tue, 05 Jul 2022 09:30:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=1mv3mJqTJJTSx3NpvZlyG+2KI9BHYtO9VrU9ve+aY6E=; b=SPEMBybHl76PAFAbvb9V0r4ns9juoAy1mwlBzc5BEOCAbWPxSpdfsYR7K5HIfOmuNI LZDhRk6tS4hNJXukYfwnm7ZU+DQ0MFYyoNmTF6sLXVnAV2YbEYpaLJQ+5svtvXRQbkK6 ASSYpyhabNxatLE0bjdF0/Gi9HcWwEoF5+cYs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=1mv3mJqTJJTSx3NpvZlyG+2KI9BHYtO9VrU9ve+aY6E=; b=wKvs7TFtY2lM7/0OQx2l9eAVn9Owd7SrUA82VZV+d9neNasrqwjNCkizMIdNTad9e2 8kJu0Elx6WVLuLHojxhq0CGwTJkrjcmZF+6ukT6xwJ92YwOro2hmQXA6znW1MckcJBym VciYOSOfP9Jw0bhjFhOP9Q0X2lNtdT/fA6liMaENQ+l+xGU5pQAHgLSo5dP1xjLO2ArV FXgOhAdhsCIbE+gBzEAXKCoNMbC17yCE6xX13LOnpuHLeRjcqFA+/Dlqw/01kclUMEHX fB864EcQu0yUYt0222+3iZvcdBZSmvJntl8/mJaOgxiudomcPCXS2yIDYGK2PpO0xd3H 2ubA== X-Gm-Message-State: AJIora856saOq6i5ef5sxt36v6LVZiCnx4XHaRCri63eYf27ryfKYdFa GstEsgGpy9MNkaQ+4y9VgKUPWQ== X-Received: by 2002:adf:c64c:0:b0:21a:7a3:54a4 with SMTP id u12-20020adfc64c000000b0021a07a354a4mr33582204wrg.163.1657038599242; Tue, 05 Jul 2022 09:29:59 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i (net-188-217-58-216.cust.vodafonedsl.it. [188.217.58.216]) by smtp.gmail.com with ESMTPSA id b10-20020a5d4d8a000000b0021d4aca9d1esm15258179wru.99.2022.07.05.09.29.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 09:29:58 -0700 (PDT) Date: Tue, 5 Jul 2022 18:29:56 +0200 From: Tommaso Merciai To: Mark Brown Cc: Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: equalizer cfg in max98088 driver Message-ID: <20220705162956.GA2676656@tom-ThinkPad-T14s-Gen-2i> References: <20220705075500.GA1987744@tom-ThinkPad-T14s-Gen-2i> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, On Tue, Jul 05, 2022 at 12:18:06PM +0100, Mark Brown wrote: > On Tue, Jul 05, 2022 at 09:55:00AM +0200, Tommaso Merciai wrote: > > > Just a question. Can you explain me the proper way to configure eq1 and > > eq2 of max98089 using sound/soc/codecs/max98088.c driver? > > Could be a valid solution fetching eq1, eq2 bands params from dts? > > There's plenty of examples of equalisers in the code already. I don't > know how this specific device works but generally these are either > exposed as a series of volume like sliders or as binary controls. This > doesn't restrict people to settings from the firmware, making > development of new configuraitons much easier. Thanks for your reply. I meant somethings like this: max98089: codec@10 { #sound-dai-cells = <0>; compatible = "maxim,max98089", "maxim,max98088"; reg = <0x10>; clocks = <&clk IMX8MM_CLK_SAI3_ROOT>; clock-names = "mclk"; /* eq1 cfg params */ eq1-cfg-dt-en; eq1-band1 = /bits/ 16 <0x2000 0xC001 0x4000 0x005D 0x0000>; eq1-band2 = /bits/ 16 <0x2C30 0xC01F 0x3DAA 0x03EC 0x111E>; eq1-band3 = /bits/ 16 <0x0C41 0xC0BE 0x29AA 0x09B5 0x3094>; eq1-band4 = /bits/ 16 <0x6671 0xC655 0x3036 0x1BC0 0x2A16>; eq1-band5 = /bits/ 16 <0x538D 0xD64E 0x23BD 0x308D 0x3517>; }; Regards, Tommaso -- Tommaso Merciai Embedded Linux Engineer tommaso.merciai@amarulasolutions.com __________________________________ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 info@amarulasolutions.com www.amarulasolutions.com