<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Issue of CPU usage with HiFiBerry driver snd_soc_hifiberry_amp with Debian Wheezy kernel 3.12.28"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=84585#c27">Comment # 27</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Issue of CPU usage with HiFiBerry driver snd_soc_hifiberry_amp with Debian Wheezy kernel 3.12.28"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=84585">bug 84585</a>
              from <span class="vcard"><a class="email" href="mailto:alessandroferri_015@fastwebnet.it" title="Alessandro Ferri <alessandroferri_015@fastwebnet.it>"> <span class="fn">Alessandro Ferri</span></a>
</span></b>
        <pre>Dear Raymond,
the same failed error is present in both pulseaudio verbose log with Kernell
3.12.25 and 3.12.28, in the same situations. Do you think this is to create the
bug?

Kernel 3.12.25

1)
(   1.321|   0.001) I: [pulseaudio] (alsa-lib)pcm_hw.c:
SNDRV_PCM_IOCTL_HW_PARAMS failed (-22)
(   1.322|   0.001) D: [pulseaudio] alsa-util.c: Set buffer size first (to
88200 samples), period size second (to 88200 samples).
2)
(   9.113|   0.001) I: [alsa-sink] (alsa-lib)pcm_hw.c:
SNDRV_PCM_IOCTL_HW_PARAMS failed (-22)
(   9.115|   0.001) D: [alsa-sink] alsa-util.c: Set buffer size first (to 88200
samples), period size second (to 44100 samples).

Kernel 3.12.28
1)
(   1.217|   0.001) I: [pulseaudio] (alsa-lib)pcm_hw.c:
SNDRV_PCM_IOCTL_HW_PARAMS failed (-22)
(   1.219|   0.001) D: [pulseaudio] alsa-util.c: Set buffer size first (to
88200 samples), period size second (to 88200 samples).
2)
(   9.358|   0.001) I: [alsa-sink] (alsa-lib)pcm_hw.c:
SNDRV_PCM_IOCTL_HW_PARAMS failed (-22)
(   9.359|   0.001) D: [alsa-sink] alsa-util.c: Set buffer size first (to 88200
samples), period size second (to 44100 samples).




(In reply to Raymond from <a href="show_bug.cgi?id=84585#c26">comment #26</a>)
<span class="quote">> (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed (-22)



> do the driver has enough constraints to finalize the parameters when
> pulseaudio only set maximum buffer size? 


> do this mean it support Non integer (e.g.3.7 ) periods per buffer since
> there is no constraint 

> snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);

> <a href="http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/">http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/</a>
> alsa-util.c?id=3c73e2130fd65e147c487b0b84c1a8b6a8afa04c</span ></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>