Received: by 10.192.165.156 with SMTP id m28csp2346610imm; Thu, 12 Apr 2018 12:44:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx48dtaAVGKHbJuehmpoJOklIsk5F21rXvDE3Lji2QfiI83zlEwyGHA+Zs0cDvOABefAnGHIL X-Received: by 10.99.156.17 with SMTP id f17mr1706285pge.102.1523562247164; Thu, 12 Apr 2018 12:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523562247; cv=none; d=google.com; s=arc-20160816; b=ayimUGObQnat/VuAZ5E2MY4yjKeLUfX4CHxg/H0Dxw6rL+dABXTFGVt6ZWAyzRBcOH EPKHPGmPn5fBl6r6UB2BuMehNmAGjSEbVzyOO9MlGaITTNnl4d4zVREZAYT01PhCOWyi y3mJE9VXYWK0Vl/IV+fERO1sWyzu21JJtmEv1IPtinBi/F8IGS26hL3oJxNjK8tp/3C1 FSyWzB//PYXPsYzphx/hQ9ExQTXeHS47L45pxkdOKmkDqgSKLBy7WPWQIQWDmBBjFmBL 4XPJj3NOtG7ni2ztRTeXk1ycdvnUdTXKnky+EORTkDmYtcxGY5f8YP1qnLBR8i14oXrV L9tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=L12btQ4G84zFJ/9/I6Y3MnQd8F5ONrjrDeIxUSnkmi8=; b=Lo0ZwUJcWcdoJzijyGFM1rYh0N4EZwusdjILh8yGoMjySrelJCuREKaWqvZoEhMyfp NNKaToeGshbkuZbIx3NUkAD6ZjvoRfeu0ACcoDHRcWW5agg097PAYHggOgnpkAnWsPwM YQ8MEtClrd7WrV2kKNudQfYA3cgsMCk/GqfkvNQxZA/Xc3McvVvkEGQB//2v+sVQH2gO TJTwkvZba1xuE6bsd4CFICwVsq5s+iXGYBTD8oYFErRh2EMG/ALQxLzDJSUupRva+1tb Ni5+ghq6q4AqUVms5Bimo9o3005FZ3RocfXqg/mbuj4gv1Shygqvse3DQ3bJOuFx/sfG XE1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=DkmjDC9h; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h9si1383315pgq.464.2018.04.12.12.43.53; Thu, 12 Apr 2018 12:44:07 -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=@oracle.com header.s=corp-2017-10-26 header.b=DkmjDC9h; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753220AbeDLSbO (ORCPT + 99 others); Thu, 12 Apr 2018 14:31:14 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:40864 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752962AbeDLSbN (ORCPT ); Thu, 12 Apr 2018 14:31:13 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3CIPjkf011559; Thu, 12 Apr 2018 18:30:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=L12btQ4G84zFJ/9/I6Y3MnQd8F5ONrjrDeIxUSnkmi8=; b=DkmjDC9h6QNHa4jMex3e3i40yJxHoU7hNiDfsVJ65fRF6RWJQQqoetxrsPfbKNtnIsyx yja2IUS6lWXkR2+99U6mjWgHYzx1kzBBWeMo+3bcKkpuMnE3coUgKc1qsvmjuJo96XXw PyVrSuzTSTxxyuJUqZIYE6XbfW5v2s/UEchcFPzlBhY5LRYMsirtzJZjO9ImLuBJ6g7T 9XAolD6m71viruFHEdB7Ttnb12EneljoXYxToIqwOsO92YjesJPTExZvQXfQ7HNXHA6o W1fTvpxvl5dL+TalxEvMW5cdehfHbVWyn1KN9wo+6Wwzu++ylMfxHtb/y2iUJh5JzTzt GQ== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2120.oracle.com with ESMTP id 2h6ny3ngfx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Apr 2018 18:30:57 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w3CIUvdp021787 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Apr 2018 18:30:57 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w3CIUr34007756; Thu, 12 Apr 2018 18:30:54 GMT Received: from char.us.oracle.com (/10.137.176.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 12 Apr 2018 11:30:53 -0700 Received: by char.us.oracle.com (Postfix, from userid 1000) id 722616A00AE; Thu, 12 Apr 2018 14:30:52 -0400 (EDT) Date: Thu, 12 Apr 2018 14:30:52 -0400 From: Konrad Rzeszutek Wilk To: Boris Ostrovsky Cc: Oleksandr Andrushchenko , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, jgross@suse.com, iurii.konovalenko@globallogic.com, tiwai@suse.de, Oleksandr Grytsov Subject: Re: [PATCH RESEND] xen/sndif: Sync up with the canonical definition in Xen Message-ID: <20180412183052.GS350@char.us.oracle.com> References: <20180412172627.18065-1-oleksandr_andrushchenko@epam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8861 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804120180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 12, 2018 at 01:46:33PM -0400, Boris Ostrovsky wrote: > On 04/12/2018 01:26 PM, Oleksandr Andrushchenko wrote: > > This is the sync up with the canonical definition of the sound > > protocol in Xen: > > > > 1. Protocol version was referenced in the protocol description, > > but missed its definition. Fixed by adding a constant > > for current protocol version. > > > > 2. Some of the request descriptions have "reserved" fields > > missed: fixed by adding corresponding entries. > > > > 3. Extend the size of the requests and responses to 64 octets. > > Bump protocol version to 2. > > > > 4. Add explicit back and front synchronization > > In order to provide explicit synchronization between backend and > > frontend the following changes are introduced in the protocol: > > - 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 > > > > 5. Add explicit back and front parameter negotiation > > In order to provide explicit stream parameter negotiation between > > backend and frontend the following changes are introduced in the protocol: > > add XENSND_OP_HW_PARAM_QUERY request to read/update > > configuration space for the parameters given: request passes > > desired parameter's intervals/masks and the response to this request > > returns allowed min/max intervals/masks to be used. > > > > Signed-off-by: Oleksandr Andrushchenko > > Signed-off-by: Oleksandr Grytsov > > Cc: Konrad Rzeszutek Wilk > > Cc: Takashi Iwai > > --- > > Reviewed-by: Boris Ostrovsky > Reviewed-by: Konrad Rzeszutek Wilk Thank you!