HDA hardware incorrectly identified

Bug #353807 reported by Jon Smirl
2
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Fix Released
Undecided
Daniel T Chen

Bug Description

Binary package hint: pulseaudio

Ubuntu 9.04 beta is using pulseaudio 0.9.10

When it start I get this in the log:
Apr 2 08:53:51 terra pulseaudio[6570]: ltdl-bind-now.c: Failed to
find original dlopen loader.
Apr 2 08:53:51 terra pulseaudio[6572]: main.c: setrlimit(RLIMIT_NICE,
(31, 31)) failed: Operation not permitted
Apr 2 08:53:51 terra pulseaudio[6572]: main.c:
setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
Apr 2 08:53:51 terra pulseaudio[6572]: alsa-util.c: Device hw:0,0,0
doesn't support 6 channels, changed to 2.
Apr 2 08:53:51 terra pulseaudio[6572]: alsa-util.c: Device hw:0,0,1
doesn't support 6 channels, changed to 2.
Apr 2 08:53:51 terra pulseaudio[6572]: alsa-util.c: Device hw:0,0,2
doesn't support 6 channels, changed to 2.
Apr 2 08:53:52 terra pulseaudio[6572]: alsa-util.c: Device hw:1
doesn't support 44100 Hz, changed to 16000 Hz.
Apr 2 08:53:52 terra pulseaudio[6572]: alsa-util.c: Device hw:1
doesn't support 6 channels, changed to 1.

This is clearly wrong for my devices....

jonsmirl@terra:/proc/asound/card0/pcm1p/sub0$ cat hw_params
access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 448
buffer_size: 4480

hw:0 is the six channel analog out
hw:1 is the S/PDIF

I believe this was working ok in Ubuntu 8.04 (at least there were no
messages in the log).

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 8.10
NonfreeKernelModules: nvidia
Package: pulseaudio 0.9.10-2ubuntu9.3
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/sbin:/opt/OSELAS.Toolchain-1.1.1/powerpc-603e-linux-gnu/gcc-4.1.2-glibc-2.5-kernel-2.6.18/bin
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: pulseaudio
Uname: Linux 2.6.29-jds x86_64

Tags: apport-bug
Revision history for this message
Jon Smirl (jonsmirl) wrote :
Revision history for this message
Jon Smirl (jonsmirl) wrote :

This entry is messed up...

iec958:CARD=Q9000,DEV=0
   QuickCam Pro 9000, USB Audio
   IEC958 (S/PDIF) Digital Audio Output

The 16K, 1 channel that pulse is picking up is the mic from my USB
camera. The description appears to be wrong but the sound is coming
out the S/PDIF correctly.

iec958 should be on CARD=Intel, not CARD=Q9000.

Intel = HDA hardware
Q9000 = Quick Cam Pro with just a mic.

So how do I debug this?

jonsmirl@terra:/proc/asound/card0/pcm0p/sub0$ aplay -L
front:CARD=Intel,DEV=0
   HDA Intel, STAC92xx Analog
   Front speakers
surround40:CARD=Intel,DEV=0
   HDA Intel, STAC92xx Analog
   4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
   HDA Intel, STAC92xx Analog
   4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
   HDA Intel, STAC92xx Analog
   5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
   HDA Intel, STAC92xx Analog
   5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
   HDA Intel, STAC92xx Analog
   7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=Intel,DEV=0
   HDA Intel
   HDMI Audio Output
null
   Discard all samples (playback) or generate zero samples (capture)
front:CARD=Q9000,DEV=0
   QuickCam Pro 9000, USB Audio
   Front speakers
surround40:CARD=Q9000,DEV=0
   QuickCam Pro 9000, USB Audio
   4.0 Surround output to Front and Rear speakers
surround41:CARD=Q9000,DEV=0
   QuickCam Pro 9000, USB Audio
   4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Q9000,DEV=0
   QuickCam Pro 9000, USB Audio
   5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Q9000,DEV=0
   QuickCam Pro 9000, USB Audio
   5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Q9000,DEV=0
   QuickCam Pro 9000, USB Audio
   7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Q9000,DEV=0
   QuickCam Pro 9000, USB Audio
   IEC958 (S/PDIF) Digital Audio Output
jonsmirl@terra:/proc/asound/card0/pcm0p/sub0$
- Show quoted text -

Revision history for this message
Jon Smirl (jonsmirl) wrote :

Previous comment is incorrect, I was booted on 8.04. But pulse is still getting it wrong.

On Thu, Apr 2, 2009 at 9:54 AM, Jon Smirl <email address hidden> wrote:
> This may be alsa related:
>
> This entry is messed up...
>
> iec958:CARD=Q9000,DEV=0
> QuickCam Pro 9000, USB Audio
> IEC958 (S/PDIF) Digital Audio Output

I was booted on 8.04 when I ran that command. It is correct on 9.04. But pulse is still getting it wrong.
This is on 9.04.

jonsmirl@terra:~$ aplay -L
front:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Digital
    IEC958 (S/PDIF) Digital Audio Output
null
    Discard all samples (playback) or generate zero samples (capture)
jonsmirl@terra:~$

-----------------

Apr 2 06:21:57 terra pulseaudio[6322]: alsa-util.c: Device hw:1 doesn't support 44100 Hz, changed to 16000 Hz.
Apr 2 06:21:57 terra pulseaudio[6322]: alsa-util.c: Device hw:1 doesn't support 2 channels, changed to 1.
Apr 2 06:21:57 terra pulseaudio[6322]: module-alsa-source.c: Your kernel driver is broken: it reports a volume range from 18.00 dB to 18.00 dB which makes no sense.
Apr 2 06:21:57 terra kernel: e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
Apr 2 10:22:09 terra pulseaudio[6322]: module-alsa-sink.c: Increasing minimal latency to 8.00 ms
Apr 2 10:22:10 terra pulseaudio[6322]: module-alsa-sink.c: Increasing minimal latency to 16.00 ms
Apr 2 10:22:10 terra pulseaudio[6322]: module-alsa-sink.c: Increasing wakeup watermark to 7.98 ms
Apr 2 10:22:11 terra pulseaudio[6322]: module-alsa-sink.c: Increasing wakeup watermark to 8.00 ms
Apr 2 10:22:12 terra pulseaudio[6322]: module-alsa-sink.c: Increasing minimal latency to 32.00 ms
Apr 2 10:22:12 terra pulseaudio[6322]: module-alsa-sink.c: Increasing wakeup watermark to 16.01 ms
Apr 2 10:22:26 terra kernel: process `skype' is using obsolete setsockopt SO_BSDCOMPAT
Apr 2 10:24:41 terra pulseaudio[6322]: module-alsa-sink.c: Increasing wakeup watermark to 22.00 ms
Apr 2 10:25:01 terra pulseaudio[6322]: module-alsa-sink.c: Increasing minimal latency to 64.00 ms
Apr 2 10:25:07 terra pulseaudio[6322]: module-alsa-sink.c: Increasing wakeup watermark to 43.99 ms

Revision history for this message
Jon Smirl (jonsmirl) wrote :

I believe I've found a fix for this. This is broken in pulse 9.14 used in 9.04 beta

In module_hal_detect.c...

    device = libhal_device_get_property_int(u->context, udi, "alsa.device", &error);
    if (dbus_error_is_set(&error) || (device != 0)) {
        goto fail;

The check for (device != 0) should not be there. My device is device #1.

Daniel T Chen (crimsun)
Changed in pulseaudio (Ubuntu):
assignee: nobody → crimsun
status: New → Fix Committed
Revision history for this message
Jon Smirl (jonsmirl) wrote :

Lennart does not like this fix. He has fixed it differently in current pulseaudio git.

Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 353807] Re: HDA hardware incorrectly identified

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 2 Apr 2009, Jon Smirl wrote:

> Lennart does not like this fix. He has fixed it differently in current
> pulseaudio git.

Err, was it committed in the past five minutes? I certainly don't see it
in git HEAD. The fix I pulled is c3b0d841d19898cd268a65173b6c0ca5f88a64c7.

http://git.0pointer.de/?p=pulseaudio.git;a=history;f=src/modules/module-hal-detect.c;h=0dd22cbd12f63a9ca20684536495dc48ce25b16f;hb=HEAD
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJ1Pu5e9GwFciKvaMRAki9AJwJDaHV8+/stl4RbbV4ZO5W3nIQMACfV+vc
1Mkf8fjahddwvqxA+ag0VQg=
=489r
-----END PGP SIGNATURE-----

Revision history for this message
Jon Smirl (jonsmirl) wrote :

I just managed to get pulse git head building. He has taken a completely different approach to fixing this. The code was already in git.

If you start the pavucontrol app there is a new tab for Configuration. Under that tab you can choose from a drop down...

analog in + sdif out
stereo out
...

This is a way better solution it reads the valid configs out of the HDA hardware and then lets you choose.

Any hope of getting a more recent pulse in? Not being able to easily get S/PDIF working with pulse on Ubuntu has been bugging me for three years.

Revision history for this message
Daniel T Chen (crimsun) wrote :

We're way past FeatureFreeze. I wish I could just ask for 0.9.15 to replace the existing 0.9.14, but our release managers may have a cakefest. In any event, Luke (themuso) does package 0.9.15 in his PPA.

Revision history for this message
Jon Smirl (jonsmirl) wrote :

That patch above is in the category of it makes my system work but it breaks other systems. So he has everyone turned off.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pulseaudio - 1:0.9.14-0ubuntu17

---------------
pulseaudio (1:0.9.14-0ubuntu17) jaunty; urgency=low

  [ Daniel T Chen ]
  * debian/pulseaudio.init:
    - Actually create /var/run/pulse, and make handling of /restart
      more robust (LP #317921)
    - Add /status check for system-wide daemon instance
      (LP: #298299)
  * Backport from upstream git HEAD:
    - 0046_ignore_hal_no_such_cap.patch,
    - 0047_pick_up_all_cards.patch (LP: #353807),
    - 0048_fix_stuck_prebuf.patch (LP: #355825)

  [ Luke Yelavich ]
  * debian/control: Drop recommends from the pulseaudio-module-x11 package. if
    they were dropped previously, they were re-added somehow, so lets get rid
    of them once and for all.

 -- Luke Yelavich <email address hidden> Tue, 07 Apr 2009 16:51:59 +1000

Changed in pulseaudio (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.