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 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DBD64C4167B for ; Mon, 27 Nov 2023 09:22:34 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 47EBA828; Mon, 27 Nov 2023 10:22:22 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 47EBA828 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1701076952; bh=bYWHvpIohRF58uQ5bmLZMazd3VvI3mTPzaklnKBNM00=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Fospu/aDQMrwvwxUvyXPgabodxJKSuvLes8KtSQEaBDHJDbLUuEa1Q+KiWBh/M/0w ZcqbUUb9VLhsZ6YQoTqY1L3ee8xG2/I59NYcsL4vG+NUjYc2do3FLjnYrIYom7pijL AIy4BR589xB567JjSTXaPmh98KWekRaoGmjs94mA= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 31459F80589; Mon, 27 Nov 2023 10:21:59 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id A9EE9F8057E; Mon, 27 Nov 2023 10:21:59 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 186F7F801D5; Mon, 27 Nov 2023 10:21:55 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 115E3F800F5 for ; Mon, 27 Nov 2023 10:21:49 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 115E3F800F5 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=mAilhSTj; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=UhCwFNoK Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 3AE2A202CB; Mon, 27 Nov 2023 09:21:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1701076909; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=J40GjO5fTp7CxgfWZ9x3no/nnERaM9YKO3wZIscBgCg=; b=mAilhSTj0AOWvAHBUFMxcAwmdms1nLB/JfzQX+P3+/ZgaPpJRJvIU+N19DyoGGfHFuWf/q nVS6l83fUaMez/69sm62NgDBbENgDCGhqPqcVTjG3AJTLIvdWlvXPgY51aTgpl00oj6ArK f2FmMQG5xqgE3dtkQVicUKrA6OwzmgQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1701076909; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=J40GjO5fTp7CxgfWZ9x3no/nnERaM9YKO3wZIscBgCg=; b=UhCwFNoKp79Ojk5jFizvNj0+aWqYzSk/JuDz0eznlUs3I9HORaGxGEYiI8godI/WkDtywe puSd8JGeUw1jQ2Aw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 1B5F91367B; Mon, 27 Nov 2023 09:21:49 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id OlSpBK1fZGW7PAAAD6G6ig (envelope-from ); Mon, 27 Nov 2023 09:21:49 +0000 Date: Mon, 27 Nov 2023 10:21:48 +0100 Message-ID: <87v89no8k3.wl-tiwai@suse.de> From: Takashi Iwai To: Julian Sikorski Cc: ALSA Development Mailing List Subject: Re: Yamaha YIT-W12TX not working In-Reply-To: <0fbebd11-cbcc-4595-b9b0-fff2bba937e6@gmail.com> References: <47549112-b2c6-1957-9055-888a4191c6ab@gmail.com> <204b6079-7348-418e-8d97-82d798a28d69@gmail.com> <98d10b80-40cb-4511-898e-c287663f0882@gmail.com> <877cm3pqd3.wl-tiwai@suse.de> <0fbebd11-cbcc-4595-b9b0-fff2bba937e6@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Authentication-Results: smtp-out2.suse.de; none X-Spamd-Result: default: False [-7.25 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-0.95)[-0.946]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MID_CONTAINS_FROM(1.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[yamaha.com:url]; FREEMAIL_TO(0.00)[gmail.com]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%] Message-ID-Hash: EWPWIQOX23WQ2QO5VOXPDOIZ54GUJ3HF X-Message-ID-Hash: EWPWIQOX23WQ2QO5VOXPDOIZ54GUJ3HF X-MailFrom: tiwai@suse.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Mon, 27 Nov 2023 10:15:05 +0100, Julian Sikorski wrote: > > Am 27.11.23 um 09:11 schrieb Takashi Iwai: > > On Sun, 26 Nov 2023 10:12:56 +0100, > > Julian Sikorski wrote: > >> > >> Am 17.11.23 um 15:31 schrieb Julian Sikorski: > >>> Am 13.12.2020 um 10:51 schrieb Julian Sikorski: > >>>> Hi list, > >>>> > >>>> Yamaha YIT-W12TX is a USB dongle which allows to transmit audio > >>>> from PC to the YSP-4300 sound bar [1][2]. While it is quite old and > >>>> no longer sold, I recently tried to make it work under > >>>> linux. Unfortunately, it did not work: > >>>> > >>>> [ 3676.366404] usb 2-1.1: new full-speed USB device number 5 using > >>>> ehci-pci > >>>> [ 3676.445995] usb 2-1.1: config 1 has an invalid interface number: > >>>> 4 but max is 3 > >>>> [ 3676.446001] usb 2-1.1: config 1 has no interface number 2 > >>>> [ 3676.446664] usb 2-1.1: New USB device found, idVendor=0499, > >>>> idProduct=3108, bcdDevice= 1.00 > >>>> [ 3676.446666] usb 2-1.1: New USB device strings: Mfr=2, Product=1, > >>>> SerialNumber=0 > >>>> [ 3676.446679] usb 2-1.1: Product: YIT-W12TX > >>>> [ 3676.446683] usb 2-1.1: Manufacturer: YAMAHA Corp. > >>>> [ 3676.449508] hid-generic 0003:0499:3108.0001: hiddev96,hidraw0: > >>>> USB HID v0.01 Device [YAMAHA Corp. YIT-W12TX] on > >>>> usb-0000:00:1d.0-1.1/input3 > >>>> [ 3676.450846] input: YAMAHA Corp. YIT-W12TX as > >>>> /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.4/0003:0499:3108.0002/input/input34 > >>>> [ 3676.503844] hid-generic 0003:0499:3108.0002: input,hidraw1: USB > >>>> HID v1.00 Device [YAMAHA Corp. YIT-W12TX] on > >>>> usb-0000:00:1d.0-1.1/input4 > >>>> [ 3676.671641] usb 2-1.1: 1:1: cannot get freq at ep 0x1 > >>>> [ 3676.675786] usb 2-1.1: 5:0: cannot get min/max values for > >>>> control 2 (id 5) > >>>> [ 3676.676476] usbcore: registered new interface driver snd-usb-audio > >>>> [ 3676.731911] usb 2-1.1: 5:0: cannot get min/max values for > >>>> control 2 (id 5) > >>>> [ 3676.735658] usb 2-1.1: 5:0: cannot get min/max values for > >>>> control 2 (id 5) > >>>> [ 3676.739399] usb 2-1.1: 5:0: cannot get min/max values for > >>>> control 2 (id 5) > >>>> [ 3676.743131] usb 2-1.1: 5:0: cannot get min/max values for > >>>> control 2 (id 5) > >>>> [ 3676.746920] usb 2-1.1: 5:0: cannot get min/max values for > >>>> control 2 (id 5) > >>>> [ 3676.750648] usb 2-1.1: 5:0: cannot get min/max values for > >>>> control 2 (id 5) > >>>> [ 3676.754445] usb 2-1.1: 5:0: cannot get min/max values for > >>>> control 2 (id 5) > >>>> [ 3676.758524] usb 2-1.1: 5:0: cannot get min/max values for > >>>> control 2 (id 5) > >>>> [ 3676.762274] usb 2-1.1: 5:0: cannot get min/max values for > >>>> control 2 (id 5) > >>>> [ 3676.789671] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.790049] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.790414] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.790773] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.791169] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.792134] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.792547] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.792899] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.793254] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.793634] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.794900] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.795255] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.795634] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.796008] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.796384] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.797543] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.797879] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.798254] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.798634] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.799007] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.813819] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.814281] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.814686] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.815281] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.815929] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.817807] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.818155] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.818592] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.819165] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.819801] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.822163] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.822802] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.823284] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.824161] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.824907] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.827683] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.828159] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.828675] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.829415] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.830157] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.841801] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.842155] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.842551] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.843158] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.843785] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.844909] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.845283] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.845673] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.846156] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.846800] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.848287] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.848799] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.849280] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.850031] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.850799] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.852677] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.853154] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.853674] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.854429] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.855155] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.858916] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.859277] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.859672] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.860280] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.860909] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.862033] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.862418] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.862797] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.863279] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.863923] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.865471] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.866033] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.866590] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.867410] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.868157] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.870162] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.870674] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.871155] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.871908] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.872676] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> [ 3676.900672] usb 2-1.1: USB disconnect, device number 5 > >>>> [ 3676.900688] usb 2-1.1: 1:1: cannot set freq 44100 to ep 0x1 > >>>> > >>>> This is with kernel-5.9.13-200.fc33.x86_64 and > >>>> alsa-lib-1.2.4-5.fc33.x86_64 on Fedora 33. Under Windows 10 the > >>>> dongle works without any special drivers from Yamaha, everything > >>>> appears to be downloaded by Windows automatically, so I was hoping > >>>> the device could be made to work under Linux relatively easily. > >>>> > >>>> Best regards, > >>>> Julian > >>>> > >>>> [1] > >>>> https://europe.yamaha.com/en/products/audio_visual/accessories/yit-w12/downloads.html#product-tabs > >>>> [2] > >>>> https://europe.yamaha.com/en/products/audio_visual/sound_bar/ysp-4300/downloads.html#product-tabs > >>> > >>> Hello, > >>> > >>> 3 years later I am still hoping for getting the device working. I am > >>> on 6.5 kernel and Fedora 39. > >>> I am attaching Windows' driver details screenshot as well as the inf > >>> file used. > >>> Does USB audio driver under linux have any parameters I could try? > >>> > >>> Best regards, > >>> Julian > >> > >> Hi again, > >> > >> turns out that getting the sound out was easier than expected: > >> > >> options snd-usb-audio quirk_flags=0x1 > > > > And this alone helps to get the card working? > > Once after confirmation, we can add the quirk to the static table. > > > > Yes, no other changes were needed. I am on kernel 6.6.2 now. I have > been listening to music via the dongle for several hours yesterday and > today. Even s2idle is working. OK, then it's easy to apply the quirk. > >> One cosmetic issue remains: in pavucontrol I can see 3 configuration > >> options: > >> - Analog Stereo output > >> - Digital Stereo (IEC958) output > >> - Pro Audio > >> The first and the third one work normally whereas digital stereo > >> output very quiet audio only. > >> By contrast, both my built-in audio cards (AMD Renoir HDMI and analog > >> output) only have two options: > >> - Play HiFi quality Music > >> - Pro Audio > >> Is this expected? > > > > When the device provides multiple outputs, yes, it's a sort of default > > setup. Different boards may have different own UCM configs to > > override the default. > > Check each output and verify what actual I/O they correspond. > > > > Well, the dongle does not have any physical outputs. Input-wise, it > can be connected to a PC via USB or to an old iPod/iPhone via the > 30-pin dock connector. > As far as output is concerned, the dongle connects wirelessly, via a > proprietary AirWired protocol, to the Yamaha sound bar and its > accompanying wireless subwoofer. Analog and pro output selection > produce reasonably loud sound on the soundbar, in line with other > inputs like FM radio, analog input or HDMI. Digital output, on the > other hand, produces barely audible volume level. While it can be > adjusted with the volume setting on the sound bar, the level needs to > be so high that it would be unbearably loud for other inputs. Could you give alsa-info.sh outputs? The device may have multiple I/O endpoints that end up with multiple PCM streams for som purpose. thanks, Takashi