Changed result of mmap_commit callback

(follows description of snd_pcm_mmap_commit function).
This commit is contained in:
Jaroslav Kysela 2001-12-08 21:02:20 +00:00
parent 8ca451f0e1
commit 0917ba63b0
11 changed files with 57 additions and 53 deletions

View file

@ -1821,7 +1821,7 @@ static snd_interval_t refine_intervals[SND_PCM_HW_PARAM_LAST_INTERVAL - SND_PCM_
},
};
#undef RULES_DEBUG
#define RULES_DEBUG
int snd_pcm_hw_refine_soft(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params)
{
@ -1995,7 +1995,7 @@ int snd_pcm_hw_refine_slave(snd_pcm_t *pcm, snd_pcm_hw_params_t *params,
}
if (err < 0) {
#ifdef RULES_DEBUG
snd_output_printf(log, "cchange '%s', schange < 0\n", pcm->name);
snd_output_printf(log, "cchange '%s', (schange || srefine) < 0\n", pcm->name);
snd_pcm_hw_params_dump(params, log);
#endif
cchange(pcm, params, &sparams);