Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2228679rwd; Sun, 28 May 2023 10:45:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4GnSad721+7m6XkhTkd7atu5sG6DPh8b1U4G/dsUdwbhIPa2OENG/hYRN1QY0eiVOi2dG1 X-Received: by 2002:a17:903:1112:b0:1ae:10bc:4ae8 with SMTP id n18-20020a170903111200b001ae10bc4ae8mr10791022plh.26.1685295909061; Sun, 28 May 2023 10:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685295909; cv=none; d=google.com; s=arc-20160816; b=ycycfaAYnfoCQn9YmexVbbFkZ/WO5u+PQXmUH9w5IjLzyBdxIoZVFpEu727DKid785 gMP65V/poO+u9NuRgvoZB4WVGtjdnJyXS//zlqL6lPvxIlSjXcEGJsyq+KDwEyhKTHmK II9De14g/oRDdtcn2mAA8dHbw4/Ytq9nO0l5JV0GEaqjXELluXR/7OsqrJ7ITFfxNKnG CrhnBufeSlbcxY5XPUfXlSJhgbugUe09U8RPYCjQ9BtYUIFvcLHwctGpvZLaQBdKwzv0 gF57y0D1IThKOtpxt9YfTQASLcxTenxAOALYXFa4mAFWE3WF7JwdHHccLI+o+ESCINaf NqmA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=jR+s+nc2qz1iV5FWr+c8DjWqXb0MOZn+z8Ub0JJgML8=; b=UecuLrZFD5bcPTl98nYObSU77nA0qta9gtIVezq6JHt/72nLzUtoImdAr9a3bhcofC ZB1NwePYHan8X5/9Vu/7MX9TLKEEzu3mX1RqJS++BYJFkUKyUPvM2jKlDRhFiAMDcg6a R+F56KKaRIhMWMvlW9bFCSjMoeTLzqBpZv3NyRd6Fjkgd2SKRa/akUFjP01s0BmSeisy FbFsG0EjKYyX7GWhruP9WjUUBcvZfWmKVIvh95fNJHm6sBsnKRWYxfDrqNEtxn9LH5vT 9z4dxewqLC+Feqm2zqn1brKYGhdZmfFin1p6H9xQmNmVP8dKCfvD+1a7LFEkHx+yB6cx SCKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JcSvyNHS; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020a170902c40c00b001ab1d1a6802si5970110plk.1.2023.05.28.10.44.54; Sun, 28 May 2023 10:45:09 -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=@kernel.org header.s=k20201202 header.b=JcSvyNHS; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229529AbjE1RWl (ORCPT + 99 others); Sun, 28 May 2023 13:22:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbjE1RWj (ORCPT ); Sun, 28 May 2023 13:22:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18C03B2; Sun, 28 May 2023 10:22:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 961E660EBC; Sun, 28 May 2023 17:22:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14F97C433EF; Sun, 28 May 2023 17:22:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685294558; bh=a0bn35byPravsJL/aYIpPMkp2CEo3YyQfJm8G1Uhmj0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JcSvyNHSuJhMCIZhkT0NmgEV5yatXQOX99p2xnzxjucNbNZ6i+BarPWm+13xPevVd KnycU6jKzIlvm7c2h7mYTACvih4blk1JQl65IJZfKFy9lzQDMiWBd9fp6RMx+4sZEG ibDQ0gagPYT7jefM+FoWANzeB8YfacbrZ6le8iCjeL13sJyotz6bySx47Um43dQ9G3 bwo2hN2kWqgdJTsdpjEHJszC3HNRRx7MtHXZPm8Kuhj+8llDq9h56E4lsVZ6p0atQA FzK0m/L8lOLn9PUhYRNtOciGzh5XjkBGF/zDc5GE6A52LX5sxmDOsGCALfgjU6O8xY IzaFvxx+p9pXg== Date: Sun, 28 May 2023 18:38:55 +0100 From: Jonathan Cameron To: Herve Codina 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: <20230528183855.0c95d308@jic23-huawei> In-Reply-To: <20230523151223.109551-8-herve.codina@bootlin.com> References: <20230523151223.109551-1-herve.codina@bootlin.com> <20230523151223.109551-8-herve.codina@bootlin.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 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. > +#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