From patchwork Thu Apr 26 13:19:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 141603 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2314347lji; Thu, 26 Apr 2018 06:15:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqFaeSW4hNCRRNiddCFbmjGqbrmgVSP06X28KndMeir4iECM1I3Pdg8X46AmO0HaIAsJyK2 X-Received: by 10.12.128.231 with SMTP id 94mr12199055qvb.28.1524748541432; Thu, 26 Apr 2018 06:15:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524748541; cv=none; d=google.com; s=arc-20160816; b=gLBLdUgeoki2k8O8jMnwZpGzfR21wYH0vHj2aqZO0iY9OwStZcrysi3vdakxanL1mY 7/qGMY96i3cA7Ld6RHI2Ntn/xf2jr0jPwi9dvCqb4xgypVGuiGDGlXMc23MHqA6Wiowe IvGVoUo/QJjY/SAb6TjNzxKkTSYelrX4mhJffPGeyl0LjA7oLpOQOtf/Ypdi93JbGBTH MuuR0pWZ98tJ3t34G0C7PgWJrtUOg3niHy45vRbw3eldEeK8g10N2zNG12bwmw8lJ5V6 RMnAM8xivPENSrn0yrHoPMKiCgv12gsB057CuUgwgu8zHB+MOJm4yDX98Yyfgg/aqBVS VGLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from:delivered-to :arc-authentication-results; bh=Nnq/YWv4ceskij+uGVJGALXYWiSGTs3GK568YMjJXjs=; b=XWJMB8KuycYFRoPzy0Jsa/zPToff4ByLoc/fUGLLeUQ2lyQ5KrQj+dlzjnbOLW79y6 KCP5bse5+lK0Vy2cDzRdR5VFz/A5gZ6Ym1PnsJ7QZNAMiEhUznB4d4E/N25ZT0Yd/HiS UDVajJ7oGsPr4Lq6Qoxbn+1M600Pe0Hdw9957DHiuQSFdm2so5g/9tKaV3s8sZ5BLBzw mro7q4fOcJKmtTq1HGs/dPuVwdirxMkvtAF7TTayTUrUF+GQj5amcMb6EZYMR0OB8pc3 /zrp2VZovYz6KMcHfWWQWqdaW7u+OwaxfIxknJAWjrKBmJ/Tvn0ZZpW89LZzDAKjpd/w CvqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id j10-v6si15392230wri.123.2018.04.26.06.15.41; Thu, 26 Apr 2018 06:15:41 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 4CF8F2677F1; Thu, 26 Apr 2018 15:15:39 +0200 (CEST) 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 B69172677F6; Thu, 26 Apr 2018 15:15:36 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=RCVD_IN_DNSWL_MED autolearn=disabled version=3.4.0 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by alsa0.perex.cz (Postfix) with ESMTP id 1819226779A for ; Thu, 26 Apr 2018 15:15:33 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Apr 2018 06:15:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,330,1520924400"; d="scan'208";a="51009803" Received: from vkoul-udesk7.iind.intel.com ([10.223.84.143]) by orsmga001.jf.intel.com with ESMTP; 26 Apr 2018 06:15:26 -0700 From: Vinod Koul To: Greg KH Date: Thu, 26 Apr 2018 18:49:56 +0530 Message-Id: <1524748809-21860-1-git-send-email-vkoul@kernel.org> X-Mailer: git-send-email 2.7.4 Cc: ALSA , tiwai@suse.de, Pierre-Louis Bossart , liam.r.girdwood@linux.intel.com, patches.audio@intel.com, Vinod Koul , broonie@kernel.org Subject: [alsa-devel] [PATCH v6 00/13] soundwire: Add stream support 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org This series adds support in SoundWire subsystem for: - Documentation for stream support - stream management - data port management - DAI ops in cadence and Intel drivers - ASoC API to propagate SDW stream Updates in v6: - Fix return error as pointed by Sanyog - Update stream state enum documentation as pointed by Pierre and few other nits Updated in v5: - Add todo for device-device changes in future and some comment updates based on feedback from Pierre Updates in v4: - Add more comments for sdw_release_master_stream() - Make sure ports are freed upon sdw_stream_remove_slave() - Clarify snd_soc_dai_set_sdw_stream() and setting of NULL upon release. Updates in v3: - Remove stream state transition checks and redefine stream states - Update bansk switch routines - Other nitpicks pointed out by Pierre. Updates in v2: - Make ASoC API inlined - Make stream states as states and not action - Update the direction enum - Fix some typos and comment updates *** SUBJECT HERE *** *** BLURB HERE *** Sanyog Kale (7): Documentation: soundwire: Add more documentation soundwire: Add support for SoundWire stream management soundwire: Add support for port management soundwire: Add Master and Slave port programming soundwire: Add helpers for ports operations soundwire: Add bank switch routine soundwire: Add stream configuration APIs Shreyas NC (2): ASoC: Add SoundWire stream programming interface soundwire: Remove cdns_master_ops Vinod Koul (4): soundwire: cdns: Add port routines soundwire: cdns: Add stream routines soundwire: intel: Add stream initialization soundwire: intel: Add audio DAI ops .../driver-api/soundwire/error_handling.rst | 65 + Documentation/driver-api/soundwire/index.rst | 3 + Documentation/driver-api/soundwire/locking.rst | 106 ++ Documentation/driver-api/soundwire/stream.rst | 372 +++++ drivers/soundwire/Kconfig | 2 +- drivers/soundwire/Makefile | 2 +- drivers/soundwire/bus.c | 43 + drivers/soundwire/bus.h | 72 + drivers/soundwire/cadence_master.c | 451 +++++- drivers/soundwire/cadence_master.h | 151 ++ drivers/soundwire/intel.c | 525 ++++++- drivers/soundwire/intel.h | 4 + drivers/soundwire/intel_init.c | 3 + drivers/soundwire/stream.c | 1479 ++++++++++++++++++++ include/linux/soundwire/sdw.h | 332 ++++- include/linux/soundwire/sdw_intel.h | 14 + include/sound/soc-dai.h | 23 + 17 files changed, 3633 insertions(+), 14 deletions(-) create mode 100644 Documentation/driver-api/soundwire/error_handling.rst create mode 100644 Documentation/driver-api/soundwire/locking.rst create mode 100644 Documentation/driver-api/soundwire/stream.rst create mode 100644 drivers/soundwire/stream.c -- 2.7.4 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel Reviewed-by: Pierre-Louis Bossart