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.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, 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 81C0CC43331 for ; Wed, 1 Apr 2020 16:01:03 +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 D388E20784 for ; Wed, 1 Apr 2020 16:01:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="g1QBajrA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D388E20784 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 2DD6E166E; Wed, 1 Apr 2020 18:00:11 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2DD6E166E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1585756861; bh=erz1j9lv0xOhAPwlnUar/QFLpmBxQ1LzkWTFl5SVgIg=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=g1QBajrAq5023/F2+/DkoufZ0stumKNlk9JbWGPhOmbMQQV5RqoF7/JnDgQSziZkt 2DdgQ7noFmbzA/9q8HCXUorXo2BtS+2tV4xqDp8G/IQs2naiIdb/de4yrMkeC03vco jcSXKJ4CHiMrjE5irhxR+hFdC09I5IFfS8xwzx0M= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 55CEDF8014A; Wed, 1 Apr 2020 18:00:10 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id AEA5DF8014B; Wed, 1 Apr 2020 18:00:07 +0200 (CEST) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 82223F80110 for ; Wed, 1 Apr 2020 17:59:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 82223F80110 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 0FCE5AC84; Wed, 1 Apr 2020 15:59:53 +0000 (UTC) Date: Wed, 01 Apr 2020 17:59:52 +0200 Message-ID: From: Takashi Iwai To: sylvain.bertrand@gmail.com Subject: Re: sw_params for a direct-ed(dmix) hw pcm In-Reply-To: <20200401152538.GA11377@freedom> References: <20200326200415.GA1321@freedom> <0b0f5117-3b4b-0c25-cd4b-0ecc72479635@perex.cz> <20200328182624.GA775@freedom> <1baab0fd-d802-3707-645f-d5dc4bf6c32c@linux.intel.com> <20200328203744.GA2398@freedom> <59266c58-96d8-93e9-bc8f-86e9fccf8d60@linux.intel.com> <20200328222021.GA4610@freedom> <20200401152538.GA11377@freedom> 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@alsa-project.org, Pierre-Louis Bossart , Kai Vehmanen 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 Wed, 01 Apr 2020 17:25:38 +0200, sylvain.bertrand@gmail.com wrote: > > Hi, > > Lol, I was working on it too. I got almost exactly the same code related to the > addition of a configuration variable: > - in 'struct snd_pcm_direct_open_conf' I used the type 'snd_pcm_tstamp_type_t' > instead of 'int' for the added tstamp_type field. > - idem for the 'struct snd_pcm_direct' tstamp_type field. Heh, my initial patch was also with that strong type, but I changed it because I wanted to allow the "system default" value, which isn't represented with that type. thanks, Takashi