Ticket #232 (closed defect: fixed)

Opened 7 months ago

Last modified 2 months ago

The alsa plugin doesn't support a "hint" section.

Reported by: tanuk Assigned to: lkundrak
Priority: normal Milestone: 0.9.11
Component: alsa-plugins-pulse Severity: normal
Keywords: Cc: tanuk@iki.fi

Description

Phonon uses snd_device_name_hint(-1, "pcm", &hints) to list ALSA's virtual devices. The function has existed since libasound 1.0.14. So in order to get Phonon to list the pulse device, one needs to put a hint section to .asoundrc, like this:

pcm.pulse {
    type pulse
    hint {
        show on
        description "PulseAudio"
    }
}

However, the pulse plugin can't handle the hint field:

ALSA lib pcm_pulse.c:705:(_snd_pcm_pulse_open) Unknown field hint

I'm rather clueless about this hint stuff, so don't ask me for further details. Matthias Kretz, a Phonon developer from who I heard about this, hangs on #pulseaudio with nick Vir.

A workaround exists: create a wrapper device.

pcm.phononpulse {
  type plug
  slave.pcm {
    type pulse
  }
  hint {
    show on
    description "PulseAudio"
  }
}

Phonon (with xine backend) should eventually use pulseaudio natively, but currently it's disabled due to xine's unreliable pulse plugin.

Change History

03/10/08 13:51:39 changed by lkundrak

  • owner changed from ossman to lkundrak.

Filed in upstream Bugzilla with a fix. https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3834

06/21/08 17:13:18 changed by lennart

  • status changed from new to closed.
  • resolution set to fixed.

This has been fixed a while back upstream.

06/21/08 17:19:10 changed by lennart

  • milestone set to 0.9.11.