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.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 AEB8FC433DB for ; Sun, 7 Feb 2021 13:45:29 +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 3A2DF64DF8 for ; Sun, 7 Feb 2021 13:45:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A2DF64DF8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com 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) (envelope-from ) id 1l8kNN-0006xA-Sv; Sun, 07 Feb 2021 08:45:21 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1l8kNM-0006wZ-Dw for kernelnewbies@kernelnewbies.org; Sun, 07 Feb 2021 08:45:20 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 5BA865C0094; Sun, 7 Feb 2021 08:45:17 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 07 Feb 2021 08:45:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=LW0LeaWlA/JKVdimIKNAEsmsbN1 ObCtPjQiD293HXq0=; b=BuiMtCtoehLghInjviFbTFXHkHaTFmz3AhbDD6eaLzh 5uAV0RJfegXU9Hpk4eR2jylfCpXH8CD9XaAWP5CSxicgq6Q8YVT8eHiEIJJ1N85l 6wBqWD4UgXFEdiTjhOmbs08+ZhR27CCyJ+RNO9s+w+u+Y+ieBXvvNWnT26EaAXXi BhI2nKfEfcOfa7XHxjUvNpYN7hz5LVvjaXkxx1E2oPH8mxRWy48gUIWjWy941V41 Je1FRr4tXxSmSVCTz2M7iJv6hmzAwXruJSRchhMDyV29Lk3VO6AdMcXt6L86Q2QR VYcBDmdPuP3+Q6rkrHEBiS3/9QiiBLRD7jo34kiYWbA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=LW0Lea WlA/JKVdimIKNAEsmsbN1ObCtPjQiD293HXq0=; b=ik/nIbtInIfwktZPlhigtz aMRtRRqZLUFsva+T21Br62LDkAvWoUq7Jt531kBVkSmmA4Qnt9LktMGmoQHmChLY cqUuTk+Xi8S2gfpzOsWcnoatJK3YD3jtvg0b3ltJiMn6FmWQSx/Qovl+d9wG6YTT MDBy35ONWVrljO4CjqUufYjJZBuaroHmq0vxJEEB7NXj+A72o/SBCLjITJgEgSLu WjfjcCxsrL08od6of8mEX3dOgsvmoT2r6ninvdnGELVp9NsH1gBV5KZwnNFCQUx8 f/caN82yPYvizvEDWOtt73NMoo9ZTnyI2+xK8Mo28sJj8II7eW/LkYUI9XMicv/g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrhedugdehjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepifhrvghgucfm jfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuggftrfgrthhtvghrnhepveeuheejgf ffgfeivddukedvkedtleelleeghfeljeeiueeggeevueduudekvdetnecukfhppeekfedr keeirdejgedrieegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepghhrvghgsehkrhhorghhrdgtohhm X-ME-Proxy: Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) by mail.messagingengine.com (Postfix) with ESMTPA id EC08A1080059; Sun, 7 Feb 2021 08:45:16 -0500 (EST) Date: Sun, 7 Feb 2021 14:45:15 +0100 From: Greg KH To: Ivan Riabtsov Subject: Re: grab raw data from microphone and send it to the output Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Cc: kernelnewbies@kernelnewbies.org 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 Sun, Feb 07, 2021 at 04:38:08PM +0300, Ivan Riabtsov wrote: > I want to experiment with active noise cancellation, i want to receive > a wave from an input device (microphone), invert the wave and send it > to the output device (headphone or speaker). Therefore, I need a > minimum delay. Then I strongly suggest you look into a much smaller kernel, on a dedicated tiny microcontroller, as that's what systems that do this today use. But if you just want to try it with your laptop, good luck, latencies in your hardware itself are probably going to prevent this from being possible. greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies