From mboxrd@z Thu Jan 1 00:00:00 1970 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=-8.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=unavailable 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 254C5C43387 for ; Fri, 11 Jan 2019 15:04:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E8AE12084C for ; Fri, 11 Jan 2019 15:04:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547219048; bh=lt1LKxrft1AXHVhZMFl0oGizfBeEONclnjG3cZSzY2I=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-ID:From; b=ZSurXGorYQ3oycD6saTvajvw6SlDSdwtw6b8ShNgOWQgCVbq7cJ9US1l/wON3xvqz RclltqHRyDbLC5hjyXB+9X/yC8QJ9uQfs6u7Ik6Qq7cN7+sRYoM8L+v8l+zo/8KkJs CPuRv4IbpGA6UusdVKFIBZoj2sAscyfBjCoEyrYc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391863AbfAKPEH (ORCPT ); Fri, 11 Jan 2019 10:04:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:49798 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389252AbfAKPEC (ORCPT ); Fri, 11 Jan 2019 10:04:02 -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 55F422184A; Fri, 11 Jan 2019 15:04:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547219041; bh=lt1LKxrft1AXHVhZMFl0oGizfBeEONclnjG3cZSzY2I=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=E5VLaNg/TO01/WbBUhe9NVdBmRly3PAhh2d5OczH4KSHoUbfMHYETkiNWKXMVcZzs kSGol47HmYjGG6vNK3NQjs/VEj0NOXlEFer810u4zVcYbozoLbGHCKU0gksh89tIMf yOC8+zqdTe2dGZGBmQpJTg1NSzexCYgx4sXu2164= Subject: Re: [alsa-devel] [PATCH v9 4/4] sound/usb: Use Media Controller API to share media resources To: Hans Verkuil , mchehab@kernel.org Cc: Takashi Iwai , perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, shuah References: <2fb40852e4035b2a58010ce7416448918f12804f.1545154778.git.shuah@kernel.org> <5f9588b5-657a-78ee-9614-ed0ef1fc5839@kernel.org> From: shuah Message-ID: Date: Fri, 11 Jan 2019 08:04:00 -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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/11/19 7:59 AM, Hans Verkuil wrote: > On 1/11/19 3:57 PM, shuah wrote: >> On 12/19/18 6:51 AM, Takashi Iwai wrote: >>> On Tue, 18 Dec 2018 18:59:39 +0100, >>> shuah@kernel.org wrote: >>>> >>>> From: Shuah Khan >>>> >>>> Media Device Allocator API to allows multiple drivers share a media device. >>>> This API solves a very common use-case for media devices where one physical >>>> device (an USB stick) provides both audio and video. When such media device >>>> exposes a standard USB Audio class, a proprietary Video class, two or more >>>> independent drivers will share a single physical USB bridge. In such cases, >>>> it is necessary to coordinate access to the shared resource. >>>> >>>> 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 when all >>>> the references are released. >>>> >>>> Change the ALSA driver to use the Media Controller API to share media >>>> resources with DVB, and V4L2 drivers on a AU0828 media device. >>>> >>>> The 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 >>> >>> Feel free to take my ack regarding the sound stuff: >>>    Reviewed-by: Takashi Iwai >>> >>> >>> Thanks! >>> >>> Takashi >>> >> >> Hi Mauro, >> >> Any update on this patch series? > > I'm planning to process this series for 5.1. Haven't gotten around to it yet, > but I expect to do this next week. > > Still going through all the pending patches after the Christmas period :-) > > Regards, > > Hans > Hans, Thanks for a quick reply. No worries. I am recovering from the Christmas and vacation myself. :) thanks, -- Shuah