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

Volti cannot handle an ALSA card which has no mixers #27

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

commented Mar 14, 2015

What steps will reproduce the problem?
1. Start volti systray icon in a terminal
2. Open preferences

OR

1. Start volti-mixer in a terminal

What is the expected output? What do you see instead?

The expected output in the terminal is nothing, instead I get an 
alsaaudio.ALSAAudioError exception.  In the preferences, no ALSA cards or 
mixers are shown.

What version of the product are you using? On what operating system?

volti-0.2.3 on Gentoo with TuxOnIce kernel 2.6.35-r8


Please provide any additional information below.

The problem occurs because one of the cards identified by ALSA has no mixers.  
Here is the output from python:

>>> import alsaaudio as alsa
>>> alsa.cards()
[u'Intel', u'ThinkPadEC']
>>> alsa.mixers()
[u'Master', u'IEC958', u'IEC958 Default PCM', u'Docking Mic', u'External Mic', 
u'Internal Mic']

All the mixer controls belong to the first card, and none to the second.  If I 
attempt to retrieve the mixers for the second card:

>>> alsa.mixers(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
alsaaudio.ALSAAudioError: No such file or directory

I am attaching a patch that resolves this problem by skipping such problematic 
cards.

Original issue reported on code.google.com by hypno...@gmail.com on 7 Feb 2011 at 8:24

Attachments:

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Mar 14, 2015

I believe this is the same as Issue 26 -- please close/merge/etc.

Original comment by hypno...@gmail.com on 7 Feb 2011 at 8:26

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Mar 14, 2015

Hi, I commited your patch, thanks!

Original comment by gen2br...@gmail.com on 7 Feb 2011 at 10:44

  • Changed state: Accepted
@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Mar 14, 2015

To which file do you apply the patch to?

Original comment by amad...@gmail.com on 11 Feb 2013 at 11:08

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Mar 14, 2015

In the top directory of the source tree do "patch -p1 < the_patch.patch"

Original comment by hypno...@gmail.com on 12 Feb 2013 at 1:12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.