Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1876072ybh; Fri, 17 Jul 2020 03:42:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypZLi5c/rlZunDWKc8l32MYOD7jPK8ndqHB3TmJy3scd+GcqxZI8Z88HaSHkNLNoV4iIVq X-Received: by 2002:a17:906:2b9b:: with SMTP id m27mr5594117ejg.19.1594982537739; Fri, 17 Jul 2020 03:42:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594982537; cv=none; d=google.com; s=arc-20160816; b=MTgpzodUiKJfoOhAzjwPZYJFe/aYC+xcaI3gIBWmYmIn2Gcxn+wKVf3XVr7KWHxlHD jvisVpjqIduD8NfVn38t9E/6PLcovhryUAQ7FQWioi9JRzWj372CP0fJROYA4uBTahb1 GXopgD4NyO5V742gCmHXfmjfDk0ASRUPPFXeOKx12ziPx0M/lCBf5FK0ainfXpLzWftj Kg+Q/Uiu9qNsiQvGFBeZB17/rncq8W+MyMmJ4nHUd06IWq6hhNVKkuJY6yC2djzLp7tG +tGR7BuNzynVbIAJ92IGxt/q3VyaDOmx7kQiYEZOW92scjvq+1GUllT+Y+/aeyZu6bfP iowA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=C2LL7pRfZ9pRW3LrK3k1v00mtfAoCUaFFpyU4hTV5ks=; b=cuWOgKU/vCc4WApuqrjZKJekhFL++DAIAd2wDAK2AG7dKJYbu6CIKs1etg28gfoFWH b4TE2dPR+8UO8RD4PC6bFuRug4r/rCAlR3IxRthgNxbD7r0fEQxlh1HKv5D1gypEyx/x jpn9keVUpYOZYRvicFXoXM5AnrYTMSrLryjSa5T6S8gyZhhJJIzF8FcjnXdMRSgnH+je JpaN8Utr1KtsbldickXuRmtBpok07SacVFaG/JY3woSDPcwzIIks6d/YuJNjivy5EO1S iOFPH8E2/jPZWICaj2IzAIC2NN8UvytyMygwLbENQycFxx5Eo+LdikrW9NSGk8NA8TP2 TUXQ== 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 s25si5082695ejv.413.2020.07.17.03.41.55; Fri, 17 Jul 2020 03:42:17 -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 S1726013AbgGQKjT (ORCPT + 99 others); Fri, 17 Jul 2020 06:39:19 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:56032 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725864AbgGQKjT (ORCPT ); Fri, 17 Jul 2020 06:39:19 -0400 Received: from xps.home (unknown [IPv6:2a01:e35:2fb5:1510:c567:382e:1974:9868]) (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 B51C92A536F; Fri, 17 Jul 2020 11:39:17 +0100 (BST) From: Arnaud Ferraris To: alsa-devel@alsa-project.org Cc: Timur Tabi , Nicolin Chen , Xiubo Li , Fabio Estevam , Shengjiu Wang , Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH v3 0/1] ASoC: fsl_asrc: always select different clocks Date: Fri, 17 Jul 2020 12:38:56 +0200 Message-Id: <20200717103857.31877-1-arnaud.ferraris@collabora.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200716232000.GA27246@Asurada-Nvidia> References: <20200716232000.GA27246@Asurada-Nvidia> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes the automatic clock selection so it always selects distinct input and output clocks. v2 -> v3: - Update code comment, fix formatting and add more detailed explanations in commit message v1 -> v2: - compare clock indexes (and not the location in the clock table) to make sure input and output clocks are different Arnaud Ferraris(1): ASoC: fsl_asrc: make sure the input and output clocks are different sound/soc/fsl/fsl_asrc.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-)