Home
last modified time | relevance | path

Searched refs:snd_BUG_ON (Results 1 – 176 of 176) sorted by relevance

/linux-4.4.14/sound/core/oss/
Dcopy.c35 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in copy_transfer()
41 if (snd_BUG_ON(src_channels->area.first % 8 || in copy_transfer()
44 if (snd_BUG_ON(dst_channels->area.first % 8 || in copy_transfer()
70 if (snd_BUG_ON(!r_plugin)) in snd_pcm_plugin_build_copy()
74 if (snd_BUG_ON(src_format->format != dst_format->format)) in snd_pcm_plugin_build_copy()
76 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_copy()
78 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_copy()
82 if (snd_BUG_ON(width <= 0)) in snd_pcm_plugin_build_copy()
Dio.c42 if (snd_BUG_ON(!plugin)) in io_playback_transfer()
44 if (snd_BUG_ON(!src_channels)) in io_playback_transfer()
51 if (snd_BUG_ON(!bufs)) in io_playback_transfer()
68 if (snd_BUG_ON(!plugin)) in io_capture_transfer()
70 if (snd_BUG_ON(!dst_channels)) in io_capture_transfer()
77 if (snd_BUG_ON(!bufs)) in io_capture_transfer()
116 if (snd_BUG_ON(!r_plugin)) in snd_pcm_plugin_build_io()
119 if (snd_BUG_ON(!plug || !params)) in snd_pcm_plugin_build_io()
Drate.c188 if (snd_BUG_ON(!plugin)) in rate_src_frames()
221 if (snd_BUG_ON(!plugin)) in rate_dst_frames()
257 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in rate_transfer()
265 if (snd_BUG_ON(src_channels[channel].area.first % 8 || in rate_transfer()
268 if (snd_BUG_ON(dst_channels[channel].area.first % 8 || in rate_transfer()
287 if (snd_BUG_ON(!plugin)) in rate_action()
309 if (snd_BUG_ON(!r_plugin)) in snd_pcm_plugin_build_rate()
313 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_rate()
315 if (snd_BUG_ON(src_format->channels <= 0)) in snd_pcm_plugin_build_rate()
317 if (snd_BUG_ON(src_format->format != SNDRV_PCM_FORMAT_S16)) in snd_pcm_plugin_build_rate()
[all …]
Dlinear.c93 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in linear_transfer()
101 if (snd_BUG_ON(src_channels[channel].area.first % 8 || in linear_transfer()
104 if (snd_BUG_ON(dst_channels[channel].area.first % 8 || in linear_transfer()
156 if (snd_BUG_ON(!r_plugin)) in snd_pcm_plugin_build_linear()
160 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_linear()
162 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_linear()
164 if (snd_BUG_ON(!snd_pcm_format_linear(src_format->format) || in snd_pcm_plugin_build_linear()
Droute.c56 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in route_transfer()
93 if (snd_BUG_ON(!r_plugin)) in snd_pcm_plugin_build_route()
96 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_route()
98 if (snd_BUG_ON(src_format->format != dst_format->format)) in snd_pcm_plugin_build_route()
Dmulaw.c255 if (snd_BUG_ON(!plugin || !src_channels || !dst_channels)) in mulaw_transfer()
263 if (snd_BUG_ON(src_channels[channel].area.first % 8 || in mulaw_transfer()
266 if (snd_BUG_ON(dst_channels[channel].area.first % 8 || in mulaw_transfer()
309 if (snd_BUG_ON(!r_plugin)) in snd_pcm_plugin_build_mulaw()
313 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_mulaw()
315 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_mulaw()
330 if (snd_BUG_ON(!snd_pcm_format_linear(format->format))) in snd_pcm_plugin_build_mulaw()
Dpcm_plugin.c65 if (snd_BUG_ON(size % 8)) in snd_pcm_plugin_alloc()
88 if (snd_BUG_ON(size % format->channels)) in snd_pcm_plugin_alloc()
107 if (snd_BUG_ON(!snd_pcm_plug_first(plug))) in snd_pcm_plug_alloc()
114 if (snd_BUG_ON(frames <= 0)) in snd_pcm_plug_alloc()
126 if (snd_BUG_ON(frames <= 0)) in snd_pcm_plug_alloc()
156 if (snd_BUG_ON(!plug)) in snd_pcm_plugin_build()
158 if (snd_BUG_ON(!src_format || !dst_format)) in snd_pcm_plugin_build()
169 snd_BUG_ON(plugin->src_width <= 0); in snd_pcm_plugin_build()
172 snd_BUG_ON(plugin->dst_width <= 0); in snd_pcm_plugin_build()
204 if (snd_BUG_ON(!plug)) in snd_pcm_plug_client_size()
[all …]
Dmixer_oss.c274 if (snd_BUG_ON(left < 0 || left > 100)) in snd_mixer_oss_get_volume()
276 if (snd_BUG_ON(right < 0 || right > 100)) in snd_mixer_oss_get_volume()
317 if (snd_BUG_ON(!fmixer)) in snd_mixer_oss_ioctl1()
388 if (snd_BUG_ON(!card)) in snd_mixer_oss_ioctl_card()
1329 if (snd_BUG_ON(mixer != card->mixer_oss)) in snd_mixer_oss_free1()
Dpcm_oss.c468 snd_BUG_ON(v < 0); in snd_pcm_hw_param_near()
2373 if (snd_BUG_ON(!task || !name || size < 2)) in snd_task_name()
2479 if (snd_BUG_ON(!substream)) in snd_pcm_oss_release()
2513 if (snd_BUG_ON(idx >= 2)) in snd_pcm_oss_ioctl()
/linux-4.4.14/sound/synth/emux/
Demux_oss.c119 if (snd_BUG_ON(!arg || !emu)) in snd_emux_open_seq_oss()
182 if (snd_BUG_ON(!arg)) in snd_emux_close_seq_oss()
185 if (snd_BUG_ON(!p)) in snd_emux_close_seq_oss()
189 if (snd_BUG_ON(!emu)) in snd_emux_close_seq_oss()
212 if (snd_BUG_ON(!arg)) in snd_emux_load_patch_seq_oss()
215 if (snd_BUG_ON(!p)) in snd_emux_load_patch_seq_oss()
219 if (snd_BUG_ON(!emu)) in snd_emux_load_patch_seq_oss()
255 if (snd_BUG_ON(!arg)) in snd_emux_ioctl_seq_oss()
258 if (snd_BUG_ON(!p)) in snd_emux_ioctl_seq_oss()
262 if (snd_BUG_ON(!emu)) in snd_emux_ioctl_seq_oss()
[all …]
Demux_synth.c70 if (snd_BUG_ON(!port || !chan)) in snd_emux_note_on()
74 if (snd_BUG_ON(!emu || !emu->ops.get_voice || !emu->ops.trigger)) in snd_emux_note_on()
168 if (snd_BUG_ON(!port || !chan)) in snd_emux_note_off()
172 if (snd_BUG_ON(!emu || !emu->ops.release)) in snd_emux_note_off()
245 if (snd_BUG_ON(!port || !chan)) in snd_emux_key_press()
249 if (snd_BUG_ON(!emu || !emu->ops.update)) in snd_emux_key_press()
280 if (snd_BUG_ON(!emu || !emu->ops.update)) in snd_emux_update_channel()
307 if (snd_BUG_ON(!emu || !emu->ops.update)) in snd_emux_update_port()
330 if (snd_BUG_ON(!port || !chan)) in snd_emux_control()
405 if (snd_BUG_ON(!port || !chan)) in snd_emux_terminate_note()
[all …]
Demux_seq.c258 if (snd_BUG_ON(!port || !ev)) in snd_emux_event_input()
325 if (snd_BUG_ON(!p)) in snd_emux_use()
328 if (snd_BUG_ON(!emu)) in snd_emux_use()
348 if (snd_BUG_ON(!p)) in snd_emux_unuse()
351 if (snd_BUG_ON(!emu)) in snd_emux_unuse()
Demux.c95 if (snd_BUG_ON(!emu->hw || emu->max_voices <= 0)) in snd_emux_register()
97 if (snd_BUG_ON(!card || !name)) in snd_emux_register()
Demux_nrpn.c292 if (snd_BUG_ON(!port || !chan)) in snd_emux_nrpn()
382 if (snd_BUG_ON(!port || !chset)) in snd_emux_sysex()
/linux-4.4.14/sound/core/
Ddevice.c50 if (snd_BUG_ON(!card || !device_data || !ops)) in snd_device_new()
125 if (snd_BUG_ON(!card || !device_data)) in snd_device_disconnect()
149 if (snd_BUG_ON(!card || !device_data)) in snd_device_free()
190 if (snd_BUG_ON(!card || !device_data)) in snd_device_register()
209 if (snd_BUG_ON(!card)) in snd_device_register_all()
227 if (snd_BUG_ON(!card)) in snd_device_disconnect_all()
241 if (snd_BUG_ON(!card)) in snd_device_free_all()
Dtimer_compat.c43 if (snd_BUG_ON(!tu->timeri)) in snd_timer_user_info_compat()
46 if (snd_BUG_ON(!t)) in snd_timer_user_info_compat()
76 if (snd_BUG_ON(!tu->timeri)) in snd_timer_user_status_compat()
Dcompress_offload.c280 if (snd_BUG_ON(!data)) in snd_compr_write()
327 if (snd_BUG_ON(!data)) in snd_compr_read()
387 if (snd_BUG_ON(!data)) in snd_compr_poll()
390 if (snd_BUG_ON(!stream)) in snd_compr_poll()
797 if (snd_BUG_ON(!data)) in snd_compr_ioctl()
800 if (snd_BUG_ON(!stream)) in snd_compr_ioctl()
878 if (snd_BUG_ON(!device || !device->device_data)) in snd_compress_dev_register()
978 if (snd_BUG_ON(!device->ops->open)) in snd_compress_register()
980 if (snd_BUG_ON(!device->ops->free)) in snd_compress_register()
982 if (snd_BUG_ON(!device->ops->set_params)) in snd_compress_register()
[all …]
Dsound.c222 if (snd_BUG_ON(!card)) in snd_find_free_minor()
231 if (snd_BUG_ON(!card)) in snd_find_free_minor()
238 if (snd_BUG_ON(minor < 0 || minor >= SNDRV_OS_MINORS)) in snd_find_free_minor()
268 if (snd_BUG_ON(!device)) in snd_register_device()
Dinfo_oss.c43 if (snd_BUG_ON(dev < 0 || dev >= SNDRV_OSS_INFO_DEV_COUNT)) in snd_oss_info_register()
45 if (snd_BUG_ON(num < 0 || num >= SNDRV_CARDS)) in snd_oss_info_register()
Dsound_oss.c67 if (snd_BUG_ON(!card || dev < 0 || dev > 1)) in snd_oss_kernel_minor()
78 if (snd_BUG_ON(!card || dev < 0 || dev > 1)) in snd_oss_kernel_minor()
83 if (snd_BUG_ON(!card || dev < 0 || dev > 1)) in snd_oss_kernel_minor()
Drtctimer.c94 if (snd_BUG_ON(!rtc)) in rtctimer_start()
105 if (snd_BUG_ON(!rtc)) in rtctimer_stop()
Dpcm_timer.c39 if (snd_BUG_ON(!rate)) in snd_pcm_timer_resolution_change()
45 if (snd_BUG_ON(!fsize)) in snd_pcm_timer_resolution_change()
Dpcm_lib.c102 if (snd_BUG_ON(frames > runtime->buffer_size)) in snd_pcm_playback_silence()
114 snd_BUG_ON(err < 0); in snd_pcm_playback_silence()
126 snd_BUG_ON(err < 0); in snd_pcm_playback_silence()
478 snd_BUG_ON(crossed_boundary != 1); in snd_pcm_update_hw_ptr0()
579 snd_BUG_ON(!n); in muldiv32()
606 if (snd_BUG_ON(snd_interval_empty(i))) in snd_interval_refine()
650 if (snd_BUG_ON(snd_interval_empty(i))) in snd_interval_refine_first()
663 if (snd_BUG_ON(snd_interval_empty(i))) in snd_interval_refine_last()
1172 if (snd_BUG_ON(k >= ARRAY_SIZE(c->deps))) { in snd_pcm_hw_rule_add()
1665 if (snd_BUG_ON(err < 0)) in snd_pcm_hw_param_first()
[all …]
Dcontrol.c161 if (snd_BUG_ON(!card || !id)) in snd_ctl_notify()
251 if (snd_BUG_ON(!ncontrol || !ncontrol->info)) in snd_ctl_new1()
370 if (snd_BUG_ON(!card || !kcontrol->info)) in snd_ctl_add()
435 if (snd_BUG_ON(!card || !kcontrol->info)) { in snd_ctl_replace()
493 if (snd_BUG_ON(!card || !kcontrol)) in snd_ctl_remove()
668 if (snd_BUG_ON(!card || !numid)) in snd_ctl_find_numid()
696 if (snd_BUG_ON(!card || !id)) in snd_ctl_find_id()
828 snd_BUG_ON(info->access); in snd_ctl_elem_info()
1471 if (snd_BUG_ON(!card)) in snd_ctl_ioctl()
1534 if (snd_BUG_ON(!ctl || !ctl->card)) in snd_ctl_read()
[all …]
Dinfo.c508 if (snd_BUG_ON(!card)) in snd_info_card_create()
550 if (snd_BUG_ON(!card)) in snd_info_card_register()
630 if (snd_BUG_ON(!buffer || !buffer->buffer)) in snd_info_get_line()
826 if (snd_BUG_ON(!entry)) in snd_info_register()
Dpcm.c767 if (snd_BUG_ON(!card)) in _snd_pcm_new()
914 if (snd_BUG_ON(!pcm || !rsubstream)) in snd_pcm_attach_substream()
916 if (snd_BUG_ON(stream != SNDRV_PCM_STREAM_PLAYBACK && in snd_pcm_attach_substream()
1066 if (snd_BUG_ON(!device || !device->device_data)) in snd_pcm_dev_register()
1161 if (snd_BUG_ON(!notify || in snd_pcm_notify()
Dhwdep.c376 if (snd_BUG_ON(!card)) in snd_hwdep_new()
467 if (snd_BUG_ON(!hwdep)) in snd_hwdep_dev_disconnect()
Dtimer.c318 if (snd_BUG_ON(!timeri)) in snd_timer_close()
338 if (snd_BUG_ON(!timer)) in snd_timer_close()
407 if (snd_BUG_ON(event < SNDRV_TIMER_EVENT_START || in snd_timer_notify1()
512 if (snd_BUG_ON(!timeri)) in _snd_timer_stop()
827 if (snd_BUG_ON(!tid)) in snd_timer_new()
897 if (snd_BUG_ON(!timer || !timer->hw.start || !timer->hw.stop)) in snd_timer_dev_register()
968 if (snd_BUG_ON(event < SNDRV_TIMER_EVENT_MSTART || in snd_timer_notify()
Drawmidi.c338 if (snd_BUG_ON(!rfile)) in snd_rawmidi_kernel_open()
521 if (snd_BUG_ON(!rfile)) in snd_rawmidi_kernel_release()
1154 snd_BUG_ON(runtime->avail + count > runtime->buffer_size); in __snd_rawmidi_transmit_ack()
1235 if (snd_BUG_ON(!runtime->buffer)) in snd_rawmidi_kernel_write1()
1531 if (snd_BUG_ON(!card)) in snd_rawmidi_new()
Dpcm_memory.c339 if (snd_BUG_ON(substream->dma_buffer.dev.type == in snd_pcm_lib_malloc_pages()
Dinit.c208 if (snd_BUG_ON(!card_ret)) in snd_card_new()
736 if (snd_BUG_ON(!card)) in snd_card_register()
Dpcm_compat.c499 if (snd_BUG_ON(!runtime)) in snd_pcm_ioctl_sync_ptr_compat()
587 if (snd_BUG_ON(!runtime)) in snd_pcm_ioctl_sync_ptr_x32()
Dcontrol_compat.c458 if (snd_BUG_ON(!ctl || !ctl->card)) in snd_ctl_ioctl_compat()
Dpcm_native.c2417 if (snd_BUG_ON(!substream)) in snd_pcm_release()
2823 if (snd_BUG_ON(!substream)) in snd_pcm_playback_ioctl1()
2825 if (snd_BUG_ON(substream->stream != SNDRV_PCM_STREAM_PLAYBACK)) in snd_pcm_playback_ioctl1()
2903 if (snd_BUG_ON(!substream)) in snd_pcm_capture_ioctl1()
2905 if (snd_BUG_ON(substream->stream != SNDRV_PCM_STREAM_CAPTURE)) in snd_pcm_capture_ioctl1()
/linux-4.4.14/sound/pci/cs46xx/
Ddsp_spos_scb_lib.c49 if (snd_BUG_ON(ins->symbol_table.nsymbols <= 0)) in remove_symbol()
51 if (snd_BUG_ON(symbol_index < 0 || in remove_symbol()
121 if (snd_BUG_ON(scb->parent_scb_ptr->sub_list_ptr != scb && in _dsp_unlink_scb()
183 if (snd_BUG_ON(scb->index < 0 || in cs46xx_dsp_remove_scb()
191 if (snd_BUG_ON(scb->sub_list_ptr != ins->the_null_scb || in cs46xx_dsp_remove_scb()
201 if (snd_BUG_ON(!scb->scb_symbol)) in cs46xx_dsp_remove_scb()
301 if (snd_BUG_ON(!ins->the_null_scb)) in _dsp_create_generic_scb()
338 if (snd_BUG_ON(scb->parent_scb_ptr->next_scb_ptr != in _dsp_create_generic_scb()
345 if (snd_BUG_ON(scb->parent_scb_ptr->sub_list_ptr != in _dsp_create_generic_scb()
698 snd_BUG_ON(rate != 48000); in cs46xx_dsp_create_src_task_scb()
[all …]
Ddsp_spos.c66 if (snd_BUG_ON(size %2)) in shadow_and_reallocate_code()
292 if (snd_BUG_ON(!ins)) in cs46xx_dsp_spos_destroy()
419 if (snd_BUG_ON(!module->symbol_table.symbols)) in cs46xx_dsp_load_module()
1405 if (snd_BUG_ON(chip->nr_ac97_codecs != 1 && chip->nr_ac97_codecs != 2)) in cs46xx_dsp_scb_and_task_init()
1649 if (snd_BUG_ON(!spdifo_scb_desc)) in cs46xx_dsp_async_init()
1652 if (snd_BUG_ON(!spdifi_scb_desc)) in cs46xx_dsp_async_init()
1655 if (snd_BUG_ON(!async_codec_scb_desc)) in cs46xx_dsp_async_init()
1741 if (snd_BUG_ON(ins->asynch_rx_scb)) in cs46xx_dsp_enable_spdif_in()
1743 if (snd_BUG_ON(!ins->spdif_in_src)) in cs46xx_dsp_enable_spdif_in()
1799 if (snd_BUG_ON(!ins->asynch_rx_scb)) in cs46xx_dsp_disable_spdif_in()
[all …]
Dcs46xx_lib.c96 if (snd_BUG_ON(codec_index != CS46XX_PRIMARY_CODEC_INDEX && in snd_cs46xx_codec_read()
222 if (snd_BUG_ON(codec_index != CS46XX_PRIMARY_CODEC_INDEX && in snd_cs46xx_ac97_read()
239 if (snd_BUG_ON(codec_index != CS46XX_PRIMARY_CODEC_INDEX && in snd_cs46xx_codec_write()
306 if (snd_BUG_ON(codec_index != CS46XX_PRIMARY_CODEC_INDEX && in snd_cs46xx_ac97_write()
327 if (snd_BUG_ON((offset & 3) || (len & 3))) in snd_cs46xx_download()
490 if (snd_BUG_ON((offset & 3) || (len & 3))) in snd_cs46xx_clear_BA1()
916 if (snd_BUG_ON(!cpcm->pcm_channel)) in snd_cs46xx_playback_direct_pointer()
935 if (snd_BUG_ON(!cpcm->pcm_channel)) in snd_cs46xx_playback_indirect_pointer()
1106 if (snd_BUG_ON(!sample_rate)) in snd_cs46xx_playback_hw_params()
1116 snd_BUG_ON(!cpcm->pcm_channel); in snd_cs46xx_playback_hw_params()
[all …]
/linux-4.4.14/sound/core/seq/
Dseq_fifo.c66 if (snd_BUG_ON(!fifo)) in snd_seq_fifo_delete()
69 if (snd_BUG_ON(!f)) in snd_seq_fifo_delete()
119 if (snd_BUG_ON(!f)) in snd_seq_fifo_event_in()
178 if (snd_BUG_ON(!f)) in snd_seq_fifo_cell_out()
238 if (snd_BUG_ON(!f || !f->pool)) in snd_seq_fifo_resize()
Dseq_timer.c181 if (snd_BUG_ON(!tmr)) in snd_seq_timer_set_tempo()
199 if (snd_BUG_ON(!tmr)) in snd_seq_timer_set_ppq()
224 if (snd_BUG_ON(!tmr)) in snd_seq_timer_set_position_tick()
240 if (snd_BUG_ON(!tmr)) in snd_seq_timer_set_position_time()
256 if (snd_BUG_ON(!tmr)) in snd_seq_timer_set_skew()
278 if (snd_BUG_ON(!tmr)) in snd_seq_timer_open()
319 if (snd_BUG_ON(!tmr)) in snd_seq_timer_close()
358 if (snd_BUG_ON(!t)) in initialize_timer()
Dseq_midi.c119 if (snd_BUG_ON(!substream || !buf)) in dump_midi()
140 if (snd_BUG_ON(!msynth)) in event_process_midi()
216 if (snd_BUG_ON(!msynth->input_rfile.input)) in midisynth_unsubscribe()
254 if (snd_BUG_ON(!msynth->output_rfile.output)) in midisynth_unuse()
291 if (snd_BUG_ON(!card || device < 0 || device >= SNDRV_RAWMIDI_DEVICES)) in snd_seq_midisynth_probe()
Dseq_memory.c191 if (snd_BUG_ON(!cell)) in snd_seq_cell_free()
194 if (snd_BUG_ON(!pool)) in snd_seq_cell_free()
384 if (snd_BUG_ON(!pool)) in snd_seq_pool_init()
424 if (snd_BUG_ON(!pool)) in snd_seq_pool_done()
Dseq_ports.c134 if (snd_BUG_ON(!client)) in snd_seq_create_port()
272 snd_BUG_ON(port->c_src.count != 0); in port_delete()
273 snd_BUG_ON(port->c_dest.count != 0); in port_delete()
340 if (snd_BUG_ON(!port || !info)) in snd_seq_set_port_info()
370 if (snd_BUG_ON(!port || !info)) in snd_seq_get_port_info()
Dseq_compat.c96 if (snd_BUG_ON(!client)) in snd_seq_ioctl_compat()
Dseq_clientmgr.c413 if (snd_BUG_ON(!client)) in snd_seq_read()
851 if (snd_BUG_ON(!cell)) in snd_seq_dispatch_event()
1021 if (snd_BUG_ON(!client)) in snd_seq_write()
1104 if (snd_BUG_ON(!client)) in snd_seq_poll()
2224 if (snd_BUG_ON(!client)) in snd_seq_ioctl()
2246 if (snd_BUG_ON(in_interrupt())) in snd_seq_create_kernel_client()
2296 if (snd_BUG_ON(in_interrupt())) in snd_seq_delete_kernel_client()
2320 if (snd_BUG_ON(!ev)) in kernel_client_enqueue()
2387 if (snd_BUG_ON(!ev)) in snd_seq_kernel_client_dispatch()
Dseq_device.c217 if (snd_BUG_ON(!id)) in snd_seq_device_new()
Dseq_queue.c318 if (snd_BUG_ON(!cell)) in snd_seq_enqueue_event()
736 if (snd_BUG_ON(!ev)) in snd_seq_control_queue()
Dseq_prioq.c154 if (snd_BUG_ON(!f || !cell)) in snd_seq_prioq_cell_in()
/linux-4.4.14/sound/drivers/opl3/
Dopl3_oss.c165 if (snd_BUG_ON(!arg)) in snd_opl3_open_seq_oss()
188 if (snd_BUG_ON(!arg)) in snd_opl3_close_seq_oss()
211 if (snd_BUG_ON(!arg)) in snd_opl3_load_patch_seq_oss()
252 if (snd_BUG_ON(!arg)) in snd_opl3_ioctl_seq_oss()
280 if (snd_BUG_ON(!arg)) in snd_opl3_reset_seq_oss()
Dopl3_lib.c143 if (snd_BUG_ON(!opl3->r_port)) in snd_opl3_detect()
329 if (snd_BUG_ON(!opl3)) in snd_opl3_free()
Dopl3_midi.c630 if (snd_BUG_ON(voice >= MAX_OPL3_VOICES)) in snd_opl3_kill_voice()
757 if (snd_BUG_ON(voice >= MAX_OPL3_VOICES)) in snd_opl3_update_pitch()
Dopl3_synth.c97 if (snd_BUG_ON(!opl3)) in snd_opl3_ioctl()
/linux-4.4.14/sound/isa/wavefront/
Dwavefront_midi.c238 if (snd_BUG_ON(!substream || !substream->rmidi)) in snd_wavefront_midi_input_open()
240 if (snd_BUG_ON(!substream->rmidi->private_data)) in snd_wavefront_midi_input_open()
262 if (snd_BUG_ON(!substream || !substream->rmidi)) in snd_wavefront_midi_output_open()
264 if (snd_BUG_ON(!substream->rmidi->private_data)) in snd_wavefront_midi_output_open()
286 if (snd_BUG_ON(!substream || !substream->rmidi)) in snd_wavefront_midi_input_close()
288 if (snd_BUG_ON(!substream->rmidi->private_data)) in snd_wavefront_midi_input_close()
309 if (snd_BUG_ON(!substream || !substream->rmidi)) in snd_wavefront_midi_output_close()
311 if (snd_BUG_ON(!substream->rmidi->private_data)) in snd_wavefront_midi_output_close()
Dwavefront_fx.c178 if (snd_BUG_ON(!card)) in snd_wavefront_fx_ioctl()
180 if (snd_BUG_ON(!card->private_data)) in snd_wavefront_fx_ioctl()
Dwavefront_synth.c1653 if (snd_BUG_ON(!card)) in snd_wavefront_synth_ioctl()
1655 if (snd_BUG_ON(!card->private_data)) in snd_wavefront_synth_ioctl()
/linux-4.4.14/sound/pci/ca0106/
Dca_midi.c128 if (snd_BUG_ON(!midi->dev_id)) in ca_midi_input_open()
148 if (snd_BUG_ON(!midi->dev_id)) in ca_midi_output_open()
168 if (snd_BUG_ON(!midi->dev_id)) in ca_midi_input_close()
188 if (snd_BUG_ON(!midi->dev_id)) in ca_midi_output_close()
210 if (snd_BUG_ON(!midi->dev_id)) in ca_midi_input_trigger()
225 if (snd_BUG_ON(!midi->dev_id)) in ca_midi_output_trigger()
/linux-4.4.14/sound/pci/trident/
Dtrident_memory.c197 if (snd_BUG_ON(runtime->dma_bytes <= 0 || in snd_trident_alloc_sg_pages()
202 if (snd_BUG_ON(!hdr)) in snd_trident_alloc_sg_pages()
246 if (snd_BUG_ON(runtime->dma_bytes <= 0 || in snd_trident_alloc_cont_pages()
251 if (snd_BUG_ON(!hdr)) in snd_trident_alloc_cont_pages()
284 if (snd_BUG_ON(!trident || !substream)) in snd_trident_alloc_pages()
302 if (snd_BUG_ON(!trident || !blk)) in snd_trident_free_pages()
Dtrident_main.c2925 if (snd_BUG_ON(!trident || !voice || !substream)) in snd_trident_pcm_mixer_build()
2941 if (snd_BUG_ON(!trident || !substream)) in snd_trident_pcm_mixer_free()
3129 if (snd_BUG_ON(!chip)) in snd_trident_gameport_read()
3138 if (snd_BUG_ON(!chip)) in snd_trident_gameport_trigger()
3148 if (snd_BUG_ON(!chip)) in snd_trident_gameport_cooked_read()
3165 if (snd_BUG_ON(!chip)) in snd_trident_gameport_open()
3894 if (snd_BUG_ON(v_min > 63 || v_max > 63)) in snd_trident_clear_voices()
/linux-4.4.14/sound/pci/emu10k1/
Dvoice.c121 if (snd_BUG_ON(!rvoice)) in snd_emu10k1_voice_alloc()
123 if (snd_BUG_ON(!number)) in snd_emu10k1_voice_alloc()
157 if (snd_BUG_ON(!pvoice)) in snd_emu10k1_voice_free()
Demumpu401.c163 if (snd_BUG_ON(!emu)) in snd_emu10k1_midi_input_open()
190 if (snd_BUG_ON(!emu)) in snd_emu10k1_midi_output_open()
218 if (snd_BUG_ON(!emu)) in snd_emu10k1_midi_input_close()
241 if (snd_BUG_ON(!emu)) in snd_emu10k1_midi_output_close()
261 if (snd_BUG_ON(!emu)) in snd_emu10k1_midi_input_trigger()
277 if (snd_BUG_ON(!emu)) in snd_emu10k1_midi_output_trigger()
Dmemory.c308 if (snd_BUG_ON(!emu)) in snd_emu10k1_alloc_pages()
310 if (snd_BUG_ON(runtime->dma_bytes <= 0 || in snd_emu10k1_alloc_pages()
314 if (snd_BUG_ON(!hdr)) in snd_emu10k1_alloc_pages()
364 if (snd_BUG_ON(!emu || !blk)) in snd_emu10k1_free_pages()
510 if (snd_BUG_ON(page < 0 || page >= emu->max_cache_pages)) in offset_ptr()
Demu10k1_patch.c49 if (snd_BUG_ON(!sp || !hdr)) in snd_emu10k1_sample_new()
222 if (snd_BUG_ON(!sp || !hdr)) in snd_emu10k1_sample_free()
Demu10k1x.c1341 if (snd_BUG_ON(!emu)) in snd_emu10k1x_midi_input_open()
1368 if (snd_BUG_ON(!emu)) in snd_emu10k1x_midi_output_open()
1396 if (snd_BUG_ON(!emu)) in snd_emu10k1x_midi_input_close()
1419 if (snd_BUG_ON(!emu)) in snd_emu10k1x_midi_output_close()
1439 if (snd_BUG_ON(!emu)) in snd_emu10k1x_midi_input_trigger()
1455 if (snd_BUG_ON(!emu)) in snd_emu10k1x_midi_output_trigger()
Demu10k1_callback.c150 if (snd_BUG_ON(!vp)) in terminate_voice()
331 if (snd_BUG_ON(ch < 0)) in start_voice()
Dio.c74 if (snd_BUG_ON(!emu)) in snd_emu10k1_ptr_write()
Demufx.c499 if (snd_BUG_ON(*ptr >= 512)) in snd_emu10k1_write_op()
516 if (snd_BUG_ON(*ptr >= 1024)) in snd_emu10k1_audigy_write_op()
/linux-4.4.14/sound/hda/
Darray.c20 if (snd_BUG_ON(!array->elem_size)) in snd_array_new()
26 if (snd_BUG_ON(num >= 4096)) in snd_array_new()
Dhdac_controller.c103 if (snd_BUG_ON(addr >= HDA_MAX_CODECS)) in azx_command_addr()
/linux-4.4.14/sound/core/seq/oss/
Dseq_oss.c163 if (snd_BUG_ON(!dp)) in odev_read()
174 if (snd_BUG_ON(!dp)) in odev_write()
184 if (snd_BUG_ON(!dp)) in odev_ioctl()
200 if (snd_BUG_ON(!dp)) in odev_poll()
Dseq_oss_synth.c311 if (snd_BUG_ON(dp->max_synthdev > SNDRV_SEQ_OSS_MAX_SYNTH_DEVS)) in snd_seq_oss_synth_cleanup()
405 if (snd_BUG_ON(dev < 0 || dev >= dp->max_synthdev)) in snd_seq_oss_synth_reset()
/linux-4.4.14/sound/pci/echoaudio/
Dmia_dsp.c44 if (snd_BUG_ON((subdevice_id & 0xfff0) != MIA)) in init_hw()
157 if (snd_BUG_ON(clock != ECHO_CLOCK_INTERNAL && in set_input_clock()
173 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain()
Dindigoio_dsp.c41 if (snd_BUG_ON((subdevice_id & 0xfff0) != INDIGO_IO)) in init_hw()
109 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain()
Dlayla20_dsp.c43 if (snd_BUG_ON((subdevice_id & 0xfff0) != LAYLA20)) in init_hw()
161 if (snd_BUG_ON(rate < 8000 || rate > 50000)) in set_sample_rate()
254 if (snd_BUG_ON(input >= num_busses_in(chip))) in set_input_gain()
Ddarla24_dsp.c36 if (snd_BUG_ON((subdevice_id & 0xfff0) != DARLA24)) in init_hw()
157 if (snd_BUG_ON(clock != ECHO_CLOCK_INTERNAL && in set_input_clock()
Dindigodj_dsp.c41 if (snd_BUG_ON((subdevice_id & 0xfff0) != INDIGO_DJ)) in init_hw()
139 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain()
Dindigo_dsp.c41 if (snd_BUG_ON((subdevice_id & 0xfff0) != INDIGO)) in init_hw()
139 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain()
Dechoaudio_gml.c116 if (snd_BUG_ON(chip->pipe_alloc_mask)) in set_digital_mode()
119 if (snd_BUG_ON(!(chip->digital_modes & (1 << mode)))) in set_digital_mode()
Dgina20_dsp.c40 if (snd_BUG_ON((subdevice_id & 0xfff0) != GINA20)) in init_hw()
180 if (snd_BUG_ON(input >= num_busses_in(chip))) in set_input_gain()
Dechoaudio_3g.c106 if (snd_BUG_ON(chip->pipe_alloc_mask)) in set_digital_mode()
109 if (snd_BUG_ON(!(chip->digital_modes & (1 << mode)))) in set_digital_mode()
271 if (snd_BUG_ON(rate >= 50000 && in set_sample_rate()
Dindigoiox_dsp.c38 if (snd_BUG_ON((subdevice_id & 0xfff0) != INDIGO_IOX)) in init_hw()
Dindigodjx_dsp.c38 if (snd_BUG_ON((subdevice_id & 0xfff0) != INDIGO_DJX)) in init_hw()
Dechoaudio_dsp.c493 if (snd_BUG_ON(!chip->comm_page)) in load_firmware()
530 if (snd_BUG_ON(index >= num_busses_out(chip) + num_busses_in(chip))) in set_nominal_level()
554 if (snd_BUG_ON(channel >= num_busses_out(chip))) in set_output_gain()
573 if (snd_BUG_ON(output >= num_busses_out(chip) || in set_monitor_gain()
1102 if (snd_BUG_ON(!is_pipe_allocated(chip, pipe->index))) in free_pipes()
1104 if (snd_BUG_ON(pipe->state != PIPE_STATE_STOPPED)) in free_pipes()
Dmidi.c62 if (snd_BUG_ON(bytes <= 0 || bytes >= MIDI_OUT_BUFFER_SIZE)) in write_midi()
123 if (snd_BUG_ON(count >= MIDI_IN_BUFFER_SIZE)) in midi_service_irq()
Dgina24_dsp.c44 if (snd_BUG_ON((subdevice_id & 0xfff0) != GINA24)) in init_hw()
166 if (snd_BUG_ON(rate >= 50000 && in set_sample_rate()
Dindigo_express_dsp.c82 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain()
Dlayla24_dsp.c43 if (snd_BUG_ON((subdevice_id & 0xfff0) != LAYLA24)) in init_hw()
161 if (snd_BUG_ON(rate >= 50000 && in set_sample_rate()
Ddarla20_dsp.c36 if (snd_BUG_ON((subdevice_id & 0xfff0) != DARLA20)) in init_hw()
Decho3g_dsp.c49 if (snd_BUG_ON((subdevice_id & 0xfff0) != ECHO3G)) in init_hw()
Dmona_dsp.c44 if (snd_BUG_ON((subdevice_id & 0xfff0) != MONA)) in init_hw()
Dechoaudio.c544 snd_BUG_ON(err); in init_engine()
726 if (snd_BUG_ON(pipe_index >= px_num(chip))) in pcm_prepare()
728 if (snd_BUG_ON(!is_pipe_allocated(chip, pipe_index))) in pcm_prepare()
/linux-4.4.14/sound/synth/
Dutil_mem.c79 if (snd_BUG_ON(!hdr || size <= 0)) in __snd_util_mem_alloc()
166 if (snd_BUG_ON(!hdr || !blk)) in snd_util_mem_free()
/linux-4.4.14/sound/i2c/
Dcs8427.c326 if (snd_BUG_ON(!cs8427)) in snd_cs8427_reset()
539 if (snd_BUG_ON(!play_substream || !cap_substream)) in snd_cs8427_iec958_build()
557 if (snd_BUG_ON(!chip->playback.pcm_ctl)) in snd_cs8427_iec958_build()
568 if (snd_BUG_ON(!cs8427)) in snd_cs8427_iec958_active()
589 if (snd_BUG_ON(!cs8427)) in snd_cs8427_iec958_pcm()
Di2c.c53 if (snd_BUG_ON(!bus)) in snd_i2c_bus_free()
119 if (snd_BUG_ON(!bus)) in snd_i2c_device_create()
/linux-4.4.14/sound/drivers/vx/
Dvx_uer.c165 if (snd_BUG_ON(freq <= 0)) in vx_calc_clock_from_freq()
172 if (snd_BUG_ON(hexfreq <= 0x00000200)) in vx_calc_clock_from_freq()
Dvx_cmd.c102 if (snd_BUG_ON(cmd >= CMD_LAST_INDEX)) in vx_init_rmh()
Dvx_core.c208 if (snd_BUG_ON(size >= SIZE_MAX_STATUS)) in vx_read_status()
563 if (snd_BUG_ON(!chip->ops->reset_board)) in vx_reset_board()
794 if (snd_BUG_ON(!card || !hw || !ops)) in snd_vx_create()
Dvx_pcm.c538 if (snd_BUG_ON(audio >= chip->audio_outs)) in vx_pcm_playback_open()
930 if (snd_BUG_ON(audio >= chip->audio_ins)) in vx_pcm_capture_open()
1149 if (snd_BUG_ON(p < 0 || p >= chip->audio_outs)) in vx_pcm_update_intr()
Dvx_mixer.c35 if (snd_BUG_ON(!chip->ops->write_codec)) in vx_write_codec_reg()
/linux-4.4.14/sound/pci/mixart/
Dmixart_core.c155 if (snd_BUG_ON(msg->size % 4)) in send_msg()
290 if (snd_BUG_ON(!notif_event)) in snd_mixart_send_msg_wait_notif()
292 if (snd_BUG_ON((notif_event & MSG_TYPE_MASK) != MSG_TYPE_NOTIFY)) in snd_mixart_send_msg_wait_notif()
294 if (snd_BUG_ON(notif_event & MSG_CANCEL_NOTIFY_MASK)) in snd_mixart_send_msg_wait_notif()
Dmixart_mixer.c846 snd_BUG_ON(idx >= MIXART_PLAYBACK_STREAMS); in mixart_pcm_vol_get()
872 snd_BUG_ON(idx >= MIXART_PLAYBACK_STREAMS); in mixart_pcm_vol_put()
918 snd_BUG_ON(idx >= MIXART_PLAYBACK_STREAMS); in mixart_pcm_sw_get()
935 snd_BUG_ON(idx >= MIXART_PLAYBACK_STREAMS); in mixart_pcm_sw_put()
Dmixart.c738 snd_BUG_ON(pcm != chip->pcm_dig); in snd_mixart_playback_open()
817 snd_BUG_ON(pcm != chip->pcm_dig); in snd_mixart_capture_open()
/linux-4.4.14/sound/isa/gus/
Dgus_mixer.c161 if (snd_BUG_ON(!gus)) in snd_gf1_new_mixer()
164 if (snd_BUG_ON(!card)) in snd_gf1_new_mixer()
Dgus_pcm.c368 if (snd_BUG_ON(bpos > pcmp->dma_size)) in snd_gf1_pcm_playback_copy()
370 if (snd_BUG_ON(bpos + len > pcmp->dma_size)) in snd_gf1_pcm_playback_copy()
399 if (snd_BUG_ON(bpos > pcmp->dma_size)) in snd_gf1_pcm_playback_silence()
401 if (snd_BUG_ON(bpos + len > pcmp->dma_size)) in snd_gf1_pcm_playback_silence()
Dgus_main.c280 if (snd_BUG_ON(!gus)) in snd_gus_init_dma_irq()
283 if (snd_BUG_ON(!card)) in snd_gus_init_dma_irq()
/linux-4.4.14/sound/ppc/
Dbeep.c188 if (snd_BUG_ON(!chip->beep)) in snd_pmac_get_beep()
199 if (snd_BUG_ON(!chip->beep)) in snd_pmac_put_beep()
Dtumbler.c981 if (snd_BUG_ON(!mix)) in device_change_handler()
1037 if (snd_BUG_ON(!mix)) in tumbler_update_automute()
/linux-4.4.14/sound/pci/pcxhr/
Dpcxhr_core.c345 if (snd_BUG_ON(!dsp->data)) in pcxhr_download_dsp()
423 if (snd_BUG_ON(physaddr & 0xff)) in pcxhr_load_boot_binary()
615 if (snd_BUG_ON(rmh->cmd_len >= PCXHR_SIZE_MAX_CMD)) in pcxhr_send_msg_nolock()
732 if (snd_BUG_ON(cmd >= CMD_LAST_INDEX)) in pcxhr_init_rmh()
746 snd_BUG_ON(param1 > MASK_FIRST_FIELD); in pcxhr_set_pipe_cmd_params()
752 snd_BUG_ON(param2 > MASK_FIRST_FIELD); in pcxhr_set_pipe_cmd_params()
756 snd_BUG_ON(param3 > MASK_DSP_WORD); in pcxhr_set_pipe_cmd_params()
Dpcxhr_mixer.c747 snd_BUG_ON(clock_items > (HR22_CLOCK_TYPE_MAX+1)); in pcxhr_clock_type_info()
750 snd_BUG_ON(clock_items > (PCXHR_CLOCK_TYPE_MAX+1)); in pcxhr_clock_type_info()
Dpcxhr.c657 snd_BUG_ON(subs->runtime->dma_bytes >= 0x200000); in pcxhr_update_r_buffer()
1554 if (snd_BUG_ON(pci_id->driver_data >= PCI_ID_LAST)) { in pcxhr_probe()
/linux-4.4.14/include/sound/
Dcompress_driver.h178 if (snd_BUG_ON(!stream)) in snd_compr_drain_notify()
Dcore.h357 #define snd_BUG_ON(cond) WARN_ON((cond)) macro
368 #define snd_BUG_ON(condition) ({ \ macro
Dpcm.h1324 #define PCM_RUNTIME_CHECK(sub) snd_BUG_ON(!(sub) || !(sub)->runtime)
/linux-4.4.14/sound/pci/vx222/
Dvx222_ops.c265 if (snd_BUG_ON(count % 4)) in vx2_dma_write()
304 if (snd_BUG_ON(count % 4)) in vx2_dma_read()
690 if (snd_BUG_ON(data >= sizeof(vx2_akm_gains_lut))) in vx2_write_akm()
839 if (snd_BUG_ON(preamp >= 4)) in vx2_set_input_level()
/linux-4.4.14/sound/pci/ice1712/
Dak4xxx.c64 if (snd_BUG_ON(chip < 0 || chip >= 4)) in snd_ice1712_akm4xxx_write()
Dews.c151 if (snd_BUG_ON(chip_mask < 0 || chip_mask > 0x0f)) in snd_ice1712_ews88mt_chip_select()
684 if (snd_BUG_ON(channel < 0 || channel > 7)) in snd_ice1712_ews88mt_input_sense_get()
705 if (snd_BUG_ON(channel < 0 || channel > 7)) in snd_ice1712_ews88mt_input_sense_put()
Djuli.c214 if (snd_BUG_ON(chip)) in juli_akm_write()
Dquartet.c279 if (snd_BUG_ON(chip < 0 || chip >= 4)) in qtet_akm_write()
Dice1724.c2435 if (snd_BUG_ON(!ice->pcm)) in snd_vt1724_spdif_build_controls()
Dice1712.c2422 if (snd_BUG_ON(!ice->pcm_pro)) in snd_ice1712_spdif_build_controls()
/linux-4.4.14/sound/pci/nm256/
Dnm256.c568 if (snd_BUG_ON(!s)) in snd_nm256_playback_trigger()
606 if (snd_BUG_ON(!s)) in snd_nm256_capture_trigger()
643 if (snd_BUG_ON(!s)) in snd_nm256_pcm_prepare()
669 if (snd_BUG_ON(!s)) in snd_nm256_playback_pointer()
683 if (snd_BUG_ON(!s)) in snd_nm256_capture_pointer()
/linux-4.4.14/sound/pci/hda/
Dhda_controller.c458 if (snd_BUG_ON(!runtime->hw.channels_min) || in azx_pcm_open()
459 snd_BUG_ON(!runtime->hw.channels_max) || in azx_pcm_open()
460 snd_BUG_ON(!runtime->hw.formats) || in azx_pcm_open()
461 snd_BUG_ON(!runtime->hw.rates)) { in azx_pcm_open()
Dhda_codec.c206 if (snd_BUG_ON(added)) in snd_hda_get_conn_list()
814 if (snd_BUG_ON(!bus)) in snd_hda_codec_new()
816 if (snd_BUG_ON(codec_addr > HDA_MAX_CODEC_ADDRESS)) in snd_hda_codec_new()
1217 if (snd_BUG_ON(mask & ~0xff)) in snd_hda_codec_amp_stereo()
1272 if (snd_BUG_ON(mask & ~0xff)) in snd_hda_codec_amp_init_stereo()
1491 if (snd_BUG_ON(strlen(name) >= sizeof(id.name))) in find_mixer_ctl()
3160 if (snd_BUG_ON(!info->nid)) in set_pcm_default_values()
3165 if (snd_BUG_ON(!info->nid)) in set_pcm_default_values()
Dpatch_hdmi.c1456 if (snd_BUG_ON(pin_idx < 0)) in hdmi_pcm_open()
1870 if (snd_BUG_ON(cvt_idx < 0)) in hdmi_pcm_close()
1874 snd_BUG_ON(!per_cvt->assigned); in hdmi_pcm_close()
1879 if (snd_BUG_ON(pin_idx < 0)) in hdmi_pcm_close()
Dpatch_realtek.c217 if (snd_BUG_ON(spec->num_mixers >= ARRAY_SIZE(spec->mixers))) in add_mixer()
4523 if (snd_BUG_ON(!mic_pin || !hp_pin)) in alc271_hp_gate_mic_jack()
Dpatch_sigmatel.c994 if (snd_BUG_ON(!labels[i])) in stac_create_spdif_mux_ctls()
/linux-4.4.14/sound/isa/sb/
Dsb_mixer.c744 if (snd_BUG_ON(!chip || !chip->card)) in snd_sbmixer_new()
893 if (snd_BUG_ON(num_regs > ARRAY_SIZE(chip->saved_regs))) in save_mixer()
902 if (snd_BUG_ON(num_regs > ARRAY_SIZE(chip->saved_regs))) in restore_mixer()
Dsb8_main.c127 if (snd_BUG_ON(rate != SB8_RATE(11025) && in snd_sb8_playback_prepare()
277 if (snd_BUG_ON(rate != SB8_RATE(11025) && in snd_sb8_capture_prepare()
Demu8000_patch.c159 if (snd_BUG_ON(!sp)) in snd_emu8000_sample_new()
Dsb_common.c225 if (snd_BUG_ON(!r_chip)) in snd_sbdsp_create()
Dsb16_csp.c202 if (snd_BUG_ON(!p)) in snd_sb_csp_ioctl()
1053 if (snd_BUG_ON(!p)) in snd_sb_qsound_build()
1079 if (snd_BUG_ON(!p)) in snd_sb_qsound_destroy()
Dsb16_main.c673 if (snd_BUG_ON(what)) in snd_sb16_set_dma_mode()
Demu8000.c1038 if (snd_BUG_ON(!emu || !card)) in snd_emu8000_create_mixer()
/linux-4.4.14/sound/pci/rme9652/
Drme9652.c1870 if (snd_BUG_ON(channel < 0 || channel >= RME9652_NCHANNELS)) in rme9652_channel_buffer_location()
1892 if (snd_BUG_ON(pos + count > RME9652_CHANNEL_BUFFER_BYTES / 4)) in snd_rme9652_playback_copy()
1898 if (snd_BUG_ON(!channel_buf)) in snd_rme9652_playback_copy()
1911 if (snd_BUG_ON(pos + count > RME9652_CHANNEL_BUFFER_BYTES / 4)) in snd_rme9652_capture_copy()
1917 if (snd_BUG_ON(!channel_buf)) in snd_rme9652_capture_copy()
1933 if (snd_BUG_ON(!channel_buf)) in snd_rme9652_hw_silence()
2036 if (snd_BUG_ON(info->channel >= RME9652_NCHANNELS)) in snd_rme9652_channel_info()
Dhdsp.c1126 snd_BUG_ON(n >> 32); in hdsp_set_dds_value()
2809 if (snd_BUG_ON(offset < 0)) in snd_hdsp_get_adat_sync_check()
3904 if (snd_BUG_ON(channel < 0 || channel >= hdsp->max_channels)) in hdsp_channel_buffer_location()
3922 if (snd_BUG_ON(pos + count > HDSP_CHANNEL_BUFFER_BYTES / 4)) in snd_hdsp_playback_copy()
3926 if (snd_BUG_ON(!channel_buf)) in snd_hdsp_playback_copy()
3939 if (snd_BUG_ON(pos + count > HDSP_CHANNEL_BUFFER_BYTES / 4)) in snd_hdsp_capture_copy()
3943 if (snd_BUG_ON(!channel_buf)) in snd_hdsp_capture_copy()
3957 if (snd_BUG_ON(!channel_buf)) in snd_hdsp_hw_silence()
4070 if (snd_BUG_ON(info->channel >= hdsp->max_channels)) in snd_hdsp_channel_info()
Dhdspm.c1604 if (snd_BUG_ON(rate <= 0)) in hdspm_set_dds_value()
1631 snd_BUG_ON(n >> 32); in hdspm_set_dds_value()
3758 if (snd_BUG_ON(channel < 0 || channel >= HDSPM_MAX_CHANNELS)) in snd_hdspm_get_playback_mixer()
3782 if (snd_BUG_ON(channel < 0 || channel >= HDSPM_MAX_CHANNELS)) in snd_hdspm_put_playback_mixer()
5697 if (snd_BUG_ON(info->channel >= hdspm->max_channels_out)) { in snd_hdspm_channel_info()
5714 if (snd_BUG_ON(info->channel >= hdspm->max_channels_in)) { in snd_hdspm_channel_info()
/linux-4.4.14/sound/usb/
Dendpoint.c961 if (snd_BUG_ON(!urb)) in snd_usb_endpoint_start()
1008 if (snd_BUG_ON(ep->use_count == 0)) in snd_usb_endpoint_stop()
1086 snd_BUG_ON(ep == sender); in snd_usb_handle_sync_urb()
Dpcm.c797 if (snd_BUG_ON(!subs->data_endpoint)) { in snd_usb_pcm_prepare()
Dmixer.c1927 if (snd_BUG_ON(!itemlist)) in mixer_ctl_selector_info()
/linux-4.4.14/sound/pci/
Dcs4281.c772 snd_BUG_ON(dma->right_slot != chip->src_right_play_slot); in snd_cs4281_mode()
778 snd_BUG_ON(dma->right_slot != chip->src_right_rec_slot); in snd_cs4281_mode()
1203 if (snd_BUG_ON(!chip)) in snd_cs4281_gameport_trigger()
1212 if (snd_BUG_ON(!chip)) in snd_cs4281_gameport_read()
1224 if (snd_BUG_ON(!chip)) in snd_cs4281_gameport_cooked_read()
Datiixp_modem.c677 if (snd_BUG_ON(!dma->ops->enable_transfer || in snd_atiixp_pcm_trigger()
870 if (snd_BUG_ON(!dma->ops || !dma->ops->enable_dma)) in snd_atiixp_pcm_open()
901 if (snd_BUG_ON(!dma->ops || !dma->ops->enable_dma)) in snd_atiixp_pcm_close()
Dsonicvibes.c573 snd_BUG_ON(SV_REFFREQUENCY % 16); in snd_sonicvibes_hw_constraint_dac_rate()
574 snd_BUG_ON(SV_ADCMULT % 512); in snd_sonicvibes_hw_constraint_dac_rate()
889 if (snd_BUG_ON(!pcm)) in snd_sonicvibes_pcm()
1122 if (snd_BUG_ON(!sonic || !sonic->card)) in snd_sonicvibes_mixer()
Dad1889.c549 if (snd_BUG_ON(ptr >= chip->wave.size)) in snd_ad1889_playback_pointer()
568 if (snd_BUG_ON(ptr >= chip->ramc.size)) in snd_ad1889_capture_pointer()
Datiixp.c727 if (snd_BUG_ON(!dma->ops->enable_transfer || in snd_atiixp_pcm_trigger()
1039 if (snd_BUG_ON(!dma->ops || !dma->ops->enable_dma)) in snd_atiixp_pcm_open()
1072 if (snd_BUG_ON(!dma->ops || !dma->ops->enable_dma)) in snd_atiixp_pcm_close()
Dak4531_codec.c393 if (snd_BUG_ON(!card || !_ak4531)) in snd_ak4531_mixer()
Dmaestro3.c1118 if (snd_BUG_ON(!s)) in snd_m3_pcm_trigger()
1431 if (snd_BUG_ON(!s)) in snd_m3_pcm_prepare()
1492 if (snd_BUG_ON(!s)) in snd_m3_pcm_pointer()
Dvia82xx.c843 if (snd_BUG_ON(!viadev->tbl_entries)) in snd_via686_pcm_pointer()
875 if (snd_BUG_ON(!viadev->tbl_entries)) in snd_via8233_pcm_pointer()
1059 snd_BUG_ON(rbits & ~0xfffff); in snd_via8233_playback_prepare()
Dazt3328.c1193 if (snd_BUG_ON(!chip || !chip->card)) in snd_azf3328_mixer_new()
1768 if (snd_BUG_ON(!chip)) in snd_azf3328_gameport_cooked_read()
Dvia82xx_modem.c624 if (snd_BUG_ON(!viadev->tbl_entries)) in snd_via686_pcm_pointer()
Dcmipci.c2374 if (snd_BUG_ON(!args)) in snd_cmipci_uswitch_get()
2419 if (snd_BUG_ON(!args)) in snd_cmipci_uswitch_put()
2674 if (snd_BUG_ON(!cm || !cm->card)) in snd_cmipci_mixer_new()
Des1968.c708 if (snd_BUG_ON(channel >= NR_APUS)) in __apu_set_register()
728 if (snd_BUG_ON(channel >= NR_APUS)) in __apu_get_register()
Dintel8x0m.c309 if (snd_BUG_ON(codec >= 3)) in get_ich_codec_bit()
Des1938.c851 if (snd_BUG_ON(pos + count > chip->dma1_size)) in snd_es1938_capture_copy()
Dintel8x0.c2258 if (snd_BUG_ON(chip->ac97_sdin[codecs] >= 3)) in snd_intel8x0_mixer()
/linux-4.4.14/sound/mips/
Dau1x00.c196 if (snd_BUG_ON(!stream->buffer)) in au1000_dma_stop()
204 if (snd_BUG_ON(!stream->buffer)) in au1000_dma_start()
/linux-4.4.14/sound/pci/ymfpci/
Dymfpci_main.c264 if (snd_BUG_ON(!rvoice)) in snd_ymfpci_voice_alloc()
266 if (snd_BUG_ON(pair && type != YMFPCI_PCM)) in snd_ymfpci_voice_alloc()
285 if (snd_BUG_ON(!pvoice)) in snd_ymfpci_voice_free()
512 if (snd_BUG_ON(!voice)) in snd_ymfpci_pcm_init_voice()
1845 if (snd_BUG_ON(!chip->pcm_spdif)) in snd_ymfpci_mixer()
2177 snd_BUG_ON(ptr + chip->work_size != in snd_ymfpci_memalloc()
2213 if (snd_BUG_ON(!chip)) in snd_ymfpci_free()
/linux-4.4.14/sound/isa/msnd/
Dmsnd_pinnacle_mixer.c304 if (snd_BUG_ON(!chip)) in snd_msndmix_new()
/linux-4.4.14/sound/pci/riptide/
Driptide.c847 if (snd_BUG_ON(!cif)) in sendcmd()
1464 if (snd_BUG_ON(!cif || !data)) in snd_riptide_prepare()
1750 if (snd_BUG_ON(!cif)) in snd_riptide_codec_write()
1769 if (snd_BUG_ON(!cif)) in snd_riptide_codec_read()
1784 if (snd_BUG_ON(!chip)) in snd_riptide_initialize()
/linux-4.4.14/sound/parisc/
Dharmony.c627 if (snd_BUG_ON(!h)) in snd_harmony_pcm_init()
868 if (snd_BUG_ON(!h)) in snd_harmony_mixer_init()
/linux-4.4.14/sound/drivers/opl4/
Dopl4_synth.c470 snd_BUG_ON(list_empty(&opl4->on_voices)); in snd_opl4_get_voice()
/linux-4.4.14/sound/isa/ad1816a/
Dad1816a_lib.c396 if (snd_BUG_ON(!timer)) in snd_ad1816a_timer_resolution()
968 if (snd_BUG_ON(!chip || !chip->card)) in snd_ad1816a_mixer()
/linux-4.4.14/sound/sparc/
Ddbri.c2271 if (snd_BUG_ON(!dbri)) in snd_cs4215_get_volume()
2340 if (snd_BUG_ON(!dbri)) in snd_cs4215_get_single()
2367 if (snd_BUG_ON(!dbri)) in snd_cs4215_put_single()
2444 if (snd_BUG_ON(!card || !card->private_data)) in snd_dbri_mixer()
Damd7930.c892 if (snd_BUG_ON(!amd || !amd->card)) in snd_amd7930_mixer()
Dcs4231.c1544 if (snd_BUG_ON(!chip || !chip->pcm)) in snd_cs4231_mixer()
/linux-4.4.14/sound/pcmcia/vx/
Dvxp_ops.c411 if (snd_BUG_ON(count % 2)) in vxp_dma_read()
/linux-4.4.14/sound/pci/lx6464es/
Dlx_core.c225 snd_BUG_ON(cmd >= CMD_14_INVALID); in lx_message_init()
305 snd_BUG_ON(rmh->stat_len >= (REG_CRM_NUMBER-1)); in lx_message_send_atomic()
/linux-4.4.14/sound/sh/
Daica.c110 if (snd_BUG_ON(length % 4)) in spu_memset()
/linux-4.4.14/sound/i2c/other/
Dak4117.c432 if (snd_BUG_ON(!cap_substream)) in snd_ak4117_build()
Dak4113.c508 if (snd_BUG_ON(!cap_substream)) in snd_ak4113_build()
Dak4114.c482 if (snd_BUG_ON(!cap_substream)) in snd_ak4114_build()
/linux-4.4.14/sound/pci/korg1212/
Dkorg1212.c1283 if (snd_BUG_ON(pos + count > K1212_MAX_SAMPLES)) in snd_korg1212_silence()
1309 if (snd_BUG_ON(pos + count > K1212_MAX_SAMPLES)) in snd_korg1212_copy_to()
1340 if (snd_BUG_ON(pos + count > K1212_MAX_SAMPLES)) in snd_korg1212_copy_from()
/linux-4.4.14/sound/isa/opti9xx/
Dopti92x-ad1848.c599 if (snd_BUG_ON(!chip || !chip->pcm)) in snd_opti93x_mixer()
Dmiro.c722 if (snd_BUG_ON(!miro || !card)) in snd_miro_mixer()
/linux-4.4.14/sound/pci/ac97/
Dac97_codec.c1926 if (snd_BUG_ON(!card)) in snd_ac97_bus()
2030 if (snd_BUG_ON(!bus || !template)) in snd_ac97_mixer()
2032 if (snd_BUG_ON(template->num >= 4)) in snd_ac97_mixer()
/linux-4.4.14/sound/isa/wss/
Dwss_lib.c2004 if (snd_BUG_ON(!chip->card)) in snd_wss_info_mux()
2251 if (snd_BUG_ON(!chip || !chip->pcm)) in snd_wss_mixer()
/linux-4.4.14/sound/isa/es1688/
Des1688_lib.c1008 if (snd_BUG_ON(!chip || !card)) in snd_es1688_mixer()
/linux-4.4.14/sound/isa/cs423x/
Dcs4236_lib.c1039 if (snd_BUG_ON(!chip || !chip->card)) in snd_cs4236_mixer()
/linux-4.4.14/sound/pci/asihpi/
Dasihpi.c2547 if (snd_BUG_ON(!asihpi)) in snd_asihpi_sampleclock_add()
2624 if (snd_BUG_ON(!asihpi)) in snd_card_asihpi_mixer_new()