From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADC34C07E96 for ; Thu, 8 Jul 2021 16:16:29 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3A51061407 for ; Thu, 8 Jul 2021 16:16:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A51061407 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2E09B823; Thu, 8 Jul 2021 18:15:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2E09B823 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1625760986; bh=5/+ZEj9pRkH/s1rcjwsVp9t3i31Y2rlXtooNdVw7RQ4=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=PML0sFqLJpCStAhkj9MXKAFvtXpAMUai2McMSIeUqMmIWnEZUVVOUx1ME88FCjcTb oQweXRCDrbYgNCwBGEL7kNPzE3wtzY5Vdpef9fbcLw0cJKwmoaYFEG8uhmW/KvBnHw u/kvD9FAuwKflolwB8292+Y9AXFZT7Lym0SCzhAI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 9A376F80246; Thu, 8 Jul 2021 18:15:15 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 446A9F80249; Thu, 8 Jul 2021 18:15:14 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 2E974F8012F for ; Thu, 8 Jul 2021 18:15:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2E974F8012F Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="MaszoWxm"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="T7XvFHyz" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id A02FE1FD6A; Thu, 8 Jul 2021 16:15:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1625760901; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XR/L0+CaPtFdS7++i50EDeO2Jek5OnInkrK8zzhkHKQ=; b=MaszoWxmJZiJlYWdHKQ3dqe/VWEIfs6fxVW9SDlAtTr5r7RlGFigfb78zzFlZw15XhrGbO 2fHv+ifIUUwaA1P+iHaFT4hXydG4/yPRuLulYiUuoSRsFA1xhrN16HCYXafURGVzjnF7Qx flqxynu+Gbu00QXo5BEbS2okbWstcDI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1625760901; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XR/L0+CaPtFdS7++i50EDeO2Jek5OnInkrK8zzhkHKQ=; b=T7XvFHyz5b5cy7BnaPQ/zFQ5ivPmvO5NEtftUN23rk6CcdrFa5FkMly2QX8ps+RtCN9/6J iQ9odLC+rrSvjWDA== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 98D85A3B9D; Thu, 8 Jul 2021 16:15:01 +0000 (UTC) Date: Thu, 08 Jul 2021 18:15:01 +0200 Message-ID: From: Takashi Iwai To: Muni Sekhar Subject: Re: trigger timestamp In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: alsa-devel , kernelnewbies X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Thu, 08 Jul 2021 18:11:13 +0200, Muni Sekhar wrote: > > On Thu, Jul 8, 2021 at 6:02 PM Takashi Iwai wrote: > > > > On Thu, 08 Jul 2021 14:19:12 +0200, > > Muni Sekhar wrote: > > > > > > On Thu, Jul 8, 2021 at 4:59 PM Takashi Iwai wrote: > > > > > > > > On Thu, 01 Jul 2021 01:41:29 +0200, > > > > Muni Sekhar wrote: > > > > > > > > > > Hi all, > > > > > > > > > > >From the user space test application , Is it possible to get the > > > > > trigger timestamp corresponding to SNDRV_PCM_TRIGGER_START & > > > > > SNDRV_PCM_TRIGGER_STOP events for audio playback capture? > > > > > > > > That's exactly what trigger_tstamp of snd_pcm_status corresponds for. > > > Does aplay and arecord have any command line options to get the > > > trigger_tstamp? If not how to get it? > > > > Implement some code :) > > > > Alternatively you can check the proc output contents in > > /proc/asound/card*/pcm*/sub*/status. It'd be difficult to see the > > stop timestamp, though (as the application closes the stream > > immediately after that). > How to specify if i want the REALTIME/MONOTONIC_RAW trigger_time > timestamp type output in /proc/asound/card*/pcm*/sub*/status? It's not provided in a standard tool and you have to write some program by yourself, I suppose. Takashi From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2AA43C07E96 for ; Thu, 8 Jul 2021 16:15:14 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 92C2761874 for ; Thu, 8 Jul 2021 16:15:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 92C2761874 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1m1Wg5-0007H8-7J; Thu, 08 Jul 2021 12:15:05 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1m1Wg3-0007Gz-6N for kernelnewbies@kernelnewbies.org; Thu, 08 Jul 2021 12:15:03 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id A02FE1FD6A; Thu, 8 Jul 2021 16:15:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1625760901; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XR/L0+CaPtFdS7++i50EDeO2Jek5OnInkrK8zzhkHKQ=; b=MaszoWxmJZiJlYWdHKQ3dqe/VWEIfs6fxVW9SDlAtTr5r7RlGFigfb78zzFlZw15XhrGbO 2fHv+ifIUUwaA1P+iHaFT4hXydG4/yPRuLulYiUuoSRsFA1xhrN16HCYXafURGVzjnF7Qx flqxynu+Gbu00QXo5BEbS2okbWstcDI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1625760901; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XR/L0+CaPtFdS7++i50EDeO2Jek5OnInkrK8zzhkHKQ=; b=T7XvFHyz5b5cy7BnaPQ/zFQ5ivPmvO5NEtftUN23rk6CcdrFa5FkMly2QX8ps+RtCN9/6J iQ9odLC+rrSvjWDA== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 98D85A3B9D; Thu, 8 Jul 2021 16:15:01 +0000 (UTC) Date: Thu, 08 Jul 2021 18:15:01 +0200 Message-ID: From: Takashi Iwai To: Muni Sekhar Subject: Re: trigger timestamp In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Cc: alsa-devel , kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Thu, 08 Jul 2021 18:11:13 +0200, Muni Sekhar wrote: > > On Thu, Jul 8, 2021 at 6:02 PM Takashi Iwai wrote: > > > > On Thu, 08 Jul 2021 14:19:12 +0200, > > Muni Sekhar wrote: > > > > > > On Thu, Jul 8, 2021 at 4:59 PM Takashi Iwai wrote: > > > > > > > > On Thu, 01 Jul 2021 01:41:29 +0200, > > > > Muni Sekhar wrote: > > > > > > > > > > Hi all, > > > > > > > > > > >From the user space test application , Is it possible to get the > > > > > trigger timestamp corresponding to SNDRV_PCM_TRIGGER_START & > > > > > SNDRV_PCM_TRIGGER_STOP events for audio playback capture? > > > > > > > > That's exactly what trigger_tstamp of snd_pcm_status corresponds for. > > > Does aplay and arecord have any command line options to get the > > > trigger_tstamp? If not how to get it? > > > > Implement some code :) > > > > Alternatively you can check the proc output contents in > > /proc/asound/card*/pcm*/sub*/status. It'd be difficult to see the > > stop timestamp, though (as the application closes the stream > > immediately after that). > How to specify if i want the REALTIME/MONOTONIC_RAW trigger_time > timestamp type output in /proc/asound/card*/pcm*/sub*/status? It's not provided in a standard tool and you have to write some program by yourself, I suppose. Takashi _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies