diff options
author | Robin Gareus <robin@gareus.org> | 2015-10-01 12:42:05 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-10-01 12:42:05 +0200 |
commit | 6b4e5f1d47128210be57bd21680ef401dc73c5b7 (patch) | |
tree | a0f5ff81ab24d99e3fc43f778c6221fb1f25c5f3 /libs/backends/alsa | |
parent | 520b78b84180f81a53dc3646d3f4ef50cf7ed54e (diff) |
ALSA: update error-codes for HW initialization.
Diffstat (limited to 'libs/backends/alsa')
-rw-r--r-- | libs/backends/alsa/zita-alsa-pcmi.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/backends/alsa/zita-alsa-pcmi.cc b/libs/backends/alsa/zita-alsa-pcmi.cc index 3c271b6907..d3be95e0e4 100644 --- a/libs/backends/alsa/zita-alsa-pcmi.cc +++ b/libs/backends/alsa/zita-alsa-pcmi.cc @@ -728,7 +728,7 @@ int Alsa_pcmi::set_hwpar (snd_pcm_t *handle, snd_pcm_hw_params_t *hwpar, const { if (_debug & DEBUG_INIT) fprintf (stderr, "Alsa_pcmi: can't set %s sample rate to %u.\n", sname, _fsamp); - return -1; + return -3; } snd_pcm_hw_params_get_channels_max (hwpar, nchan); if (*nchan > 1024) @@ -758,19 +758,19 @@ int Alsa_pcmi::set_hwpar (snd_pcm_t *handle, snd_pcm_hw_params_t *hwpar, const { if (_debug & DEBUG_INIT) fprintf (stderr, "Alsa_pcmi: can't set %s period size to %lu.\n", sname, _fsize); - return -1; + return -4; } if (snd_pcm_hw_params_set_periods (handle, hwpar, _nfrag, 0) < 0) { if (_debug & DEBUG_INIT) fprintf (stderr, "Alsa_pcmi: can't set %s periods to %u.\n", sname, _nfrag); - return -1; + return -5; } if (snd_pcm_hw_params_set_buffer_size (handle, hwpar, _fsize * _nfrag) < 0) { if (_debug & DEBUG_INIT) fprintf (stderr, "Alsa_pcmi: can't set %s buffer length to %lu.\n", sname, _fsize * _nfrag); - return -1; + return -4; } if (snd_pcm_hw_params (handle, hwpar) < 0) { |