From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DE79361952 for ; Sun, 18 Oct 2026 19:53:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792353186; cv=none; b=BFZk9aSpiY27maeyyyBq7czggM6WYS42f28CgQIM/0HYU47GCn4mqGJHZFCzAtDCnWthfx19n1K68xvtbw/uKK8ZNri2msIQivsLxRTbMblOfdpBikYZOvY58KrTzJe+pV85IaZNhC1YYzcTC54cfvDA/BGcErPXNueVtWgNY58= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792353186; c=relaxed/simple; bh=OYatXJ25PGBn/IK2IFH7QyggHeIOnTh0kghBv6Ci/cU=; h=Mime-Version:Content-Type:Date:Message-Id:To:Cc:Subject:From: References:In-Reply-To; b=fuJQgiXmVU/0d3fOHGiULgxmK8kfeZ8P/a0rrt89nnIAY9/D2JT38dt9L1ViNVnGm/fB4Uja3b6EC9xRE4b0GkzGPSQfoNojsbLOeih2W8Go9AW2BWwYx4+687iVo5oE6KdGgDy6MoQYfUYiTMx6IuxAB9VDWLGKn5S5TXInD6E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MApnRIJ2; arc=none smtp.client-ip=209.85.222.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MApnRIJ2" Received: by mail-ua1-f54.google.com with SMTP id a1e0cc1a2514c-990628fdff8so19968241.0 for ; Sun, 18 Oct 2026 12:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792353183; x=1792957983; darn=lists.linux.dev; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=Wr/MzixbYBwaR8lJPphPBtNkVbR0d9HoMIeGuuWB7w8=; b=MApnRIJ2oTZ8TfEYNEtnU64m6UpsIKs2luufX3XaMGpaUNTDNdcitDggJPpXFrA9XT mxHO/WunMSa/LoxfhZ9ygwNjmycSXwAL2Ayedw2CYGiEKYm/AlecXm5duPHwqc+Q2LNh WTWlTwRYh84TKAQs6liAljSDNtcu7mhHqCYAFO/ftDoX4O0yXyIvdDvl0o8F6bHEXngc TmX2GTNPsM3oRgA0GM6HNLNckJkdQSNMiMzJfU5P3Dsf2ix+cu5Gg6P48aItzgTXTbKy MMm5Mu7MRLM/KrZMUKHSF61rF4B4A/RZHVYwHbe+x4/RAqkIJyDtKOiG5DfK6B4PqLEI T92g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792353183; x=1792957983; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Wr/MzixbYBwaR8lJPphPBtNkVbR0d9HoMIeGuuWB7w8=; b=rosyxUL2q/gDueX6CXEA54Xj2H1bG0z/hY9lHfgPHb0189M7H2Tlu1DFhvcgXpUMkQ VChqVGC7ikRNv/ZMvUX/4k2tx99NZp5IddSAMjolI4m9FJxowFgWYDd4fTbJKkiZmQuq cyLVIiXBWZhfdqSoxTypSqaLKZybxGWcGEnw8w+2yaGvZp5OfD1hOqYRLG9olx3iGkPM mQ28oq11gsYBcVAFghJMXim3UdeHiL6DAWJzcVOStSpaEeJpkPBWixVC3ptuluA2nGSS Yc3IThDSPE5aT1sMTYeEHeEOyINiHU+JVNGzLlqzDaIX3snHd7T4ta6xKphzqgep8iP6 QwXg== X-Forwarded-Encrypted: i=1; AKwUvBxmnyIGrBaUZ+QWc4X5VvrNIDevQmSPvNv6zP9mAI6GrWXSbEtCWdqx8Pfig50zY2Ig59mCvdLgcNpfX6Cq@lists.linux.dev X-Gm-Message-State: AFq9FYIdp8vE6F1wO+8L390Nvh6FwTvL9JYyPp2zuPTI8uo67V+e6fdD 2ZQFvG0xvTOXYnOugFDtQIbW+V6+STya1a8wzpIwEZHJOM5SQSTgUAzl X-Gm-Gg: AYBFou1DcizbHzOQHb5nBGF1JUhIk5zPrw/ISd22UJxVbccncjUzDV3lkYgf1PxA9hM cTRQ4iN7AhCfdvRKYitnd00ykzbMmHDhQQagjqmM94+UkVFdlWxjOBKeHuo56ZyaHTGyqJ8ha01 7GAiKovcRx4B/35v0Q/zwgoDXtk93oBWwa7/lHrsU8amMsLAp2j4ttbneyHaTMDwz7qNX4jKXcA eODNkGbjR53K/HbaZgjhiYzMigiVzqY+dMjWzAnCw7ME27J3ExxynomCbGIi7v6YbPwpx2473EX mVcX8qnUflalP+WOdbTqA7fgDXc2nVCRIv0EY5SbaJnV6A45WfC7VertFEIVkPQy/jcnqb6msnb kObt97hrqdJ9EpsYTIhgIj/36mFIdSL9Xh5wQSscNnhQPcid2OWDn8vS8PLUEDJs6+xHo+u/isM QvFbMyeycWIPeh1EMM3SdSdIwla1OG3MEpXTtMxB7abgKKchRBDdNOOwp0c2D1NFp5 X-Received: by 2002:a05:6102:418f:b0:7c3:83a9:edb2 with SMTP id ada2fe7eead31-7cc3675493amr1035152137.1.1792353182908; Sun, 18 Oct 2026 12:53:02 -0700 (PDT) Received: from localhost ([2802:8012:9f:dd00:109f:2ff4:4712:873]) by smtp.gmail.com with ESMTPSA id ada2fe7eead31-7cc1987900fsm8043946137.10.2026.10.18.12.52.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Oct 2026 12:53:02 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sun, 18 Oct 2026 16:52:55 -0300 Message-Id: To: "Martin Wetterwald" Cc: "Florian Fainelli" , "Broadcom internal kernel review list" , "Jai Luthra" , "Greg Kroah-Hartman" , "Stefan Wahren" , "Phil Elwell" , "Laurent Pinchart" , "Umang Jain" , "Kees Cook" , , , , , Subject: Re: [PATCH] platform/raspberrypi: vchiq: register bus at subsys_initcall From: "Gaston Gonzalez" X-Mailer: aerc 0.20.0 References: <20261013131435.1454019-1-martin@wetterwald.eu> In-Reply-To: On Fri Oct 16, 2026 at 6:00 AM -03, Martin Wetterwald wrote: > On Thu, Oct 15, 2026 at 11:25=E2=80=AFPM Gaston Gonzalez wrote: >> Hi, >> >> For Raspberry Pi Zero v1.3: >> >> Tested-by: Gaston Gonzalez >> >> Test setup: >> >> - Branch: patch manually applied in staging-next over commit ec1ecf4f23c= 5 >> - Setup: RPi Zero v1.3 connected to a HDMI monitor >> - OS: standard raspbian with the desktop environment enabled >> - Driver built both as a module and built-in. >> - The following command was run to test the sound: 'speaker-test -t wav = -c 2' >> - Result: Both HDMI audio channels worked correctly > > Hello Gaston, > Thanks very much for your test! > It's great to have variety in tests because I don't have the Pi Zero, and= I > didn't test it through HDMI, I tested through the Headphones jack (which > doesn't exist on the Pi Zero). > > Did you also also reproduce the bug without adding my patch? > If the bug is present, cat /proc/asound/cards should reveal bcm2835_hdmi = and > bcm2835_headphones are both not present. And you should see this in the d= mesg: >> Driver 'bcm2835-audio' was unable to register with bus_type 'vchiq-bus' = because the bus was not initialized. > > Regarding your test: there are two ways for the sound to go through the H= DMI > port: > - One is through the bcm2835-audio driver (using VCHIQ) > - The other way is through the vc4-hdmi (bypassing VCHIQ) > > # cat /proc/asound/cards > 0 [vc4hdmi ]: vc4-hdmi - vc4-hdmi > vc4-hdmi > 1 [HDMI ]: bcm2835_hdmi - bcm2835 HDMI > bcm2835 HDMI > 2 [Headphones ]: bcm2835_headpho - bcm2835 Headphones > bcm2835 Headphones > Hi Martin, cat /proc/asound/cards shows only 'vc4-hdmi'. After adding the kernel command line you pointed out, the bcm2835_hdmi interface now appears. The default interface seems to be vc4-hdmi. I could switch to bcm2835 in alsamixer, and repeating the test in that conditions works. However, speaker-test seems to take the vc4-hdmi interface nevertheless. Running 'speaker-test -t wav -D plughw:1,0 -c 2' crash the system, so thinks seem not to be working with that interface. Im trying to debug what happens in that condition; I will need a couple of days I guess. So far, this is what I could check. Any feedback on the test or debugging would be appreciated. Regards, Gaston > Can you make sure that your HDMI sound is really using bcm2835_hdmi ? > If your sound happens to actually go through vc4-hdmi, then you are not t= esting > my patch. If you can't see the bcm2835_hdmi, you just need to add: > > snd_bcm2835.enable_hdmi=3D1 > > to your kernel command line if the driver is built in, or to the modprobe > command as module parameter. > >> I=E2=80=99d be happy to run any additional tests if needed. > > It would be interesting to test other "clients" of the VCHIQ bus (because= I > only tested bcm2835-audio). > But I've just noticed that bcm2835-camera doesn't exist anymore (it was u= sing > VCHIQ via VCHIQ_MMAL). > If I understand correctly, if VCHIQ_MMAL is still there, it's because the > bcm2835-isp and bcm2835-codec drivers will be upstreamed in the future, b= ut > there is not current "client" in the kernel as far as I understand. > > The only remaining thing I can think of is /dev/vchiq (CONFIG_VCHIQ_CDEV)= . > > Thanks again for the tests! > Martin