Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp377855pxb; Mon, 25 Apr 2022 11:47:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCkfEN0N8LzKA3+ApkM5eEMSQc779wXiSn/FWDV9TrrViPaZV7QJDzZ/lM8Y5a3DDoDycb X-Received: by 2002:a17:90b:4c06:b0:1d9:80ca:c6d3 with SMTP id na6-20020a17090b4c0600b001d980cac6d3mr5769630pjb.242.1650912433328; Mon, 25 Apr 2022 11:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650912433; cv=none; d=google.com; s=arc-20160816; b=rziQf4Mr11EqqgYpDyryI4rPmm7Ff0urvQo383jg8v5HLi7BB7xbhoXLI5C9qZClXO NSbUqZi1M/qANAiKwUaCGV4F0ekxeIItrlWMFx17gkHbSLmMJjiyTKd6BQHZwWd7Eg7H DR/bFOrEKnIfBOuiXbmTw05fScCUfpaR1Qcdn945zrbz2moLc5FSHryZZ+563WKiVgXx gbbOw6lyK9BvGaUsjAJ0jh0Ay0GF2ad3w+yLBfutfQKoKH6hiCgaITEdBCC5kqQ7jKNm q3Swntc6y1sXKd+iInaLzpZAEuB2ND1y2GjQ6wGPfxdLXmAcbnYVdHg33PjjgEszW2F2 wlWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=Mp3nuT0PzmWhzqqEzvPIZpiHN6vPDTUyd5pO9HIeeQE=; b=dHo2eZGMSaohg0Bpmm0GGB99nMBmQ8kN0AcPIqruK5XPArcxWhdvT4JURTIXIrDYNd 009e3QMG/TSYAk7U5AjPFH0nOcwd+vA/ELZDc4q870W9rmrOlbQG593oh/QFy/Y4KxPi /bB52QoOM1AJjPiVBBQIOXrrHY1KmAxH+pOe1YOtNGrfXc1Si+2kAv6lKszC+jQJuJQH gfvsDmVmnk0yXikGsYF07/Dsl2D6kFy88Ei1jyrucwytllWNCqpZfPyOFIOwI0dj9Ztb lRB5PonrpYW9anfQkZWrqnpXVtTa55S6unKi8CifHAQqSjZOP/RJj5fLjBrm2FGABRLC VDLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=ZhKh5Zpv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cutebit.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z15-20020a170903018f00b0015ce8cd5066si8548723plg.246.2022.04.25.11.46.54; Mon, 25 Apr 2022 11:47:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=ZhKh5Zpv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cutebit.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238477AbiDYN6o (ORCPT + 99 others); Mon, 25 Apr 2022 09:58:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235351AbiDYN6m (ORCPT ); Mon, 25 Apr 2022 09:58:42 -0400 Received: from hutie.ust.cz (unknown [IPv6:2a03:3b40:fe:f0::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD2EB2018A; Mon, 25 Apr 2022 06:55:35 -0700 (PDT) Content-Type: text/plain; charset=utf-8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cutebit.org; s=mail; t=1650894932; bh=Mp3nuT0PzmWhzqqEzvPIZpiHN6vPDTUyd5pO9HIeeQE=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=ZhKh5Zpv/e7gcY9lFUXrmj4qBfrN5wGHNLlS0qLvcK7ucxitGfOZj2+edVgt61Qkv QtJC2BWkOb6nJy2iL8Bg5jwW1Nx9Xvawuw8/NMFuVNbeSuANWERn39FQoX1v4xTRTv PQGWAj7ofOlRGmNiePsij2NrYN+2qIs5TGD91Vgg= Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: Re: [RFC PATCH 3/5] HACK: ASoC: Tolerate N-cpus-to-M-codecs links From: =?utf-8?Q?Martin_Povi=C5=A1er?= In-Reply-To: Date: Mon, 25 Apr 2022 15:55:32 +0200 Cc: =?utf-8?Q?Martin_Povi=C5=A1er?= , Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Kettenis , Hector Martin , Sven Peter Content-Transfer-Encoding: quoted-printable Message-Id: <5C42BB2F-EED6-4F6E-A29E-B43768760244@cutebit.org> References: <20220331000449.41062-1-povik+lin@cutebit.org> <20220331000449.41062-4-povik+lin@cutebit.org> <904EB8A1-5561-4555-8030-B85703E24F2E@cutebit.org> <9F8BCBA8-5EE3-4F87-9518-91CB7AB4E077@cutebit.org> <4CF6B0A7-F218-4798-BB21-18D563309D5C@cutebit.org> To: Mark Brown X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_FAIL,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 25. 4. 2022, at 15:46, Mark Brown wrote: >=20 > On Mon, Apr 25, 2022 at 03:11:14PM +0200, Martin Povi=C5=A1er wrote: >>> On 25. 4. 2022, at 14:55, Mark Brown wrote: >=20 >>> I am surprised that doesn't otherwise explode TBH - at the very = least >>> I'd expect it to show two PCMs to userspace which if I'm = understanding >>> your description correctly isn't really what's going on. >=20 >> I fill in a single snd_soc_dai_link, it exposes a single PCM and = works >> like a charm. That is as long as I patch the playback/capture check = in >> question. >=20 >> I read that to be the clear intention of ASoC code: a DAI link = becomes >> one snd_soc_pcm_runtime. >=20 > Yes, so long as you boil it down to a single link it works fine but = the > bit on top of the binding where you tie the two CPU DAIs to what is > actually exposed is all in code. The reason this stuff isn't filled = in > is that connecting the thing that applications see to the physical = links > isn't at all obvious and needs at least some driver sitting in the > middle to make the links - I'd imagine there's a DSP sitting there = which > probably has quite a bit of flexability about how the various hardware > components available are actually related. This makes figuring out = what > to do with the relationship between the multiple CPU DAIs hard. I get the gist. Anyway unless you tell me otherwise I will assume I need to move to DPCM with the platform/machine driver.