Home
last modified time | relevance | path

Searched refs:status (Results 1 – 25 of 241) sorted by relevance

12345678910

/sound/pci/emu10k1/
Dirq.c35 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()
48 if (status & IPR_PCIERROR) { in snd_emu10k1_interrupt()
51 status &= ~IPR_PCIERROR; in snd_emu10k1_interrupt()
53 if (status & (IPR_VOLINCR|IPR_VOLDECR|IPR_MUTE)) { in snd_emu10k1_interrupt()
55 emu->hwvol_interrupt(emu, status); in snd_emu10k1_interrupt()
58 status &= ~(IPR_VOLINCR|IPR_VOLDECR|IPR_MUTE); in snd_emu10k1_interrupt()
60 if (status & IPR_CHANNELLOOP) { in snd_emu10k1_interrupt()
[all …]
Demuproc.c47 unsigned int status, rate = 0; in snd_emu10k1_proc_spdif_status() local
49 status = snd_emu10k1_ptr_read(emu, status_reg, 0); in snd_emu10k1_proc_spdif_status()
53 if (status != 0xffffffff) { in snd_emu10k1_proc_spdif_status()
54 snd_iprintf(buffer, "Professional Mode : %s\n", (status & SPCS_PROFESSIONAL) ? "yes" : "no"); in snd_emu10k1_proc_spdif_status()
55 snd_iprintf(buffer, "Not Audio Data : %s\n", (status & SPCS_NOTAUDIODATA) ? "yes" : "no"); in snd_emu10k1_proc_spdif_status()
56 snd_iprintf(buffer, "Copyright : %s\n", (status & SPCS_COPYRIGHT) ? "yes" : "no"); in snd_emu10k1_proc_spdif_status()
57 snd_iprintf(buffer, "Emphasis : %s\n", emphasis[(status & SPCS_EMPHASISMASK) >> 3]); in snd_emu10k1_proc_spdif_status()
58 snd_iprintf(buffer, "Mode : %i\n", (status & SPCS_MODEMASK) >> 6); in snd_emu10k1_proc_spdif_status()
59 snd_iprintf(buffer, "Category Code : 0x%x\n", (status & SPCS_CATEGORYCODEMASK) >> 8); in snd_emu10k1_proc_spdif_status()
60 …snd_iprintf(buffer, "Generation Status : %s\n", status & SPCS_GENERATIONSTATUS ? "original" : … in snd_emu10k1_proc_spdif_status()
[all …]
/sound/soc/intel/common/
Dsst-match-acpi.c28 if (adev->status.present && adev->status.functional) { in sst_acpi_find_name()
40 acpi_status status; in sst_acpi_find_name_from_hid() local
42 status = acpi_get_devices(hid, sst_acpi_find_name, NULL, in sst_acpi_find_name_from_hid()
45 if (ACPI_FAILURE(status) || name[0] == '\0') in sst_acpi_find_name_from_hid()
56 acpi_status status; in sst_acpi_mach_match() local
59 status = acpi_evaluate_integer(handle, "_STA", NULL, &sta); in sst_acpi_mach_match()
60 if (ACPI_FAILURE(status) || !(sta & ACPI_STA_DEVICE_PRESENT)) in sst_acpi_mach_match()
68 acpi_status status; in sst_acpi_check_hid() local
71 status = acpi_get_devices(hid, sst_acpi_mach_match, &found, NULL); in sst_acpi_check_hid()
73 if (ACPI_FAILURE(status)) in sst_acpi_check_hid()
[all …]
/sound/core/
Dpcm_compat.c214 struct snd_pcm_status status; in snd_pcm_status_user_compat() local
217 memset(&status, 0, sizeof(status)); in snd_pcm_status_user_compat()
223 if (ext && get_user(status.audio_tstamp_data, in snd_pcm_status_user_compat()
226 err = snd_pcm_status(substream, &status); in snd_pcm_status_user_compat()
232 if (put_user(status.state, &src->state) || in snd_pcm_status_user_compat()
233 compat_put_timespec(&status.trigger_tstamp, &src->trigger_tstamp) || in snd_pcm_status_user_compat()
234 compat_put_timespec(&status.tstamp, &src->tstamp) || in snd_pcm_status_user_compat()
235 put_user(status.appl_ptr, &src->appl_ptr) || in snd_pcm_status_user_compat()
236 put_user(status.hw_ptr, &src->hw_ptr) || in snd_pcm_status_user_compat()
237 put_user(status.delay, &src->delay) || in snd_pcm_status_user_compat()
[all …]
Drawmidi_compat.c70 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()
79 err = snd_rawmidi_output_status(rfile->output, &status); in snd_rawmidi_ioctl_status_compat()
84 err = snd_rawmidi_input_status(rfile->input, &status); in snd_rawmidi_ioctl_status_compat()
92 if (compat_put_timespec(&status.tstamp, &src->tstamp) || in snd_rawmidi_ioctl_status_compat()
93 put_user(status.avail, &src->avail) || in snd_rawmidi_ioctl_status_compat()
94 put_user(status.xruns, &src->xruns)) in snd_rawmidi_ioctl_status_compat()
117 struct snd_rawmidi_status status; in snd_rawmidi_ioctl_status_x32() local
119 if (get_user(status.stream, &src->stream)) in snd_rawmidi_ioctl_status_x32()
[all …]
Dtimer_compat.c99 struct snd_timer_status32 status; in snd_timer_user_status_compat() local
104 memset(&status, 0, sizeof(status)); in snd_timer_user_status_compat()
105 status.tstamp.tv_sec = tu->tstamp.tv_sec; in snd_timer_user_status_compat()
106 status.tstamp.tv_nsec = tu->tstamp.tv_nsec; in snd_timer_user_status_compat()
107 status.resolution = snd_timer_resolution(tu->timeri); in snd_timer_user_status_compat()
108 status.lost = tu->timeri->lost; in snd_timer_user_status_compat()
109 status.overrun = tu->overrun; in snd_timer_user_status_compat()
111 status.queue = tu->qused; in snd_timer_user_status_compat()
113 if (copy_to_user(_status, &status, sizeof(status))) in snd_timer_user_status_compat()
Dpcm_native.c558 if (substream->runtime->status->state != SNDRV_PCM_STATE_DISCONNECTED) in snd_pcm_set_state()
559 substream->runtime->status->state = state; in snd_pcm_set_state()
649 switch (runtime->status->state) { in snd_pcm_hw_params()
776 switch (runtime->status->state) { in snd_pcm_hw_free()
804 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { in snd_pcm_sw_params()
863 struct snd_pcm_status *status) in snd_pcm_status() argument
869 snd_pcm_unpack_audio_tstamp_config(status->audio_tstamp_data, in snd_pcm_status()
885 status->state = runtime->status->state; in snd_pcm_status()
886 status->suspended_state = runtime->status->suspended_state; in snd_pcm_status()
887 if (status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_status()
[all …]
/sound/pci/hda/
Dpatch_ca0132.c900 int status = 0; in chipio_write_data_multiple() local
907 while ((count-- != 0) && (status == 0)) in chipio_write_data_multiple()
908 status = chipio_write_data(codec, *data++); in chipio_write_data_multiple()
910 return status; in chipio_write_data_multiple()
980 int status; in chipio_write_multiple() local
983 status = chipio_write_address(codec, chip_addx); in chipio_write_multiple()
984 if (status < 0) in chipio_write_multiple()
987 status = chipio_write_data_multiple(codec, data, count); in chipio_write_multiple()
991 return status; in chipio_write_multiple()
1122 int status; in dspio_write_wait() local
[all …]
/sound/soc/sti/
Duniperif_player.c65 unsigned int status; in uni_player_irq_handler() local
77 status = GET_UNIPERIF_ITS(player); in uni_player_irq_handler()
78 SET_UNIPERIF_ITS_BCLR(player, status); in uni_player_irq_handler()
81 if (unlikely(status & UNIPERIF_ITS_FIFO_ERROR_MASK(player))) { in uni_player_irq_handler()
101 if (unlikely(status & UNIPERIF_ITS_DMA_ERROR_MASK(player))) { in uni_player_irq_handler()
114 if (unlikely(status & UNIPERIF_ITM_UNDERFLOW_REC_DONE_MASK(player))) { in uni_player_irq_handler()
136 if (unlikely(status & in uni_player_irq_handler()
222 unsigned int status; in uni_player_set_channel_status() local
232 player->stream_settings.iec958.status[3] = in uni_player_set_channel_status()
236 player->stream_settings.iec958.status[3] = in uni_player_set_channel_status()
[all …]
/sound/soc/omap/
Domap-hdmi-audio.c140 memset(iec->status, 0, sizeof(iec->status)); in hdmi_dai_hw_params()
143 iec->status[0] &= ~IEC958_AES0_PROFESSIONAL; in hdmi_dai_hw_params()
146 iec->status[0] &= ~IEC958_AES0_NONAUDIO; in hdmi_dai_hw_params()
148 iec->status[0] |= IEC958_AES0_CON_NOT_COPYRIGHT; in hdmi_dai_hw_params()
150 iec->status[0] |= IEC958_AES0_CON_EMPHASIS_NONE; in hdmi_dai_hw_params()
152 iec->status[1] = IEC958_AES1_CON_GENERAL; in hdmi_dai_hw_params()
154 iec->status[2] |= IEC958_AES2_CON_SOURCE_UNSPEC; in hdmi_dai_hw_params()
156 iec->status[2] |= IEC958_AES2_CON_CHANNEL_UNSPEC; in hdmi_dai_hw_params()
160 iec->status[3] |= IEC958_AES3_CON_FS_32000; in hdmi_dai_hw_params()
163 iec->status[3] |= IEC958_AES3_CON_FS_44100; in hdmi_dai_hw_params()
[all …]
/sound/pci/ca0106/
Dca0106_proc.c101 u32 status[4]; in snd_ca0106_proc_dump_iec958() local
102 status[0] = value & 0xff; in snd_ca0106_proc_dump_iec958()
103 status[1] = (value >> 8) & 0xff; in snd_ca0106_proc_dump_iec958()
104 status[2] = (value >> 16) & 0xff; in snd_ca0106_proc_dump_iec958()
105 status[3] = (value >> 24) & 0xff; in snd_ca0106_proc_dump_iec958()
107 if (! (status[0] & IEC958_AES0_PROFESSIONAL)) { in snd_ca0106_proc_dump_iec958()
111 if (!(status[0] & IEC958_AES0_NONAUDIO)) { in snd_ca0106_proc_dump_iec958()
117 switch (status[3] & IEC958_AES3_CON_FS) { in snd_ca0106_proc_dump_iec958()
132 if (status[0] & IEC958_AES0_CON_NOT_COPYRIGHT) { in snd_ca0106_proc_dump_iec958()
138 if ((status[0] & IEC958_AES0_CON_EMPHASIS) != IEC958_AES0_CON_EMPHASIS_5015) { in snd_ca0106_proc_dump_iec958()
[all …]
Dca0106_mixer.c331 static void decode_spdif_bits(unsigned char *status, unsigned int bits) in decode_spdif_bits() argument
333 status[0] = (bits >> 0) & 0xff; in decode_spdif_bits()
334 status[1] = (bits >> 8) & 0xff; in decode_spdif_bits()
335 status[2] = (bits >> 16) & 0xff; in decode_spdif_bits()
336 status[3] = (bits >> 24) & 0xff; in decode_spdif_bits()
345 decode_spdif_bits(ucontrol->value.iec958.status, in snd_ca0106_spdif_get_default()
356 decode_spdif_bits(ucontrol->value.iec958.status, in snd_ca0106_spdif_get_stream()
364 ucontrol->value.iec958.status[0] = 0xff; in snd_ca0106_spdif_get_mask()
365 ucontrol->value.iec958.status[1] = 0xff; in snd_ca0106_spdif_get_mask()
366 ucontrol->value.iec958.status[2] = 0xff; in snd_ca0106_spdif_get_mask()
[all …]
/sound/firewire/oxfw/
Doxfw-scs1x.c142 static bool is_valid_running_status(u8 status) in is_valid_running_status() argument
144 return status >= 0x80 && status <= 0xef; in is_valid_running_status()
147 static bool is_one_byte_cmd(u8 status) in is_one_byte_cmd() argument
149 return status == 0xf6 || in is_one_byte_cmd()
150 status >= 0xf8; in is_one_byte_cmd()
153 static bool is_two_bytes_cmd(u8 status) in is_two_bytes_cmd() argument
155 return (status >= 0xc0 && status <= 0xdf) || in is_two_bytes_cmd()
156 status == 0xf1 || in is_two_bytes_cmd()
157 status == 0xf3; in is_two_bytes_cmd()
160 static bool is_three_bytes_cmd(u8 status) in is_three_bytes_cmd() argument
[all …]
/sound/soc/intel/atom/sst/
Dsst_stream.c116 str_info->status = STREAM_UN_INIT; in sst_alloc_stream_mrfld()
153 if (str_info->status != STREAM_RUNNING) in sst_start_stream()
243 if (str_info->status == STREAM_PAUSED) in sst_pause_stream()
245 if (str_info->status == STREAM_RUNNING || in sst_pause_stream()
246 str_info->status == STREAM_INIT) { in sst_pause_stream()
255 str_info->prev = str_info->status; in sst_pause_stream()
256 str_info->status = STREAM_PAUSED; in sst_pause_stream()
287 if (str_info->status == STREAM_RUNNING) in sst_resume_stream()
289 if (str_info->status == STREAM_PAUSED) { in sst_resume_stream()
297 str_info->status = STREAM_RUNNING; in sst_resume_stream()
[all …]
/sound/soc/codecs/
Dab8500-codec.c174 int status; in ab8500_codec_read_reg() local
177 status = abx500_get_register_interruptible(dev, AB8500_AUDIO, in ab8500_codec_read_reg()
181 return status; in ab8500_codec_read_reg()
1146 int status = 1; in sid_status_control_put() local
1164 status = -EPERM; in sid_status_control_put()
1166 status = -EBUSY; in sid_status_control_put()
1192 return status; in sid_status_control_put()
1217 int status; in anc_status_control_put() local
1225 status = -EINVAL; in anc_status_control_put()
1232 status = -EINVAL; in anc_status_control_put()
[all …]
Drt5677-spi.c115 int status = 0; in rt5677_spi_read() local
152 status |= spi_sync(g_spi, &m); in rt5677_spi_read()
158 return status; in rt5677_spi_read()
169 int status = 0; in rt5677_spi_write() local
208 status |= spi_sync(g_spi, &m); in rt5677_spi_write()
211 return status; in rt5677_spi_write()
/sound/isa/gus/
Dgus_irq.c35 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/
Dhpi6205.c139 #define check_before_bbm_copy(status, p_bbm_data, l_first_write, l_second_write) argument
814 struct hpi_hostbuffer_status *status; in outstream_host_buffer_allocate() local
826 status = &interface->outstream_host_buffer_status[phm-> in outstream_host_buffer_allocate()
828 status->samples_processed = 0; in outstream_host_buffer_allocate()
829 status->stream_state = HPI_STATE_STOPPED; in outstream_host_buffer_allocate()
830 status->dsp_index = 0; in outstream_host_buffer_allocate()
831 status->host_index = status->dsp_index; in outstream_host_buffer_allocate()
832 status->size_in_bytes = phm->u.d.u.buffer.buffer_size; in outstream_host_buffer_allocate()
833 status->auxiliary_data_available = 0; in outstream_host_buffer_allocate()
852 struct hpi_hostbuffer_status *status; in outstream_host_buffer_get_info() local
[all …]
/sound/soc/fsl/
Dmpc5200_psc_ac97.c36 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/i2c/
Dcs8427.c433 memcpy(ucontrol->value.iec958.status, chip->playback.def_status, 24); in snd_cs8427_spdif_get()
443 unsigned char *status = kcontrol->private_value ? in snd_cs8427_spdif_put() local
450 change = memcmp(ucontrol->value.iec958.status, status, 24) != 0; in snd_cs8427_spdif_put()
451 memcpy(status, ucontrol->value.iec958.status, 24); in snd_cs8427_spdif_put()
454 err = snd_cs8427_send_corudata(device, 0, status, 24); in snd_cs8427_spdif_put()
473 memset(ucontrol->value.iec958.status, 0xff, 24); in snd_cs8427_spdif_mask_get()
586 char *status; in snd_cs8427_iec958_pcm() local
592 status = chip->playback.pcm_status; in snd_cs8427_iec958_pcm()
594 if (status[0] & IEC958_AES0_PROFESSIONAL) { in snd_cs8427_iec958_pcm()
595 status[0] &= ~IEC958_AES0_PRO_FS; in snd_cs8427_iec958_pcm()
[all …]
/sound/soc/img/
Dimg-spdif-out.c115 ucontrol->value.iec958.status[0] = 0xff; in img_spdif_out_get_status_mask()
116 ucontrol->value.iec958.status[1] = 0xff; in img_spdif_out_get_status_mask()
117 ucontrol->value.iec958.status[2] = 0xff; in img_spdif_out_get_status_mask()
118 ucontrol->value.iec958.status[3] = 0xff; in img_spdif_out_get_status_mask()
119 ucontrol->value.iec958.status[4] = 0xff; in img_spdif_out_get_status_mask()
135 ucontrol->value.iec958.status[0] = reg & 0xff; in img_spdif_out_get_status()
136 ucontrol->value.iec958.status[1] = (reg >> 8) & 0xff; in img_spdif_out_get_status()
137 ucontrol->value.iec958.status[2] = (reg >> 16) & 0xff; in img_spdif_out_get_status()
138 ucontrol->value.iec958.status[3] = (reg >> 24) & 0xff; in img_spdif_out_get_status()
141 ucontrol->value.iec958.status[4] = in img_spdif_out_get_status()
[all …]
/sound/soc/blackfin/
Dbf5xx-sport.c633 int status = 0; in sport_check_status() local
637 status = sport->regs->stat; in sport_check_status()
638 if (status & (TOVF|TUVF|ROVF|RUVF)) in sport_check_status()
639 sport->regs->stat = (status & (TOVF|TUVF|ROVF|RUVF)); in sport_check_status()
641 *sport_stat = status; in sport_check_status()
646 status = get_dma_curr_irqstat(sport->dma_rx_chan); in sport_check_status()
647 if (status & (DMA_DONE|DMA_ERR)) in sport_check_status()
650 *rx_stat = status; in sport_check_status()
655 status = get_dma_curr_irqstat(sport->dma_tx_chan); in sport_check_status()
656 if (status & (DMA_DONE|DMA_ERR)) in sport_check_status()
[all …]
/sound/pci/rme9652/
Dhdspm.c1261 unsigned int status, status2; in hdspm_external_sample_rate() local
1267 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_external_sample_rate()
1303 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_external_sample_rate()
1305 if (!(status & HDSPM_madiLock)) { in hdspm_external_sample_rate()
1308 switch (status & (HDSPM_status1_freqMask)) { in hdspm_external_sample_rate()
1338 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_external_sample_rate()
1390 if (status & HDSPM_madiLock) { in hdspm_external_sample_rate()
1391 rate_bits = status & HDSPM_madiFreqMask; in hdspm_external_sample_rate()
2289 int status; in hdspm_get_wc_sample_rate() local
2294 status = hdspm_read(hdspm, HDSPM_RD_STATUS_1); in hdspm_get_wc_sample_rate()
[all …]
/sound/oss/
Dpas2_card.c91 int status; in pasintr() local
93 status = pas_read(0x0B89); in pasintr()
94 pas_write(status, 0x0B89); /* Clear interrupt */ in pasintr()
96 if (status & 0x08) in pasintr()
98 pas_pcm_interrupt(status, 1); in pasintr()
99 status &= ~0x08; in pasintr()
101 if (status & 0x10) in pasintr()
104 status &= ~0x10; in pasintr()
/sound/pci/nm256/
Dnm256.c1033 u16 status; in snd_nm256_interrupt() local
1036 status = snd_nm256_readw(chip, NM_INT_REG); in snd_nm256_interrupt()
1039 if (status == 0) in snd_nm256_interrupt()
1047 if (status & NM_PLAYBACK_INT) { in snd_nm256_interrupt()
1048 status &= ~NM_PLAYBACK_INT; in snd_nm256_interrupt()
1053 if (status & NM_RECORD_INT) { in snd_nm256_interrupt()
1054 status &= ~NM_RECORD_INT; in snd_nm256_interrupt()
1059 if (status & NM_MISC_INT_1) { in snd_nm256_interrupt()
1060 status &= ~NM_MISC_INT_1; in snd_nm256_interrupt()
1068 if (status & NM_MISC_INT_2) { in snd_nm256_interrupt()
[all …]

12345678910