Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2520426imu; Sun, 9 Dec 2018 03:38:13 -0800 (PST) X-Google-Smtp-Source: AFSGD/VDuNUaX41IvKUJHng/qHIIXtHdsI9tqHbxVU1X3dN8zI3o/nj5AUAEwuUyFe60sWUw303E X-Received: by 2002:a62:9111:: with SMTP id l17mr8545617pfe.200.1544355493494; Sun, 09 Dec 2018 03:38:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544355493; cv=none; d=google.com; s=arc-20160816; b=JfmF7SWxyYf7HqKXf2Smz45eH7dAkULz4q0ZnnvEi8H1tSPHDMLDzDmoTxzSUeRXOr HJm9lQvjCpFS/uPE0hpMe9klIl2kPaBkhJX/Z5DFPeEW5PTic4YL/5koOHBymSQvhd+z fxEeVY5czG08LixE0r2vYrQMJ2IDxRf8+Jb4Ao6H4PCo9OleZz8G1Z0tSpUXNxRG0Xif KJDi//yGmDfgMJarQSE6sTPYKwhP6JRyNelT6Yigtw4MeEu18q/XycTLG5a30caAyQKs op7cBedQrNpj+rujYwotHfXufiFb3+kz+yTVf1y49VAWQmXj+49V3zoc95ZRMEsJMqZc ZScg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=fu5q7ohMcZvWnFhYEvDTYGqWdAFX35m7dkse2IpQdA4=; b=RI8XpaBYFUvTjZbSMrXHZsfYdyWPkaYpso8SP3xtDWXZ75ebrTU0SCEy4bCdMNhu2+ gizmfc1f1epu8OdIQT3zwTy7c8H9Mb+xm4ULGKv1zHRcSLCWhtjCIwEiXlHe2hIrS7XE +JxsUN2q9D2/FTTT32rQc0A6ehjSXbNM3V9gBMHNkl7hRuanu+L3Q3jhWymeuS+FLmWf bOhLNKLkTuAraOIa1Vx3d8HLD3PpX8PJTtZvuPj7vQxayU5tBX5aa8Ri9exz3EFjOoqG 3zSKjv9ZInHdxjMVqoQvcmAKCG6fdul7uMqW7pEg19K7S6Fv/hMz3hOPr+v9rNav5890 U+jA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si6401618ply.421.2018.12.09.03.37.53; Sun, 09 Dec 2018 03:38:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726234AbeLILhR (ORCPT + 99 others); Sun, 9 Dec 2018 06:37:17 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:55535 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726184AbeLILhR (ORCPT ); Sun, 9 Dec 2018 06:37:17 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 916F480809; Sun, 9 Dec 2018 12:37:11 +0100 (CET) Date: Sun, 9 Dec 2018 12:37:14 +0100 From: Pavel Machek To: Mauro Carvalho Chehab Cc: shuah , perex@perex.cz, tiwai@suse.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: Re: [RFC PATCH v8 1/4] media: Media Device Allocator API Message-ID: <20181209113714.GA21784@amd> References: <20181119085931.GA28607@amd> <73c22137-9c7a-75c8-8cd1-3736c63c2d40@kernel.org> <20181209080944.GA7561@amd> <20181209092715.50a7e4e4@coco.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gKMricLos+KVdGMg" Content-Disposition: inline In-Reply-To: <20181209092715.50a7e4e4@coco.lan> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > On Thu 2018-12-06 08:33:14, shuah wrote: > > > On 11/19/18 1:59 AM, Pavel Machek wrote: =20 > > > >On Thu 2018-11-01 18:31:30, shuah@kernel.org wrote: =20 > > > >>From: Shuah Khan > > > >> > > > >>Media Device Allocator API to allows multiple drivers share a media= device. > > > >>Using this API, drivers can allocate a media device with the shared= struct > > > >>device as the key. Once the media device is allocated by a driver, = other > > > >>drivers can get a reference to it. The media device is released whe= n all > > > >>the references are released. =20 > > > > > > > >Sounds like a ... bad idea? > > > > > > > >That's what new "media control" framework is for, no? > > > > > > > >Why do you need this? =20 > > >=20 > > > Media control framework doesn't address this problem of ownership of = the > > > media device when non-media drivers have to own the pipeline. In this= case, > > > snd-usb owns the audio pipeline when an audio application is using the > > > device. Without this work, media drivers won't be able to tell if snd= -usb is > > > using the tuner and owns the media pipeline. > > >=20 > > > I am going to clarify this in the commit log. =20 > >=20 > > I guess I'll need the explanation, yes. > >=20 > > How can usb soundcard use the tuner? I thought we'd always have > > userspace component active and moving data between tuner and usb sound > > card? >=20 > It sounds that the description of the patch is not 100%, as it seems > that you're not seeing the hole picture. >=20 > This is designed to solve a very common usecase for media devices > where one physical device (an USB stick) provides both audio > and video. Aha, ok, it makes sense now. Thanks! Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --gKMricLos+KVdGMg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlwM/moACgkQMOfwapXb+vKOCACcCSevIvvLj57RR7yYVXHr54DH emcAoK0Pb/5LFFQjUm/27hJjWMsRwkXQ =XydS -----END PGP SIGNATURE----- --gKMricLos+KVdGMg--