trainyinfi Posted May 25 Posted May 25 (edited) Configure Orange Pi 5B with Armbian OS so that it displays as a microphone and speaker when connected to a PC via the Type-C port, need to ensure the correct setup of the sound card. When connect Orange Pi 5B to PC via the Type-C port, it should now recognize the Orange Pi as a microphone and speaker. Please provide detail guide and suggest to achieve this setup Edited May 25 by trainyinfi 0 Quote
trainyinfi Posted May 27 Author Posted May 27 I'm currently working on configuring the USB audio gadget (g_audio) on my Orange Pi 5B to ensure both the speaker and microphone are recognized by the host PC. However, I am facing an issue where only the speaker (playback) interface shows up on the host, while the microphone (capture) interface does not. Here are the steps I have followed so far: 1.Kernel Modules Loaded: sudo modprobe dwc3 sudo modprobe dwc3-gadget sudo modprobe libcomposite sudo modprobe g_audio 2.Unloaded and Reloaded g_audio Module with Parameters: sudo modprobe -r g_audio sudo modprobe g_audio p_chmask=0x3 c_chmask=0x3 p_srate=48000 c_srate=48000 3. Bind the Gadget to the USB Controller: echo "$(ls /sys/class/udc)" > /sys/kernel/config/usb_gadget/g1/UDC Despite these steps, the host PC only recognizes the playback interface. How can I configure the g_audio USB gadget on the Orange Pi 5B to ensure that both the speaker (playback) and microphone (capture) interfaces are recognized by the host PC? Are there any additional steps or configurations that I might be missing? Any help or guidance would be greatly appreciated! Thank you in advance. 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.