Lines Matching refs:err
21 int err; in limit_channels_and_rates() local
29 err = snd_dice_transaction_read_tx(dice, in limit_channels_and_rates()
34 err = snd_dice_transaction_read_rx(dice, in limit_channels_and_rates()
38 if (err < 0) in limit_channels_and_rates()
39 return err; in limit_channels_and_rates()
44 err = snd_dice_transaction_get_rate(dice, &rate); in limit_channels_and_rates()
45 if (err < 0) in limit_channels_and_rates()
46 return err; in limit_channels_and_rates()
63 int err; in init_hw_info() local
69 err = snd_dice_transaction_read_tx(dice, TX_NUMBER, reg, in init_hw_info()
75 err = snd_dice_transaction_read_rx(dice, RX_NUMBER, reg, in init_hw_info()
79 if (err < 0) in init_hw_info()
80 return err; in init_hw_info()
87 err = limit_channels_and_rates(dice, substream->runtime, dir, in init_hw_info()
89 if (err < 0) in init_hw_info()
90 return err; in init_hw_info()
98 int err; in pcm_open() local
100 err = snd_dice_stream_lock_try(dice); in pcm_open()
101 if (err < 0) in pcm_open()
104 err = init_hw_info(dice, substream); in pcm_open()
105 if (err < 0) in pcm_open()
110 return err; in pcm_open()
113 return err; in pcm_open()
129 int err; in capture_hw_params() local
131 err = snd_pcm_lib_alloc_vmalloc_buffer(substream, in capture_hw_params()
133 if (err < 0) in capture_hw_params()
134 return err; in capture_hw_params()
148 int err; in playback_hw_params() local
150 err = snd_pcm_lib_alloc_vmalloc_buffer(substream, in playback_hw_params()
152 if (err < 0) in playback_hw_params()
153 return err; in playback_hw_params()
200 int err; in capture_prepare() local
203 err = snd_dice_stream_start_duplex(dice, substream->runtime->rate); in capture_prepare()
205 if (err >= 0) in capture_prepare()
214 int err; in playback_prepare() local
217 err = snd_dice_stream_start_duplex(dice, substream->runtime->rate); in playback_prepare()
219 if (err >= 0) in playback_prepare()
222 return err; in playback_prepare()
324 int err; in snd_dice_create_pcm() local
331 err = snd_dice_transaction_read_tx(dice, TX_NUMBER, ®, in snd_dice_create_pcm()
333 if (err < 0) in snd_dice_create_pcm()
334 return err; in snd_dice_create_pcm()
337 err = snd_dice_transaction_read_rx(dice, RX_NUMBER, ®, in snd_dice_create_pcm()
339 if (err < 0) in snd_dice_create_pcm()
340 return err; in snd_dice_create_pcm()
353 err = snd_pcm_new(dice->card, "DICE", i, playback, capture, in snd_dice_create_pcm()
355 if (err < 0) in snd_dice_create_pcm()
356 return err; in snd_dice_create_pcm()