Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2154794ima; Thu, 25 Oct 2018 10:19:39 -0700 (PDT) X-Google-Smtp-Source: AJdET5daxzYBFOasvapgHoa5HRmL2d9BWE54fLc1UmwBr4PwdG/nExhIdGx5MpyI3BCBAwls7YJ3 X-Received: by 2002:a17:902:930a:: with SMTP id bc10-v6mr91635plb.17.1540487979235; Thu, 25 Oct 2018 10:19:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540487979; cv=none; d=google.com; s=arc-20160816; b=MgLzHM2SMOCTY7wySsLTxHZJbJp1ODVPLJ21wRF62brGGW330q5sY1J+ovZLvyYvWK qPrjbfegbEFnoaFKtEAfAzXQLu/luDS1JIDsSG+Loi9c4/q5sJjcU7y+KE7pFOzP/q6Y WHQGhr70Rgt5fnWq8AauY3/NU+Hw/hKaMwJgIIP3tYhPFyNu3UZFzt2CAC7qkpKDsHw9 woHxERN0DSWQ8oKreNSBhc6OC5z5SXXJ8jZbE6Ex74unG7FQ9YDDiQ98PuWx/+13ukIe FWVfQJ8p7KliatZG0EKy75mx+rhgmtI2SXhMjYqhIAkw47dsbE/AL+FYyDCMlRF2bZ2/ exCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Aq+9ZbCS0gMvoTxw1ySnPSxot32FKp9r30wjIYrqhYI=; b=m/XXP9w8NyWy3fmaWClIdqeeg0ra3nHjcfxUQPJTuCEB2eRMC+62DtTa43Lok88s4L GBmpYUWievOSohnWrqokrTrf8GjL+LbEiUDHu9oFmNBhSGJmHEwnMkqhUffCy927/sfZ 0YA9E+TGT5ZStWGXlz6dqoi8snRLqDChyKZLLTon/tADkqDRNlEPXXqyy05vudSYI0d6 v4BBnMWdfq+z5VTKbD9fkVkD1U8Q1S5kx5RTA8YJGw5MGDFMiYJTQmUUl0q6Wg2PLVXE oAhdrFZmfHGKqnRm7WdUgbiAOHcyzORyUiVWO5XyHW3kYD9umnKSgID0zThxNgLJs4mq l95A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z2aHGGMp; 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 v124-v6si8181755pfv.1.2018.10.25.10.19.22; Thu, 25 Oct 2018 10:19:39 -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=Z2aHGGMp; 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 S1727828AbeJZBwl (ORCPT + 99 others); Thu, 25 Oct 2018 21:52:41 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:39463 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727401AbeJZBwl (ORCPT ); Thu, 25 Oct 2018 21:52:41 -0400 Received: by mail-ed1-f66.google.com with SMTP id e5-v6so9212221eds.6 for ; Thu, 25 Oct 2018 10:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Aq+9ZbCS0gMvoTxw1ySnPSxot32FKp9r30wjIYrqhYI=; b=Z2aHGGMporiwu7F43YeagQi4RBstNzAo+Y1vf0Rn9h5zUYXnvz7qGSFVubQX/rwiLH OyMO0e/ywOPq478Es3ngrBm6W452zuYteUl3THEVUY1hBqtVZwXqkro6ul9PrII3ZTcX pmSwiGQgorwrbWNH/VNdyw13ufbra94ZznYFA1ckVzQOlpY9aoxLuvFpDK1UZFAO1SY6 3c1D/bGP8mlu0wf9P+DltM1xQ+pV7hZ6+nhoAdue0S/CSnebe53js2oY1lJwbsM7Dg88 cI1EsA8jnTCpLn4gxtAXr6tlquOlFavAVwc0MWurpyRo1qiWjrUQnz4gzJezup/EPVW4 4h+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Aq+9ZbCS0gMvoTxw1ySnPSxot32FKp9r30wjIYrqhYI=; b=Lhf1+RGi65XtH3cE1qsL1XlHh5DKWt5PlSSJGwG6YIguh5OqrUlqUc2ekoPpFV6DRI DpdTBsBEjBkb4IYKx0NzRtxeXQF0iwXO+J9/Oy9Sph/4gSMekGISk8uqXc6uSg+McuKs vYEQZYq6JcG0JDHMRiue5k0fyhFGIh3ATy4Zd1rM6T7P9Xi6UxB/KExbUlihxT1HJOjD P5TqXf0PioX11QT2IKITLyvwwS2nHGX62c+ImysqfGOIzU6C9WnEWFIQzcqa1i0Q19Jb Pws67zZf6bJD3/QjreoY7ijWFO58YhGjwt+EbEKnwDG44pAdm8iSkQ20r7R6PBiYVZR3 HndA== X-Gm-Message-State: AGRZ1gJVxSc0dg6JMY9XvKikayROjUniih6XPcqblbxTM0Sf7V+K0uO9 QvIy1NSuzhK90nFHc2UIzyU= X-Received: by 2002:a50:c31b:: with SMTP id a27-v6mr87470edb.160.1540487938154; Thu, 25 Oct 2018 10:18:58 -0700 (PDT) Received: from [192.168.1.3] (x4e334e22.dyn.telefonica.de. [78.51.78.34]) by smtp.gmail.com with ESMTPSA id c18-v6sm1738972ejz.68.2018.10.25.10.18.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 10:18:57 -0700 (PDT) Subject: Re: [alsa-devel] [PATCH v2] staging: bcm2835-audio: interpolate audio delay To: Takashi Iwai , Mike Brady Cc: stefan.wahren@i2se.com, devel@driverdev.osuosl.org, alsa-devel@alsa-project.org, f.fainelli@gmail.com, eric@anholt.net, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, julia.lawall@lip6.fr, linux-rpi-kernel@lists.infradead.org, nishka.dasgupta_ug18@ashoka.edu.in, linux-arm-kernel@lists.infradead.org References: <20181022191708.GA4659@ubuntu> <046aea96-e0d3-60f4-c61a-c26bb1b5c193@gmail.com> <9884c4f5-2343-e3a4-8d8b-dd2db404ef27@gmail.com> From: Kirill Marinushkin Message-ID: <5bc8295a-1e38-99b5-d54c-72e920600f83@gmail.com> Date: Thu, 25 Oct 2018 19:20:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Takashi, Mike, @Takashi On 10/25/18 09:37, Takashi Iwai wrote: > Well, in the API POV, it's nothing wrong to keep hwptr sticking while > updating only delay value. It implies that the hardware chip doesn't > provide the hwptr update. Thank you for the clarification. Modifying `runtime->delay` from the `pointer` function looked wrong for me. Now I understand the motivation and the use-case. I will be more careful when analyzing the code which doesn't fit my expectations. @Mike I was wrong. You can ignore my comments. Please don't take them personal: it's all about having high-quality code in kernel. Best Regards, Kirill