Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

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

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

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

GoogleCodeExporter opened this issue Mar 14, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

Hi, I commited your patch, thanks!

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

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

To which file do you apply the patch to?

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

@GoogleCodeExporter
Copy link
Author

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant