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.

How to set default device in ALSA

Featured Replies

hello,

i am setting up Mopidy in Orange Pi PC2 with armbian.

but i found it only playback to the on-board sound card not the USB DAC i connected.

 

root@orangepipc2:/# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 []
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: allwinnerhdmi [allwinner,hdmi], device 0: 1c22800.i2s-i2s-hifi i2s-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Audio [iFi (by AMR) HD USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
 

i found there is no asound.conf in /etc ...

 

i tried alsactl store 2, but Mopidy still playback in 0

 

in /etc/modprobe.d/ there is nothing related to sound card neither 

 

how can i set the default alsa device to card 2 ?

thanks!

Joseph

3 hours ago, bigheart said:

card 2: Audio [iFi (by AMR) HD USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
 

i found there is no asound.conf in /etc ...

 

how can i set the default alsa device to card 2 ?

 

put and save the follwing in /etc/asound.conf and reboot:
 

pcm.!default {
    type hw
    card 2
    device 1
}

ctl.!default {
    type hw
    card 2
}

after reboot check the volume-level with alsamixer...

  • Author

thanks!

the default now set to the USB DAC now, but i found Mopidy not play to it...... trying to figure out why ....

by the way, can i define card number of the USB DAC? as it will become 1 when plugged before boot, and 2 when it is plugged after the bootup.

thanks!

Joseph

Guest
This topic is now closed to further replies.

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.