Received: by 10.213.65.68 with SMTP id h4csp136202imn; Mon, 12 Mar 2018 09:03:07 -0700 (PDT) X-Google-Smtp-Source: AG47ELvsoz3WcVj1Jy/tTG9YfMa+ktGR0R7fYq0nKk0w1ZDHVz4DhyJRrTKxfogKkEABGYTf8SmA X-Received: by 2002:a17:902:8b82:: with SMTP id ay2-v6mr8519764plb.12.1520870587293; Mon, 12 Mar 2018 09:03:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520870587; cv=none; d=google.com; s=arc-20160816; b=wJM0NBcL/zdJyHxs4U/jaOXf+OpDQUPZn5FgtuktGaCmR9xOotnO0WI5iHRFcbD766 faOD7aumJ/ZUhRwCGnJPybHsxjD6Q4DxCEyY6JS68TyHxREHBbz5cJQW8XAvDdLzgFU7 Jk1ybFngJ/whuhnBGLnBDCAeAqP0ihAocyXSNxflinheJ5ynvC/9V1W10HJgzKF0BPiU z2FTe2fkTJLgzd88dyUKZnmYPoDCfXlUILE+YQx81/QbBtci1pVk6STfmnVffKLMikz1 g2InsOgYkJZhiwOE2tr8Yhw9kfGqelrYQJeH9OG7jvrVQ7u660HnBjYzKMUH1c7ckjWs p1Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=WhwFn/nIAay70qFVrjLvLU2dfAfj0bbWyk9jnTuX+3I=; b=IRPcFNn8bhwhJTvZ+cr8gZHIEWwOlEVDihJy5ZCSH3vUxWvdMRmYNanjcoRgmvxq3h jZPE44TTPwHaN+RRrvsn86BkJhk0qs0hy7GipcO5DQwnZ1+3gpLcPH5C4mI/L7oxVq/z CSJ48DcJ3TQ4v1s42aX/zJxYP3f1UX7RSFb1SX8QO8W1O/RG5RlQEVlVfUetKTpaN6pD ZcF/pPPSPDHtt0rxyJvvVHvmOXtMbKpAkzLPW03YgoXFXpru34bs0+cduQNrP4ZGaQCc fQKbKpkjok/64GfeNEEm0KWXRgE/YkOmh+1YuwH0Pfgyzdncv74aGjdRvYpyL5VxwySE EwiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qPUG3CU3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s11-v6si6217477plj.701.2018.03.12.09.02.42; Mon, 12 Mar 2018 09:03:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qPUG3CU3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932688AbeCLP56 (ORCPT + 99 others); Mon, 12 Mar 2018 11:57:58 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:42128 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932425AbeCLP55 (ORCPT ); Mon, 12 Mar 2018 11:57:57 -0400 Received: by mail-lf0-f66.google.com with SMTP id a22-v6so2128749lfg.9 for ; Mon, 12 Mar 2018 08:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=WhwFn/nIAay70qFVrjLvLU2dfAfj0bbWyk9jnTuX+3I=; b=qPUG3CU3jBIeBQ+NH1vIBlyvk05SK/AiswB8VF5XCgBbD1I4UUCf2AGt3G+WGRN9cW pGn6vpQfNBohC/7zPWdZrnoPIZdEYsx4qGx7MbZQ2VIgy3HpnsMEQzzKHCFrUeurj82d 5ax0C4wpHa+wt263DSUJaW0kHgEj7mXsJ+EjgYjofgMKtROaPmP2BstcwuyRzzplpwXx njzpMOg+dVpC+b/do5VeGiq3D1brPOPYhhHGp9iGS5XEp7iZOTDYCsJtablVh/ObEIq4 gefMYaJVtNvdoiyyXMYXi3Vn6DeVCXRExcCcGU82ihYl/561g8aUYjP/2nvjwvcNJrvb oZOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WhwFn/nIAay70qFVrjLvLU2dfAfj0bbWyk9jnTuX+3I=; b=aM63euAnaq8J36uuOOob6AZZe0UNsMhikslLMVB2vIszC3PpMvr1BxRqM8Pw8K+11L bpQEYUZH4QZGrN7cFqfVqxKFGTN8Fut/JPxGjvyc1HAnNFr8V2GaSS7x+VyKIluwS1gF h8JhWKkVKJFnKOcdd2IIQ6/Dae00WGrHWDUQVE89YL6hb31u5rZ0gO1Cy3wZYZp64Bc1 SHTw5OQVbv4qoRFrzHst4e5+op2Qaue/pVhMjn05jl8pKGVv2ObUmXE5rV+Dzo9VU/pk QQjyk4zG6BIdgOjYJH8kfPtEBwTHiLdqyrSRlt1n57dCSBfah0Px9S5uWnKoEe0j9hMO 8EtA== X-Gm-Message-State: AElRT7Gx327FaK86TcPoFOagRLWrPlT25nGrDorgKSqr5mQVQCfJIfQg IUGTJEy8xzXhneYWuTFa6yI= X-Received: by 2002:a19:eb0b:: with SMTP id j11-v6mr1321401lfh.120.1520870276208; Mon, 12 Mar 2018 08:57:56 -0700 (PDT) Received: from localhost.localdomain (c83-253-254-90.bredband.comhem.se. [83.253.254.90]) by smtp.gmail.com with ESMTPSA id h11-v6sm1833448lfd.88.2018.03.12.08.57.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Mar 2018 08:57:54 -0700 (PDT) From: codekipper@gmail.com To: maxime.ripard@free-electrons.com, wens@csie.org, linux-sunxi@googlegroups.com Cc: linux-arm-kernel@lists.infradead.org, lgirdwood@gmail.com, broonie@kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, be17068@iperbole.bo.it, Marcus Cooper Subject: [PATCH v2 0/6] ASoC: sun4i-i2s: Updates to the driver Date: Mon, 12 Mar 2018 16:57:47 +0100 Message-Id: <20180312155753.9478-1-codekipper@gmail.com> X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marcus Cooper Hi All, here is a patch series to add some improvements to the sun4i-i2s driver found whilst getting slave clocking and hdmi audio working on the newer SoCs. The original attempt had some changes related to the slave work but I've left them out for this release as I would still like to do some more investigations. The functionality included with the new patch set has been extended to cover more sample resolutions, multi-lane data output for HDMI audio and loopback so block testing can be made without an external codec. I've also moved away from using tdm to set the slot width and now use a dedicated property. This has been tested on a Pine64 using the ES9023 audio POT board (https://github.com/codekipper/linux-sunxi/commits/upstream) and HDMI audio (https://github.com/codekipper/linux-sunxi/commits/sunxi-wip-a64) BR, CK --- v2 changes compared to v1 are: - removed slave mode changes which didn't set mclk and bclk div. - removed use of tdm and now use a dedicated property. - fix commit message to better explain reason for sign extending - add divider calculations for newer SoCs. - add support for multi-lane i2s data output. - add support for 20, 24 and 32 bit samples. - add loopback property so blocks can be tested without a codec. --- Marcus Cooper (6): ASoC: sun4i-i2s: Add slot width override ASoC: sun4i-i2s: Add regmap field to sign extend sample ASoC: sun4i-i2s: Correct divider calculations ASoC: sun4i-i2s: Add multi-lane functionality ASoc: sun4i-i2s: Add 20, 24 and 32 bit support ASoC: sun4i-i2s: Add support for loopback .../devicetree/bindings/sound/sun4i-i2s.txt | 11 ++ sound/soc/sunxi/sun4i-i2s.c | 199 ++++++++++++++++----- 2 files changed, 170 insertions(+), 40 deletions(-) -- 2.16.2