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=-0.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 561FDC4338F for ; Tue, 24 Aug 2021 09:23:24 +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 CAF2B61246 for ; Tue, 24 Aug 2021 09:23:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CAF2B61246 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=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 6C6A315F2; Tue, 24 Aug 2021 11:22:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6C6A315F2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1629797002; bh=VrTmhzRqhQN7FDGSChr3UBIlvK3tI+Ox6e9t+Z93kaU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=H3M+DmCHPQScVMYbQwZPzMKGLr3R0mQ7d2TXOjLGeWwJiTs5wITxZ2xHJvWesVIoA v53JR0RvJ6OhG3gN2u7HNh1ReXN5IJJ1/+s1d3CmGXzLUGUC5DXasGieFRyNi9tfKz y9cKhbfaNNGhGtBPF5YP92gkArgRmGyv/ua+vyF4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 5B165F804E5; Tue, 24 Aug 2021 11:20:09 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DBBC7F804FC; Tue, 24 Aug 2021 11:20:07 +0200 (CEST) Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (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 49D78F804EC for ; Tue, 24 Aug 2021 11:19:59 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 49D78F804EC Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nZVuSx8x" Received: by mail-lf1-x12d.google.com with SMTP id u22so43982635lfq.13 for ; Tue, 24 Aug 2021 02:19:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2qHor8hC28rZFjli0B0VuhOzO63SO3wlmVvXEzUNAZM=; b=nZVuSx8xZQD3cutlxMyHiMft/jbEs/AfzEJb8quJB2sLpeKbXwfZ7w/eYEHxB5OibG DKK2jPT3TsAaRXylNuFjNUkJkdwfO5zcKcNVHsml7Qj/zEPNgD3jyS/lgLnVQGw/1Y8S BnSGqQ9SxnY7cXckJq517MdjJ9+RLDNW4oYpNKZWxlP3cC4KL3iCpFSgPgpzCKmAWKKx DDJ+2QBrtcAANr7Vtx3pm2lkOtLmleqs/MPfd4GVQX8qRAIREPVemtlkOLNzlpThMQ6D 0rVFTkirIkNSUELdeP4qGN2h1aCBdFs6wzeFg/X9d0rIOatMqhlKIH3/L+UwDRZDQVvl rNoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2qHor8hC28rZFjli0B0VuhOzO63SO3wlmVvXEzUNAZM=; b=gerfDXDGRP2AhECgXs+DEpKBBmjCCp9/Ms4Er59+rGMnNZNNeJKqBYl4tH99w5pQKy ObRr/H/N92EWQpPg+toGUHXR0cFt+aQoxG+3l2kaESgAqvU1LHRgeDkr8j+az/XDE74N va5WNK9Tod2+pKqEWdQ1T93xe1vO64LzLiNWuXYsIeOOlb/sKS9YN4y05LTAqrK2CUGE UZHzkNPTyF9vM1lDQ3IcLIq0fDrE7CPgOcRJhQsGErLGMWh4x+biJNp++9h2Z3krk7Sp TbDbFJcgscr4jU5SF4Pa9ICuYMwLGi7PcXXxHqZDirJT7dSeRhJXeT7vLEN7ykP+O0Ws GjUA== X-Gm-Message-State: AOAM533Qu/R7gACd+kzRWTNCnJ7+e9qlBaym0JPZ7c4lb1roqvi8X0y7 M5tfHRSV0SWW1PQdczf4E7KlTsWDGepB781Be0E= X-Google-Smtp-Source: ABdhPJwf9j6IGjlo1BTczTWnqsQEXTHVMhM3GekrV8YvuGSJUGEm/U9I9/LExm6yQnghKuDS6/w2fQg7m6bCZCQqzEY= X-Received: by 2002:a19:f819:: with SMTP id a25mr28137516lff.203.1629796797887; Tue, 24 Aug 2021 02:19:57 -0700 (PDT) MIME-Version: 1.0 References: <20210819183450.GV890690@belle.intranet.vanheusden.com> <20210819190634.GW890690@belle.intranet.vanheusden.com> <20210823170332.GD890690@belle.intranet.vanheusden.com> <20210823184727.GE890690@belle.intranet.vanheusden.com> In-Reply-To: From: sujith kumar reddy Date: Tue, 24 Aug 2021 14:49:46 +0530 Message-ID: Subject: Re: arecord is failing with -V stereo To: Takashi Iwai Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: alsa-devel@alsa-project.org, folkert 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" Hi Takashi, With the above patches -V stereo is working fine. Thanks sujith On Tue, Aug 24, 2021 at 1:42 PM Takashi Iwai wrote: > On Mon, 23 Aug 2021 21:06:05 +0200, > sujith kumar reddy wrote: > > > > Hi Folkert, > > > > Tried with the above code.This is also getting p value negative. > > > > My point is p is negative it doesn't go to > > > > if (p >= bar_length) > > p = bar_length - 1; > > it is going to memset second argument p,that is negative so crashing. > > Gah, the code there contains lots of craps. A negative value must not > have been passed there. > > Below is a series of fixes. Please give it a try. > > > thanks, > > Takashi >