From patchwork Fri Nov 25 11:36:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sutar.mounesh@gmail.com X-Patchwork-Id: 9447413 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8651160235 for ; Fri, 25 Nov 2016 11:59:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7056327E3E for ; Fri, 25 Nov 2016 11:59:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 628D227F82; Fri, 25 Nov 2016 11:59:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 87EAA27E3E for ; Fri, 25 Nov 2016 11:59:43 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id F1C41267281; Fri, 25 Nov 2016 12:59:41 +0100 (CET) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id C7E332671FF; Fri, 25 Nov 2016 12:57:18 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 45AF8267265; Fri, 25 Nov 2016 12:36:51 +0100 (CET) Received: from mail-qk0-f176.google.com (mail-qk0-f176.google.com [209.85.220.176]) by alsa0.perex.cz (Postfix) with ESMTP id DCAF02671FF; Fri, 25 Nov 2016 12:36:44 +0100 (CET) Received: by mail-qk0-f176.google.com with SMTP id q130so75470715qke.1; Fri, 25 Nov 2016 03:36:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=sLjPRC6qPO7u3imDmeTQ/+hpwtVnWmatuvM6PHMqNew=; b=y8L0Y1oYEJxv9myK1AOrHGEt2z9ypTFuhU/mKMyYUR16MZ1ZQBAbc/yXvJvb1B+rb5 PyOMB0211tye2fEFFqmLrEqmStdr/De5FW9fr6+JLbf7BOqhHwnjn7XsPZxrKd7SA1J6 N0fuIRC7IIMBPVbk+aIZp/1KAyxVTJkskO03KZTI8fpsmjMpLqetXY51rzmFHDW4hmFa 3sccI442ByOvyokAs8RTQbXiPVoY0lvsxVdhFa4+4wQoEWTXvQ7dn65djAWGqVGRmp+S GUTR78dEbrQ7pMROsxE0iOdATr+jg75kGlOPQL8+zNRJVyLfnngMZ5gVySLWLPntWU1S Lwhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=sLjPRC6qPO7u3imDmeTQ/+hpwtVnWmatuvM6PHMqNew=; b=hf6WTKWxmLGPT2UH99hfXrQMvReV/bAl6yzCsKiB/xBxkcbmQMDid0IW9q5xUx6P+U 9uu6eDSC1C51JJ0J3pK49faqDfuFbI5Kf3SdwdEwtm9SEzu/J3n4vZBaUbgLpmb90Lf1 EHV830MYSys0sJ3/r3vZPp9qPVuu916VdkI44VGddyImUo4JOtprPvX/erKLlmXtQs6b egdvwJOXFxAYl9k9oI/Z03YXVADW0dF1JUeDTIT+n9biRAO/DGWAtyNgPzZTTjCqpJGu CDFoewZZW0lRidz10df7ZI8KssQ0M7xJteSkMFgfqChtUk4PVssIl/+UQFA2j9nFzgTZ l6nQ== X-Gm-Message-State: AKaTC00dCgFIhC5foeXgs+oApFYRRS0mADB5zjV13Cy03w7ljF73MMkXiqyovHSx/JJUfg== X-Received: by 10.55.94.199 with SMTP id s190mr5890483qkb.44.1480073803274; Fri, 25 Nov 2016 03:36:43 -0800 (PST) Received: from mounesh-VirtualBox.inp.mentorg.com ([139.181.35.34]) by smtp.gmail.com with ESMTPSA id i41sm21290711qtc.18.2016.11.25.03.36.40 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Nov 2016 03:36:42 -0800 (PST) From: sutar.mounesh@gmail.com To: patch@alsa-project.org Date: Fri, 25 Nov 2016 17:06:37 +0530 Message-Id: <1480073797-17667-1-git-send-email-sutar.mounesh@gmail.com> X-Mailer: git-send-email 1.7.9.5 Cc: alsa-devel@alsa-project.org, Joshua Frkuska , Andreas Pape , mounesh_sutar@mentor.com Subject: [alsa-devel] [PATCH] alsa-lib: Add htimestamp operation in plugin file X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andreas Pape PCM operation htimestamp is not implemented in plugin file. Calling snd_pcm_htimestamp() on a plugin file crashes. This scenario is considered now. Signed-off-by: Andreas Pape Signed-off-by: Joshua Frkuska --- a/src/pcm/pcm_file.c 2013-07-08 14:31:36.000000000 +0200 +++ b/src/pcm/pcm_file.c 2015-05-04 16:26:10.413615403 +0200 @@ -698,6 +698,7 @@ .readi = snd_pcm_file_readi, .readn = snd_pcm_file_readn, .avail_update = snd_pcm_generic_avail_update, + .htimestamp = snd_pcm_generic_htimestamp, .mmap_commit = snd_pcm_file_mmap_commit, .poll_descriptors_count = snd_pcm_generic_poll_descriptors_count, .poll_descriptors = snd_pcm_generic_poll_descriptors,