Home
last modified time | relevance | path

Searched refs:channel (Results 1 – 25 of 155) sorted by relevance

1234567

/sound/xen/
A Dxen_snd_front_evtchnl.c151 page = channel->u.evt.page; in evtchnl_free()
163 if (channel->irq) in evtchnl_free()
164 unbind_from_irqhandler(channel->irq, channel); in evtchnl_free()
166 if (channel->port) in evtchnl_free()
172 memset(channel, 0, sizeof(*channel)); in evtchnl_free()
201 memset(channel, 0, sizeof(*channel)); in evtchnl_alloc()
202 channel->type = type; in evtchnl_alloc()
203 channel->index = index; in evtchnl_alloc()
230 channel->u.evt.page = page; in evtchnl_alloc()
246 channel->irq = ret; in evtchnl_alloc()
[all …]
/sound/core/oss/
A Drate.c55 unsigned int channel; in rate_init() local
58 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_init()
73 unsigned int channel; in resample_expand() local
79 for (channel = 0; channel < plugin->src_format.channels; channel++) { in resample_expand()
84 if (dst_channels[channel].wanted) in resample_expand()
86 dst_channels[channel].enabled = 0; in resample_expand()
89 dst_channels[channel].enabled = 1; in resample_expand()
132 unsigned int channel; in resample_shrink() local
138 for (channel = 0; channel < plugin->src_format.channels; ++channel) { in resample_shrink()
263 unsigned int channel; in rate_transfer() local
[all …]
A Dmulaw.c174 int channel; in mulaw_decode() local
176 for (channel = 0; channel < nchannels; ++channel) { in mulaw_decode()
182 if (dst_channels[channel].wanted) in mulaw_decode()
188 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in mulaw_decode()
189 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in mulaw_decode()
220 int channel; in mulaw_encode() local
222 for (channel = 0; channel < nchannels; ++channel) { in mulaw_encode()
234 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in mulaw_encode()
235 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in mulaw_encode()
261 unsigned int channel; in mulaw_transfer() local
[all …]
A Dio.c49 int channel, channels = plugin->dst_format.channels; in io_playback_transfer() local
53 for (channel = 0; channel < channels; channel++) { in io_playback_transfer()
54 if (src_channels[channel].enabled) in io_playback_transfer()
55 bufs[channel] = src_channels[channel].area.addr; in io_playback_transfer()
57 bufs[channel] = NULL; in io_playback_transfer()
79 for (channel = 0; channel < channels; channel++) { in io_capture_transfer()
80 if (dst_channels[channel].enabled) in io_capture_transfer()
81 bufs[channel] = dst_channels[channel].area.addr; in io_capture_transfer()
83 bufs[channel] = NULL; in io_capture_transfer()
95 unsigned int channel; in io_src_channels() local
[all …]
A Dlinear.c61 int channel; in convert() local
63 for (channel = 0; channel < nchannels; ++channel) { in convert()
68 if (!src_channels[channel].enabled) { in convert()
69 if (dst_channels[channel].wanted) in convert()
71 dst_channels[channel].enabled = 0; in convert()
74 dst_channels[channel].enabled = 1; in convert()
75 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in convert()
76 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in convert()
99 unsigned int channel; in linear_transfer() local
100 for (channel = 0; channel < plugin->src_format.channels; channel++) { in linear_transfer()
[all …]
A Dcopy.c32 unsigned int channel; in copy_transfer() local
40 for (channel = 0; channel < nchannels; channel++) { in copy_transfer()
A Dpcm_plugin.c54 unsigned int channel; in snd_pcm_plugin_alloc() local
83 for (channel = 0; channel < format->channels; channel++, c++) { in snd_pcm_plugin_alloc()
88 c->area.first = channel * width; in snd_pcm_plugin_alloc()
95 for (channel = 0; channel < format->channels; channel++, c++) { in snd_pcm_plugin_alloc()
99 c->area.addr = plugin->buf + (channel * size); in snd_pcm_plugin_alloc()
565 int width, nchannels, channel; in snd_pcm_plug_client_channels_buf() local
586 for (channel = 0; channel < nchannels; channel++, v++) { in snd_pcm_plug_client_channels_buf()
591 v->area.first = channel * width; in snd_pcm_plug_client_channels_buf()
/sound/soc/sprd/
A Dsprd-mcdt.c167 sprd_mcdt_update(mcdt, MCDT_DMA_EN, BIT(channel), BIT(channel)); in sprd_mcdt_adc_dma_enable()
177 BIT(channel)); in sprd_mcdt_ap_int_enable()
272 switch (channel) { in sprd_mcdt_dma_ack_shift()
300 switch (channel) { in sprd_mcdt_dac_dma_ack_select()
322 switch (channel) { in sprd_mcdt_adc_dma_ack_select()
344 switch (channel) { in sprd_mcdt_chan_fifo_sts()
358 switch (channel) { in sprd_mcdt_chan_fifo_sts()
390 sprd_mcdt_update(mcdt, MCDT_FIFO_CLR, BIT(channel), BIT(channel)); in sprd_mcdt_dac_fifo_clear()
429 switch (channel) { in sprd_mcdt_int_type_shift()
458 switch (channel) { in sprd_mcdt_chan_int_en()
[all …]
/sound/firewire/
A Diso-resources.c131 if (channel == -EAGAIN) { in fw_iso_resources_allocate()
135 if (channel >= 0) { in fw_iso_resources_allocate()
136 r->channel = channel; in fw_iso_resources_allocate()
139 if (channel == -EBUSY) in fw_iso_resources_allocate()
149 return channel; in fw_iso_resources_allocate()
167 int bandwidth, channel; in fw_iso_resources_update() local
189 if (channel < 0 && channel != -EAGAIN) { in fw_iso_resources_update()
191 if (channel == -EBUSY) in fw_iso_resources_update()
201 return channel; in fw_iso_resources_update()
214 int bandwidth, channel; in fw_iso_resources_free() local
[all …]
A Damdtp-stream-trace.h23 __field(int, channel)
38 __entry->channel = s->context->channel;
64 __entry->channel,
/sound/pci/emu10k1/
A Dp16v.c168 channel_id, channel, channel->use); in snd_p16v_pcm_open_playback_channel()
170 channel_id, chip, channel); in snd_p16v_pcm_open_playback_channel()
266 snd_emu10k1_ptr_write(emu, A_SPDIF_SAMPLERATE, channel, in snd_p16v_pcm_prepare_playback()
270 snd_emu10k1_ptr_write(emu, A_SPDIF_SAMPLERATE, channel, in snd_p16v_pcm_prepare_playback()
274 snd_emu10k1_ptr_write(emu, A_SPDIF_SAMPLERATE, channel, in snd_p16v_pcm_prepare_playback()
289 snd_emu10k1_ptr20_write(emu, PLAYBACK_LIST_ADDR, channel, emu->p16v_buffer->addr+(8*16*channel)); in snd_p16v_pcm_prepare_playback()
407 int channel; in snd_p16v_pcm_trigger_playback() local
431 basic |= (0x1<<channel); in snd_p16v_pcm_trigger_playback()
432 inte |= (INTE2_PLAYBACK_CH_0_LOOP<<channel); in snd_p16v_pcm_trigger_playback()
459 int channel = 0; in snd_p16v_pcm_trigger_capture() local
[all …]
/sound/soc/tegra/
A Dtegra30_ahub.c107 int channel; in tegra30_ahub_allocate_rx_fifo() local
111 channel = find_first_zero_bit(ahub->rx_usage, in tegra30_ahub_allocate_rx_fifo()
113 if (channel >= TEGRA30_AHUB_CHANNEL_CTRL_COUNT) in tegra30_ahub_allocate_rx_fifo()
116 __set_bit(channel, ahub->rx_usage); in tegra30_ahub_allocate_rx_fifo()
118 *rxcif = TEGRA30_AHUB_RXCIF_APBIF_RX0 + channel; in tegra30_ahub_allocate_rx_fifo()
119 snprintf(dmachan, dmachan_len, "rx%d", channel); in tegra30_ahub_allocate_rx_fifo()
199 __clear_bit(channel, ahub->rx_usage); in tegra30_ahub_free_rx_fifo()
209 int channel; in tegra30_ahub_allocate_tx_fifo() local
213 channel = find_first_zero_bit(ahub->tx_usage, in tegra30_ahub_allocate_tx_fifo()
218 __set_bit(channel, ahub->tx_usage); in tegra30_ahub_allocate_tx_fifo()
[all …]
/sound/core/seq/
A Dseq_ump_convert.c85 ev->data.note.channel = val->note.channel; in ump_midi1_to_note_ev()
94 ev->data.control.channel = val->caf.channel; in ump_midi1_to_ctrl_ev()
102 ev->data.control.channel = val->pb.channel; in ump_midi1_to_pitchbend_ev()
111 ev->data.control.channel = val->cc.channel; in ump_midi1_to_cc_ev()
206 ev->data.note.channel = val->note.channel; in ump_midi2_to_note_ev()
222 ev->data.control.channel = val->pb.channel; in ump_midi2_to_pitchbend_ev()
232 ev->data.control.channel = val->cc.channel; in ump_midi2_to_cc_ev()
828 data->rpn.channel = channel; in fill_rpn()
891 data->cc.channel = channel; in cc_ev_to_ump_midi2()
919 data->pg.channel = channel; in pgm_ev_to_ump_midi2()
[all …]
/sound/sh/
A Daica.c265 dreamcastcard->channel->flags |= 0x01; in run_spu_dma()
328 struct aica_channel *channel; in snd_aicapcm_pcm_open() local
334 if (!channel) in snd_aicapcm_pcm_open()
337 channel->sfmt = SM_8BIT; in snd_aicapcm_pcm_open()
338 channel->cmd = AICA_CMD_START; in snd_aicapcm_pcm_open()
340 channel->pan = 0x80; in snd_aicapcm_pcm_open()
341 channel->pos = 0; in snd_aicapcm_pcm_open()
343 dreamcastcard->channel = channel; in snd_aicapcm_pcm_open()
367 kfree(dreamcastcard->channel); in snd_aicapcm_pcm_close()
474 if (unlikely(!dreamcastcard->channel)) in aica_pcmvolume_get()
[all …]
/sound/pci/oxygen/
A Doxygen_pcm.c121 unsigned int channel) in oxygen_open() argument
133 switch (channel) { in oxygen_open()
172 chip->streams[channel] = substream; in oxygen_open()
175 chip->pcm_active |= 1 << channel; in oxygen_open()
176 if (channel == PCM_SPDIF) { in oxygen_open()
225 chip->pcm_active &= ~(1 << channel); in oxygen_close()
226 if (channel == PCM_SPDIF) { in oxygen_close()
233 if (channel == PCM_SPDIF || channel == PCM_MULTICH) in oxygen_close()
237 chip->streams[channel] = NULL; in oxygen_close()
310 if (channel == PCM_MULTICH) { in oxygen_hw_params()
[all …]
/sound/pci/ca0106/
A Dca0106_main.c568 channel->emu = chip; in snd_ca0106_pcm_open_playback_channel()
571 channel->use = 1; in snd_ca0106_pcm_open_playback_channel()
577 channel->epcm = epcm; in snd_ca0106_pcm_open_playback_channel()
663 channel->emu = chip; in snd_ca0106_pcm_open_capture_channel()
666 channel->use = 1; in snd_ca0106_pcm_open_capture_channel()
672 channel->epcm = epcm; in snd_ca0106_pcm_open_capture_channel()
805 snd_ca0106_ptr_write(emu, PLAYBACK_LIST_ADDR, channel, emu->buffer->addr+(8*16*channel)); in snd_ca0106_pcm_prepare_playback()
925 int channel; in snd_ca0106_pcm_trigger_playback() local
950 channel = epcm->channel_id; in snd_ca0106_pcm_trigger_playback()
953 basic |= (0x1 << channel); in snd_ca0106_pcm_trigger_playback()
[all …]
/sound/mips/
A Dsgio2audio.c88 struct snd_sgio2audio_chan channel[3]; member
362 dst_pos = chip->channel[ch].pos; in snd_sgio2audio_dma_pull_frag()
384 chip->channel[ch].pos = dst_pos; in snd_sgio2audio_dma_pull_frag()
410 src_pos = chip->channel[ch].pos; in snd_sgio2audio_dma_push_frag()
434 chip->channel[ch].pos = src_pos; in snd_sgio2audio_dma_push_frag()
592 chip->channel[ch].pos = 0; in snd_sgio2audio_pcm_prepare()
593 chip->channel[ch].size = 0; in snd_sgio2audio_pcm_prepare()
594 chip->channel[ch].substream = substream; in snd_sgio2audio_pcm_prepare()
645 chip->channel[chan->idx].pos); in snd_sgio2audio_pcm_pointer()
821 spin_lock_init(&chip->channel[i].lock); in snd_sgio2audio_create()
[all …]
/sound/soc/atmel/
A Dmchp-spdifrx.c33 #define SPDIFRX_CHSR(channel, reg) \ argument
36 #define SPDIFRX_CHUD(channel, reg) \ argument
311 int channel) in mchp_spdifrx_channel_status_read() argument
314 u8 *ch_stat = &ctrl->ch_stat[channel].data[0]; in mchp_spdifrx_channel_status_read()
328 int channel) in mchp_spdifrx_channel_user_data_read() argument
331 u8 *user_data = &ctrl->user_data[channel].data[0]; in mchp_spdifrx_channel_user_data_read()
528 int channel, in mchp_spdifrx_cs_get() argument
564 channel); in mchp_spdifrx_cs_get()
573 mchp_spdifrx_channel_status_read(dev, channel); in mchp_spdifrx_cs_get()
614 int channel, in mchp_spdifrx_subcode_ch_get() argument
[all …]
/sound/pci/au88x0/
A Dau88x0_core.c91 unsigned char channel)
109 int channel, int *vol)
112 if (!(mchannels[mix] & (1 << channel)))
250 rampchs[mix] |= (1 << channel); in vortex_mix_disableinput()
1655 vortex_adb_en_sr(vortex, channel); in vortex_adb_addroutes()
1690 vortex_adb_dis_sr(vortex, channel); in vortex_adb_delroutes()
1727 channel); in vortex_route()
1737 channel); in vortex_route()
1760 channel);
1770 channel);
[all …]
/sound/soc/ti/
A Domap-mcbsp-st.c150 static int omap_mcbsp_st_set_chgain(struct omap_mcbsp *mcbsp, int channel, in omap_mcbsp_st_set_chgain() argument
160 if (channel == 0) in omap_mcbsp_st_set_chgain()
162 else if (channel == 1) in omap_mcbsp_st_set_chgain()
174 static int omap_mcbsp_st_get_chgain(struct omap_mcbsp *mcbsp, int channel, in omap_mcbsp_st_get_chgain() argument
184 if (channel == 0) in omap_mcbsp_st_get_chgain()
186 else if (channel == 1) in omap_mcbsp_st_get_chgain()
385 #define OMAP_MCBSP_ST_CHANNEL_VOLUME(channel) \ argument
387 omap_mcbsp_set_st_ch##channel##_volume(struct snd_kcontrol *kc, \
402 return omap_mcbsp_st_set_chgain(mcbsp, channel, val); \
406 omap_mcbsp_get_st_ch##channel##_volume(struct snd_kcontrol *kc, \
[all …]
/sound/pci/ali5451/
A Dali5451.c459 unsigned int channel) in snd_ali_enable_special_channel() argument
469 unsigned int channel) in snd_ali_disable_special_channel() argument
499 unsigned int channel) in snd_ali_disable_voice_irq() argument
506 mask = 1 << (channel & 0x1f); in snd_ali_disable_voice_irq()
586 if (channel < 0 || channel >= ALI_CHANNELS) in snd_ali_free_channel_pcm()
592 channel); in snd_ali_free_channel_pcm()
881 int channel; in snd_ali_card_interrupt() local
896 for (channel = 0; channel < ALI_CHANNELS; channel++) in snd_ali_card_interrupt()
916 idx = channel > 0 ? snd_ali_alloc_pcm_channel(codec, channel) : in snd_ali_alloc_voice()
1462 channel); in snd_ali_open()
[all …]
/sound/core/
A Dump_convert.c106 unsigned char channel = midi2->note.channel; in cvt_ump_midi2_to_legacy() local
109 buf[0] = (status << 4) | channel; in cvt_ump_midi2_to_legacy()
131 buf[0] = channel | (UMP_MSG_STATUS_CC << 4); in cvt_ump_midi2_to_legacy()
134 buf[3] = channel | (UMP_MSG_STATUS_CC << 4); in cvt_ump_midi2_to_legacy()
137 buf[6] = channel | (UMP_MSG_STATUS_PROGRAM << 4); in cvt_ump_midi2_to_legacy()
150 buf[0] = channel | (UMP_MSG_STATUS_CC << 4); in cvt_ump_midi2_to_legacy()
337 unsigned char status, channel; in cvt_legacy_cmd_to_ump() local
354 channel = *buf & 0x0f; in cvt_legacy_cmd_to_ump()
355 cc = &cvt->bank[channel]; in cvt_legacy_cmd_to_ump()
363 group, status, channel); in cvt_legacy_cmd_to_ump()
/sound/soc/codecs/
A Dmax98095.c626 int event, u8 channel) in max98095_line_pga() argument
632 if (WARN_ON(!(channel == 1 || channel == 2))) in max98095_line_pga()
639 *state |= channel; in max98095_line_pga()
644 *state &= ~channel; in max98095_line_pga()
1498 if (WARN_ON(channel > 1)) in max98095_put_eq_enum()
1507 cdata = &max98095->dai[channel]; in max98095_put_eq_enum()
1557 cdata = &max98095->dai[channel]; in max98095_get_eq_enum()
1649 if (channel < 0) in max98095_put_bq_enum()
1650 return channel; in max98095_put_bq_enum()
1705 if (channel < 0) in max98095_get_bq_enum()
[all …]
/sound/hda/common/
A Dhda_local.h34 #define HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, channel, xindex, dir, flags) \ argument
44 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, dir) | flags }
49 #define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \ argument
50 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, channel, xindex, direction, 0)
59 #define HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument
65 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }
70 #define HDA_CODEC_MUTE_MONO(xname, nid, channel, xindex, direction) \ argument
71 HDA_CODEC_MUTE_MONO_IDX(xname, 0, nid, channel, xindex, direction)
83 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }
90 #define HDA_CODEC_MUTE_BEEP_MONO(xname, nid, channel, xindex, direction) \ argument
[all …]
/sound/drivers/opl3/
A Dopl3_oss.c202 if (sbi.channel < 0 || sbi.channel >= SBFM_MAXINSTR) { in snd_opl3_load_patch_seq_oss()
204 sbi.channel); in snd_opl3_load_patch_seq_oss()
209 sprintf(name, "Chan%d", sbi.channel); in snd_opl3_load_patch_seq_oss()
211 err = snd_opl3_load_patch(opl3, sbi.channel, 127, type, name, NULL, in snd_opl3_load_patch_seq_oss()

Completed in 92 milliseconds

1234567