From patchwork Thu Aug 8 09:57:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takashi Iwai X-Patchwork-Id: 11083905 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3BC6F13B1 for ; Thu, 8 Aug 2019 10:07:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 273CE28AB8 for ; Thu, 8 Aug 2019 10:07:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1BDC128B0C; Thu, 8 Aug 2019 10:07:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6769228AB8 for ; Thu, 8 Aug 2019 10:07:30 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D01C142; Thu, 8 Aug 2019 11:59:59 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D01C142 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1565258449; bh=PgaJEIcXbo4JUV0mrARuMywokToRU29mC15YQxA5RAg=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=jRDwPwEPBRyi4sbk1fMdrkWFMeyJN6vJ3TAHI6A61STpzvc21lFO61x/W/Tepx+wK fk/rkBaHAJVxxsHgmHwghPdETle2DYVYFn0stmZeC8pob3zrEisY3deFdkB7Ebbqna ubqJ3XvQjXlHuUqXxrqC8iR9AWFidpjRIPxISV5I= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id E4C7DF805F5; Thu, 8 Aug 2019 11:57:31 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0B1D4F800E4; Thu, 8 Aug 2019 11:57:26 +0200 (CEST) Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E1004F803F3 for ; Thu, 8 Aug 2019 11:57:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E1004F803F3 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B0461AF2D; Thu, 8 Aug 2019 09:57:18 +0000 (UTC) From: Takashi Iwai To: alsa-devel@alsa-project.org Date: Thu, 8 Aug 2019 11:57:12 +0200 Message-Id: <20190808095715.29713-1-tiwai@suse.de> X-Mailer: git-send-email 2.16.4 Cc: Cezary Rojewski , Mark Brown , Jie Yang , Pierre-Louis Bossart , Liam Girdwood , Thierry Reding Subject: [alsa-devel] [PATCH 0/3] ALSA: hda: bus cleanup X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi, this is a few patches to simplify and cleanup the HD-audio bus ops. The first two patches translate the indirect calls of DMA page allocation and MMIO accesses with the direct ones, as well as eliminating the whole bus->io_ops. The last one is SOF-specific, and fixes/cleans up by calling the proper hdaudio bus init function, as formerly discussed. Takashi === Takashi Iwai (3): ALSA: hda: Remove page allocation redirection ALSA: hda: Direct MMIO accesses ASoC: SOF: Intel: Initialize hdaudio bus properly include/sound/hdaudio.h | 69 +++++++++++++-------------- include/sound/hdaudio_ext.h | 1 - sound/hda/Kconfig | 3 ++ sound/hda/ext/hdac_ext_bus.c | 60 +----------------------- sound/hda/hdac_bus.c | 36 ++++++++++++-- sound/hda/hdac_controller.c | 18 +++---- sound/hda/hdac_stream.c | 8 ++-- sound/pci/hda/Kconfig | 1 + sound/pci/hda/hda_controller.c | 6 +-- sound/pci/hda/hda_controller.h | 3 +- sound/pci/hda/hda_intel.c | 71 ++-------------------------- sound/pci/hda/hda_tegra.c | 84 +-------------------------------- sound/soc/intel/skylake/skl-messages.c | 15 +----- sound/soc/intel/skylake/skl.c | 7 ++- sound/soc/sof/intel/hda-bus.c | 85 ++++------------------------------ sound/soc/sof/intel/hda-dsp.c | 2 +- sound/soc/sof/intel/hda.c | 6 +-- sound/soc/sof/intel/hda.h | 3 +- 18 files changed, 107 insertions(+), 371 deletions(-) Reviewed-by: Pierre-Louis Bossart