if (err < 0)
- return err;
+ goto error;
-+ format_mask = hw_param_mask_c(params, SNDRV_PCM_HW_PARAM_FORMAT);
++ format_mask = *hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT);
for (fmt = 0; fmt < 32; ++fmt) {
if (snd_mask_test(&format_mask, fmt)) {
int f = snd_pcm_oss_format_to(fmt);
if (err < 0)
- return err;
+ goto error;
-+ format_mask = hw_param_mask_c(params, SNDRV_PCM_HW_PARAM_FORMAT);
++ format_mask = *hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT);
for (fmt = 0; fmt < 32; ++fmt) {
if (snd_mask_test(&format_mask, fmt)) {
int f = snd_pcm_oss_format_to(fmt);
if (err < 0)
- return err;
+ goto error;
-+ format_mask = hw_param_mask_c(params, SNDRV_PCM_HW_PARAM_FORMAT);
++ format_mask = *hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT);
for (fmt = 0; fmt < 32; ++fmt) {
if (snd_mask_test(&format_mask, fmt)) {
int f = snd_pcm_oss_format_to(fmt);