From patchwork Wed Apr 3 07:32:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 10882983 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 84C4D1390 for ; Wed, 3 Apr 2019 07:41:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6535F2897A for ; Wed, 3 Apr 2019 07:41:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 567F428984; Wed, 3 Apr 2019 07:41:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A95482897A for ; Wed, 3 Apr 2019 07:41:47 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 4FFCA1640; Wed, 3 Apr 2019 09:32:25 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4FFCA1640 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1554276795; bh=e/7JvwN7LLHETWeVAqtjOhjYjGKYNsROZsq91jojmB8=; h=To:From:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=iYDDFb81VJpH1qWVSg5dnlMk/p1LmF3lFajGjcbP3r8VaFq54umc2UTDa1+7M8+oL lMo6OrsFBGiZzMkewsKgQxNg6wSWYi7m9uhWW2dfchBi4I1rjZwum6EmcmhnhBQtPC eeYiih+GpysAXITLiHRVejefHOO1zqv9DgdW50rI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C5F52F8071D; Wed, 3 Apr 2019 09:32:24 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 84453F8962D; Wed, 3 Apr 2019 09:32:23 +0200 (CEST) Received: from lb3-smtp-cloud7.xs4all.net (lb3-smtp-cloud7.xs4all.net [194.109.24.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id BE22EF8068A for ; Wed, 3 Apr 2019 09:32:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BE22EF8068A Received: from [192.168.2.10] ([212.251.195.8]) by smtp-cloud7.xs4all.net with ESMTPA id BaNbhpWXRNG8zBaNfhO6ii; Wed, 03 Apr 2019 09:32:19 +0200 To: Linux Media Mailing List From: Hans Verkuil Message-ID: <30de419f-5dac-71a1-9255-d334d6025a0d@xs4all.nl> Date: Wed, 3 Apr 2019 09:32:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 Content-Language: en-US X-CMAE-Envelope: MS4wfOV4/Z9kEsFYYIEAC7nOZxHQP3tqzxaiPJ2n0iojSW+lAM4h8iGDoT68vJIoEipfE07h645D8ZCKEGc9ZMmuJJN1fRguwCbYDbBLKD8xGgYr+XGuu3D/ jORiNWQDJ+4FYFfPvz9r2ElMNTh3C3+i6z6uA6SVWMizOLABg4VSB/dJV03wrSGzE1cHVtywsL2kC0wFI4eoD4UF+mUMnj0spcB+l78Ngg+dXmIvd/PXO8ee QATOJS/Fcs6mMGT+xM7zSMFE2ztCSTyeuNWQB6I/uhg= Cc: alsa-devel@alsa-project.org, Shuah Khan , Takashi Iwai Subject: [alsa-devel] [GIT PULL FOR v5.2] Media Device Allocator API X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi Mauro, After five (!) years of work, this is finally ready to go in. Thank you Shuah for your perseverance! Regards, Hans The following changes since commit 1c3ec30bb23023d738b538e64ac3028902d53692: media: index.rst: exclude Indexes section from latex/pdf output (2019-03-30 09:42:35 -0400) are available in the Git repository at: git://linuxtv.org/hverkuil/media_tree.git tags/br-v5.2c3 for you to fetch changes up to 5ea25de43fd59a319136cf5b2e547ca315cfb212: au0828: stop video streaming only when last user stops (2019-04-03 09:01:15 +0200) ---------------------------------------------------------------- Tag branch ---------------------------------------------------------------- Hans Verkuil (1): au0828: stop video streaming only when last user stops Shuah Khan (8): media: Media Device Allocator API media: change au0828 to use Media Device Allocator API media: media.h: Enable ALSA MEDIA_INTF_T* interface types sound/usb: Use Media Controller API to share media resources au0828: fix enable and disable source audio and video inconsistencies selftests: media_dev_allocator api test au0828: Fix NULL pointer dereference in au0828_analog_stream_enable() media: Clear devnode->media_dev holding media_devnode_lock Documentation/media/kapi/mc-core.rst | 41 ++++++ drivers/media/Makefile | 6 + drivers/media/media-dev-allocator.c | 135 +++++++++++++++++ drivers/media/media-devnode.c | 3 +- drivers/media/usb/au0828/Kconfig | 2 + drivers/media/usb/au0828/au0828-core.c | 196 ++++++++++++++++++------ drivers/media/usb/au0828/au0828-video.c | 16 +- drivers/media/usb/au0828/au0828.h | 6 +- include/media/media-dev-allocator.h | 63 ++++++++ include/uapi/linux/media.h | 25 ++-- sound/usb/Kconfig | 4 + sound/usb/Makefile | 2 + sound/usb/card.c | 14 ++ sound/usb/card.h | 3 + sound/usb/media.c | 327 +++++++++++++++++++++++++++++++++++++++++ sound/usb/media.h | 74 ++++++++++ sound/usb/mixer.h | 3 + sound/usb/pcm.c | 29 +++- sound/usb/quirks-table.h | 1 + sound/usb/stream.c | 2 + sound/usb/usbaudio.h | 6 + tools/testing/selftests/media_tests/media_dev_allocator.sh | 85 +++++++++++ 22 files changed, 976 insertions(+), 67 deletions(-) create mode 100644 drivers/media/media-dev-allocator.c create mode 100644 include/media/media-dev-allocator.h create mode 100644 sound/usb/media.c create mode 100644 sound/usb/media.h create mode 100755 tools/testing/selftests/media_tests/media_dev_allocator.sh