Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5209214rwd; Mon, 12 Jun 2023 01:24:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5cDFw3F2ZOH48ASsn8eFnzTVQXzccNIWK39FB5f8JVEFa9K7guTDRAQP4MO8+jaC+TXEk7 X-Received: by 2002:aa7:d313:0:b0:50d:89d5:bf95 with SMTP id p19-20020aa7d313000000b0050d89d5bf95mr4653705edq.20.1686558245061; Mon, 12 Jun 2023 01:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686558245; cv=none; d=google.com; s=arc-20160816; b=g5/JhAjNMD3kWmWhC5B0hyfV5sGGyoZHG8Ub17aDLj4u9TnRn4u2hJt+xcO79Jg/bJ 4oi02JoxrS9f6hEMhetAsodEP/MpFrVdjyNRqbk5ZZZfuPCOpAPJm8atbSx2bzTBpaap TkPI7ADEn6J6T5P9sNOI3V9px4D5H+mf7ILqssjQTfoSNyejZ6n1vvuyejaYfThDek7M fd0IJxAXv/EwZ1GAJU+O5R8qZaS0e84WRHoPZ5Kz0+E1TjI+5fqbmME+YsU1SV+ha5yy 6A/niNgrbzIiEquyqE6Go4JssOdF2cu6Ji1QFhXV9NGtlZ3kgxS77Vnv2rr2v0ctyhxl qQAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=wy55YqLCeSe3EZduBTyhl4afgk45rbKUhrCZNvDKi10=; b=QGUlDNbcx+hEWONV708oHEi8xErqs2z9tMitvpyyX3sn4zboR+RIYYUGk+5MTDIux/ LdUp2Qhfx3U/QSZvt1sXaDkXkL+doVUtZ69vaV2zpAb8VPtwOv2JkAM4VKlGRsysbkmt wkmnQwERtPa771Y4DQm/UJ0BGuJ6Q4+c2Hk38tLSuOVpYJkufLtq9kzeAHP/5C18pXnF jSho+GHxQK3EMUi8Fje8CAIiem04/o0/d04NbpkjazhcxSsfR5Na939QPD5TFpx3XDlG Llv310PNEu9KrBwtn4TX2cOWbJO7ebhQkn0acdkdQRlRLIEYQ9lPFFmFspgYAHSRrGXh qQ8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=BvQvCPJk; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o19-20020aa7d3d3000000b0050bcc56b523si5338509edr.384.2023.06.12.01.23.39; Mon, 12 Jun 2023 01:24:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=BvQvCPJk; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230059AbjFLILw (ORCPT + 99 others); Mon, 12 Jun 2023 04:11:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229841AbjFLILo (ORCPT ); Mon, 12 Jun 2023 04:11:44 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B646F170B for ; Mon, 12 Jun 2023 01:11:16 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 84E5F20488; Mon, 12 Jun 2023 08:11:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686557466; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wy55YqLCeSe3EZduBTyhl4afgk45rbKUhrCZNvDKi10=; b=BvQvCPJkbnJzqa/L7vHEK5tbiraToFmmOqK73lyrB05HXQZRg74dd6/7xh4m010xazDL5S ZHZ81p4x3OF5PBaafD5tqi7GzXaNmWRjZbB7PrE8P3yV/yRAuqoI4Bdyy76RVIB88W0O9u 8NpVISUcK4aMn1+2Qfq+bWSOWGjm54s= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686557466; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wy55YqLCeSe3EZduBTyhl4afgk45rbKUhrCZNvDKi10=; b=TpuiVNktfQB5h/primn0ugsehUY7Satk4q+BC3reLGS3Sn4sC/Jv1HLJDDzUMN6zsMweC7 d/lqnH+yu+d0ilBw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 620BF138EC; Mon, 12 Jun 2023 08:11:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id uJggFhrThmSLcAAAMHmgww (envelope-from ); Mon, 12 Jun 2023 08:11:06 +0000 From: Takashi Iwai To: alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 04/10] ALSA: usb-audio: Add midi2_ump_probe option Date: Mon, 12 Jun 2023 10:10:48 +0200 Message-Id: <20230612081054.17200-5-tiwai@suse.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230612081054.17200-1-tiwai@suse.de> References: <20230612081054.17200-1-tiwai@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a new option to enable/disable the UMP Endpoint probing. Some firmware seems screwed up when such a new command issued, and this option allows user to suppress it. Signed-off-by: Takashi Iwai --- sound/usb/midi2.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/sound/usb/midi2.c b/sound/usb/midi2.c index fad094e15999..13fa1978267a 100644 --- a/sound/usb/midi2.c +++ b/sound/usb/midi2.c @@ -27,6 +27,10 @@ static bool midi2_enable = true; module_param(midi2_enable, bool, 0444); MODULE_PARM_DESC(midi2_enable, "Enable MIDI 2.0 support."); +static bool midi2_ump_probe = true; +module_param(midi2_ump_probe, bool, 0444); +MODULE_PARM_DESC(midi2_ump_probe, "Probe UMP v1.1 support at first."); + /* stream direction; just shorter names */ enum { STR_OUT = SNDRV_RAWMIDI_STREAM_OUTPUT, @@ -1136,10 +1140,12 @@ int snd_usb_midi_v2_create(struct snd_usb_audio *chip, goto error; } - err = parse_ump_endpoints(umidi); - if (err < 0) { - usb_audio_err(chip, "Failed to parse UMP endpoint\n"); - goto error; + if (midi2_ump_probe) { + err = parse_ump_endpoints(umidi); + if (err < 0) { + usb_audio_err(chip, "Failed to parse UMP endpoint\n"); + goto error; + } } err = create_blocks_from_gtb(umidi); -- 2.35.3