Configuring the audio device
There are two common ways to output audio on Banana Pi. You can pass-through the digital audio signal via HDMI to your television or audio/video receiver, or you can output the signal via the analog line out.
Getting ready
The following ingredients are required to handle audio on Banana Pi:
- A Linux system on Banana Pi
- Access to the shell
- Either an HDMI connection to your TV, audio/video receiver, or…
- A set of stereo headphones or stereo jack cable to any analog audio receiving device with 3.5 mm jack
How to do it…
We are configuring both the HDMI pass-through and the analog audio output in this recipe. In both cases, we have to configure the audio output via the system configuration file /etc/asound.conf
(also called asoundrc
).
Configuring HDMI pass-through
The following steps explain how to enable the HDMI pass-through of the digital sound signal:
- Open a shell.
- With an editor such as nano, edit or create the system configuration file called
/etc/asound.conf...