Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3321673imu; Sun, 11 Nov 2018 12:19:43 -0800 (PST) X-Google-Smtp-Source: AJdET5f1VHDG4x4Ae8QRQ6QjMeQt4/s8e7/NdTfc2ryOFfsImScwYSdzWjtG9ZYT5psG+xKWaL25 X-Received: by 2002:a17:902:50e3:: with SMTP id c32-v6mr17176895plj.39.1541967583386; Sun, 11 Nov 2018 12:19:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541967583; cv=none; d=google.com; s=arc-20160816; b=hnmKEUFgHzt2eUo6DyDBvm51JOQPpaOxKnf6Olc5cLA1IOXkZevtw9gkZ4JcxlebfL UqO6zhAgjhHoM8QqW5HRmxoLn3lBUjiAnmamS/c5eQTeYla1RgJpvdPmvorOn7r5dWRk o3C5+jtxqi9fhXnG35Zf9+vvHMxKyIWffG4P9CVO3PpivNU95xpfTRDTr1dFlfiZVX7n YLmZTKPLdaHE5dU5pY8nNi5u8WZ6+atpPahPrO2bMpmcrXe6Xl3jm0voWYNCAFMKFE4T xFBofkpx7LqJgiItOZZz8qmsm3SHw7JcCW4KgFDPOA5eMkTuvDPcH0OmTVKPKrAxqCHl RiDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:importance:content-transfer-encoding :mime-version:subject:references:in-reply-to:message-id:cc:to:from :date; bh=wXlKIFSJ+lAPXwbNi1TpfygvKI5yK5pcRh4vVXlWXGg=; b=dspspT584Klzf3YmVMDY6L3WHRfiOAoR8w99di2dBgANRRcyYqS05xNvUVGNVBc+cf Z6yq57BWv4YiDCUgDau+eQVzFBuBW3K52iVSK824FTVogBNjUy8DsHtHT/5Hu2QCHWNW qfB4kVc3qq5qtTC4Q1QZzsTs9Oxz4hln8ZWv5yjCnbXcKwXcgsnRBloA1lJqinlJdSvb +LHCVH2BDJlMteOw5k/s+1H129FmVxR1H3bUUig3PMzD/YQ6Xngvo3dUxmvnWL5Pabm+ +qNa8aFdpWuEaQTuZtoljXn/x7YMzSI/DyRpBuJOuyBu4djjz7ZXKoE6RnK8qpRwB+54 NQYg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a185si13575061pge.404.2018.11.11.12.19.28; Sun, 11 Nov 2018 12:19:43 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731142AbeKLGIN (ORCPT + 99 others); Mon, 12 Nov 2018 01:08:13 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:53429 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726652AbeKLGIN (ORCPT ); Mon, 12 Nov 2018 01:08:13 -0500 Received: from null ([172.19.246.153]) by mrelayeu.kundenserver.de (mreue009 [213.165.67.97]) with ESMTPSA (Nemesis) id 1McpW6-1fn9KX3ZXG-00a0y5; Sun, 11 Nov 2018 21:18:15 +0100 Date: Sun, 11 Nov 2018 21:18:12 +0100 (CET) From: Stefan Wahren To: Mike Brady , tiwai@suse.de Cc: devel@driverdev.osuosl.org, alsa-devel@alsa-project.org, f.fainelli@gmail.com, Eric Anholt , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, julia.lawall@lip6.fr, linux-rpi-kernel@lists.infradead.org, nishka.dasgupta_ug18@ashoka.edu.in, Kirill Marinushkin , linux-arm-kernel@lists.infradead.org Message-ID: <1197390391.186035.1541967492518@email.ionos.de> In-Reply-To: References: Subject: Re: [PATCH v2] ARM: staging: bcm2835-audio: interpolate audio delay MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev39 X-Originating-Client: open-xchange-appsuite X-Provags-ID: V03:K1:2WhD7UsCKuCLCUAgyaumxBCtesA74bOMmvZUYXQTG4kZ+6W628c raR3YKIY92DBdXJ72bk7ir3/oRGXWKmfGZxIsAeaYHzskU55ULI78MXvc7vgFLV922tvAIR XV4z2fLiW0gGUOYKMuX0MGpBFzXC5FwMx7yH67YwdiSb9kxXm3HNw6HAHqEIViy5YLs8XNi OhwB8sihnNffvZPeu0gJg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:9jkkUeVqVL8=:3kd9QtbNnQjjjuSc8Co7Qp IJdrMKBnLeVMr0/t27PbMcGGuQc8DoP4hS4TtIN3jbHWlk7M818vgGfyVWXb2wkhich5/4kBB /02G1aViogKOYCFU2CT15hmAInU6lji9Y9auae/nok7BVpTGlciv1d+6uEQUCEG92Z8cUbW9U wh2chZirQUa/AeD+cVsvLX+XIqiHrhLNv3zuTYYyzMTPiuscK/7UR2eRNX7aCJ8//GuJApWy5 Auuzwknjek9MpoMQjM+rEjDP3OqHI85TY0h32/EAqPoNaSLwtynTNQ+RG2v6t4WfmX3tUniFZ SZ4pWmIgK0J/YEYOxr1kDFSyCe+lEc16G8F6xwwqvVUQE65S2vuMr/nNK3Hdt9wpIAj2VxBnG EPOtyvbbEvpobncopYiE0G7+oyKwJiQLj9rOLht7O3yR3zVogo5JUrLWkT5qvxW3Q5rZMKcM/ APghJpS2OFWoxKys+BWCUv6e4GiBjOMldd3NxHNILWz9A9D5DOSvPl4V+b+R9DbsEZeUziB3N yVe7ojQCuR6t4PD+P3AO4OwfQCDNtW96ZclGVmVlgBzCGP/aiIU0q2se3iY8ly+ctDBqntr1n DRi5AJr31GjtZ6Ol53uyGx5P3vzRlr/4vyXndwMMCFeNz+M4kq7ZywETwD709PqY7LJ49iQZ+ avD1XLSazN7VQyXSCm+Kdrtpa7eQ9B8QGUhgRGoqeI/GXAWfz9T4qbYeXmOi71wHhB3YGWvoy PYX9xY5k76hYuzRMNsi/FN+aUOTanBXZZFTZAH8U3o8ICOpBUHbYulzNwDV5AKFv7fuIJwVgm YhldNYeDZ0escm/NAzEeF/XB0mfX8OgQg/u34QqSI35SYMlKkQ= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mike, > Mike Brady hat am 11. November 2018 um 19:21 geschrieben: > > > When the BCM2835 audio output is used, userspace sees a jitter up to 10ms > in the audio position, aka "delay" -- the number of frames that must > be output before a new frame would be played. > Make this a bit nicer for userspace by interpolating the position > using the CPU clock. > The overhead is small -- an extra ktime_get() every time a GPU message > is sent -- and another call and a few calculations whenever the delay > is sought from userland. > At 48,000 frames per second, i.e. approximately 20 microseconds per > frame, it would take a clock inaccuracy of > 20 microseconds in 10 milliseconds -- 2,000 parts per million -- > to result in an inaccurate estimate, whereas > crystal- or resonator-based clocks typically have an > inaccuracy of 10s to 100s of parts per million. > > Signed-off-by: Mike Brady the former version of your patch has already been applied to staging-next. Didn't you received Greg's email? So please rebase your changes. Stefan