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 0DB03C33CAA for ; Thu, 23 Jan 2020 07:10:27 +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 83A7024655 for ; Thu, 23 Jan 2020 07:10:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="cHzx9BM3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 83A7024655 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=renesas.com 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 CFAA51665; Thu, 23 Jan 2020 08:09:34 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz CFAA51665 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1579763424; bh=zPvQ/dMXft3n+rdAED3JLjrryzjMwsdVoVFUgbGG4Tg=; h=Date:From:To:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=cHzx9BM3SU2vM7TTZf0NT8RyMjaI/FyaMblxizUXms7I/0k38fsSM+QSUZW96yeQe pqTJg/TVqvCMiqZkPH8OE6soZvUiXPosPvy9tQgD4Pa7j51oPVx0v04iSUA8fysfEt pLyGcLTu8ijL+c1Z27TXYiGamDgtT3/v4F1qP8Ds= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 50BC6F8015B; Thu, 23 Jan 2020 08:09:34 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 112FFF801D9; Thu, 23 Jan 2020 08:09:32 +0100 (CET) Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by alsa1.perex.cz (Postfix) with ESMTP id 48C10F80112 for ; Thu, 23 Jan 2020 08:09:25 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 48C10F80112 Date: 23 Jan 2020 16:09:22 +0900 X-IronPort-AV: E=Sophos;i="5.70,352,1574089200"; d="scan'208";a="37423706" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 23 Jan 2020 16:09:22 +0900 Received: from morimoto-PC.renesas.com (unknown [10.166.18.140]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 8A2AF40065B1 for ; Thu, 23 Jan 2020 16:09:22 +0900 (JST) Message-ID: <87d0baps2l.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Linux-ALSA User-Agent: Wanderlust/2.15.9 Emacs/24.5 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Subject: [alsa-devel] Question about tx_mask/rx_mask 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Hi ALSA ML I want to ask about tx_mask / rx_mask. soc_pcm_open() is calling snd_soc_dai_startup() (= (A)), and then, it setup tx_mask / rx_mask. static int soc_pcm_open(...) { ... for_each_rtd_codec_dai(rtd, i, codec_dai) { (A) ret = snd_soc_dai_startup(codec_dai, substream); if (ret < 0) { dev_err(...) if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) => codec_dai->tx_mask = 0; else => codec_dai->rx_mask = 0; } ... } snd_soc_dai_link_event_pre_pmu() also calling snd_soc_dai_startup(), but, it doesn't care about tx/rx_mask. Is this bug ? snd_soc_dai_link_event_pre_pmu(...) { ... substream->stream = SNDRV_PCM_STREAM_CAPTURE; snd_soc_dapm_widget_for_each_source_path(w, path) { source = path->source->priv; (A) ret = snd_soc_dai_startup(source, substream); if (ret < 0) { dev_err(source->dev, "ASoC: startup() failed: %d\n", ret); goto out; } source->active++; } substream->stream = SNDRV_PCM_STREAM_PLAYBACK; snd_soc_dapm_widget_for_each_sink_path(w, path) { sink = path->sink->priv; (A) ret = snd_soc_dai_startup(sink, substream); if (ret < 0) { dev_err(sink->dev, "ASoC: startup() failed: %d\n", ret); goto out; } sink->active++; } ... } Thank you for your help !! Best regards --- Kuninori Morimoto _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel