Odroid-C2: USB-Sound

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
mike175de
Posts: 67
Joined: Sat Sep 05, 2015 4:39 pm

Odroid-C2: USB-Sound

Post by mike175de »

Hey there,

I would like to use an USB-Soundcard with the O-C2. But there is no sound configuration in the dietpi-config as for Raspberry.

How do I have to set the USB-Card that the card is the default one and not the HDMI-Output?

Thx for any help!

Greets, mike175de
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Odroid-C2: USB-Sound

Post by Fourdee »

mike175de wrote:Hey there,

I would like to use an USB-Soundcard with the O-C2. But there is no sound configuration in the dietpi-config as for Raspberry.

How do I have to set the USB-Card that the card is the default one and not the HDMI-Output?

Thx for any help!

Greets, mike175de
Hi Mike,

Verify the device is being picked up. On my system, the usb audio device is card 1:

Code: Select all

root@DietPi:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ODROIDHDMI [ODROID-HDMI], device 0: I2S.27 dit-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
If you get a "command not found", run apt-get install alsa-utils -y

Create a asound.conf for the USB audio device, that makes it the default for your system:

Code: Select all

cat << _EOF_ > /etc/asound.conf
pcm.!default {
   type hw
   card 1
}

ctl.!default {
   type hw
   card 1
}
_EOF_
Speaker test:

Code: Select all

speaker-test -r 44100 -c 2
#press ctrl+c to cancel
Change volume:

Code: Select all

alsamixer
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
mike175de
Posts: 67
Joined: Sat Sep 05, 2015 4:39 pm

Re: Odroid-C2: USB-Sound

Post by mike175de »

Thx a lot, Fourdee!

Worked like a charme.

Grets, mike
Post Reply