Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5964546rwd; Mon, 5 Jun 2023 10:54:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ40YJ5Rl14ZHwubpK2g9JAfDWqIJI5Y07uY1xGsJSa4GYvfj5JEubpxoZ0MlCrfnV+MEdt+ X-Received: by 2002:a17:90a:af88:b0:255:f113:48f4 with SMTP id w8-20020a17090aaf8800b00255f11348f4mr3071730pjq.24.1685987658535; Mon, 05 Jun 2023 10:54:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685987658; cv=none; d=google.com; s=arc-20160816; b=gkMyQQuFVwf2cc9rAMU8dKYVGxWSsgyRPNiZE09aiPYaCVcq9mqUG++W9A6VWe9P0D aMpWQosCzqdt5eTnPhYqj9A8FLImncyJIRcYQgOobwv0xeCirqT8xiTZRRPa2o9/aOOb adMozpOKNMGu1xP/8Dyn1jo2rdxf2mZxGC7TzzEJXbaNaE5gnnMxUlVTb3lcaTweQ4gO IJgOsZstNdWsUz3RgwfWfN1NKQbWWGbc6pXTH/0Z1+m2rMFed82xf5t85yBugCE/s0Jr ind6+muiFxo09ngChyUVRtelyR53n+6y96dYaNWd/TbHZMBe089nOWyjXBQGr+XC/raO t9ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=Berwdtb2uXHQbSksaaVPK3mZrvObJ1lWrE4UzrcIf8M=; b=kiG2AuFQutKUgKsDscpRiD7ZCLW/ZVM4SKSUSCn0NsqexxuXV3w+mwKa7mOl/CUQSt ruw8o9pUOPE1oNsXs2zAqbxYESSYo/QOEBTqvZjATqhwSImJ6+RG7uRFXsoRvvYrP4TB Mm8xLyMbxz3/nzsHkBKCb6G/4FebmyczgQlw9Wk2DzCyPQXoljT38pbUX7rG7/q2tdGS w0wkCYYGkLskIP+102+tzwfTJ3vXzAcT0M3Fo1EwtdgK5hwkwlxy2a8t9b6QHz+U7VZF 3l/8ATxdy4Zdix7JAX8ZvmqZhnzBqOYRufVEQ9wI9cFXKbYrLts2oOdRE26D3dELXkNR x68A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=J7ev+niT; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f20-20020a637554000000b00534839d5ee5si5846475pgn.98.2023.06.05.10.54.04; Mon, 05 Jun 2023 10:54:18 -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=@bootlin.com header.s=gm1 header.b=J7ev+niT; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234559AbjFERWx (ORCPT + 99 others); Mon, 5 Jun 2023 13:22:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232155AbjFERWw (ORCPT ); Mon, 5 Jun 2023 13:22:52 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AE6C91; Mon, 5 Jun 2023 10:22:49 -0700 (PDT) X-GND-Sasl: herve.codina@bootlin.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1685985768; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Berwdtb2uXHQbSksaaVPK3mZrvObJ1lWrE4UzrcIf8M=; b=J7ev+niTsg1xzPdC/Z0LVxKv4Z42cGvd9zc2KeBD1xxv+tqyeHe/4J8ImQTFJ1AoRgwgFN 6ojrllCzR4ja6qcd8Etya0M3KkgPxP7cdNUzzM1mBqdz0+9jfeouUaa6+qH29biRkSjfrN DEIv/KSc/UuFrVmO58z9vm5utSERq6eCX49QApf1GYrUKVvHRTAtTYXX/eis3QNiXJMu6m unP5K6zs/HR9ux7R15lM8AbrvRMKbugnYtaMO8wRVXXYMabKWLmZaZTrLy4l+nDei2D3CH yOnw8Ft+VslMGLTB3zGn7OVLUIwcfgiqpz9hy1ufyO1B+48vf2k025F3lQLDcw== X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 30441240009; Mon, 5 Jun 2023 17:22:46 +0000 (UTC) Date: Mon, 5 Jun 2023 19:22:45 +0200 From: Herve Codina To: Jonathan Cameron Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lars-Peter Clausen , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Christophe Leroy , Thomas Petazzoni Subject: Re: [PATCH v2 7/9] ASoC: codecs: Add support for the generic IIO auxiliary devices Message-ID: <20230605192245.4132e0ae@bootlin.com> In-Reply-To: <20230528183855.0c95d308@jic23-huawei> References: <20230523151223.109551-1-herve.codina@bootlin.com> <20230523151223.109551-8-herve.codina@bootlin.com> <20230528183855.0c95d308@jic23-huawei> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Jonathan, On Sun, 28 May 2023 18:38:55 +0100 Jonathan Cameron wrote: > On Tue, 23 May 2023 17:12:21 +0200 > Herve Codina wrote: > > > Industrial I/O devices can be present in the audio path. > > These devices needs to be used as audio components in order to be fully > > integrated in the audio path. > > > > This support allows to consider these Industrial I/O devices as auxliary > > audio devices and allows to control them using mixer controls. > > > > Signed-off-by: Herve Codina > > --- > > > diff --git a/sound/soc/codecs/audio-iio-aux.c b/sound/soc/codecs/audio-iio-aux.c > > new file mode 100644 > > index 000000000000..21575c4b35fd > > --- /dev/null > > +++ b/sound/soc/codecs/audio-iio-aux.c > > @@ -0,0 +1,302 @@ > > +// SPDX-License-Identifier: GPL-2.0-only > > +// > > +// audio-iio-aux.c -- ALSA SoC glue to use IIO devices as audio components > > +// > > +// Copyright 2023 CS GROUP France > > +// > > +// Author: Herve Codina > > + > > +#include > > +#include > > #include ideally to pick up > the of_device_id definition without bouncing through some non > obvious header path. Right, will be replaced by in the next iteration. Thanks for the review, Hervé > > > > +#include > > +#include > > +#include > > Otherwise, the IIO elements of this look good. So for those at least > Reviewed-by: Jonathan Cameron > > I don't have enough knowledge of the snd stuff to review those > parts. > > Jonathan > >