Public bug reported:

Version 1.39 breaks when trying to initialise audio.

Toyed around with a bit and tracked it down pommed not being able to
find a suitable audio device in function audio_init in file audio.c:

for (elem = snd_mixer_first_elem(mixer_hdl); elem; elem = 
snd_mixer_elem_next(elem)) 
    {
      snd_mixer_selem_get_id(elem, sid);

      if (strcmp(snd_mixer_selem_id_get_name(sid), audio_cfg.vol) == 0)
        vol_elem = elem;

      if (strcmp(snd_mixer_selem_id_get_name(sid), audio_cfg.spkr) == 0)
        spkr_elem = elem;

      if (strcmp(snd_mixer_selem_id_get_name(sid), audio_cfg.head) == 0)
        head_elem = elem;
    }

  logdebug("Audio init: volume %s, speakers %s, headphones %s\n",
           (vol_elem == NULL) ? "NOK" : "OK",
           (spkr_elem == NULL) ? "NOK" : "OK",
           (head_elem == NULL) ? "NOK" : "OK");

The for loop fails to find suitable audio devices hence vol_elem,
spkr_elem and head_elem all contain NULL (their init value). Hence
logdebug logs all elements as NOK. Confirmed on kernels 3.2.0-32 and
3.8.0-22.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: pommed 1.39~dfsg-2build1
ProcVersionSignature: Ubuntu 3.8.0-22.33-generic 3.8.11
Uname: Linux 3.8.0-22-generic x86_64
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Sat May 25 08:16:08 2013
InstallationDate: Installed on 2012-05-16 (373 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 
(20120425)
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: pommed
UpgradeStatus: Upgraded to raring on 2013-04-27 (27 days ago)

** Affects: pommed (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug raring

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1184079

Title:
  pommed fails to initialise audio

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pommed/+bug/1184079/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to