After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 123904 - alsasink gives error with snd-via82xx
alsasink gives error with snd-via82xx
Status: RESOLVED DUPLICATE of bug 121507
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.6.x
Other Linux
: Normal critical
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-10-05 17:40 UTC by Gustavo Carneiro
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gustavo Carneiro 2003-10-05 17:40:58 UTC
ALSA version 0.9.7
 With my snd-via82xx driver, the alsasink plugin doesn't work.  It fails here :
  ret = snd_pcm_sw_params (this->handle, sw_param);

The error given is:
ALSA lib pcm_hw.c:370:(snd_pcm_hw_sw_params) SNDRV_PCM_IOCTL_SW_PARAMS
failed: Invalid argument

  I discovered that the error appears only if the silence size sw property
is set.  I uncommented this block to make it work:

  ret = snd_pcm_sw_params_set_silence_size (this->handle, sw_param,
this->buffer_frames);
  if (ret < 0) {
    g_warning ("could not set silence size: %s", snd_strerror (ret));
    return FALSE;
  }

  Setting the parameter to zero also works.

  I am not claiming it's gstreamer's fault, because I simply do not know. 
What do you think?
Comment 1 David Schleef 2003-10-21 23:55:25 UTC

*** This bug has been marked as a duplicate of 121507 ***