Lines Matching refs:err
102 int err;
116 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
119 if (err < 0)
120 return err;
121 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS,
124 if (err < 0)
125 return err;
135 int err;
137 err = snd_motu_stream_lock_try(motu);
138 if (err < 0)
139 return err;
143 err = snd_motu_stream_cache_packet_formats(motu);
144 if (err < 0)
147 err = init_hw_info(motu, substream);
148 if (err < 0)
151 err = snd_motu_protocol_get_clock_source(motu, &src);
152 if (err < 0)
165 err = snd_motu_protocol_get_clock_rate(motu, &rate);
166 if (err < 0)
173 err = snd_pcm_hw_constraint_minmax(substream->runtime,
176 if (err < 0)
179 err = snd_pcm_hw_constraint_minmax(substream->runtime,
182 if (err < 0)
195 return err;
211 int err = 0;
219 err = snd_motu_stream_reserve_duplex(motu, rate,
221 if (err >= 0)
226 return err;
248 int err;
251 err = snd_motu_stream_start_duplex(motu);
253 if (err >= 0)
261 int err;
264 err = snd_motu_stream_start_duplex(motu);
266 if (err >= 0)
269 return err;
357 int err;
359 err = snd_pcm_new(motu->card, motu->card->driver, 0, 1, 1, &pcm);
360 if (err < 0)
361 return err;