Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1516313ybt; Thu, 2 Jul 2020 07:25:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPRXlEMGX2MoMYW6h5X7H8VQEfR9+DPe1MW2E1OOATeknRao0Jy0eA3fyAsoYcMadrgHrb X-Received: by 2002:a50:cc8a:: with SMTP id q10mr35978405edi.257.1593699928179; Thu, 02 Jul 2020 07:25:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593699928; cv=none; d=google.com; s=arc-20160816; b=SqaXtlalZjzydX8nuw2xqdffgY4VBmCtLzwkgj5Mf1SuS0Cb2qnzh4Z9u1C4Xptn/h 9Hvj0wIqGUagLqhyOp7zNvrMQXxt+xPLo3etSqMj+1ZkbEGrl6tM4MzpnZJ73jWuWtUj 0S07hou9+Ei604CeZGIFj2SAks3xgOFItefytUkARZdgEheLrFy4YwEvzioYgXJJtXjz c8uwNNd7DwvciZ8Lj7Ny3pDVmF4KApdQZaot661v7mrGhadsuZSuP8myqFqM4ffIC6QZ KTy6e6A85fDvYHUzmgc0AIUW2t9t24qWnSJcMXWjnYg9zorscMDunf9l876+Q/Z21Jsv wCjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=ndJB1gQFsoMJdSD+hmNhpzuUQg43Pubcg4U+fCmMDHQ=; b=wcuRojMLZhpGjy5UDk4V15rS2d0uzmtJky73YpSS+n0zSVEYmEaKENmhp4VP5VUDfc jlLtQbIChp5Gu+ufv4tmAnutmc6qwdngNiYKV8WhwEOgv1ZLubmv49SVAhnUi3PeBePI 9x3TJensSsD18f4Su8xi9zmRNkKglYMXNqh+asXA8QIuTZpcmRdxTuU+n0uFctnBH8yq VQlxz82M+Hpr1yeZmlHekzbJdLsnJj1HOlx8LYxLUh+CeUFfPjinQSnHC3r2Hk+zuiLY RxYdGmabgr2R/Uphj57wc5nqE7PKAVHBIR+9XA6tlpZS0hMqZnNtGnCJJO5jIxpOafb8 XCPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 17si5684405ejw.686.2020.07.02.07.25.05; Thu, 02 Jul 2020 07:25:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729670AbgGBOWv (ORCPT + 99 others); Thu, 2 Jul 2020 10:22:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729399AbgGBOWu (ORCPT ); Thu, 2 Jul 2020 10:22:50 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6A99C08C5C1; Thu, 2 Jul 2020 07:22:50 -0700 (PDT) Received: from xps.home (unknown [IPv6:2a01:e35:2fb5:1510:315a:ecf0:6250:a3ed]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: aferraris) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 3CE162A1D11; Thu, 2 Jul 2020 15:22:49 +0100 (BST) From: Arnaud Ferraris Cc: kernel@collabora.com, Liam Girdwood , Mark Brown , Rob Herring , Timur Tabi , Nicolin Chen , Xiubo Li , Fabio Estevam , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 0/4] ASoC: fsl_asrc: allow selecting arbitrary clocks Date: Thu, 2 Jul 2020 16:22:31 +0200 Message-Id: <20200702142235.235869-1-arnaud.ferraris@collabora.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The current ASRC driver hardcodes the input and output clocks used for sample rate conversions. In order to allow greater flexibility and to cover more use cases, it would be preferable to select the clocks using device-tree properties. This series also fix register configuration and clock assignment so conversion can be conducted effectively in both directions with a good quality. Arnaud Ferraris (4): dt-bindings: sound: fsl,asrc: add properties to select in/out clocks ASoC: fsl_asrc: allow using arbitrary input and output clocks ASoC: fsl_asrc: always use ratio for conversion ASoC: fsl_asrc: swap input and output clocks in capture mode Documentation/devicetree/bindings/sound/fsl,asrc.txt | 8 ++++++++ sound/soc/fsl/fsl_asrc.c | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----- sound/soc/fsl/fsl_asrc_common.h | 3 +++ 3 files changed, 75 insertions(+), 5 deletions(-)