Received: by 10.192.165.156 with SMTP id m28csp2134947imm; Thu, 12 Apr 2018 09:08:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx49I4ze1ciMv/YRupw+ptjp/LzTW4egu7FRo5WykxepChEojSdWeMhizcNNNuFX/PpclMdUe X-Received: by 2002:a17:902:6786:: with SMTP id g6-v6mr1669841plk.362.1523549293322; Thu, 12 Apr 2018 09:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523549293; cv=none; d=google.com; s=arc-20160816; b=0aOlIt7eKDcApJEoh7b8cJU/EJ/46n0X3x8fl/iiYidKQAxKf/DPVD/Bm8JCx1ag1+ soB2grPoZ4Ixntr2qqM4sn03dmtKcf2jvxG5jdjfEjDg4l5lvlxnD93AfHLKXu8inJea 0amqtiqE3KIzdnLzxYeuCEsX0h72LYgCKQYChp3rH4+NwC08GVP2nPI8QHs7FpbrUmq9 yz1+qugzYCTMoas+wzpgh2MhH7Oy3gSpeSbzZKdx99LZToHn1Oa5ZoS2P0/xZ20keQ3H mz1QeCled7pSCZQGHglcZIIZyz1E/xRqbaHQ/WhxbsU522eORzRakggbPrVqhLNp/TGf resg== 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 :dkim-signature:arc-authentication-results; bh=NfjcGxz96nmCYDxFggHgjwgd2ymtN6iSqlR+WmSB41I=; b=TWqwieCUApBbsoC9P+UY69Fj4PKx8D7Eh1xnyf6kLwJgTwcXpWn532OdmMkVZWqmHh aMJWI1KrhZbWpWakMuiOWUyKLDx5Sj9FHvbJIoSiuPTW34razBN9TA2ixJ1p2nW7lVfT bAzNGplgd1xFeR1PgiD6asv9P+BJkQO/bQLr4mrP4/O+9cbCjDtdsMsji3fPig58fnvf Ry0XJJXaH2JRAj325E3Mtm4zOo42Nauo8LVWSb3uaCzZSIpy2fTxuaod0dO+Tht5FKqb rnFE+Ci34aMUSXdeDofYYJhcQCmmTvjuCHRztm7piXmvDChSqK8jDGPv0OykkHVK7P3M oncQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iZJOwLiO; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2si2747428pfk.291.2018.04.12.09.07.35; Thu, 12 Apr 2018 09:08:13 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iZJOwLiO; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752558AbeDLQBZ (ORCPT + 99 others); Thu, 12 Apr 2018 12:01:25 -0400 Received: from mail-lf0-f52.google.com ([209.85.215.52]:36425 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751870AbeDLQBY (ORCPT ); Thu, 12 Apr 2018 12:01:24 -0400 Received: by mail-lf0-f52.google.com with SMTP id d20-v6so8466877lfe.3 for ; Thu, 12 Apr 2018 09:01:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=NfjcGxz96nmCYDxFggHgjwgd2ymtN6iSqlR+WmSB41I=; b=iZJOwLiOXwfofES17ht7hWfqIr0ZPJaPlIzpSv2RxizU2DLa7iFk+l7GyQyTsTKRGS S6YAvqbO1AuJtiWYXkLfIwjER4odi9tXFcizRp1nrrd7LrM0202st2IjEtBdFl+pDFuM /sLlAl5tYLt3WQs05uoTdtU5Uvwy38Ptuzq66IcjOKRuC+QmzLbq5S3z5cR1MBWs13Lv VCrxuOI/uVhpF1x6gmXmk8/AbGpro9D5IcHr8Hkwu7+VA775YMFMI4GuHD6CSdZ9/f87 JZemXZVwyKjynDOn78xnnghOE5ZT7gSfjAjukrnum2sFqf0cepJgbarjWd1iJ6JEH82D AOOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=NfjcGxz96nmCYDxFggHgjwgd2ymtN6iSqlR+WmSB41I=; b=BrZZQk/5pilebCBXKni4ufxsVDePXWTCghS72mlqki89eeEIahjsbprBVKXW59Lyjf DZh6ns72+/BJfKFP3m/04JHsTO7ICdO5nkVrRz/BxVRy8OnuRsrczRL+57Feq/Iu053m ex/80MoXHNEEAIG2pJa2Ubv4xBOXIK7yJT6x3pgYozaBLuwNj7NpA2EAd9CcV1L4QM+Y SS4vvUa/jR2nND1Uebjn6JYPNu9tW3Src7LXXlWrm1bM/2YJfSkpQh2VB5kFwjtat96Z X0vJ7Ta8cIXxiZluawJRxiBARk3C1thxFVSIfIFb1xPQwqfVSnCorqKHkPerVusCsued ki3Q== X-Gm-Message-State: ALQs6tBbNXnep/ZCKsRLMAYHhHPj3cHtZTgmTPM86y8M98ekwELy780H zW7km+90IP5UhyZH6z4id30= X-Received: by 10.46.136.77 with SMTP id z13mr1036883ljj.126.1523548882529; Thu, 12 Apr 2018 09:01:22 -0700 (PDT) Received: from localhost.localdomain (207-17-94-178.pool.ukrtel.net. [178.94.17.207]) by smtp.gmail.com with ESMTPSA id m11sm644541ljh.37.2018.04.12.09.01.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Apr 2018 09:01:21 -0700 (PDT) From: Oleksandr Andrushchenko X-Google-Original-From: Oleksandr Andrushchenko To: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Cc: boris.ostrovsky@oracle.com, jgross@suse.com, iurii.konovalenko@globallogic.com, oleksandr.dmytryshyn@globallogic.com, konrad.wilk@oracle.com, tiwai@suse.de, andr2000@gmail.com Subject: [PATCH 0/5] for-linux/sndif: add explicit back and front synchronization Date: Thu, 12 Apr 2018 19:00:57 +0300 Message-Id: <20180412160102.15833-1-oleksandr_andrushchenko@epam.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, all! This is the syncup version of the sound protocol changes for Linux Kernel with the only difference from the corresponding Xen version being spaces to tabs conversion. Regradless of this only change I have dropped R-b tags received for Xen version. In order to provide explicit synchronization between backend and frontend the following changes are introduced in the protocol: - bump protocol version to 2 - add new ring buffer for sending asynchronous events from backend to frontend to report number of bytes played by the frontend (XENSND_EVT_CUR_POS) - introduce trigger events for playback control: start/stop/pause/resume - add "req-" prefix to event-channel and ring-ref to unify naming of the Xen event channels for requests and events - add XENSND_OP_HW_PARAM_QUERY request to read/update stream configuration space: request passes desired intervals/formats for the stream parameters and the response returns allowed intervals and formats mask that can be used. - MAJOR: changed req/resp/evt packet sizes from 32 to 64 octets - Reworked XENSND_OP_HW_PARAM_QUERY so it now sends all parameters at once, allowing to check all the configuration space. - Minor documentation cleanup (added missed "reserved" fields) Oleksandr Andrushchenko (5): xen/sndif: Introduce protocol version xen/sndif: Fix missed "reserved" fields in comments xen/sndif: Make requests and responses 64 octets long xen/sndif: Add explicit back and front synchronization xen/sndif: Add explicit back and front parameter negotiation include/xen/interface/io/sndif.h | 322 +++++++++++++++++++++++++++++-- 1 file changed, 306 insertions(+), 16 deletions(-) -- 2.17.0