snd_BUG_ON
if (snd_BUG_ON(!stream))
if (!snd_BUG_ON(stream->runtime->active_tasks == 0))
if (!snd_BUG_ON(stream->runtime->active_tasks == 0))
if (snd_BUG_ON(!data))
if (snd_BUG_ON(!device || !device->device_data))
if (snd_BUG_ON(dirn == SND_COMPRESS_ACCEL))
if (snd_BUG_ON(!data))
if (snd_BUG_ON(!data))
if (snd_BUG_ON(!data))
if (snd_BUG_ON(!(stream) || !(stream)->runtime))
if (snd_BUG_ON(!(stream) || !(stream)->runtime))
snd_BUG_ON(info->access);
if (snd_BUG_ON(!card || !id))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(!ctl || !ctl->card))
if (snd_BUG_ON(!fcn))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(card->number < 0 || card->number >= SNDRV_CARDS))
if (snd_BUG_ON(!ncontrol || !ncontrol->info))
if (snd_BUG_ON(!card || !kcontrol->info))
if (snd_BUG_ON(!card || !kcontrol))
if (snd_BUG_ON(!card || !numid))
if (snd_BUG_ON(!card || !id))
if (snd_BUG_ON(!ctl || !ctl->card))
if (snd_BUG_ON(card->number < 0 ||
if (snd_BUG_ON(!card || !device_data))
if (snd_BUG_ON(!card || !device_data))
if (snd_BUG_ON(!card || !device_data))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(!card || !device_data || !ops))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(!hwdep))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(!buffer))
if (snd_BUG_ON(!entry))
if (snd_BUG_ON(dev < 0 || dev >= SNDRV_OSS_INFO_DEV_COUNT))
if (snd_BUG_ON(num < 0 || num >= SNDRV_CARDS))
if (snd_BUG_ON(!card_ret))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(!plugin || !src_channels || !dst_channels))
if (snd_BUG_ON(src_channels->area.first % 8 ||
if (snd_BUG_ON(dst_channels->area.first % 8 ||
if (snd_BUG_ON(!r_plugin))
if (snd_BUG_ON(src_format->format != dst_format->format))
if (snd_BUG_ON(src_format->rate != dst_format->rate))
if (snd_BUG_ON(src_format->channels != dst_format->channels))
if (snd_BUG_ON(width <= 0))
if (snd_BUG_ON(!r_plugin))
if (snd_BUG_ON(!plug || !params))
if (snd_BUG_ON(!plugin))
if (snd_BUG_ON(!src_channels))
if (snd_BUG_ON(!bufs))
if (snd_BUG_ON(!plugin))
if (snd_BUG_ON(!dst_channels))
if (snd_BUG_ON(!bufs))
if (snd_BUG_ON(!r_plugin))
if (snd_BUG_ON(src_format->rate != dst_format->rate))
if (snd_BUG_ON(src_format->channels != dst_format->channels))
if (snd_BUG_ON(!snd_pcm_format_linear(src_format->format) ||
if (snd_BUG_ON(!plugin || !src_channels || !dst_channels))
if (snd_BUG_ON(src_channels[channel].area.first % 8 ||
if (snd_BUG_ON(dst_channels[channel].area.first % 8 ||
if (snd_BUG_ON(mixer != card->mixer_oss))
if (snd_BUG_ON(left < 0 || left > 100))
if (snd_BUG_ON(right < 0 || right > 100))
if (snd_BUG_ON(!fmixer))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(!plugin || !src_channels || !dst_channels))
if (snd_BUG_ON(src_channels[channel].area.first % 8 ||
if (snd_BUG_ON(dst_channels[channel].area.first % 8 ||
if (snd_BUG_ON(!r_plugin))
if (snd_BUG_ON(src_format->rate != dst_format->rate))
if (snd_BUG_ON(src_format->channels != dst_format->channels))
if (snd_BUG_ON(!task || !name || size < 2))
if (snd_BUG_ON(!substream))
if (snd_BUG_ON(idx >= 2))
if (snd_BUG_ON(!plug))
if (snd_BUG_ON(!src_format || !dst_format))
snd_BUG_ON(plugin->src_width <= 0);
snd_BUG_ON(plugin->dst_width <= 0);
if (snd_BUG_ON(!plug))
if (snd_BUG_ON(!plug))
if (snd_BUG_ON(size % 8))
if (snd_BUG_ON(!buf))
if (snd_BUG_ON(plugin->access != SNDRV_PCM_ACCESS_RW_INTERLEAVED &&
if (snd_BUG_ON(size % format->channels))
if (snd_BUG_ON(!snd_pcm_plug_first(plug)))
if (snd_BUG_ON(!plugin))
if (snd_BUG_ON(!plugin))
if (snd_BUG_ON(!plugin || !src_channels || !dst_channels))
if (snd_BUG_ON(src_channels[channel].area.first % 8 ||
if (snd_BUG_ON(dst_channels[channel].area.first % 8 ||
if (snd_BUG_ON(!plugin))
if (snd_BUG_ON(!r_plugin))
if (snd_BUG_ON(src_format->channels != dst_format->channels))
if (snd_BUG_ON(src_format->channels <= 0))
if (snd_BUG_ON(src_format->format != SNDRV_PCM_FORMAT_S16))
if (snd_BUG_ON(dst_format->format != SNDRV_PCM_FORMAT_S16))
if (snd_BUG_ON(src_format->rate == dst_format->rate))
if (snd_BUG_ON(!plugin || !src_channels || !dst_channels))
if (snd_BUG_ON(!r_plugin))
if (snd_BUG_ON(src_format->rate != dst_format->rate))
if (snd_BUG_ON(src_format->format != dst_format->format))
if (snd_BUG_ON(!device || !device->device_data))
if (snd_BUG_ON(!notify ||
if (snd_BUG_ON(!card))
if (snd_BUG_ON(!pcm || !rsubstream))
if (snd_BUG_ON(stream != SNDRV_PCM_STREAM_PLAYBACK &&
if (snd_BUG_ON(!runtime))
if (snd_BUG_ON(k >= ARRAY_SIZE(c->deps))) {
if (snd_BUG_ON(frames > runtime->buffer_size))
snd_BUG_ON(err < 0);
if (snd_BUG_ON(!substream))
if (snd_BUG_ON(!substream->ops->copy && !runtime->dma_area))
if (snd_BUG_ON(!frames)) {
snd_BUG_ON(crossed_boundary != 1);
if (snd_BUG_ON(snd_interval_empty(i)))
if (snd_BUG_ON(snd_interval_empty(i)))
if (snd_BUG_ON(snd_interval_empty(i)))
#define PCM_RUNTIME_CHECK(sub) snd_BUG_ON(!(sub) || !(sub)->runtime)
if (snd_BUG_ON(substream->dma_buffer.dev.type))
if (snd_BUG_ON(substream->dma_buffer.dev.type ==
if (snd_BUG_ON(!substream))
if (snd_BUG_ON(!runtime))
if (snd_BUG_ON(!rate))
if (snd_BUG_ON(!fsize))
if (snd_BUG_ON((runtime->hw_ptr & 0x1f) != 0))
snd_BUG_ON(runtime->avail + count > runtime->buffer_size);
if (snd_BUG_ON(!runtime->buffer))
if (!snd_BUG_ON(clock_type >= ARRAY_SIZE(clock_names)))
if (snd_BUG_ON(!rfile))
if (snd_BUG_ON(!rfile))
if (snd_BUG_ON(!dp))
if (snd_BUG_ON(!dp))
if (snd_BUG_ON(!dp))
if (snd_BUG_ON(!dp))
if (snd_BUG_ON(dp->max_synthdev > SNDRV_SEQ_OSS_MAX_SYNTH_DEVS))
if (snd_BUG_ON(!client))
if (snd_BUG_ON(!client))
if (snd_BUG_ON(!client))
if (snd_BUG_ON(in_interrupt()))
if (snd_BUG_ON(in_interrupt()))
if (snd_BUG_ON(!ev))
if (snd_BUG_ON(!ev))
if (snd_BUG_ON(!client))
snd_BUG_ON(atomic && (event->data.ext.len & SNDRV_SEQ_EXT_USRPTR)))
if (snd_BUG_ON(!cell))
if (snd_BUG_ON(!client))
if (snd_BUG_ON(!f))
if (snd_BUG_ON(!f))
if (snd_BUG_ON(!f || !f->pool))
if (snd_BUG_ON(!fifo))
if (snd_BUG_ON(!f))
if (snd_BUG_ON(!cell))
if (snd_BUG_ON(!pool))
if (snd_BUG_ON(!pool))
if (snd_BUG_ON(!pool))
if (snd_BUG_ON(!pool))
if (snd_BUG_ON(!substream || !buf))
if (snd_BUG_ON(!msynth))
if (snd_BUG_ON(!msynth->input_rfile.input))
if (snd_BUG_ON(!rfile.output))
if (snd_BUG_ON(!card || device < 0 || device >= SNDRV_RAWMIDI_DEVICES))
if (snd_BUG_ON(!client))
snd_BUG_ON(port->c_src.count != 0);
snd_BUG_ON(port->c_dest.count != 0);
if (snd_BUG_ON(!port || !info))
if (snd_BUG_ON(!port || !info))
if (snd_BUG_ON(!f || !cell))
if (snd_BUG_ON(!cell))
if (snd_BUG_ON(!ev))
if (snd_BUG_ON(!announce_subscribed))
if (snd_BUG_ON(!tmr))
if (snd_BUG_ON(!tmr))
if (snd_BUG_ON(!tmr))
if (snd_BUG_ON(!tmr))
if (snd_BUG_ON(!tmr))
if (snd_BUG_ON(!tmr))
if (snd_BUG_ON(!tmr))
if (snd_BUG_ON(!id))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(minor < 0 || minor >= SNDRV_OS_MINORS))
if (snd_BUG_ON(!device))
if (snd_BUG_ON(!card || dev < 0 || dev > 1))
if (snd_BUG_ON(!card || dev < 0 || dev > 1))
if (snd_BUG_ON(!card || dev < 0 || dev > 1))
if (snd_BUG_ON(!timer || !timer->hw.start || !timer->hw.stop))
if (snd_BUG_ON(event < SNDRV_TIMER_EVENT_MSTART ||
snd_BUG_ON(timer_id < 0 || timer_id >= SNDRV_UTIMERS_MAX_COUNT);
if (snd_BUG_ON(!timeri))
if (snd_BUG_ON(event < SNDRV_TIMER_EVENT_START ||
if (snd_BUG_ON(!tid))
if (snd_BUG_ON(!opl3->r_port))
if (snd_BUG_ON(!opl3))
if (snd_BUG_ON(voice >= MAX_OPL3_VOICES))
if (snd_BUG_ON(voice >= MAX_OPL3_VOICES))
if (snd_BUG_ON(!arg))
if (snd_BUG_ON(!arg))
if (snd_BUG_ON(!arg))
if (snd_BUG_ON(!arg))
if (snd_BUG_ON(!arg))
if (snd_BUG_ON(!opl3))
snd_BUG_ON(list_empty(&opl4->on_voices));
if (snd_BUG_ON(cmd >= CMD_LAST_INDEX))
if (snd_BUG_ON(size >= SIZE_MAX_STATUS))
if (snd_BUG_ON(!chip->ops->reset_board))
if (snd_BUG_ON(!card || !hw || !ops))
if (snd_BUG_ON(!chip->ops->write_codec))
if (snd_BUG_ON(p < 0 || p >= chip->audio_outs))
if (snd_BUG_ON(audio >= chip->audio_outs))
if (snd_BUG_ON(audio >= chip->audio_ins))
if (snd_BUG_ON(freq <= 0))
if (snd_BUG_ON(hexfreq <= 0x00000200))
if (snd_BUG_ON(len >= sizeof(name)))
if (snd_BUG_ON(pcm_idx < 0))
if (snd_BUG_ON(cvt_idx < 0))
if (snd_BUG_ON(!mic_pin || !hp_pin))
if (snd_BUG_ON(!labels[i]))
if (snd_BUG_ON(mask & ~0xff))
if (snd_BUG_ON(mask & ~0xff))
if (snd_BUG_ON(strlen(name) >= sizeof(id.name)))
if (snd_BUG_ON(added))
if (snd_BUG_ON(!info->nid))
if (snd_BUG_ON(!info->nid))
if (snd_BUG_ON(!bus))
if (snd_BUG_ON(codec_addr > HDA_MAX_CODEC_ADDRESS))
if (snd_BUG_ON(!bus))
if (snd_BUG_ON(codec_addr > HDA_MAX_CODEC_ADDRESS))
if (snd_BUG_ON(!runtime->hw.channels_min) ||
snd_BUG_ON(!runtime->hw.channels_max) ||
snd_BUG_ON(!runtime->hw.formats) ||
snd_BUG_ON(!runtime->hw.rates)) {
if (snd_BUG_ON(!array->elem_size))
if (snd_BUG_ON(num >= 4096))
if (snd_BUG_ON(addr >= HDA_MAX_CODECS))
if (snd_BUG_ON(!cs8427))
if (snd_BUG_ON(!play_substream || !cap_substream))
if (snd_BUG_ON(!chip->playback.pcm_ctl))
if (snd_BUG_ON(!cs8427))
if (snd_BUG_ON(!cs8427))
if (snd_BUG_ON(!bus))
if (snd_BUG_ON(!bus))
if (snd_BUG_ON(!cap_substream))
if (snd_BUG_ON(!cap_substream))
if (snd_BUG_ON(!cap_substream))
if (snd_BUG_ON(!timer))
if (snd_BUG_ON(!chip || !chip->card))
if (snd_BUG_ON(!chip || !chip->card))
if (snd_BUG_ON(!chip || !card))
if (snd_BUG_ON(!gus))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(!gus))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(bpos > pcmp->dma_size))
if (snd_BUG_ON(bpos + len > pcmp->dma_size))
if (snd_BUG_ON(!chip))
if (snd_BUG_ON(!miro || !card))
if (snd_BUG_ON(!chip || !chip->pcm))
if (snd_BUG_ON(!emu || !card))
if (snd_BUG_ON(!sp))
if (snd_BUG_ON(!p))
if (snd_BUG_ON(!p))
if (snd_BUG_ON(!p))
if (snd_BUG_ON(what))
if (snd_BUG_ON(rate != SB8_RATE(11025) &&
if (snd_BUG_ON(rate != SB8_RATE(11025) &&
if (snd_BUG_ON(!r_chip))
if (snd_BUG_ON(!chip || !chip->card))
if (snd_BUG_ON(num_regs > ARRAY_SIZE(chip->saved_regs)))
if (snd_BUG_ON(num_regs > ARRAY_SIZE(chip->saved_regs)))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(!card->private_data))
if (snd_BUG_ON(!substream || !substream->rmidi))
if (snd_BUG_ON(!substream->rmidi->private_data))
if (snd_BUG_ON(!substream || !substream->rmidi))
if (snd_BUG_ON(!substream->rmidi->private_data))
if (snd_BUG_ON(!substream || !substream->rmidi))
if (snd_BUG_ON(!substream->rmidi->private_data))
if (snd_BUG_ON(!substream || !substream->rmidi))
if (snd_BUG_ON(!substream->rmidi->private_data))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(!card->private_data))
if (snd_BUG_ON(!chip->card))
if (snd_BUG_ON(!chip || !chip->pcm))
if (snd_BUG_ON(!h))
if (snd_BUG_ON(!h))
if (snd_BUG_ON(!card))
if (snd_BUG_ON(!bus || !template || !rac97))
if (snd_BUG_ON(template->num >= 4))
if (snd_BUG_ON(ptr >= chip->wave.size))
if (snd_BUG_ON(ptr >= chip->ramc.size))
if (snd_BUG_ON(!card || !_ak4531))
if (snd_BUG_ON(!asihpi))
if (snd_BUG_ON(!asihpi))
if (snd_BUG_ON(!dma->ops || !dma->ops->enable_dma))
if (snd_BUG_ON(!dma->ops || !dma->ops->enable_dma))
if (snd_BUG_ON(!dma->ops->enable_transfer ||
if (snd_BUG_ON(!dma->ops->enable_transfer ||
if (snd_BUG_ON(!dma->ops || !dma->ops->enable_dma))
if (snd_BUG_ON(!dma->ops || !dma->ops->enable_dma))
if (snd_BUG_ON(!chip || !chip->card))
if (snd_BUG_ON(!chip))
if (snd_BUG_ON(!midi->dev_id))
if (snd_BUG_ON(!midi->dev_id))
if (snd_BUG_ON(!midi->dev_id))
if (snd_BUG_ON(!midi->dev_id))
if (snd_BUG_ON(!midi->dev_id))
if (snd_BUG_ON(!midi->dev_id))
if (snd_BUG_ON(!args))
if (snd_BUG_ON(!args))
if (snd_BUG_ON(!cm || !cm->card))
if (snd_BUG_ON(!chip))
if (snd_BUG_ON(!chip))
if (snd_BUG_ON(!chip))
snd_BUG_ON(dma->right_slot != chip->src_right_play_slot);
snd_BUG_ON(dma->right_slot != chip->src_right_rec_slot);
if (snd_BUG_ON(!sample_rate))
snd_BUG_ON(!cpcm->pcm_channel);
if (snd_BUG_ON(!cpcm->pcm_channel))
if (snd_BUG_ON(ac97 != chip->ac97[CS46XX_PRIMARY_CODEC_INDEX] &&
if (snd_BUG_ON(codec_index != CS46XX_PRIMARY_CODEC_INDEX &&
if (snd_BUG_ON(codec_index != CS46XX_PRIMARY_CODEC_INDEX &&
if (snd_BUG_ON(!chip))
if (snd_BUG_ON(!chip))
if (snd_BUG_ON(!chip))
if (snd_BUG_ON(codec_index != CS46XX_PRIMARY_CODEC_INDEX &&
if (snd_BUG_ON((offset & 3) || (len & 3)))
if (snd_BUG_ON((offset & 3) || (len & 3)))
if (snd_BUG_ON(codec_index != CS46XX_PRIMARY_CODEC_INDEX &&
if (snd_BUG_ON(!cpcm->pcm_channel))
if (snd_BUG_ON(!cpcm->pcm_channel))
if (snd_BUG_ON(chip->nr_ac97_codecs != 1 && chip->nr_ac97_codecs != 2))
if (snd_BUG_ON(!spdifo_scb_desc))
if (snd_BUG_ON(!spdifi_scb_desc))
if (snd_BUG_ON(!async_codec_scb_desc))
if (snd_BUG_ON(ins->asynch_rx_scb))
if (snd_BUG_ON(!ins->spdif_in_src))
if (snd_BUG_ON(!ins->asynch_rx_scb))
if (snd_BUG_ON(!ins->spdif_in_src))
if (snd_BUG_ON(ins->pcm_input))
if (snd_BUG_ON(!ins->ref_snoop_scb))
if (snd_BUG_ON(!ins->pcm_input))
if (snd_BUG_ON(ins->adc_input))
if (snd_BUG_ON(!ins->codec_in_scb))
if (snd_BUG_ON(!ins->adc_input))
if (snd_BUG_ON(!ins))
if (snd_BUG_ON(!module->symbol_table.symbols))
if (snd_BUG_ON(size %2))
if (snd_BUG_ON(scb->parent_scb_ptr->sub_list_ptr != scb &&
if (snd_BUG_ON(!scb->next_scb_ptr))
if (snd_BUG_ON(!ins->asynch_tx_scb))
if (snd_BUG_ON(src_index == -1))
if (snd_BUG_ON(!pcm_channel->active ||
if (snd_BUG_ON(pcm_channel->src_slot < 0 ||
if (snd_BUG_ON(!pcm_channel->active ||
snd_BUG_ON(pcm_channel->pcm_reader_scb->parent_scb_ptr);
if (snd_BUG_ON(!ins->record_mixer_scb))
if (snd_BUG_ON(!src->parent_scb_ptr))
if (snd_BUG_ON(src->parent_scb_ptr))
if (snd_BUG_ON(!ins->master_mix_scb))
if (snd_BUG_ON(ins->asynch_tx_scb))
if (snd_BUG_ON(ins->master_mix_scb->next_scb_ptr !=
if (snd_BUG_ON(scb->index < 0 ||
if (snd_BUG_ON(!ins->asynch_tx_scb))
if (snd_BUG_ON(!ins->spdif_pcm_input_scb))
if (snd_BUG_ON(ins->master_mix_scb->next_scb_ptr != ins->asynch_tx_scb))
if (snd_BUG_ON(ins->asynch_tx_scb->parent_scb_ptr !=
if (snd_BUG_ON(scb->sub_list_ptr != ins->the_null_scb ||
if (snd_BUG_ON(!ins->asynch_tx_scb))
if (snd_BUG_ON(!scb->scb_symbol))
if (snd_BUG_ON(!ins->the_null_scb))
if (snd_BUG_ON(scb->parent_scb_ptr->next_scb_ptr !=
if (snd_BUG_ON(scb->parent_scb_ptr->sub_list_ptr !=
if (snd_BUG_ON(ins->symbol_table.nsymbols <= 0))
if (snd_BUG_ON(symbol_index < 0 ||
snd_BUG_ON(rate != 48000);
if (snd_BUG_ON((subdevice_id & 0xfff0) != DARLA20))
if (snd_BUG_ON(clock != ECHO_CLOCK_INTERNAL &&
if (snd_BUG_ON((subdevice_id & 0xfff0) != DARLA24))
if (snd_BUG_ON((subdevice_id & 0xfff0) != ECHO3G))
snd_BUG_ON(err);
if (snd_BUG_ON(pipe_index >= px_num(chip)))
if (snd_BUG_ON(!is_pipe_allocated(chip, pipe_index)))
if (snd_BUG_ON(rate >= 50000 &&
if (snd_BUG_ON(chip->pipe_alloc_mask))
if (snd_BUG_ON(!(chip->digital_modes & (1 << mode))))
if (snd_BUG_ON(!is_pipe_allocated(chip, pipe->index)))
if (snd_BUG_ON(pipe->state != PIPE_STATE_STOPPED))
if (snd_BUG_ON(!chip->comm_page))
if (snd_BUG_ON(index >= num_busses_out(chip) + num_busses_in(chip)))
if (snd_BUG_ON(channel >= num_busses_out(chip)))
if (snd_BUG_ON(output >= num_busses_out(chip) ||
if (snd_BUG_ON(chip->pipe_alloc_mask))
if (snd_BUG_ON(!(chip->digital_modes & (1 << mode))))
if (snd_BUG_ON(input >= num_busses_in(chip)))
if (snd_BUG_ON((subdevice_id & 0xfff0) != GINA20))
if (snd_BUG_ON(rate >= 50000 &&
if (snd_BUG_ON((subdevice_id & 0xfff0) != GINA24))
if (snd_BUG_ON(pipe >= num_pipes_out(chip) ||
if (snd_BUG_ON((subdevice_id & 0xfff0) != INDIGO))
if (snd_BUG_ON(pipe >= num_pipes_out(chip) ||
if (snd_BUG_ON(pipe >= num_pipes_out(chip) ||
if (snd_BUG_ON((subdevice_id & 0xfff0) != INDIGO_DJ))
if (snd_BUG_ON((subdevice_id & 0xfff0) != INDIGO_DJX))
if (snd_BUG_ON((subdevice_id & 0xfff0) != INDIGO_IO))
if (snd_BUG_ON(pipe >= num_pipes_out(chip) ||
if (snd_BUG_ON((subdevice_id & 0xfff0) != INDIGO_IOX))
if (snd_BUG_ON(rate < 8000 || rate > 50000))
if (snd_BUG_ON(input >= num_busses_in(chip)))
if (snd_BUG_ON((subdevice_id & 0xfff0) != LAYLA20))
if (snd_BUG_ON(rate >= 50000 &&
if (snd_BUG_ON((subdevice_id & 0xfff0) != LAYLA24))
if (snd_BUG_ON(clock != ECHO_CLOCK_INTERNAL &&
if (snd_BUG_ON(pipe >= num_pipes_out(chip) ||
if (snd_BUG_ON((subdevice_id & 0xfff0) != MIA))
if (snd_BUG_ON(count >= MIDI_IN_BUFFER_SIZE))
if (snd_BUG_ON(bytes <= 0 || bytes >= MIDI_OUT_BUFFER_SIZE))
if (snd_BUG_ON((subdevice_id & 0xfff0) != MONA))
if (snd_BUG_ON(!vp))
if (snd_BUG_ON(ch < 0))
if (snd_BUG_ON(!sp || !hdr))
if (snd_BUG_ON(!sp || !hdr))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(*ptr >= 512))
if (snd_BUG_ON(*ptr >= 1024))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(reg & addr_mask)) // Only raw registers supported here
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(reg & (emu->audigy ? (0xffff0000 & ~A_PTR_ADDRESS_MASK)
if (snd_BUG_ON(reg > 0x3f))
if (snd_BUG_ON(value > 0x3f)) /* 0 to 0x3f are values */
if (snd_BUG_ON(reg & 0x0000ffff & ~PTR_CHANNELNUM_MASK))
if (snd_BUG_ON(!mutex_is_locked(&emu->emu1010.lock)))
if (snd_BUG_ON(!mutex_is_locked(&emu->emu1010.lock)))
if (snd_BUG_ON(reg > 0x3f))
if (snd_BUG_ON(dst & ~0x71f))
if (snd_BUG_ON(src & ~0x71f))
if (snd_BUG_ON(dst & ~0x71f))
if (snd_BUG_ON(data & ~mask))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(chn & ~PTR_CHANNELNUM_MASK))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(runtime->dma_bytes <= 0 ||
if (snd_BUG_ON(!hdr))
if (snd_BUG_ON(!emu || !blk))
if (snd_BUG_ON(page < 0 || page >= emu->max_cache_pages))
if (snd_BUG_ON(offset + size > p->mem.size))
if (snd_BUG_ON(offset + size > p->mem.size))
if (snd_BUG_ON(!pvoice))
if (snd_BUG_ON(!rvoice))
if (snd_BUG_ON(!count))
if (snd_BUG_ON(!channels))
if (snd_BUG_ON(pos + count > chip->dma1_size))
if (snd_BUG_ON(channel >= NR_APUS))
if (snd_BUG_ON(channel >= NR_APUS))
if (snd_BUG_ON(chip < 0 || chip >= 4))
if (snd_BUG_ON(chip_mask < 0 || chip_mask > 0x0f))
if (snd_BUG_ON(channel < 0 || channel > 7))
if (snd_BUG_ON(channel < 0 || channel > 7))
if (snd_BUG_ON(!ice->pcm_pro))
if (snd_BUG_ON(!ice->pcm))
if (snd_BUG_ON(chip))
if (snd_BUG_ON(chip < 0 || chip >= 4))
if (snd_BUG_ON(chip->ac97_sdin[codecs] >= 3))
if (snd_BUG_ON(codec >= 3))
if (snd_BUG_ON(pos + count > K1212_MAX_SAMPLES))
if (snd_BUG_ON(pos + count > K1212_MAX_SAMPLES))
if (snd_BUG_ON(pos + count > K1212_MAX_SAMPLES))
snd_BUG_ON(cmd >= CMD_14_INVALID);
snd_BUG_ON(rmh->stat_len >= (REG_CRM_NUMBER-1));
if (snd_BUG_ON(!s))
if (snd_BUG_ON(!s))
if (snd_BUG_ON(!s))
snd_BUG_ON(pcm != chip->pcm_dig);
snd_BUG_ON(pcm != chip->pcm_dig);
if (snd_BUG_ON(msg->size % 4))
if (snd_BUG_ON(!notif_event))
if (snd_BUG_ON((notif_event & MSG_TYPE_MASK) != MSG_TYPE_NOTIFY))
if (snd_BUG_ON(notif_event & MSG_CANCEL_NOTIFY_MASK))
if (snd_BUG_ON(notify->stream_count > ARRAY_SIZE(notify->streams)))
snd_BUG_ON(idx >= MIXART_PLAYBACK_STREAMS);
snd_BUG_ON(idx >= MIXART_PLAYBACK_STREAMS);
snd_BUG_ON(idx >= MIXART_PLAYBACK_STREAMS);
snd_BUG_ON(idx >= MIXART_PLAYBACK_STREAMS);
if (snd_BUG_ON(!s))
if (snd_BUG_ON(!s))
if (snd_BUG_ON(!s))
if (snd_BUG_ON(!s))
if (snd_BUG_ON(!s))
if (snd_BUG_ON(pci_id->driver_data >= PCI_ID_LAST)) {
snd_BUG_ON(subs->runtime->dma_bytes >= 0x200000);
if (snd_BUG_ON(!dsp->data))
if (snd_BUG_ON(physaddr & 0xff))
if (snd_BUG_ON(rmh->cmd_len >= PCXHR_SIZE_MAX_CMD))
if (snd_BUG_ON(cmd >= CMD_LAST_INDEX))
snd_BUG_ON(param1 > MASK_FIRST_FIELD);
snd_BUG_ON(param2 > MASK_FIRST_FIELD);
snd_BUG_ON(param3 > MASK_DSP_WORD);
snd_BUG_ON(clock_items > (HR22_CLOCK_TYPE_MAX+1));
snd_BUG_ON(clock_items > (PCXHR_CLOCK_TYPE_MAX+1));
if (snd_BUG_ON(!cif || !data))
if (snd_BUG_ON(!cif))
if (snd_BUG_ON(!cif))
if (snd_BUG_ON(!chip))
if (snd_BUG_ON(!cif))
snd_BUG_ON(n >> 32);
if (snd_BUG_ON(offset < 0))
if (snd_BUG_ON(channel < 0 || channel >= hdsp->max_channels))
if (snd_BUG_ON(pos + count > HDSP_CHANNEL_BUFFER_BYTES))
if (snd_BUG_ON(!channel_buf))
if (snd_BUG_ON(pos + count > HDSP_CHANNEL_BUFFER_BYTES))
if (snd_BUG_ON(!channel_buf))
if (snd_BUG_ON(!channel_buf))
if (snd_BUG_ON(channel >= hdsp->max_channels))
if (snd_BUG_ON(rate <= 0))
snd_BUG_ON(n >> 32);
if (snd_BUG_ON(channel < 0 || channel >= HDSPM_MAX_CHANNELS))
if (snd_BUG_ON(channel < 0 || channel >= HDSPM_MAX_CHANNELS))
if (snd_BUG_ON(channel >= hdspm->max_channels_out)) {
if (snd_BUG_ON(channel >= hdspm->max_channels_in)) {
if (snd_BUG_ON(channel < 0 || channel >= RME9652_NCHANNELS))
if (snd_BUG_ON(pos + count > RME9652_CHANNEL_BUFFER_BYTES))
if (snd_BUG_ON(!channel_buf))
if (snd_BUG_ON(pos + count > RME9652_CHANNEL_BUFFER_BYTES))
if (snd_BUG_ON(!channel_buf))
if (snd_BUG_ON(!channel_buf))
if (snd_BUG_ON(info->channel >= RME9652_NCHANNELS))
if (snd_BUG_ON(!sonic || !sonic->card))
snd_BUG_ON(SV_REFFREQUENCY % 16);
snd_BUG_ON(SV_ADCMULT % 512);
if (snd_BUG_ON(!pcm))
if (snd_BUG_ON(!trident || !voice || !substream))
if (snd_BUG_ON(!trident || !substream))
if (snd_BUG_ON(!chip))
if (snd_BUG_ON(!chip))
if (snd_BUG_ON(!chip))
if (snd_BUG_ON(!chip))
if (snd_BUG_ON(v_min > 63 || v_max > 63))
if (snd_BUG_ON(runtime->dma_bytes <= 0 ||
if (snd_BUG_ON(!hdr))
if (snd_BUG_ON(runtime->dma_bytes <= 0 ||
if (snd_BUG_ON(!hdr))
if (snd_BUG_ON(!trident || !substream))
if (snd_BUG_ON(!trident || !blk))
snd_BUG_ON(rbits & ~0xfffff);
if (snd_BUG_ON(!viadev->tbl_entries))
if (snd_BUG_ON(!viadev->tbl_entries))
if (snd_BUG_ON(!viadev->tbl_entries))
if (snd_BUG_ON(count % 4))
if (snd_BUG_ON(count % 4))
if (snd_BUG_ON(data >= sizeof(vx2_akm_gains_lut)))
if (snd_BUG_ON(preamp >= 4))
if (snd_BUG_ON(!chip->pcm_spdif))
snd_BUG_ON(ptr + PAGE_ALIGN(chip->work_size) !=
if (snd_BUG_ON(!rvoice))
if (snd_BUG_ON(pair && type != YMFPCI_PCM))
if (snd_BUG_ON(!pvoice))
if (snd_BUG_ON(!voice))
if (snd_BUG_ON(count % 2))
if (snd_BUG_ON(!chip->beep))
if (snd_BUG_ON(!chip->beep))
if (snd_BUG_ON(!mix))
if (snd_BUG_ON(!mix))
if (snd_BUG_ON(length % 4))
if (snd_BUG_ON(!amd || !amd->card))
if (snd_BUG_ON(!chip || !chip->pcm))
if (snd_BUG_ON(!dbri))
if (snd_BUG_ON(!dbri))
if (snd_BUG_ON(!dbri))
if (snd_BUG_ON(!card || !card->private_data))
if (snd_BUG_ON(!emu->hw || emu->max_voices <= 0))
if (snd_BUG_ON(!card || !name))
if (snd_BUG_ON(!port || !chan))
if (snd_BUG_ON(!port || !chset))
if (snd_BUG_ON(!arg || !emu))
if (snd_BUG_ON(!arg))
if (snd_BUG_ON(!p))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(!arg))
if (snd_BUG_ON(!p))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(!arg))
if (snd_BUG_ON(!p))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(!arg))
if (snd_BUG_ON(!p))
if (snd_BUG_ON(!p))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(!port || !ev))
if (snd_BUG_ON(!p))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(!p))
if (snd_BUG_ON(!emu))
if (snd_BUG_ON(!port || !chan))
if (snd_BUG_ON(!emu || !emu->ops.release))
if (snd_BUG_ON(!port || !chan))
if (snd_BUG_ON(!emu || !emu->ops.update))
if (snd_BUG_ON(!emu || !emu->ops.update))
if (snd_BUG_ON(!emu || !emu->ops.update))
if (snd_BUG_ON(!port || !chan))
if (snd_BUG_ON(!port || !chan))
if (snd_BUG_ON(!emu || !emu->ops.terminate))
if (snd_BUG_ON(!port))
if (snd_BUG_ON(!emu || !emu->ops.terminate))
if (snd_BUG_ON(!port || !chan))
if (snd_BUG_ON(!emu || !emu->ops.get_voice || !emu->ops.trigger))
if (snd_BUG_ON(!hdr || !blk))
if (snd_BUG_ON(!hdr || size <= 0))
if (snd_BUG_ON(!urb))
if (snd_BUG_ON(!atomic_read(&ep->running)))
snd_BUG_ON(ep == sender);
if (snd_BUG_ON(altsetting >= 64 - 8))
if (snd_BUG_ON(!itemlist))
if (snd_BUG_ON(!subs->data_endpoint))