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 F036DC07E96 for ; Thu, 8 Jul 2021 12:34:02 +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 72CBF61481 for ; Thu, 8 Jul 2021 12:34:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 72CBF61481 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 ACDE515E2; Thu, 8 Jul 2021 14:33:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz ACDE515E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1625747640; bh=DgzmokgwnO5kjsp1L0LzrIbrA+eEhAeyMZ/1IqIyvms=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=d66Fg9AtNIkoUhqXnIXEOfhH0Pzz91Iut5P4tHz9U8vIi7wK4Ldmx23AGq2iuVdgf qxJLfQxNlrjDUEHil3oQ1X5T3pfcMSnY7pztqtOgAfNUPiwJAg2/gYFIb80echN7hx Vd8Vjw4XAYI4YKhxGUOb3NnKsdbqSgnNbaQ7pSaU= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 25CD0F80143; Thu, 8 Jul 2021 14:33:10 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 57E8AF80259; Thu, 8 Jul 2021 14:33:08 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (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 2F6B3F80143 for ; Thu, 8 Jul 2021 14:32:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2F6B3F80143 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="vxTBpr+U"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="XDdZIXOb" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id A1A2D22348; Thu, 8 Jul 2021 12:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1625747576; 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=j0MgJ6FROAxge8cPO7gdQpxgAqJt8NNG1twPyDi0Qqc=; b=vxTBpr+UIkyeTTgExrSYgFCNkQWNH+vNKMgzwZI4moGjKYJkswffw0PlOWPguWoLKv6Fsw nNKRvzqWMCsXGMxEuTOR7usp3zOiIU1YpzBREEO6Qhe0nEQKGsSnT4L4pqc7lWXVL0I5l0 gji75qU1EYdgwso5zVthe9oFNuZrRS8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1625747576; 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=j0MgJ6FROAxge8cPO7gdQpxgAqJt8NNG1twPyDi0Qqc=; b=XDdZIXObI6z+Pvs1GP+OSK9O6m8QS7LUYMvdfygB9dPnpCqgAulu5md6QlmCv//ICDQLJh d5k9fLLnWh6dybBQ== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 817FEA3B84; Thu, 8 Jul 2021 12:32:56 +0000 (UTC) Date: Thu, 08 Jul 2021 14:32:56 +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 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). 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 DB3A6C07E96 for ; Thu, 8 Jul 2021 12:33:16 +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 74A2C61424 for ; Thu, 8 Jul 2021 12:33:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 74A2C61424 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 1m1TDA-0006Hm-9I; Thu, 08 Jul 2021 08:33:00 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1m1TD7-0006Hg-QW for kernelnewbies@kernelnewbies.org; Thu, 08 Jul 2021 08:32:57 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id A1A2D22348; Thu, 8 Jul 2021 12:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1625747576; 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=j0MgJ6FROAxge8cPO7gdQpxgAqJt8NNG1twPyDi0Qqc=; b=vxTBpr+UIkyeTTgExrSYgFCNkQWNH+vNKMgzwZI4moGjKYJkswffw0PlOWPguWoLKv6Fsw nNKRvzqWMCsXGMxEuTOR7usp3zOiIU1YpzBREEO6Qhe0nEQKGsSnT4L4pqc7lWXVL0I5l0 gji75qU1EYdgwso5zVthe9oFNuZrRS8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1625747576; 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=j0MgJ6FROAxge8cPO7gdQpxgAqJt8NNG1twPyDi0Qqc=; b=XDdZIXObI6z+Pvs1GP+OSK9O6m8QS7LUYMvdfygB9dPnpCqgAulu5md6QlmCv//ICDQLJh d5k9fLLnWh6dybBQ== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 817FEA3B84; Thu, 8 Jul 2021 12:32:56 +0000 (UTC) Date: Thu, 08 Jul 2021 14:32:56 +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 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). Takashi _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies