]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ALSA: usb-audio: qcom: Notify USB audio devices on USB offload probing
authorWesley Cheng <quic_wcheng@quicinc.com>
Wed, 9 Apr 2025 19:48:04 +0000 (12:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Apr 2025 11:02:33 +0000 (13:02 +0200)
If the vendor USB offload class driver is not ready/initialized before USB
SND discovers attached devices, utilize snd_usb_rediscover_devices() to
find all currently attached devices, so that the ASoC entities are notified
on available USB audio devices.

Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20250409194804.3773260-32-quic_wcheng@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/qcom/qc_audio_offload.c

index 378249a264a360bb882ac4833150a2b39c3737a1..5874eb5ba827bffc245c9fae51b5bc0240146702 100644 (file)
@@ -1952,6 +1952,8 @@ static int qc_usb_audio_probe(struct auxiliary_device *auxdev,
        if (ret < 0)
                goto release_qmi;
 
+       snd_usb_rediscover_devices();
+
        return 0;
 
 release_qmi: