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

Bug with disabled on-board audio using an external sound card #8

Closed
perplexa opened this issue Sep 23, 2016 · 1 comment
Closed

Bug with disabled on-board audio using an external sound card #8

perplexa opened this issue Sep 23, 2016 · 1 comment
Labels
C-bug Category: This is a bug

Comments

@perplexa
Copy link

perplexa commented Sep 23, 2016

Hey,

I have been experiencing a bug with mopidy-alsamixer that occurs when you disable the onboard audio device on a raspberrypi.

The issue is in mixer.py, which assumes that audio devices start at 0. However, my external sound devicee gets ID 1, thus assuming IDs start at 0 breaks the mixer.

Sep 23 14:54:21 arcam mopidy[2684]: ERROR    Mixer (AlsaMixer) initialization error: Could not find ALSA soundcard with index 1. Known soundcards include: 0 (DragonFly)

The list of my audio devices looks like:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: DragonFly [AudioQuest DragonFly], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Setting alsamixer/card = 0 would bypass mopidy-alsamixer's check completely and cause an ALSAAudioError as the ID is not actually present.

For now I commented out the marked lines in mixer.py (see above) to allow me to use card = 1 without having two cards in the system and everything is working as intended.

@jodal jodal added the C-bug Category: This is a bug label Sep 23, 2016
@jodal jodal closed this as completed in e055715 Feb 12, 2017
@jodal
Copy link
Member

jodal commented Feb 12, 2017

@perplexa I believe your issue was fixed by commit e055715. If you can test it and confirm, I'll roll a new release for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants