Home
last modified time | relevance | path

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

12345678910>>...12

/sound/pci/emu10k1/
Dirq.c21 unsigned int status, status2, orig_status, orig_status2; in snd_emu10k1_interrupt() local
25 while (((status = inl(emu->port + IPR)) != 0) && (timeout < 1000)) { in snd_emu10k1_interrupt()
27 orig_status = status; in snd_emu10k1_interrupt()
29 if ((status & 0xffffffff) == 0xffffffff) { in snd_emu10k1_interrupt()
34 if (status & IPR_PCIERROR) { in snd_emu10k1_interrupt()
37 status &= ~IPR_PCIERROR; in snd_emu10k1_interrupt()
39 if (status & (IPR_VOLINCR|IPR_VOLDECR|IPR_MUTE)) { in snd_emu10k1_interrupt()
41 emu->hwvol_interrupt(emu, status); in snd_emu10k1_interrupt()
44 status &= ~(IPR_VOLINCR|IPR_VOLDECR|IPR_MUTE); in snd_emu10k1_interrupt()
46 if (status & IPR_CHANNELLOOP) { in snd_emu10k1_interrupt()
[all …]
/sound/core/
Dpcm_compat.c185 struct snd_pcm_status64 status; in snd_pcm_status_user_compat64() local
189 memset(&status, 0, sizeof(status)); in snd_pcm_status_user_compat64()
196 if (ext && get_user(status.audio_tstamp_data, in snd_pcm_status_user_compat64()
199 err = snd_pcm_status64(substream, &status); in snd_pcm_status_user_compat64()
207 .state = status.state, in snd_pcm_status_user_compat64()
208 .trigger_tstamp_sec = status.trigger_tstamp_sec, in snd_pcm_status_user_compat64()
209 .trigger_tstamp_nsec = status.trigger_tstamp_nsec, in snd_pcm_status_user_compat64()
210 .tstamp_sec = status.tstamp_sec, in snd_pcm_status_user_compat64()
211 .tstamp_nsec = status.tstamp_nsec, in snd_pcm_status_user_compat64()
212 .appl_ptr = status.appl_ptr, in snd_pcm_status_user_compat64()
[all …]
Drawmidi_compat.c60 struct snd_rawmidi_status64 status; in snd_rawmidi_ioctl_status_compat64() local
63 if (get_user(status.stream, &src->stream)) in snd_rawmidi_ioctl_status_compat64()
66 switch (status.stream) { in snd_rawmidi_ioctl_status_compat64()
70 err = snd_rawmidi_output_status(rfile->output, &status); in snd_rawmidi_ioctl_status_compat64()
75 err = snd_rawmidi_input_status(rfile->input, &status); in snd_rawmidi_ioctl_status_compat64()
84 .stream = status.stream, in snd_rawmidi_ioctl_status_compat64()
85 .tstamp_sec = status.tstamp_sec, in snd_rawmidi_ioctl_status_compat64()
86 .tstamp_nsec = status.tstamp_nsec, in snd_rawmidi_ioctl_status_compat64()
87 .avail = status.avail, in snd_rawmidi_ioctl_status_compat64()
88 .xruns = status.xruns, in snd_rawmidi_ioctl_status_compat64()
Dpcm_native.c598 if (substream->runtime->status->state != SNDRV_PCM_STATE_DISCONNECTED) in snd_pcm_set_state()
599 substream->runtime->status->state = state; in snd_pcm_set_state()
727 switch (runtime->status->state) { in snd_pcm_hw_params()
892 switch (runtime->status->state) { in snd_pcm_hw_free()
923 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { in snd_pcm_sw_params()
994 struct snd_pcm_status64 *status) in snd_pcm_status64() argument
1000 snd_pcm_unpack_audio_tstamp_config(status->audio_tstamp_data, in snd_pcm_status64()
1016 status->state = runtime->status->state; in snd_pcm_status64()
1017 status->suspended_state = runtime->status->suspended_state; in snd_pcm_status64()
1018 if (status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_status64()
[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/pci/ca0106/
Dca0106_proc.c87 u32 status[4]; in snd_ca0106_proc_dump_iec958() local
88 status[0] = value & 0xff; in snd_ca0106_proc_dump_iec958()
89 status[1] = (value >> 8) & 0xff; in snd_ca0106_proc_dump_iec958()
90 status[2] = (value >> 16) & 0xff; in snd_ca0106_proc_dump_iec958()
91 status[3] = (value >> 24) & 0xff; in snd_ca0106_proc_dump_iec958()
93 if (! (status[0] & IEC958_AES0_PROFESSIONAL)) { in snd_ca0106_proc_dump_iec958()
97 if (!(status[0] & IEC958_AES0_NONAUDIO)) { in snd_ca0106_proc_dump_iec958()
103 switch (status[3] & IEC958_AES3_CON_FS) { in snd_ca0106_proc_dump_iec958()
118 if (status[0] & IEC958_AES0_CON_NOT_COPYRIGHT) { in snd_ca0106_proc_dump_iec958()
124 if ((status[0] & IEC958_AES0_CON_EMPHASIS) != IEC958_AES0_CON_EMPHASIS_5015) { in snd_ca0106_proc_dump_iec958()
[all …]
Dca0106_mixer.c317 static void decode_spdif_bits(unsigned char *status, unsigned int bits) in decode_spdif_bits() argument
319 status[0] = (bits >> 0) & 0xff; in decode_spdif_bits()
320 status[1] = (bits >> 8) & 0xff; in decode_spdif_bits()
321 status[2] = (bits >> 16) & 0xff; in decode_spdif_bits()
322 status[3] = (bits >> 24) & 0xff; in decode_spdif_bits()
331 decode_spdif_bits(ucontrol->value.iec958.status, in snd_ca0106_spdif_get_default()
342 decode_spdif_bits(ucontrol->value.iec958.status, in snd_ca0106_spdif_get_stream()
350 ucontrol->value.iec958.status[0] = 0xff; in snd_ca0106_spdif_get_mask()
351 ucontrol->value.iec958.status[1] = 0xff; in snd_ca0106_spdif_get_mask()
352 ucontrol->value.iec958.status[2] = 0xff; in snd_ca0106_spdif_get_mask()
[all …]
/sound/firewire/oxfw/
Doxfw-scs1x.c141 static bool is_valid_running_status(u8 status) in is_valid_running_status() argument
143 return status >= 0x80 && status <= 0xef; in is_valid_running_status()
146 static bool is_one_byte_cmd(u8 status) in is_one_byte_cmd() argument
148 return status == 0xf6 || in is_one_byte_cmd()
149 status >= 0xf8; in is_one_byte_cmd()
152 static bool is_two_bytes_cmd(u8 status) in is_two_bytes_cmd() argument
154 return (status >= 0xc0 && status <= 0xdf) || in is_two_bytes_cmd()
155 status == 0xf1 || in is_two_bytes_cmd()
156 status == 0xf3; in is_two_bytes_cmd()
159 static bool is_three_bytes_cmd(u8 status) in is_three_bytes_cmd() argument
[all …]
/sound/soc/
Dsoc-acpi.c37 acpi_status status; in snd_soc_acpi_find_package() local
45 if (adev->status.present && adev->status.functional) { in snd_soc_acpi_find_package()
49 status = acpi_evaluate_object_typed(handle, pkg_ctx->name, in snd_soc_acpi_find_package()
52 if (ACPI_FAILURE(status)) in snd_soc_acpi_find_package()
61 status = acpi_extract_package(myobj, in snd_soc_acpi_find_package()
63 if (ACPI_FAILURE(status)) { in snd_soc_acpi_find_package()
79 acpi_status status; in snd_soc_acpi_find_package_from_hid() local
81 status = acpi_get_devices(hid, snd_soc_acpi_find_package, ctx, NULL); in snd_soc_acpi_find_package_from_hid()
83 if (ACPI_FAILURE(status) || !ctx->data_valid) in snd_soc_acpi_find_package_from_hid()
Dsoc-jack.c34 void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask) in snd_soc_jack_report() argument
42 trace_snd_soc_jack_report(jack, mask, status); in snd_soc_jack_report()
48 jack->status &= ~mask; in snd_soc_jack_report()
49 jack->status |= status & mask; in snd_soc_jack_report()
51 trace_snd_soc_jack_notify(jack, status); in snd_soc_jack_report()
54 int enable = pin->mask & jack->status; in snd_soc_jack_report()
69 blocking_notifier_call_chain(&jack->notifier, jack->status, jack); in snd_soc_jack_report()
74 snd_jack_report(jack->jack, jack->status); in snd_soc_jack_report()
/sound/soc/ti/
Domap-hdmi.c132 memset(iec->status, 0, sizeof(iec->status)); in hdmi_dai_hw_params()
135 iec->status[0] &= ~IEC958_AES0_PROFESSIONAL; in hdmi_dai_hw_params()
138 iec->status[0] &= ~IEC958_AES0_NONAUDIO; in hdmi_dai_hw_params()
140 iec->status[0] |= IEC958_AES0_CON_NOT_COPYRIGHT; in hdmi_dai_hw_params()
142 iec->status[0] |= IEC958_AES0_CON_EMPHASIS_NONE; in hdmi_dai_hw_params()
144 iec->status[1] = IEC958_AES1_CON_GENERAL; in hdmi_dai_hw_params()
146 iec->status[2] |= IEC958_AES2_CON_SOURCE_UNSPEC; in hdmi_dai_hw_params()
148 iec->status[2] |= IEC958_AES2_CON_CHANNEL_UNSPEC; in hdmi_dai_hw_params()
152 iec->status[3] |= IEC958_AES3_CON_FS_32000; in hdmi_dai_hw_params()
155 iec->status[3] |= IEC958_AES3_CON_FS_44100; in hdmi_dai_hw_params()
[all …]
/sound/soc/intel/atom/sst/
Dsst_stream.c71 sst_drv_ctx->streams[str_id].status = STREAM_INIT; in sst_alloc_stream_mrfld()
123 str_info->status = STREAM_UN_INIT; in sst_realloc_stream()
161 if (str_info->status != STREAM_RUNNING) in sst_start_stream()
252 if (str_info->status == STREAM_PAUSED) in sst_pause_stream()
254 if (str_info->status == STREAM_RUNNING || in sst_pause_stream()
255 str_info->status == STREAM_INIT) { in sst_pause_stream()
264 str_info->prev = str_info->status; in sst_pause_stream()
265 str_info->status = STREAM_PAUSED; in sst_pause_stream()
297 if (str_info->status == STREAM_RUNNING) in sst_resume_stream()
307 str_info->status = STREAM_RUNNING; in sst_resume_stream()
[all …]
/sound/soc/codecs/
Dab8500-codec.c164 int status; in ab8500_codec_read_reg() local
167 status = abx500_get_register_interruptible(dev, AB8500_AUDIO, in ab8500_codec_read_reg()
171 return status; in ab8500_codec_read_reg()
1136 int status = 1; in sid_status_control_put() local
1154 status = -EPERM; in sid_status_control_put()
1156 status = -EBUSY; in sid_status_control_put()
1182 return status; in sid_status_control_put()
1207 int status; in anc_status_control_put() local
1215 status = -EINVAL; in anc_status_control_put()
1222 status = -EINVAL; in anc_status_control_put()
[all …]
/sound/isa/gus/
Dgus_irq.c20 unsigned char status; in snd_gus_interrupt() local
25 status = inb(gus->gf1.reg_irqstat); in snd_gus_interrupt()
26 if (status == 0) in snd_gus_interrupt()
30 if (status & 0x02) { in snd_gus_interrupt()
35 if (status & 0x01) { in snd_gus_interrupt()
40 if (status & (0x20 | 0x40)) { in snd_gus_interrupt()
74 if (status & 0x04) { in snd_gus_interrupt()
79 if (status & 0x08) { in snd_gus_interrupt()
84 if (status & 0x80) { in snd_gus_interrupt()
/sound/pci/asihpi/
Dhpi6205.c128 #define check_before_bbm_copy(status, p_bbm_data, l_first_write, l_second_write) argument
798 struct hpi_hostbuffer_status *status; in outstream_host_buffer_allocate() local
810 status = &interface->outstream_host_buffer_status[phm-> in outstream_host_buffer_allocate()
812 status->samples_processed = 0; in outstream_host_buffer_allocate()
813 status->stream_state = HPI_STATE_STOPPED; in outstream_host_buffer_allocate()
814 status->dsp_index = 0; in outstream_host_buffer_allocate()
815 status->host_index = status->dsp_index; in outstream_host_buffer_allocate()
816 status->size_in_bytes = phm->u.d.u.buffer.buffer_size; in outstream_host_buffer_allocate()
817 status->auxiliary_data_available = 0; in outstream_host_buffer_allocate()
836 struct hpi_hostbuffer_status *status; in outstream_host_buffer_get_info() local
[all …]
/sound/soc/fsl/
Dmpc5200_psc_ac97.c32 int status; in psc_ac97_read() local
38 status = spin_event_timeout(!(in_be16(&psc_dma->psc_regs->sr_csr.status) & in psc_ac97_read()
40 if (status == 0) { in psc_ac97_read()
53 status = spin_event_timeout((in_be16(&psc_dma->psc_regs->sr_csr.status) & in psc_ac97_read()
55 if (status == 0) { in psc_ac97_read()
57 in_be16(&psc_dma->psc_regs->sr_csr.status)); in psc_ac97_read()
77 int status; in psc_ac97_write() local
82 status = spin_event_timeout(!(in_be16(&psc_dma->psc_regs->sr_csr.status) & in psc_ac97_write()
84 if (status == 0) { in psc_ac97_write()
/sound/i2c/
Dcs8427.c426 memcpy(ucontrol->value.iec958.status, chip->playback.def_status, 24); in snd_cs8427_spdif_get()
436 unsigned char *status = kcontrol->private_value ? in snd_cs8427_spdif_put() local
443 change = memcmp(ucontrol->value.iec958.status, status, 24) != 0; in snd_cs8427_spdif_put()
444 memcpy(status, ucontrol->value.iec958.status, 24); in snd_cs8427_spdif_put()
447 err = snd_cs8427_send_corudata(device, 0, status, 24); in snd_cs8427_spdif_put()
466 memset(ucontrol->value.iec958.status, 0xff, 24); in snd_cs8427_spdif_mask_get()
582 char *status; in snd_cs8427_iec958_pcm() local
588 status = chip->playback.pcm_status; in snd_cs8427_iec958_pcm()
590 if (status[0] & IEC958_AES0_PROFESSIONAL) { in snd_cs8427_iec958_pcm()
591 status[0] &= ~IEC958_AES0_PRO_FS; in snd_cs8427_iec958_pcm()
[all …]
/sound/pci/hda/
Dpatch_ca0132.c1621 int status = 0; in chipio_write_data_multiple() local
1628 while ((count-- != 0) && (status == 0)) in chipio_write_data_multiple()
1629 status = chipio_write_data(codec, *data++); in chipio_write_data_multiple()
1631 return status; in chipio_write_data_multiple()
1724 int status; in chipio_write_multiple() local
1727 status = chipio_write_address(codec, chip_addx); in chipio_write_multiple()
1728 if (status < 0) in chipio_write_multiple()
1731 status = chipio_write_data_multiple(codec, data, count); in chipio_write_multiple()
1735 return status; in chipio_write_multiple()
2052 int status; in dspio_write_wait() local
[all …]
/sound/soc/img/
Dimg-spdif-out.c123 ucontrol->value.iec958.status[0] = 0xff; in img_spdif_out_get_status_mask()
124 ucontrol->value.iec958.status[1] = 0xff; in img_spdif_out_get_status_mask()
125 ucontrol->value.iec958.status[2] = 0xff; in img_spdif_out_get_status_mask()
126 ucontrol->value.iec958.status[3] = 0xff; in img_spdif_out_get_status_mask()
127 ucontrol->value.iec958.status[4] = 0xff; in img_spdif_out_get_status_mask()
143 ucontrol->value.iec958.status[0] = reg & 0xff; in img_spdif_out_get_status()
144 ucontrol->value.iec958.status[1] = (reg >> 8) & 0xff; in img_spdif_out_get_status()
145 ucontrol->value.iec958.status[2] = (reg >> 16) & 0xff; in img_spdif_out_get_status()
146 ucontrol->value.iec958.status[3] = (reg >> 24) & 0xff; in img_spdif_out_get_status()
149 ucontrol->value.iec958.status[4] = in img_spdif_out_get_status()
[all …]
/sound/pci/rme9652/
Dhdspm.c1253 unsigned int status, status2; in hdspm_external_sample_rate() local
1259 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_external_sample_rate()
1295 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_external_sample_rate()
1297 if (!(status & HDSPM_madiLock)) { in hdspm_external_sample_rate()
1300 switch (status & (HDSPM_status1_freqMask)) { in hdspm_external_sample_rate()
1330 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_external_sample_rate()
1382 if (status & HDSPM_madiLock) { in hdspm_external_sample_rate()
1383 rate_bits = status & HDSPM_madiFreqMask; in hdspm_external_sample_rate()
2281 int status; in hdspm_get_wc_sample_rate() local
2286 status = hdspm_read(hdspm, HDSPM_RD_STATUS_1); in hdspm_get_wc_sample_rate()
[all …]
/sound/hda/
Dintel-sdw-acpi.c123 acpi_status status; in sdw_intel_acpi_cb() local
126 status = acpi_evaluate_integer(handle, METHOD_NAME__ADR, NULL, &adr); in sdw_intel_acpi_cb()
127 if (ACPI_FAILURE(status)) in sdw_intel_acpi_cb()
165 acpi_status status; in sdw_intel_acpi_scan() local
174 status = acpi_walk_namespace(ACPI_TYPE_DEVICE, in sdw_intel_acpi_scan()
178 if (ACPI_FAILURE(status) || info->handle == NULL) in sdw_intel_acpi_scan()
/sound/soc/amd/
Dacp-pcm-dma.c1207 int status; in acp_audio_probe() local
1245 status = devm_request_irq(&pdev->dev, res->start, dma_irq_handler, in acp_audio_probe()
1247 if (status) { in acp_audio_probe()
1249 return status; in acp_audio_probe()
1255 status = acp_init(audio_drv_data->acp_mmio, audio_drv_data->asic_type); in acp_audio_probe()
1256 if (status) { in acp_audio_probe()
1257 dev_err(&pdev->dev, "ACP Init failed status:%d\n", status); in acp_audio_probe()
1258 return status; in acp_audio_probe()
1261 status = devm_snd_soc_register_component(&pdev->dev, in acp_audio_probe()
1263 if (status != 0) { in acp_audio_probe()
[all …]
/sound/pci/nm256/
Dnm256.c1015 u16 status; in snd_nm256_interrupt() local
1018 status = snd_nm256_readw(chip, NM_INT_REG); in snd_nm256_interrupt()
1021 if (status == 0) in snd_nm256_interrupt()
1029 if (status & NM_PLAYBACK_INT) { in snd_nm256_interrupt()
1030 status &= ~NM_PLAYBACK_INT; in snd_nm256_interrupt()
1035 if (status & NM_RECORD_INT) { in snd_nm256_interrupt()
1036 status &= ~NM_RECORD_INT; in snd_nm256_interrupt()
1041 if (status & NM_MISC_INT_1) { in snd_nm256_interrupt()
1042 status &= ~NM_MISC_INT_1; in snd_nm256_interrupt()
1050 if (status & NM_MISC_INT_2) { in snd_nm256_interrupt()
[all …]
/sound/soc/sof/imx/
Dimx-common.c58 u32 status; in imx8_dump() local
63 sof_mailbox_read(sdev, sdev->debug_box.offset + 0x4, &status, 4); in imx8_dump()
72 snd_sof_get_status(sdev, status, status, &xoops, &panic_info, stack, in imx8_dump()
/sound/pci/
Dsis7019.c283 static void sis_voice_irq(u32 status, struct voice *voice) in sis_voice_irq() argument
287 while (status) { in sis_voice_irq()
288 bit = __ffs(status); in sis_voice_irq()
289 status >>= bit + 1; in sis_voice_irq()
301 u32 intr, status; in sis_interrupt() local
316 status = inl(io + SIS_PISR_A); in sis_interrupt()
317 if (status) { in sis_interrupt()
318 sis_voice_irq(status, sis->voices); in sis_interrupt()
319 outl(status, io + SIS_PISR_A); in sis_interrupt()
322 status = inl(io + SIS_PISR_B); in sis_interrupt()
[all …]

12345678910>>...12