From patchwork Tue Oct 28 11:26:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qais Yousef X-Patchwork-Id: 5175801 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A5B809F3ED for ; Tue, 28 Oct 2014 11:50:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BD0B120254 for ; Tue, 28 Oct 2014 11:50:39 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 7C8F320211 for ; Tue, 28 Oct 2014 11:50:38 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id B0D4826041D; Tue, 28 Oct 2014 12:50:33 +0100 (CET) Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 945BD260468; Tue, 28 Oct 2014 12:41:49 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id E563026042E; Tue, 28 Oct 2014 12:28:00 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.59.15.196]) by alsa0.perex.cz (Postfix) with ESMTP id 5F11E260430 for ; Tue, 28 Oct 2014 12:27:35 +0100 (CET) Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id A706D518DEE13; Tue, 28 Oct 2014 11:27:31 +0000 (GMT) Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 28 Oct 2014 11:27:33 +0000 Received: from qyousef-linux.le.imgtec.org (192.168.154.94) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 28 Oct 2014 11:27:32 +0000 From: Qais Yousef To: Date: Tue, 28 Oct 2014 11:26:29 +0000 Message-ID: <1414495589-8579-12-git-send-email-qais.yousef@imgtec.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1414495589-8579-1-git-send-email-qais.yousef@imgtec.com> References: <1414495589-8579-1-git-send-email-qais.yousef@imgtec.com> MIME-Version: 1.0 X-Originating-IP: [192.168.154.94] X-Mailman-Approved-At: Tue, 28 Oct 2014 12:41:37 +0100 Cc: Greg Kroah-Hartman , alsa-devel@alsa-project.org, Qais Yousef , Arnd Bergmann Subject: [alsa-devel] [PATCH 11/11] drivers: char: axd: add Kconfig and Makefile X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Now all necessary files are added, allow AXD to be selected through Kconfig and compiled. NOTE: at the moment AXD can only work on MIPS but this restrictions should be lifted in the future as it evolves. Signed-off-by: Qais Yousef Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: --- drivers/char/Kconfig | 2 ++ drivers/char/Makefile | 2 ++ drivers/char/axd/Kconfig | 19 +++++++++++++++++++ drivers/char/axd/Makefile | 20 ++++++++++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 drivers/char/axd/Kconfig create mode 100644 drivers/char/axd/Makefile diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index efefd12a0f7b..7800a72cf771 100644 --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig @@ -602,5 +602,7 @@ config TILE_SROM source "drivers/char/xillybus/Kconfig" +source "drivers/char/axd/Kconfig" + endmenu diff --git a/drivers/char/Makefile b/drivers/char/Makefile index d06cde26031b..6c1769d8abf3 100644 --- a/drivers/char/Makefile +++ b/drivers/char/Makefile @@ -62,3 +62,5 @@ js-rtc-y = rtc.o obj-$(CONFIG_TILE_SROM) += tile-srom.o obj-$(CONFIG_XILLYBUS) += xillybus/ + +obj-$(CONFIG_AXD) += axd/ diff --git a/drivers/char/axd/Kconfig b/drivers/char/axd/Kconfig new file mode 100644 index 000000000000..a1a94b12c04a --- /dev/null +++ b/drivers/char/axd/Kconfig @@ -0,0 +1,19 @@ +config AXD + tristate "AXD Audio Processing IP" + depends on MIPS && COMMON_CLK && CMA + ---help--- + Say Y here if you want to use AXD Audio Processing IP. + +config AXD_DEBUG_DIAG + bool "AXD diagnostics" + depends on AXD + ---help--- + Say Y if you want AXD driver to print some diagnostics after playing + a stream. + +config AXD_DEBUG_VERBOSE + bool "AXD verbose debug" + depends on AXD + ---help--- + Say Y if you want AXD driver to print verbose debug information. + The output is extensive. diff --git a/drivers/char/axd/Makefile b/drivers/char/axd/Makefile new file mode 100644 index 000000000000..3b367721073d --- /dev/null +++ b/drivers/char/axd/Makefile @@ -0,0 +1,20 @@ +obj-$(CONFIG_AXD) := axd.o + +axd-objs = axd_buffers.o \ + axd_cmds.o \ + axd_cmds_codec_internal.o \ + axd_cmds_config.o \ + axd_cmds_decoder_config.o \ + axd_cmds_encoder_config.o \ + axd_cmds_info.o \ + axd_cmds_internal.o \ + axd_cmds_pipes.o \ + axd_hdr.o \ + axd_module.o \ + axd_platform_mips.o \ + axd_sysfs_ctrl.o \ + axd_sysfs_input.o \ + axd_sysfs_output.o + +ccflags-$(CONFIG_AXD_DEBUG_DIAG) += -DDEBUG_DIAG +ccflags-$(CONFIG_AXD_DEBUG_VERBOSE) += -DDEBUG_BUFFERS