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=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 85C01C49ED6 for ; Wed, 11 Sep 2019 12:54:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 63F9E20863 for ; Wed, 11 Sep 2019 12:54:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727851AbfIKMyw (ORCPT ); Wed, 11 Sep 2019 08:54:52 -0400 Received: from rfoutemea1.hes.trendmicro.eu ([52.58.63.51]:56992 "EHLO rfoutemea1.hes.trendmicro.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727806AbfIKMyw (ORCPT ); Wed, 11 Sep 2019 08:54:52 -0400 X-Greylist: delayed 1181 seconds by postgrey-1.27 at vger.kernel.org; Wed, 11 Sep 2019 08:54:51 EDT Received: from 0.0.0.0_hes.trendmicro.com (unknown [192.168.11.221]) by rfoutemea1.hes.trendmicro.eu (Postfix) with ESMTPS id 7AE9A4B075F for ; Wed, 11 Sep 2019 12:35:10 +0000 (UTC) Received: from 0.0.0.0_hes.trendmicro.com (unknown [192.168.13.134]) by routemea2.hes.trendmicro.eu (Postfix) with SMTP id 35DA8510069 for ; Wed, 11 Sep 2019 12:35:09 +0000 (UTC) Received: from mail.lan.thesycon.de (unknown [80.88.23.201]) by relayemea3.hes.trendmicro.eu (TrendMicro Hosted Email Security) with ESMTP id AB8696EA05A for ; Wed, 11 Sep 2019 12:35:08 +0000 (UTC) Received: from [192.168.1.106] (ue1.lan.thesycon.de [192.168.1.106]) by mail.lan.thesycon.de (Postfix) with ESMTP id 84D69E847B7 for ; Wed, 11 Sep 2019 14:35:08 +0200 (CEST) To: linux-usb@vger.kernel.org From: Udo Eberhardt Subject: usb: gadget: f_fs: Question on descriptor parsing in f_fs.c Message-ID: Date: Wed, 11 Sep 2019 14:35:08 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TMASE-Version: StarCloud-1.3-8.5.1020-24904.006 X-TMASE-Result: 10--0.378200-4.000000 X-TMASE-MatchedRID: 0eRUN7oaBN+MkFI4QIufqklR2DE0NRdaMOhRB5C/8I/xBB/ThHC4Mn6d LtafLqO8ag0GuAAxFGFrkYv5jGLcsbI9IhPaTqbkboe6sMfg+k8Ea8g1x8eqF1pL53A87aJbddD NUlHYqIgbfReKr9fckmSpu2vb1QC02vb713uVhGuWAT2bUHJRZ/RLPzmkXadUtFoIKiiSyUOeAi CmPx4NwLTrdaH1ZWqCZYJ9vPJ1vSDUCjMSsLl1x+TCMddcL/gjymsk/wUE4hoIy2+6rlJrlhD04 tJT/eD3GKQkbQ/FQMfZaW5L3ooIRzyajuK/mHiaDREYT6RnNsV2ViqQjbr+cVp+5ibgSRkmlnPK z+Afdrki2Da25f3azte2UU87qNJb9QRUdZkLkz07AmWJfZlCp+80ZJ3L3v/8 X-TM-Deliver-Signature: 194CD20E8E1C79F9AEFF5B57CF181067 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Hi, We are currently trying to implement an UAC2 function in user mode based on f_fs. We found that descriptor parsing in f_fs.c does not support audio (or video) class descriptors. We could develop a patch to add UAC1/UAC2 handling. But before we do that I wanted to check if this is the right approach. My question: Is f_fs limited by design to simple device classes like HID or CCID, or is it supposed to support arbitrary classes? In the latter case descriptor parsing needs to be extended significantly to handle the non-trivial cases. Best regards, Udo