Lines Matching refs:err
63 int err;
83 err = snd_pcm_hw_rule_add(substream->runtime, 0,
87 if (err < 0)
88 return err;
90 err = snd_pcm_hw_rule_add(substream->runtime, 0,
94 if (err < 0)
95 return err;
106 int err;
108 err = snd_dg00x_stream_lock_try(dg00x);
109 if (err < 0)
110 return err;
112 err = pcm_init_hw_params(dg00x, substream);
113 if (err < 0)
117 err = snd_dg00x_stream_get_clock(dg00x, &clock);
118 if (err < 0)
121 err = snd_dg00x_stream_check_external_clock(dg00x, &detect);
122 if (err < 0)
125 err = -EBUSY;
141 err = snd_dg00x_stream_get_external_rate(dg00x, &rate);
142 if (err < 0) {
150 err = snd_pcm_hw_constraint_minmax(substream->runtime,
153 if (err < 0) {
158 err = snd_pcm_hw_constraint_minmax(substream->runtime,
161 if (err < 0) {
175 return err;
191 int err = 0;
199 err = snd_dg00x_stream_reserve_duplex(dg00x, rate,
201 if (err >= 0)
206 return err;
228 int err;
232 err = snd_dg00x_stream_start_duplex(dg00x);
233 if (err >= 0)
238 return err;
244 int err;
248 err = snd_dg00x_stream_start_duplex(dg00x);
249 if (err >= 0) {
256 return err;
346 int err;
348 err = snd_pcm_new(dg00x->card, dg00x->card->driver, 0, 1, 1, &pcm);
349 if (err < 0)
350 return err;