Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4299659imm; Mon, 14 May 2018 05:43:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq4X8f/6SV7noRMiAXj+c6o5FP6dA3HPjKLvZWcKQH2f7nrTaYINPtJhV1Gi18FMUWzz9dV X-Received: by 2002:a63:6dc6:: with SMTP id i189-v6mr8443629pgc.202.1526301786993; Mon, 14 May 2018 05:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526301786; cv=none; d=google.com; s=arc-20160816; b=f9N6DjVcwpHy8Gbpqpj7Ntv9H2HghzJ4Z/4DfjRyJMe25wjvJ+evU4oWYLzkbEntGq 16woMgbvxLkJLOd8BmMOnUAD8oXr5Fed/YBCyS5LIetTOfM9FE1kqOAB6AW+84k2UmO/ /C03yd/h+xKoel+0DyepeXpypwQE0RhhTj06jpTQ/6ZKWx0lv+vvOSnu3tYAcXlGYN8k sDMOxT6tOmM8LZe7DTmv94v6KeA0mrLNZjmaz53wUXW/Gog6f72DjkRpi2RJWNm8FHis t7neYJt+AMe9no08/inCAeJe/89Zv0Umkp2qxMQojl6aoEFftB/BWdgvD/ExLTS5noWZ RqXw== 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:to:subject :message-id:date:from:mime-version:dkim-signature :arc-authentication-results; bh=/TLwxdI2v+lUwVSqEpjcXBEjmPahiMLpSMT5wI7VNvQ=; b=a3Qp5n3ZJS9TZXRJ93Gn+gOM2hw3uTaTPTWUoH/MCv//L2cCaJ0hvQlIXJDA2FUJJd AQrBvg8aaBSh3r1CrMXoXbrrcjdKzi3dCkXczw/PEZupPg8LgZlq1VmiMFKti2KJrlTw Z3Rw8HEIM7Uj31FX/EGxIdGkGjZVYASSs2+UHHL7kcSl+VWW45FXVofO9lTZeqeTz60W uSQHVDgSkOFEzTKj8OWlcYYfWP8qKNxGerY/AV/0rz8pAYbxDv1xsZwtawe3m1rve/4J TLVqxzIndEdSvfHFZl7m1RuoC9CZYZDtygxlEMfMU6AVyayJkmYwbOzJ3GgBUr/K8KFl vcfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mPmMKQ77; 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 h68-v6si9922469pfa.238.2018.05.14.05.42.50; Mon, 14 May 2018 05:43:06 -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=mPmMKQ77; 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 S1753365AbeENMlq (ORCPT + 99 others); Mon, 14 May 2018 08:41:46 -0400 Received: from mail-ot0-f194.google.com ([74.125.82.194]:36116 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752776AbeENMlm (ORCPT ); Mon, 14 May 2018 08:41:42 -0400 Received: by mail-ot0-f194.google.com with SMTP id m11-v6so14063069otf.3; Mon, 14 May 2018 05:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=/TLwxdI2v+lUwVSqEpjcXBEjmPahiMLpSMT5wI7VNvQ=; b=mPmMKQ77eeiSX8Gsgzz0nOnHFZWYPZy9I73992hu3MXapu8rA1AjWpWte45eTVcEY6 /WPymISu6mMC8H3QisIW2O8iL55Q/Giga8pwF4I1TBe2FsrSVAhzn655D98fvkqrYmeG 7CEnGSvwusywf67XmifAcg0EBpH9vR6XR0E2dr96BhQQIjwTuuJ2gUb/rwnGxmfVUkjq rIW01jozbXroh7Mb1vlj8GXNbP4aMFxJp53jAd1X+GtSMAJxUk7tc4Q1jINjSC0+BDvV ukN97YCLebGYVr3oI1eZYLm9aorLXxnSPYEkeNDpuH/EdsO1+sUfuSMv/BiHouH7rQMl ZCYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=/TLwxdI2v+lUwVSqEpjcXBEjmPahiMLpSMT5wI7VNvQ=; b=ARxlqcJcHc+5XS0lAcEbi6WxC7ShlKDUENT+qmx4bUbT7Zs+Z2oGhBF2p852FStgHh xHceJL5yqOOHnUEDVzTgDvzay3Yb0EOZHt0bA1HTTfiFeDkCDK45f3WYX2ireL9+KXvi +l2sGhJzIP/9DTEMVk9R0MaLhYjR4B1gPgGNBfrCvjFNTa1phqNekzhtSuJ11zdNiYA5 qqytAUKfna2wnMt8ZCCg89dGqxH1N06oc73jJc+Y+g/SX9nuGkIFBC6dOTYZr8hKOKib sug2dJvjbrGYqY1mU8cREhJTfjOw7QMquCL3M5+pWkxC7vKHIDt3h78ksWYr2/VjO8HR xp6Q== X-Gm-Message-State: ALKqPweObA7r3oBaitgmRK5Tx123xhGtPOpmlMLs56cjgZs9QpIOTdgL oXnx6CQQOCXQm5JEzaZq6DzI97cIF9KRzanMnJ3ygQ== X-Received: by 2002:a9d:4494:: with SMTP id v20-v6mr6775689ote.278.1526301702194; Mon, 14 May 2018 05:41:42 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:118b:0:0:0:0:0 with HTTP; Mon, 14 May 2018 05:41:41 -0700 (PDT) From: Muni Sekhar Date: Mon, 14 May 2018 18:11:41 +0530 Message-ID: Subject: sound: aplay\arecord audio frame flow To: alsa-devel , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Please keep me in CC as I'm not subscribed to the list] Hi All, Is there anyway in the kernel sound subsystem to know when the application calls =E2=80=98aplay=E2=80=99 and anything starts playing? Also for arecord\aplay, Is there any way from kernel's point of view to know when it receives for example the first and last audio frames? --=20 Thanks, Sekhar