Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio guide in readme is outdated #244

Open
krns opened this issue Jun 28, 2024 · 3 comments
Open

Audio guide in readme is outdated #244

krns opened this issue Jun 28, 2024 · 3 comments

Comments

@krns
Copy link

krns commented Jun 28, 2024

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 :)

@fhunleth
Copy link
Member

@krns Thanks for catching this. Could you make a PR that updates the text?

@krns
Copy link
Author

krns commented Jul 1, 2024

@fhunleth I'd like to contribute, but I'm not sure what all is needed after the changes.

Do we already need an .asoundrc in the home directory for this? Do you already know more about it? Otherwise, I will try to delve deeper towards the end of the week.

@fhunleth
Copy link
Member

fhunleth commented Jul 1, 2024

That's fine. Support everything is really hard and filing this issue might get others involved.

I don't have a much experience with audio. I would expect that there's no need for a .asoundrc file, though, and that every option that would be put in the file could also be passed via the commandline. Passing everything via commandline args would keep all configuration in one place (in theory).

If you feel like you're not making any progress, one PR could be just to remove the wrong info from the README and point people to this issue for updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants