nerves_system_rpi4 icon indicating copy to clipboard operation
nerves_system_rpi4 copied to clipboard

Audio guide in readme is outdated

Open krns opened this issue 7 months ago • 3 comments

Environment

  • Elixir version (elixir -v): 1.16.2
  • Nerves environment: (mix nerves.env --info) dev
  • Additional information about your host, target hardware or environment that may help

Current behavior

The readme says:

Audio

The Raspberry Pi has many options for audio output. This system supports the HDMI and stereo audio jack output. The Linux ALSA drivers are used for audio output.

The general Raspberry Pi audio documentation mostly applies to Nerves. For example, to force audio out the HDMI port, run:

cmd("amixer cset numid=3 2")

Change the last argument to amixer to 1 to output to the stereo output jack.

This is no longer true since May 2020: https://www.raspberrypi.com/news/latest-raspberry-pi-os-update-may-2020/ (see "Other changes").

Some people have asked how they can switch the audio output from the command line without using the desktop. To do this, you will need to create a file called .asoundrc in your home directory; ALSA looks for this file to determine which audio device it should use by default. If the file does not exist, ALSA uses “card 0” – which is HDMI – as the output device.

Expected behavior

I would expect the readme to take this change into account :)

krns avatar Jun 28 '24 09:06 krns