New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

player: OMX_ErrorInsufficientResources while pausing on Raspberry PI (using alsa renderer) #374

Closed
juanrubio opened this Issue Oct 9, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@juanrubio
Collaborator

juanrubio commented Oct 9, 2017

When space bar is hit (pause), the following error occurs on Raspberry pi with the ALSA pcm renderer as the default renderer.

Tizonia exiting (OMX_ErrorInsufficientResources).

 [OMX.Aratelia.audio_renderer.pulseaudio.pcm:port:0]
 [OMX_ErrorInsufficientResources]

The issue has to do with the fact that the 'snd_pcm_pause' function is not supported by the hardware.

09-10-2017 20:57:41.439 - [PID:19088][TID:19187] [ERROR] [tiz.audio_renderer.prc] [arprc.c:alsa_error_handler:144] --- ALSA lib pcm_hw.c:673:(snd_pcm_hw_pause) SNDRV_PCM_IO\
CTL_PAUSE failed (-38): Function not implemented
09-10-2017 20:57:41.439 - [PID:19088][TID:19187] [ERROR] [OMX.Aratelia.audio_renderer.alsa.pcm] [arprc.c:ar_prc_pause:1143] --- [OMX_ErrorInsufficientResources] : Function \
not implemented

The solution is to use this in stead:

  if (snd_pcm_hw_params_can_pause(p_prc->p_hw_params_))
    {
      bail_on_snd_pcm_error (snd_pcm_pause (p_prc->p_pcm_, pause));
    }
  else
    {
      bail_on_snd_pcm_error (snd_pcm_drop(p_prc->p_pcm_));
    }

@juanrubio juanrubio self-assigned this Oct 9, 2017

@juanrubio juanrubio added this to the v0.10.0 milestone Oct 9, 2017

@juanrubio juanrubio added the bug label Oct 9, 2017

@juanrubio juanrubio changed the title from tizonia: OMX_ErrorInsufficientResources while pausing on Raspberry PI (using alsa renderer) to player: OMX_ErrorInsufficientResources while pausing on Raspberry PI (using alsa renderer) Oct 9, 2017

@juanrubio juanrubio closed this in d972184 Oct 9, 2017

@flxwu

This comment has been minimized.

Show comment
Hide comment
@flxwu

flxwu Apr 22, 2018

Hey @juanrubio , I'm running into the same issue. Where to put the snippet?

flxwu commented Apr 22, 2018

Hey @juanrubio , I'm running into the same issue. Where to put the snippet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment