/sound/pci/emu10k1/ |
D | irq.c | 35 unsigned int status, status2, orig_status, orig_status2; in snd_emu10k1_interrupt() local 39 while (((status = inl(emu->port + IPR)) != 0) && (timeout < 1000)) { in snd_emu10k1_interrupt() 41 orig_status = status; in snd_emu10k1_interrupt() 43 if ((status & 0xffffffff) == 0xffffffff) { in snd_emu10k1_interrupt() 47 if (status & IPR_PCIERROR) { in snd_emu10k1_interrupt() 50 status &= ~IPR_PCIERROR; in snd_emu10k1_interrupt() 52 if (status & (IPR_VOLINCR|IPR_VOLDECR|IPR_MUTE)) { in snd_emu10k1_interrupt() 54 emu->hwvol_interrupt(emu, status); in snd_emu10k1_interrupt() 57 status &= ~(IPR_VOLINCR|IPR_VOLDECR|IPR_MUTE); in snd_emu10k1_interrupt() 59 if (status & IPR_CHANNELLOOP) { in snd_emu10k1_interrupt() [all …]
|
D | emuproc.c | 48 unsigned int status, rate = 0; in snd_emu10k1_proc_spdif_status() local 50 status = snd_emu10k1_ptr_read(emu, status_reg, 0); in snd_emu10k1_proc_spdif_status() 54 if (status != 0xffffffff) { in snd_emu10k1_proc_spdif_status() 55 snd_iprintf(buffer, "Professional Mode : %s\n", (status & SPCS_PROFESSIONAL) ? "yes" : "no"); in snd_emu10k1_proc_spdif_status() 56 snd_iprintf(buffer, "Not Audio Data : %s\n", (status & SPCS_NOTAUDIODATA) ? "yes" : "no"); in snd_emu10k1_proc_spdif_status() 57 snd_iprintf(buffer, "Copyright : %s\n", (status & SPCS_COPYRIGHT) ? "yes" : "no"); in snd_emu10k1_proc_spdif_status() 58 snd_iprintf(buffer, "Emphasis : %s\n", emphasis[(status & SPCS_EMPHASISMASK) >> 3]); in snd_emu10k1_proc_spdif_status() 59 snd_iprintf(buffer, "Mode : %i\n", (status & SPCS_MODEMASK) >> 6); in snd_emu10k1_proc_spdif_status() 60 snd_iprintf(buffer, "Category Code : 0x%x\n", (status & SPCS_CATEGORYCODEMASK) >> 8); in snd_emu10k1_proc_spdif_status() 61 …snd_iprintf(buffer, "Generation Status : %s\n", status & SPCS_GENERATIONSTATUS ? "original" : … in snd_emu10k1_proc_spdif_status() [all …]
|
/sound/soc/omap/ |
D | omap-hdmi.c | 110 memset(iec->status, 0, sizeof(iec->status)); in omap_hdmi_dai_hw_params() 113 iec->status[0] &= ~IEC958_AES0_PROFESSIONAL; in omap_hdmi_dai_hw_params() 116 iec->status[0] &= ~IEC958_AES0_NONAUDIO; in omap_hdmi_dai_hw_params() 118 iec->status[0] |= IEC958_AES0_CON_NOT_COPYRIGHT; in omap_hdmi_dai_hw_params() 120 iec->status[0] |= IEC958_AES0_CON_EMPHASIS_NONE; in omap_hdmi_dai_hw_params() 122 iec->status[0] |= IEC958_AES1_PRO_MODE_NOTID; in omap_hdmi_dai_hw_params() 124 iec->status[1] = IEC958_AES1_CON_GENERAL; in omap_hdmi_dai_hw_params() 126 iec->status[2] |= IEC958_AES2_CON_SOURCE_UNSPEC; in omap_hdmi_dai_hw_params() 128 iec->status[2] |= IEC958_AES2_CON_CHANNEL_UNSPEC; in omap_hdmi_dai_hw_params() 132 iec->status[3] |= IEC958_AES3_CON_FS_32000; in omap_hdmi_dai_hw_params() [all …]
|
/sound/pci/hda/ |
D | patch_ca0132.c | 868 int status = 0; in chipio_write_data_multiple() local 875 while ((count-- != 0) && (status == 0)) in chipio_write_data_multiple() 876 status = chipio_write_data(codec, *data++); in chipio_write_data_multiple() 878 return status; in chipio_write_data_multiple() 948 int status; in chipio_write_multiple() local 951 status = chipio_write_address(codec, chip_addx); in chipio_write_multiple() 952 if (status < 0) in chipio_write_multiple() 955 status = chipio_write_data_multiple(codec, data, count); in chipio_write_multiple() 959 return status; in chipio_write_multiple() 1090 int status; in dspio_write_wait() local [all …]
|
/sound/pci/ca0106/ |
D | ca0106_proc.c | 103 u32 status[4]; in snd_ca0106_proc_dump_iec958() local 104 status[0] = value & 0xff; in snd_ca0106_proc_dump_iec958() 105 status[1] = (value >> 8) & 0xff; in snd_ca0106_proc_dump_iec958() 106 status[2] = (value >> 16) & 0xff; in snd_ca0106_proc_dump_iec958() 107 status[3] = (value >> 24) & 0xff; in snd_ca0106_proc_dump_iec958() 109 if (! (status[0] & IEC958_AES0_PROFESSIONAL)) { in snd_ca0106_proc_dump_iec958() 113 if (!(status[0] & IEC958_AES0_NONAUDIO)) { in snd_ca0106_proc_dump_iec958() 119 switch (status[3] & IEC958_AES3_CON_FS) { in snd_ca0106_proc_dump_iec958() 134 if (status[0] & IEC958_AES0_CON_NOT_COPYRIGHT) { in snd_ca0106_proc_dump_iec958() 140 if ((status[0] & IEC958_AES0_CON_EMPHASIS) != IEC958_AES0_CON_EMPHASIS_5015) { in snd_ca0106_proc_dump_iec958() [all …]
|
D | ca0106_mixer.c | 355 static void decode_spdif_bits(unsigned char *status, unsigned int bits) in decode_spdif_bits() argument 357 status[0] = (bits >> 0) & 0xff; in decode_spdif_bits() 358 status[1] = (bits >> 8) & 0xff; in decode_spdif_bits() 359 status[2] = (bits >> 16) & 0xff; in decode_spdif_bits() 360 status[3] = (bits >> 24) & 0xff; in decode_spdif_bits() 369 decode_spdif_bits(ucontrol->value.iec958.status, in snd_ca0106_spdif_get_default() 380 decode_spdif_bits(ucontrol->value.iec958.status, in snd_ca0106_spdif_get_stream() 388 ucontrol->value.iec958.status[0] = 0xff; in snd_ca0106_spdif_get_mask() 389 ucontrol->value.iec958.status[1] = 0xff; in snd_ca0106_spdif_get_mask() 390 ucontrol->value.iec958.status[2] = 0xff; in snd_ca0106_spdif_get_mask() [all …]
|
/sound/core/ |
D | pcm_compat.c | 202 struct snd_pcm_status status; in snd_pcm_status_user_compat() local 205 err = snd_pcm_status(substream, &status); in snd_pcm_status_user_compat() 209 if (put_user(status.state, &src->state) || in snd_pcm_status_user_compat() 210 compat_put_timespec(&status.trigger_tstamp, &src->trigger_tstamp) || in snd_pcm_status_user_compat() 211 compat_put_timespec(&status.tstamp, &src->tstamp) || in snd_pcm_status_user_compat() 212 put_user(status.appl_ptr, &src->appl_ptr) || in snd_pcm_status_user_compat() 213 put_user(status.hw_ptr, &src->hw_ptr) || in snd_pcm_status_user_compat() 214 put_user(status.delay, &src->delay) || in snd_pcm_status_user_compat() 215 put_user(status.avail, &src->avail) || in snd_pcm_status_user_compat() 216 put_user(status.avail_max, &src->avail_max) || in snd_pcm_status_user_compat() [all …]
|
D | timer_compat.c | 73 struct snd_timer_status status; in snd_timer_user_status_compat() local 78 memset(&status, 0, sizeof(status)); in snd_timer_user_status_compat() 79 status.tstamp = tu->tstamp; in snd_timer_user_status_compat() 80 status.resolution = snd_timer_resolution(tu->timeri); in snd_timer_user_status_compat() 81 status.lost = tu->timeri->lost; in snd_timer_user_status_compat() 82 status.overrun = tu->overrun; in snd_timer_user_status_compat() 84 status.queue = tu->qused; in snd_timer_user_status_compat() 86 if (copy_to_user(_status, &status, sizeof(status))) in snd_timer_user_status_compat()
|
D | rawmidi_compat.c | 68 struct snd_rawmidi_status status; in snd_rawmidi_ioctl_status_compat() local 72 if (get_user(status.stream, &src->stream)) in snd_rawmidi_ioctl_status_compat() 75 switch (status.stream) { in snd_rawmidi_ioctl_status_compat() 77 err = snd_rawmidi_output_status(rfile->output, &status); in snd_rawmidi_ioctl_status_compat() 80 err = snd_rawmidi_input_status(rfile->input, &status); in snd_rawmidi_ioctl_status_compat() 88 if (put_user(status.tstamp.tv_sec, &src->tstamp.tv_sec) || in snd_rawmidi_ioctl_status_compat() 89 put_user(status.tstamp.tv_nsec, &src->tstamp.tv_nsec) || in snd_rawmidi_ioctl_status_compat() 90 put_user(status.avail, &src->avail) || in snd_rawmidi_ioctl_status_compat() 91 put_user(status.xruns, &src->xruns)) in snd_rawmidi_ioctl_status_compat()
|
D | pcm_native.c | 375 if (substream->runtime->status->state != SNDRV_PCM_STATE_DISCONNECTED) in snd_pcm_set_state() 376 substream->runtime->status->state = state; in snd_pcm_set_state() 392 switch (runtime->status->state) { in snd_pcm_hw_params() 510 switch (runtime->status->state) { in snd_pcm_hw_free() 538 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { in snd_pcm_sw_params() 591 struct snd_pcm_status *status) in snd_pcm_status() argument 596 status->state = runtime->status->state; in snd_pcm_status() 597 status->suspended_state = runtime->status->suspended_state; in snd_pcm_status() 598 if (status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_status() 600 status->trigger_tstamp = runtime->trigger_tstamp; in snd_pcm_status() [all …]
|
D | pcm.c | 386 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { in snd_pcm_substream_proc_hw_params_read() 423 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { in snd_pcm_substream_proc_sw_params_read() 444 struct snd_pcm_status status; in snd_pcm_substream_proc_status_read() local 453 memset(&status, 0, sizeof(status)); in snd_pcm_substream_proc_status_read() 454 err = snd_pcm_status(substream, &status); in snd_pcm_substream_proc_status_read() 459 snd_iprintf(buffer, "state: %s\n", snd_pcm_state_name(status.state)); in snd_pcm_substream_proc_status_read() 462 status.trigger_tstamp.tv_sec, status.trigger_tstamp.tv_nsec); in snd_pcm_substream_proc_status_read() 464 status.tstamp.tv_sec, status.tstamp.tv_nsec); in snd_pcm_substream_proc_status_read() 465 snd_iprintf(buffer, "delay : %ld\n", status.delay); in snd_pcm_substream_proc_status_read() 466 snd_iprintf(buffer, "avail : %ld\n", status.avail); in snd_pcm_substream_proc_status_read() [all …]
|
/sound/firewire/ |
D | scs1x.c | 97 static bool is_valid_running_status(u8 status) in is_valid_running_status() argument 99 return status >= 0x80 && status <= 0xef; in is_valid_running_status() 102 static bool is_one_byte_cmd(u8 status) in is_one_byte_cmd() argument 104 return status == 0xf6 || in is_one_byte_cmd() 105 status >= 0xf8; in is_one_byte_cmd() 108 static bool is_two_bytes_cmd(u8 status) in is_two_bytes_cmd() argument 110 return (status >= 0xc0 && status <= 0xdf) || in is_two_bytes_cmd() 111 status == 0xf1 || in is_two_bytes_cmd() 112 status == 0xf3; in is_two_bytes_cmd() 115 static bool is_three_bytes_cmd(u8 status) in is_three_bytes_cmd() argument [all …]
|
/sound/soc/codecs/ |
D | ab8500-codec.c | 172 int status; in ab8500_codec_read_reg() local 176 status = abx500_get_register_interruptible(codec->dev, AB8500_AUDIO, in ab8500_codec_read_reg() 178 if (status < 0) { in ab8500_codec_read_reg() 181 __func__, (u8)AB8500_AUDIO, (u8)reg, status); in ab8500_codec_read_reg() 196 int status; in ab8500_codec_write_reg() local 198 status = abx500_set_register_interruptible(codec->dev, AB8500_AUDIO, in ab8500_codec_write_reg() 200 if (status < 0) in ab8500_codec_write_reg() 203 __func__, (u8)AB8500_AUDIO, (u8)reg, status); in ab8500_codec_write_reg() 209 return status; in ab8500_codec_write_reg() 1159 int status = 1; in sid_status_control_put() local [all …]
|
/sound/isa/gus/ |
D | gus_irq.c | 35 unsigned char status; in snd_gus_interrupt() local 40 status = inb(gus->gf1.reg_irqstat); in snd_gus_interrupt() 41 if (status == 0) in snd_gus_interrupt() 45 if (status & 0x02) { in snd_gus_interrupt() 50 if (status & 0x01) { in snd_gus_interrupt() 55 if (status & (0x20 | 0x40)) { in snd_gus_interrupt() 89 if (status & 0x04) { in snd_gus_interrupt() 94 if (status & 0x08) { in snd_gus_interrupt() 99 if (status & 0x80) { in snd_gus_interrupt()
|
/sound/pci/asihpi/ |
D | hpi6205.c | 139 #define check_before_bbm_copy(status, p_bbm_data, l_first_write, l_second_write) argument 791 struct hpi_hostbuffer_status *status; in outstream_host_buffer_allocate() local 803 status = &interface->outstream_host_buffer_status[phm-> in outstream_host_buffer_allocate() 805 status->samples_processed = 0; in outstream_host_buffer_allocate() 806 status->stream_state = HPI_STATE_STOPPED; in outstream_host_buffer_allocate() 807 status->dsp_index = 0; in outstream_host_buffer_allocate() 808 status->host_index = status->dsp_index; in outstream_host_buffer_allocate() 809 status->size_in_bytes = phm->u.d.u.buffer.buffer_size; in outstream_host_buffer_allocate() 810 status->auxiliary_data_available = 0; in outstream_host_buffer_allocate() 829 struct hpi_hostbuffer_status *status; in outstream_host_buffer_get_info() local [all …]
|
/sound/i2c/ |
D | cs8427.c | 414 memcpy(ucontrol->value.iec958.status, chip->playback.def_status, 24); in snd_cs8427_spdif_get() 424 unsigned char *status = kcontrol->private_value ? in snd_cs8427_spdif_put() local 431 change = memcmp(ucontrol->value.iec958.status, status, 24) != 0; in snd_cs8427_spdif_put() 432 memcpy(status, ucontrol->value.iec958.status, 24); in snd_cs8427_spdif_put() 435 err = snd_cs8427_send_corudata(device, 0, status, 24); in snd_cs8427_spdif_put() 454 memset(ucontrol->value.iec958.status, 0xff, 24); in snd_cs8427_spdif_mask_get() 567 char *status; in snd_cs8427_iec958_pcm() local 573 status = chip->playback.pcm_status; in snd_cs8427_iec958_pcm() 575 if (status[0] & IEC958_AES0_PROFESSIONAL) { in snd_cs8427_iec958_pcm() 576 status[0] &= ~IEC958_AES0_PRO_FS; in snd_cs8427_iec958_pcm() [all …]
|
/sound/soc/fsl/ |
D | mpc5200_psc_ac97.c | 36 int status; in psc_ac97_read() local 42 status = spin_event_timeout(!(in_be16(&psc_dma->psc_regs->sr_csr.status) & in psc_ac97_read() 44 if (status == 0) { in psc_ac97_read() 57 status = spin_event_timeout((in_be16(&psc_dma->psc_regs->sr_csr.status) & in psc_ac97_read() 59 if (status == 0) { in psc_ac97_read() 61 in_be16(&psc_dma->psc_regs->sr_csr.status)); in psc_ac97_read() 81 int status; in psc_ac97_write() local 86 status = spin_event_timeout(!(in_be16(&psc_dma->psc_regs->sr_csr.status) & in psc_ac97_write() 88 if (status == 0) { in psc_ac97_write()
|
/sound/soc/blackfin/ |
D | bf5xx-sport.c | 629 int status = 0; in sport_check_status() local 633 status = sport->regs->stat; in sport_check_status() 634 if (status & (TOVF|TUVF|ROVF|RUVF)) in sport_check_status() 635 sport->regs->stat = (status & (TOVF|TUVF|ROVF|RUVF)); in sport_check_status() 637 *sport_stat = status; in sport_check_status() 642 status = get_dma_curr_irqstat(sport->dma_rx_chan); in sport_check_status() 643 if (status & (DMA_DONE|DMA_ERR)) in sport_check_status() 646 *rx_stat = status; in sport_check_status() 651 status = get_dma_curr_irqstat(sport->dma_tx_chan); in sport_check_status() 652 if (status & (DMA_DONE|DMA_ERR)) in sport_check_status() [all …]
|
/sound/pci/rme9652/ |
D | hdspm.c | 1096 unsigned int status, status2, timecode; in hdspm_external_sample_rate() local 1102 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_external_sample_rate() 1108 status & HDSPM_AES32_wcLock) in hdspm_external_sample_rate() 1109 return HDSPM_bit2freq((status >> HDSPM_AES32_wcFreq_bit) & 0xF); in hdspm_external_sample_rate() 1120 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_external_sample_rate() 1122 if (!(status & HDSPM_madiLock)) { in hdspm_external_sample_rate() 1125 switch (status & (HDSPM_status1_freqMask)) { in hdspm_external_sample_rate() 1155 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_external_sample_rate() 1198 if (status & HDSPM_madiLock) { in hdspm_external_sample_rate() 1199 rate_bits = status & HDSPM_madiFreqMask; in hdspm_external_sample_rate() [all …]
|
/sound/soc/ |
D | soc-jack.c | 63 void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask) in snd_soc_jack_report() argument 70 trace_snd_soc_jack_report(jack, mask, status); in snd_soc_jack_report() 80 jack->status &= ~mask; in snd_soc_jack_report() 81 jack->status |= status & mask; in snd_soc_jack_report() 83 trace_snd_soc_jack_notify(jack, status); in snd_soc_jack_report() 86 enable = pin->mask & jack->status; in snd_soc_jack_report() 98 blocking_notifier_call_chain(&jack->notifier, jack->status, jack); in snd_soc_jack_report() 102 snd_jack_report(jack->jack, jack->status); in snd_soc_jack_report()
|
/sound/oss/ |
D | pas2_card.c | 93 int status; in pasintr() local 95 status = pas_read(0x0B89); in pasintr() 96 pas_write(status, 0x0B89); /* Clear interrupt */ in pasintr() 98 if (status & 0x08) in pasintr() 100 pas_pcm_interrupt(status, 1); in pasintr() 101 status &= ~0x08; in pasintr() 103 if (status & 0x10) in pasintr() 106 status &= ~0x10; in pasintr()
|
/sound/pci/nm256/ |
D | nm256.c | 1013 u16 status; in snd_nm256_interrupt() local 1016 status = snd_nm256_readw(chip, NM_INT_REG); in snd_nm256_interrupt() 1019 if (status == 0) in snd_nm256_interrupt() 1027 if (status & NM_PLAYBACK_INT) { in snd_nm256_interrupt() 1028 status &= ~NM_PLAYBACK_INT; in snd_nm256_interrupt() 1033 if (status & NM_RECORD_INT) { in snd_nm256_interrupt() 1034 status &= ~NM_RECORD_INT; in snd_nm256_interrupt() 1039 if (status & NM_MISC_INT_1) { in snd_nm256_interrupt() 1040 status &= ~NM_MISC_INT_1; in snd_nm256_interrupt() 1048 if (status & NM_MISC_INT_2) { in snd_nm256_interrupt() [all …]
|
/sound/pci/ |
D | sis7019.c | 296 static void sis_voice_irq(u32 status, struct voice *voice) in sis_voice_irq() argument 300 while (status) { in sis_voice_irq() 301 bit = __ffs(status); in sis_voice_irq() 302 status >>= bit + 1; in sis_voice_irq() 314 u32 intr, status; in sis_interrupt() local 329 status = inl(io + SIS_PISR_A); in sis_interrupt() 330 if (status) { in sis_interrupt() 331 sis_voice_irq(status, sis->voices); in sis_interrupt() 332 outl(status, io + SIS_PISR_A); in sis_interrupt() 335 status = inl(io + SIS_PISR_B); in sis_interrupt() [all …]
|
/sound/pci/mixart/ |
D | mixart.c | 81 switch(pipe->status) { in mixart_set_pipe_state() 154 pipe->status = PIPE_RUNNING; in mixart_set_pipe_state() 157 pipe->status = PIPE_STOPPED; in mixart_set_pipe_state() 171 switch(pipe->status) { in mixart_set_clock() 201 if (err < 0 || clock_prop_resp.status != 0 || clock_prop_resp.clock_mode != CM_STANDALONE) { in mixart_set_clock() 202 …SG_CLOCK_SET_PROPERTIES err=%x stat=%x mod=%x !\n", err, clock_prop_resp.status, clock_prop_resp.c… in mixart_set_clock() 206 if(rate) pipe->status = PIPE_CLOCK_SET; in mixart_set_clock() 207 else pipe->status = PIPE_RUNNING; in mixart_set_clock() 248 if( pipe->status == PIPE_UNDEFINED ) { in snd_mixart_add_ref_pipe() 304 if((err < 0) || (buf->sgroup_resp.status != 0)) { in snd_mixart_add_ref_pipe() [all …]
|
/sound/pci/ctxfi/ |
D | ctmixer.c | 630 ucontrol->value.iec958.status[0] = 0xff; in ct_spdif_get_mask() 631 ucontrol->value.iec958.status[1] = 0xff; in ct_spdif_get_mask() 632 ucontrol->value.iec958.status[2] = 0xff; in ct_spdif_get_mask() 633 ucontrol->value.iec958.status[3] = 0xff; in ct_spdif_get_mask() 641 unsigned int status; in ct_spdif_get() local 643 atc->spdif_out_get_status(atc, &status); in ct_spdif_get() 645 if (status == 0) in ct_spdif_get() 646 status = SNDRV_PCM_DEFAULT_CON_SPDIF; in ct_spdif_get() 648 ucontrol->value.iec958.status[0] = (status >> 0) & 0xff; in ct_spdif_get() 649 ucontrol->value.iec958.status[1] = (status >> 8) & 0xff; in ct_spdif_get() [all …]
|