Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2520943ybl; Mon, 20 Jan 2020 04:35:04 -0800 (PST) X-Google-Smtp-Source: APXvYqy3LtldcD+rUuUELXbFMFTQhFi0f/lZiQgcOvnaAxdGgEV75egw8NXG4W5l3kPmarfLs3W+ X-Received: by 2002:a05:6830:c2:: with SMTP id x2mr16055091oto.8.1579523704253; Mon, 20 Jan 2020 04:35:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579523704; cv=none; d=google.com; s=arc-20160816; b=x6wf2CWddA62oV77Fwx55EvWeE5+Cq/PfK69nqiKhE3UP7en5ANbGSNSYEdJt7Lb+o uXujUm4ZIBdeQ7XZr9a9RyNGbGfYa68gWYIgyL3raCEruO/dm8dJDTFIinkrcX4v7dgN QzJLbmAjbV/TAqPGwjNR6bd4XR0wiot/sahA793IrM0ItrePR9WZkP5eX10S0xhIPQjZ nREje0T/rukRbKL/rO0Q1O3SbviHjwxodqFhV+khfPLCYQvYo1LSsfqf5EMJzPMOaNtt niEmdkL6aYacdIlpOGV7oUQDwrxMRxLabBAnhtbbXWid7VaOtj3ueNKNEQ8Cu8XMp/F8 Odjw== 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=e3OP6OLKN7IWRUJfVE4KzoOIgTxyGGJfpH6AyRnWjqI=; b=DWMppDsN3UPVl+UQ/Ydy+uiaEul5HCoExWKD/E4wB2/bV55ul5PjGCGohc4jiD2kqU UBw1YiQqVzwfbWwFL0sTrxXSnvvCEVF8JFwLZZVYHBn1CkLHkmadlYKiIP+ElXcO4QO6 fDMfkjKEl4OAd2BHJLUq/HVLZvLEKsAmlfLqC5bJA4ljBW5imXajrPX0vzx22BuRW7XM gIPMiSs9sfgJypjgVpUKrI1EEmtyuZujOCwmfg2uurcQJcEZ/QpZBsRpl1c6sLB9tAHc zA0vY+S7rbu37+SZvTA8iCsCkASouSKVEK5vQ1XppTyyMGEUwZBJcCmAR4Y8SwIFSLKr Fzdw== 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 v21si19745784otj.282.2020.01.20.04.34.52; Mon, 20 Jan 2020 04:35:04 -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 S1728712AbgATMdq (ORCPT + 99 others); Mon, 20 Jan 2020 07:33:46 -0500 Received: from olimex.com ([184.105.72.32]:51347 "EHLO olimex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726819AbgATMdq (ORCPT ); Mon, 20 Jan 2020 07:33:46 -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 ; Mon, 20 Jan 2020 04:33:32 -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 v2 0/2] Add support for sun4i HDMI audio Date: Mon, 20 Jan 2020 14:33:24 +0200 Message-Id: <20200120123326.30743-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. Changes for v2: - Create a new platform driver instead of using the HDMI encoder - Expose a new kcontrol to the userspace holding the ELD data - Wrap all macro arguments in parentheses 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 | 28 ++ drivers/gpu/drm/sun4i/sun4i_hdmi_audio.c | 452 +++++++++++++++++++++++ drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 20 + 6 files changed, 526 insertions(+), 21 deletions(-) create mode 100644 drivers/gpu/drm/sun4i/sun4i_hdmi_audio.c -- 2.17.1