Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

  • Author

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.