[pulseaudio-discuss] Can't get Pulseadio to playback stream on Raspbian with HifiBerry DAC+

David Martinez david at sojournmusic.net
Sun Mar 29 07:16:19 PDT 2015


I'll check HiFiBerry's site and see if I can get it.
 On Mar 29, 2015 2:48 AM, "Raymond Yau" <superquad.vortex2 at gmail.com> wrote:

> This is my alsa-info.sh
>
> Your ALSA information is located at
> http://www.alsa-project.org/db/?f=b0fa712883998f34f799364e4240cc8c708eba5d
>
> Does this help?
>
>
>  This is my alsa-info.sh
>
>
> Your ALSA information is located at
> http://www.alsa-project.org/db/?f=b0fa712883998f34f799364e4240cc8c708eba5d
>
>
> Does this help?
>
> do you have the source code of the audio driver ???
>
>
>
> diff --git a/src/modules/alsa/alsa-util.c b/src/modules/alsa/alsa-util.c
> index bb79e71..e36c2a7 100644
> --- a/src/modules/alsa/alsa-util.c
> +++ b/src/modules/alsa/alsa-util.c
> @@ -481,7 +481,7 @@ int pa_alsa_set_sw_params(snd_pcm_t *pcm,
> snd_pcm_uframes_t avail_min, bool peri
>          return err;
>      }
>
> -    if ((err = snd_pcm_sw_params_set_start_threshold(pcm, swparams,
> (snd_pcm_uframes_t) -1)) < 0) {
> +    if ((err = snd_pcm_sw_params_set_start_threshold(pcm, swparams,
> boundary)) < 0) {
>          pa_log_warn("Unable to set start threshold: %s\n",
> pa_alsa_strerror(err));
>          return err;
>      }
>
> >
>> > Okay, on someone's recommendation, I removed the existing version of
>> pulseaudio (2, I think) and compiled a fresh one (5.99.3). Pulse seems to
>> attempt to use the hifiberry, but I still get the following error:
>> >
>> > I: [alsa-sink-HiFiBerry DAC+ HiFi pcm512x-hifi-0] alsa-sink.c: Starting
>> playback.
>> > I: [alsa-sink-HiFiBerry DAC+ HiFi pcm512x-hifi-0] (alsa-lib)pcm_hw.c:
>> SNDRV_PCM_IOCTL_START failed (-77)
>> >
>> > What exactly does this mean? Sorry for the newbie questions.
>> >
>>
>> You have to post output of alsa-info.sh
>>
>> The error occur when pcm state is running when pulseaudio call
>> snd_pcm_start()
>>
>> Do you know where to find the source code of your audio driver, seem not
>> in
>> https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/sound
>>
>> > D: [pulseaudio] alsa-util.c:   start_threshold  : -1
>>
>> It is because pulseaudio set start_threshold to -1 , this mean first
>> snd_pcm_write() automatically trigger playback to start since
>>
>> frames written > start_threshold
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20150329/02131a3c/attachment.html>


More information about the pulseaudio-discuss mailing list