Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#7 test.py failed

open
nobody
None
5
2009-11-26
2009-11-26
Johanni Brea
No

$ python test.py
...ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters CARD=Intel
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default:CARD=Intel
E..
======================================================================
ERROR: Open a PCM object on every card
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 90, in testPCM
pcm = alsaaudio.PCM(card=c)
ALSAAudioError: Invalid argument

----------------------------------------------------------------------
Ran 6 tests in 0.614s

FAILED (errors=1)

$ lspci | grep Audio
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)

$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.20.

$ cat /proc/version
Linux version 2.6.31-14-generic (buildd@rothera) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009

$ python
Python 2.6.4 (r264:75706, Nov 2 2009, 14:38:03)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import alsaaudio
>>> alsaaudio.PCM()
<alsaaudio.PCM object at 0xb7703890>
>>> alsaaudio.cards()
[u'Intel']
>>>

Discussion

  • I have a similar problem. test.py fails.....as above.

    Also....

    >>> import alsaaudio
    >>> alsaaudio.PCM()
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    alsaaudio.ALSAAudioError: Invalid argument
    >>> alsaaudio.cards()
    [u'Intel']

     
  • Lars Immisch
    Lars Immisch
    2012-03-02

    The underlying problem seems to be translate_cardname as in #2881587 again.