Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10841094imu; Thu, 6 Dec 2018 07:36:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/V1Z6K3ob2THccoa8idVzidGMUEMK/8OGvBEnjGWLdQq8vwecGrumLoNb8UHKy8lEzp73dG X-Received: by 2002:a17:902:7581:: with SMTP id j1mr28885508pll.308.1544110579587; Thu, 06 Dec 2018 07:36:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544110579; cv=none; d=google.com; s=arc-20160816; b=FJaS49Sx93Mnlzrak43jf3/oWUkdQZZ6rmBPAJKvTXIEK7/m+kohdxLzf4S7leMFlT HgXodvrcdtTMt9XXaP77IvEpa3G1rjHkLzxbbfVlwPOgLSWzeJZRJRwYFlLJfJmTgAMe ovUdcXysNWuCDVcj9VWSjYyRTJDr2rWzwlRPcR+lfx1rQ5CwLT7HpsRmkZ5kQJMy8srV YcgHAz2MKZ4D+XcJtgariPjulbqZPZs+/BgWBfdGPbrmQvvB6oAJAhkcGMH/VW90RXD3 qfLS676BpUzroX+ypo8FbBbkbIZFAwdR3f0djRtfXBkKVAwSDCHB0pmMu4Xl/wDg/QLC pctA== 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=s6WY+tz5c2+iQ4QYO3iULWxTQFADQnGBAVuv6cbweuQ=; b=VC41bsiqmGVyBS5IT6oKYvWDsUw6MMywVUK78T7piry1kiN9lFnd1l78kOnxqrmgs6 mk0tr4SRwhqg8FjNPK9TxBtNgsffDvxjHd72jkmF9DIMejs+qx2T6LJMGYyh6AO3KLJn sA9PyFKFZJMdrEdhRzJiYaUUvVAT6wgDMqI7bPQFSFAofzArURBP5hTangdHlcHOWyMC Zt/XYlujf312dRl5A7UYhbAdHe32SYtXAfbhNEtHiYeZMiG8z1QvLLBXzIhkcxEIw13R pMQfgqOC125OxBkuEVS68OqheOfDD+0jnPfJY4Z0N+RodrK10rxwaqqC4adF8qHMCYXY lKCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dLU9M3MP; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5si501120pgq.82.2018.12.06.07.35.53; Thu, 06 Dec 2018 07:36:19 -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=@kernel.org header.s=default header.b=dLU9M3MP; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726056AbeLFPe7 (ORCPT + 99 others); Thu, 6 Dec 2018 10:34:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:42042 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726024AbeLFPe7 (ORCPT ); Thu, 6 Dec 2018 10:34:59 -0500 Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1F4F821479; Thu, 6 Dec 2018 15:34:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544110498; bh=s6WY+tz5c2+iQ4QYO3iULWxTQFADQnGBAVuv6cbweuQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=dLU9M3MP0sQIITtAPC46Bdgv7+xQCcDQpwfsmnbWmzw9EksexUHwtFFFff9WODOhY EaBz4lJi+nMxnt5dV1oUONtNVcyzHtXYtg4Lt6mhmkvDwPfSoc6i2UTkA9OLxVRJc7 3S5gObvzs9jMIKbZuv39IRGR433iUyYMc8b66isA= Subject: Re: [RFC PATCH v8 4/4] sound/usb: Use Media Controller API to share media resources To: Hans Verkuil , mchehab@kernel.org, perex@perex.cz, tiwai@suse.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, shuah References: <0b919080-669a-a266-c85c-66dc724a536b@xs4all.nl> From: shuah Message-ID: <3aef49a1-2dd7-c6c6-7c2e-5ba3cc76a695@kernel.org> Date: Thu, 6 Dec 2018 08:34:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <0b919080-669a-a266-c85c-66dc724a536b@xs4all.nl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hans, On 11/20/18 4:54 AM, Hans Verkuil wrote: > On 11/02/2018 01:31 AM, shuah@kernel.org wrote: >> From: Shuah Khan >> >> Change ALSA driver to use Media Controller API to share media resources >> with DVB, and V4L2 drivers on a AU0828 media device. >> >> Media Controller specific initialization is done after sound card is >> registered. ALSA creates Media interface and entity function graph >> nodes for Control, Mixer, PCM Playback, and PCM Capture devices. >> >> snd_usb_hw_params() will call Media Controller enable source handler >> interface to request the media resource. If resource request is granted, >> it will release it from snd_usb_hw_free(). If resource is busy, -EBUSY is >> returned. >> >> Media specific cleanup is done in usb_audio_disconnect(). >> >> Signed-off-by: Shuah Khan Thanks for the review. Fixing them all in the next revision. -- Shuah