Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5974061ybv; Tue, 18 Feb 2020 07:28:27 -0800 (PST) X-Google-Smtp-Source: APXvYqzyrHVEEHb710V9Hz0rHMIVFJsP8k2VN+ZxnrKNBImcPoKGwhZnnORKnVK/+YH13bgbGzYA X-Received: by 2002:aca:1101:: with SMTP id 1mr1593034oir.30.1582039707666; Tue, 18 Feb 2020 07:28:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582039707; cv=none; d=google.com; s=arc-20160816; b=ie9YR81J5glf1NeI8DMY5dCBNv7gg+V3vt6031NYXcdmRjihXAlbLYlpARDt1x/S9c dBoF1EyhMue5kehsk3H+J4Jnz9/dlEeJdoZOKhsl/D10dT71d++g1O5mtb075Y4vnonG HbDX7dFDXBtMucjM8qArRSN9FpOKqMffTSjcsCdtGKpyT23FUun06gb49fcTrIN58bTx 48cWrWc9CXn94oq4w0Rt6n1xQTJlni68llEMR4Ntxq22l2UL5Sg9Cl0oRoXfbWqng1NK jk+5RDbaZu7Fb/gKJjGWfwhqzoFkkZl6asKkfPorQqfxO6HFe1CHsglUUBFEcRxKhvLM t7mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=VR7aPtasJXpkWrX3UGWXepVmea7kqpiAckhtvEWZT00=; b=WpuZiKpKu+HCMXNJJV29zEger53fzNQeHk5w02EgynaRORbhTbphXVxxvFmPKWpCP8 fmptryyNCi2994n7Epu4is8JOqDbwlRVmTgZxSOCgm6eXLkSb3P1gA6Myh7ekjeE2b7Y V2DdmEjovTaz6x2bKIEc0RRBoSRCC8eOmCAc0LAcyaN3oR8sAVn2397lRld95Zof5nzd 2qMUqmIo3+QYCTLYe/gh41Wk4RaUazBIa3qa6QcHL8yvmvY4nFNMCYKPq+LB7JT0JEmE 89KA2kpN5Ly0vgR+un1LnbRrOKJKc3xV5WniOtqA/Bmtw6u+pd6o6mlLxYTNHMXH7kIR AJFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=UngOwrZG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a124si7608653oii.138.2020.02.18.07.28.14; Tue, 18 Feb 2020 07:28:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=UngOwrZG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726482AbgBRP1m (ORCPT + 99 others); Tue, 18 Feb 2020 10:27:42 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:57430 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbgBRP1m (ORCPT ); Tue, 18 Feb 2020 10:27:42 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 01IFQII7094481; Tue, 18 Feb 2020 09:26:18 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1582039578; bh=VR7aPtasJXpkWrX3UGWXepVmea7kqpiAckhtvEWZT00=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=UngOwrZGQtSXmlx0x/yjHHO6XHrLOFPTlJpJWfZl/1w3e7LDaHRck0TmLlSDCldnQ wSc+locQe2d2KX1F2FOw4nQ8WpapSyMWe6Gx5tShy0h5uiU/VFIRxBKZDmJQDTlhR3 9/ykuTeM+6n0gwmhY+A9X/1w0VnOQCCsF1r+4sK8= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 01IFQIqp070801 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 18 Feb 2020 09:26:18 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 18 Feb 2020 09:26:17 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Tue, 18 Feb 2020 09:26:17 -0600 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 01IFQEI7084736; Tue, 18 Feb 2020 09:26:14 -0600 Subject: Re: [PATCH] ASoC: ti: Allocate dais dynamically for TDM and audio graph card To: Tony Lindgren CC: Kuninori Morimoto , Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , , , , Aaro Koskinen , "Arthur D ." , Jarkko Nikula , Merlijn Wajer , Pavel Machek , Sebastian Reichel References: <20200211171645.41990-1-tony@atomide.com> <20200212143543.GI64767@atomide.com> <346dfd2b-23f8-87e0-6f45-27a5099b1066@ti.com> <20200214170322.GZ64767@atomide.com> <20200217231001.GC35972@atomide.com> <20200217233623.GE35972@atomide.com> From: Peter Ujfalusi Message-ID: <07989190-e110-13c4-50ea-875431725b47@ti.com> Date: Tue, 18 Feb 2020 17:26:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20200217233623.GE35972@atomide.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/02/2020 1.36, Tony Lindgren wrote: > * Tony Lindgren [200217 23:10]: >> * Peter Ujfalusi [200217 12:10]: >>> On 14/02/2020 19.03, Tony Lindgren wrote: >>>> But right now in droid4 voice call case mcbsp is just the i2s transport, >>>> and everything happens betwee the modem and the cpcap pmic. >>> >>> Iow you don't need McBSP DAI at all. If you would have added the dummy >>> codec to McBSP !3 and use that, it would work in a same way, or to DMIC >>> or McPDM... >>> >>> The McBSP ops are NULL for the dummy dai, so McBSP is turned off. >> >> Hmm yeah I don't know if the cpcap codec on the same mcbsp needs >> mcbsp for voice call. >> >> According to Sebastian sounds like mcbsp can be idle at that point. >> >> But what about capture of voice call at the mcbsp from the >> TDM slot? In that case mcbsp would be active. > > Looks like only initializing only one mcbsp3 instance here > instead of two will produce an oops as below. > > I'm not sure how this is supposed to work for > snd-soc-audio-graph-card with multipe endpoints connected > to just one mcbsp dai instance? > > Regards, > > Tony > > 8< ------------------- What is the kernel version? The context is missing... Who printed the line: dev_err(dev, "ASoC: Failed to register DAIs: %d\n", ret); This is only possible if snd_soc_component_initialize() fail, which can only fail if snd_soc_component_unique_name() fails. > Internal error: Oops: 805 [#1] PREEMPT SMP ARM > snd_soc_del_component_unlocked+0xf4/0x110 Not too helpful ;) > ... > [ 39.616027] Backtrace: > [ 39.616149] [] (snd_soc_del_component_unlocked [snd_soc_core]) from [] (snd_soc_add_component+0x238/0x374 [snd_s) > [ 39.616149] r7:00000002 r6:00000002 r5:ec9a0e78 r4:00000122 > [ 39.678283] qmi_wwan 1-1:1.6: cdc-wdm1: USB WDM device > [ 39.739074] [] (snd_soc_add_component [snd_soc_core]) from [] (snd_soc_register_component+0x50/0x60 [snd_soc_cor) > [ 39.739074] r10:bf4582d0 r9:ec9d0840 r8:00000002 r7:00000002 r6:ec9d0640 r5:bf4584ac > [ 39.800842] asoc-audio-graph-card soundcard: using device tree for GPIO lookup > [ 39.808685] r4:eed52410 > [ 39.862304] [] (snd_soc_register_component [snd_soc_core]) from [] (devm_snd_soc_register_component+0x54/0x90 [s) > [ 39.862304] r7:ec9d0640 r6:bf4584ac r5:ec9d3040 r4:eed52410 > [ 39.925048] qmi_wwan 1-1:1.6 wwan1: register 'qmi_wwan' at usb-4a064800.ohci-1, WWAN/QMI device, 2e:59:df:3f:4f:ef > [ 39.984558] [] (devm_snd_soc_register_component [snd_soc_core]) from [] (asoc_mcbsp_probe+0x3e8/0x574 [snd_soc_o) > [ 39.984558] r9:ec9d0840 r8:ec9f4000 r7:eed52410 r6:00000000 r5:eed52400 r4:ec9d0840 > [ 39.984588] [] (asoc_mcbsp_probe [snd_soc_omap_mcbsp]) from [] (platform_drv_probe+0x58/0xa8) > [ 39.984619] r10:00000000 r9:0000002e r8:bf459014 r7:00000000 r6:bf459014 r5:00000000 > [ 40.044342] of_get_named_gpiod_flags: can't parse 'pa-gpios' property of node '/soundcard[0]' > [ 40.051788] r4:eed52410 > [ 40.100769] [] (platform_drv_probe) from [] (really_probe+0x1ec/0x358) > - Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki