Ticket #232 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Reported by: tanuk Owned by: lkundrak
Milestone: 0.9.11 Component: alsa-plugins-pulse
Keywords: Cc: tanuk@…

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

Changed 4 years ago 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

Changed 4 years ago by lennart

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

This has been fixed a while back upstream.

Changed 4 years ago by lennart

  • milestone set to 0.9.11
Note: See TracTickets for help on using tickets.