Jump to content

Issues with Configuring USB Audio Gadget (g_audio) on Orange Pi 5B - Microphone Not Recognized


Recommended Posts

Posted (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 by trainyinfi
Posted

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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines