Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp754785ybl; Fri, 10 Jan 2020 06:13:41 -0800 (PST) X-Google-Smtp-Source: APXvYqzXlPMBF/7Oae0bXBjFCbc6a30q2fpApAXS6E2Hg02E1+OAxUq9ZU7R5hyd9M+Q8XlOgHyx X-Received: by 2002:a9d:53cb:: with SMTP id i11mr2844453oth.158.1578665621883; Fri, 10 Jan 2020 06:13:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578665621; cv=none; d=google.com; s=arc-20160816; b=BDWH2DwAdhU6kZ54jIYf17Z25z0PTllTkhypM/8bIJqL+oKpUXHMeblFg91gA2SvGR +I1lVz3ap7qniTci0Xf+gJRrq/yxZsiDV3+wX/G9ZiudpIppAOZwRbqgwXqwQPARS2BO OfQfr+wKwfdMNAXbsWz3CZcmS3HbYIsHTsdFJDvPS7OLsp6KDayA2E9Nog67e7zlzsdo +ObqMvB6S7EVwyeghhn5+yzllxSQCdyA9IoiYAI5yR0JStX4V6fyZ5cv6hzADReSn+gI MyvKRpukWqbKhBhrhP9k0fk2+MIdnCdEYdBWCDPXbx72LM+hkHH6GEFqL/pQXdOpSxuf xqVA== 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; bh=0uAWi7XH4nymb3SvzEM9T4F0//QLIQ2Z3h5elWgYrQM=; b=PbYSaHsf0yedyoTytqJliyAxafwpcEZfTPfZ5s4KOEu8XbI8bpIXq6yu8gtmpLIsmT g3f+mgCz7W/a5CdmJnQY2bBPjxFsLwblbv2fgTINIUf3UuZYE8J52BqrT/bqpja1AaT4 juQjS9YlLeGh5EEz78ZrFF2KKqbTAml4zWhWdOqWYHneiMncvQ991kaZm0oCPJzKsIev wed9PMFqkqhHskLgBTrzoj4NjSdXRd1a1wvH+3H8WpKn0n2u/OS+ROwIF/RIb4mQ0WE0 JafZCNWskGtUocpAL2kKXXofzVFzoUnUePRbdANtC8J57dj7C1rtVfXt5hcL4bRgJT6+ EFGQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s128si1116532oig.204.2020.01.10.06.13.27; Fri, 10 Jan 2020 06:13:41 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727938AbgAJOMD (ORCPT + 99 others); Fri, 10 Jan 2020 09:12:03 -0500 Received: from olimex.com ([184.105.72.32]:33323 "EHLO olimex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727795AbgAJOMC (ORCPT ); Fri, 10 Jan 2020 09:12:02 -0500 Received: from localhost.localdomain ([94.155.250.134]) by olimex.com with ESMTPSA (ECDHE-RSA-AES128-GCM-SHA256:TLSv1.2:Kx=ECDH:Au=RSA:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username stefan@olimex.com, mechanism PLAIN) for ; Fri, 10 Jan 2020 06:11:56 -0800 From: Stefan Mavrodiev To: Dan Williams , Vinod Koul , Maxime Ripard , Chen-Yu Tsai , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org (open list), dmaengine@vger.kernel.org (open list:DMA GENERIC OFFLOAD ENGINE SUBSYSTEM), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Allwinner sunXi SoC support), dri-devel@lists.freedesktop.org (open list:DRM DRIVERS FOR ALLWINNER A10) Cc: linux-sunxi@googlegroups.com, Stefan Mavrodiev Subject: [PATCH 0/2] Add support for sun4i HDMI audio Date: Fri, 10 Jan 2020 16:11:38 +0200 Message-Id: <20200110141140.28527-1-stefan@olimex.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series add support for HDMI audio for sun4i HDMI encored. The code uses some parts from the Allwinners's BSP kernel. Currently cyclic DMA transfers are disabled. The first patch permits them as they are required for the audio. The patch is tested on A20 chip. For the other chips, only the addresses of the registers are checked. Stefan Mavrodiev (2): dmaengine: sun4i: Add support for cyclic requests with dedicated DMA drm: sun4i: hdmi: Add support for sun4i HDMI encoder audio drivers/dma/sun4i-dma.c | 45 +-- drivers/gpu/drm/sun4i/Kconfig | 1 + drivers/gpu/drm/sun4i/Makefile | 1 + drivers/gpu/drm/sun4i/sun4i_hdmi.h | 30 ++ drivers/gpu/drm/sun4i/sun4i_hdmi_audio.c | 375 +++++++++++++++++++++++ drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 4 + 6 files changed, 435 insertions(+), 21 deletions(-) create mode 100644 drivers/gpu/drm/sun4i/sun4i_hdmi_audio.c -- 2.17.1