Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7166793ybp; Wed, 16 Oct 2019 04:55:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQJgpFVIoOIAM1P2T+w8y2Pxv7djJSSuUkqp4Ap1yCt63bRdxqRt5b+7rWtRpv23U3aNPM X-Received: by 2002:a17:906:386:: with SMTP id b6mr38563297eja.148.1571226948955; Wed, 16 Oct 2019 04:55:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571226948; cv=none; d=google.com; s=arc-20160816; b=yZKL4LCVwoKw5a3GB7xA8m9jTPDryaOgPc5VEA4QoayU/SW4bZRz6EOYxiKX7AhaRx 6LMDSOu3V8s7e6d7I1mRTQRtyinEe1WqoFq0XCtm97AWUICR6AnFurfc5AtZsaqlgpon JXN3vRrE8tJi4s/N3upe8XQK3mi6isKVKfSmCEEBrYadDWAezhTREE1v+OClb8yfDy64 B2bCi4MIl0dQfetkm6VfILRMKvWZN49I5OrZpuLCUkyn4rTZM/hob3NcBqGr4pfWy7Og +cIReQB2eGlroWU9jLqyodAUZFqb9ZG2m+TipGPDiJE01fIfZL4FoeaYOSwzNR912VeG TOOg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ZhTgNjpKNQusZyPVoOQIc1FXI/m0QRLJulVFef76XX8=; b=R9c91cXy0J76FnRorAHWXHT/RYhBUaJTUmGElcc1JxefhOMy7gd9PnwcwK5K50DotP qRj8a0f0Qb0Npnr+f0yRgLqJ71CwWh6PC7kJjPymLXLFAgkNumgre9Ib2StszZ0r+lS+ EPfBfozuu4iBLSgk3fivSRoafuRIj/6OiGxOawgF8YzrT1nlITqNFOWUWYZKWlFI98tv fF+54v/NbIqHWBWVX+KaRlDLZdGPY1jB/07SqX7Iu1mkKLI7JaQ5hDOU9UlYl8quEfwp Fpj6CSadUj7UQJvOutMFytIRUBYWKphZ5VG9hb6LV5z0H5qfQuakhdd5IvLEJjsbW6EM QsFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Do+e/YaG"; 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 b12si15169225eja.185.2019.10.16.04.55.25; Wed, 16 Oct 2019 04:55:48 -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="Do+e/YaG"; 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 S2389528AbfJPHHp (ORCPT + 99 others); Wed, 16 Oct 2019 03:07:45 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:41208 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389242AbfJPHHo (ORCPT ); Wed, 16 Oct 2019 03:07:44 -0400 Received: by mail-lj1-f195.google.com with SMTP id f5so22818178ljg.8 for ; Wed, 16 Oct 2019 00:07:43 -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:mime-version :content-transfer-encoding; bh=ZhTgNjpKNQusZyPVoOQIc1FXI/m0QRLJulVFef76XX8=; b=Do+e/YaGZ/1kWMOZw1D1T1VnuBALKM+/iodChqull8q+46Lag2kJ3nIo7vEhP38y5z Yx/BSyBkRCVuh2n96BV0wQa7eiQhZ5cUKWivQV2hY6S4HKkKx/H/d/PUMMWgG3ijMTkd FYzGq1f2k8UALpZUFtbNZnLTwxCcUN7lHYIXoZNUxbO8KeQaEDMPbhl+j0zXHFiR6+rE 7uH3DeWFbEeiHiVkSfzGwUCsOhj4OVpiJIsw+y6VTfTeBUUl9E3FK8ZI3X8d0ynXfjnA 3ieluyI+90fOxZE3q2V+qrlN/M0gdWB2+7TCVXM8WXSwLy8VbfZTLXMEAVgGe7ZaYvii SU+A== 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:mime-version :content-transfer-encoding; bh=ZhTgNjpKNQusZyPVoOQIc1FXI/m0QRLJulVFef76XX8=; b=FyWBOTBqA04Xda52TnVQT5J0arjRBzZ2VQ4PeECDSlSg57ex3ihIn81bJRZWlbDJK2 oX2xsUXvgf4TRBXiVlA+tNQ8hp5xyS0mjWFq7NMmt5N/8tHC/XKsmy2nx3OgFEqD0QMJ 3V4QNBjc6LhRjnREwDFdOAbn6HW5uzw+E38o179yc8NdoCN8H0lM/U2gLD2y2StCOsuO arWFZcx1XX1/k3FAXpllkf3FiPFUXVeDawqJ0VDPgqO677H0rfYM44iW1jpCfuEc8teJ WzJJwt5A3C4uxfuPId7p7ayXaY6Q10I/zW16P/aO/j7/mydWBp1FGLtYurUhFNTQEtpQ 84Jw== X-Gm-Message-State: APjAAAXam4fancr1E9pgIEFHJCsEtZBrp/wgBTXEFs0OEF2Lo6Sfy8oi 7/8g97HgUpir8T/IQt+4Dso= X-Received: by 2002:a2e:957:: with SMTP id 84mr25058609ljj.23.1571209662571; Wed, 16 Oct 2019 00:07:42 -0700 (PDT) Received: from localhost.localdomain (c213-102-65-51.bredband.comhem.se. [213.102.65.51]) by smtp.gmail.com with ESMTPSA id j191sm1361493lfj.49.2019.10.16.00.07.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 00:07:41 -0700 (PDT) From: codekipper@gmail.com To: mripard@kernel.org, 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 v6 0/7] ASoC: sun4i-i2s: Updates to the driver Date: Wed, 16 Oct 2019 09:07:33 +0200 Message-Id: <20191016070740.121435-1-codekipper@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marcus Cooper Hi All, To be able to add support for the Allwinner H6 I've changed some of the original reg fields into function calls as this made it easier to setup for multi-channel audio especially across different SoCs. I've also stripped out all the other patches unrelated to this which I will deliver after support for the H6 has gone in. These other patches are required for HDMI audio which is driving this patchset and they can be found here https://github.com/codekipper/linux-sunxi/commits/upstream-i2s BR, CK --- v6 changes compared to v5 are: - rebased onto the recent tdm delivery - stripped out patches not required for the H6 delivery v5 changes compared to v4 are: - removed delivered patches. - Added more details to commit messages. - replaced some reg fields with function calls. - Added DSP_A and DSP_B support for H3 and later SoCs. - Added support for the Allwinner H6. v4 changes compared to v3 are: - Moved patches around so that the more controversial of patches are at the top of the stack. - Added more details to commit messages. - Fixed 20bit audio PCM format to use 4 bytes. - Reduced number of flags used to indicate a new SoC. v3 changes compared to v2 are: - added back slave mode changes - added back the use of tdm properties - changes to regmap and caching - removed loopback functionality - fixes to the channel offset mask 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. --- Jernej Skrabec (2): dt-bindings: ASoC: sun4i-i2s: Add H6 compatible ASoC: sun4i-i2s: Add support for H6 I2S Marcus Cooper (5): ASoC: sun4i-i2s: Move channel select offset ASoC: sun4i-i2s: Add functions for RX and TX channel offsets ASoC: sun4i-i2s: Add functions for RX and TX channel enables ASoC: sun4i-i2s: Add functions for RX and TX channel selects ASoC: sun4i-i2s: Add functions for RX and TX channel mapping .../sound/allwinner,sun4i-a10-i2s.yaml | 2 + sound/soc/sunxi/sun4i-i2s.c | 337 ++++++++++++++++-- 2 files changed, 305 insertions(+), 34 deletions(-) -- 2.23.0