The default audio output is to HDMI. Some times our monitor does not have speaker, we need use USB sound card.
This tutorial will show you how to change the audio output
1. Check the sound system
ubuntu@ubuntu:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Device [Generic USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: sun4isndhdmi [sun4i-sndhdmi], device 0: SUN4I-HDMIAUDIO sndhdmi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Device [Generic USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: sun4isndhdmi [sun4i-sndhdmi], device 0: SUN4I-HDMIAUDIO sndhdmi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
There are 2 sound cards in the system.
2. Set the USB sound card as default sound
$vim /etc/asound.conf
Shows
- default.pcm.card 0
- default.pcm.device 0
- default.ctl.card 0
card 0: USB sound card
card 1: HDMI
You can choose which you like.
Then reboot pcDuino by using:
$ sudo reboot
Leave a Reply
You must be logged in to post a comment.