Home
last modified time | relevance | path

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

12345

/sound/xen/
Dxen_snd_front_evtchnl.c23 struct xen_snd_front_evtchnl *channel = dev_id; in evtchnl_interrupt_req() local
24 struct xen_snd_front_info *front_info = channel->front_info; in evtchnl_interrupt_req()
28 if (unlikely(channel->state != EVTCHNL_STATE_CONNECTED)) in evtchnl_interrupt_req()
31 mutex_lock(&channel->ring_io_lock); in evtchnl_interrupt_req()
34 rp = channel->u.req.ring.sring->rsp_prod; in evtchnl_interrupt_req()
43 for (i = channel->u.req.ring.rsp_cons; i != rp; i++) { in evtchnl_interrupt_req()
44 resp = RING_GET_RESPONSE(&channel->u.req.ring, i); in evtchnl_interrupt_req()
45 if (resp->id != channel->evt_id) in evtchnl_interrupt_req()
57 channel->u.req.resp_status = resp->status; in evtchnl_interrupt_req()
58 complete(&channel->u.req.completion); in evtchnl_interrupt_req()
[all …]
/sound/core/oss/
Drate.c55 unsigned int channel; in rate_init() local
58 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_init()
59 data->channels[channel].last_S1 = 0; in rate_init()
60 data->channels[channel].last_S2 = 0; in rate_init()
73 unsigned int channel; in resample_expand() local
79 for (channel = 0; channel < plugin->src_format.channels; channel++) { in resample_expand()
83 if (!src_channels[channel].enabled) { in resample_expand()
84 if (dst_channels[channel].wanted) in resample_expand()
85 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_expand()
86 dst_channels[channel].enabled = 0; in resample_expand()
[all …]
Dmulaw.c174 int channel; in mulaw_decode() local
176 for (channel = 0; channel < nchannels; ++channel) { in mulaw_decode()
181 if (!src_channels[channel].enabled) { in mulaw_decode()
182 if (dst_channels[channel].wanted) in mulaw_decode()
183 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_decode()
184 dst_channels[channel].enabled = 0; in mulaw_decode()
187 dst_channels[channel].enabled = 1; 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()
190 src_step = src_channels[channel].area.step / 8; in mulaw_decode()
[all …]
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()
75 int channel, channels = plugin->dst_format.channels; in io_capture_transfer() local
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()
[all …]
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()
70 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); 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()
77 src_step = src_channels[channel].area.step / 8; in convert()
[all …]
Dcopy.c32 unsigned int channel; in copy_transfer() local
40 for (channel = 0; channel < nchannels; channel++) { in copy_transfer()
Dpcm_plugin.c54 unsigned int channel; in snd_pcm_plugin_alloc() local
79 for (channel = 0; channel < format->channels; channel++, c++) { in snd_pcm_plugin_alloc()
84 c->area.first = channel * width; in snd_pcm_plugin_alloc()
91 for (channel = 0; channel < format->channels; channel++, c++) { in snd_pcm_plugin_alloc()
95 c->area.addr = plugin->buf + (channel * size); in snd_pcm_plugin_alloc()
557 int width, nchannels, channel; in snd_pcm_plug_client_channels_buf() local
577 for (channel = 0; channel < nchannels; channel++, v++) { in snd_pcm_plug_client_channels_buf()
582 v->area.first = channel * width; in snd_pcm_plug_client_channels_buf()
/sound/soc/sprd/
Dsprd-mcdt.c128 static void sprd_mcdt_dac_set_watermark(struct sprd_mcdt_dev *mcdt, u8 channel, in sprd_mcdt_dac_set_watermark() argument
131 u32 reg = MCDT_DAC0_WTMK + channel * 4; in sprd_mcdt_dac_set_watermark()
140 static void sprd_mcdt_adc_set_watermark(struct sprd_mcdt_dev *mcdt, u8 channel, in sprd_mcdt_adc_set_watermark() argument
143 u32 reg = MCDT_ADC0_WTMK + channel * 4; in sprd_mcdt_adc_set_watermark()
152 static void sprd_mcdt_dac_dma_enable(struct sprd_mcdt_dev *mcdt, u8 channel, in sprd_mcdt_dac_dma_enable() argument
155 u32 shift = MCDT_DAC_DMA_SHIFT + channel; in sprd_mcdt_dac_dma_enable()
163 static void sprd_mcdt_adc_dma_enable(struct sprd_mcdt_dev *mcdt, u8 channel, in sprd_mcdt_adc_dma_enable() argument
167 sprd_mcdt_update(mcdt, MCDT_DMA_EN, BIT(channel), BIT(channel)); in sprd_mcdt_adc_dma_enable()
169 sprd_mcdt_update(mcdt, MCDT_DMA_EN, 0, BIT(channel)); in sprd_mcdt_adc_dma_enable()
172 static void sprd_mcdt_ap_int_enable(struct sprd_mcdt_dev *mcdt, u8 channel, in sprd_mcdt_ap_int_enable() argument
[all …]
/sound/firewire/
Diso-resources.c109 int bandwidth, channel, err; in fw_iso_resources_allocate() local
130 &channel, &bandwidth, true); in fw_iso_resources_allocate()
131 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
183 fw_iso_resource_manage(card, r->generation, 1uLL << r->channel, in fw_iso_resources_update()
184 &channel, &bandwidth, true); in fw_iso_resources_update()
[all …]
Damdtp-stream-trace.h22 __field(int, channel)
36 __entry->channel = s->context->channel;
61 __entry->channel,
/sound/pci/emu10k1/
Dp16v.c163 struct snd_emu10k1_voice *channel = &(emu->p16v_voices[channel_id]); in snd_p16v_pcm_open_playback_channel() local
184 channel->emu = emu; in snd_p16v_pcm_open_playback_channel()
185 channel->number = channel_id; in snd_p16v_pcm_open_playback_channel()
187 channel->use=1; in snd_p16v_pcm_open_playback_channel()
191 channel_id, channel, channel->use); in snd_p16v_pcm_open_playback_channel()
193 channel_id, chip, channel); in snd_p16v_pcm_open_playback_channel()
196 channel->epcm = epcm; in snd_p16v_pcm_open_playback_channel()
211 struct snd_emu10k1_voice *channel = &(emu->p16v_capture_voice); in snd_p16v_pcm_open_capture_channel() local
232 channel->emu = emu; in snd_p16v_pcm_open_capture_channel()
233 channel->number = channel_id; in snd_p16v_pcm_open_capture_channel()
[all …]
Demumixer.c393 unsigned int channel; in snd_emu1010_output_source_get() local
395 channel = (kcontrol->private_value) & 0xff; in snd_emu1010_output_source_get()
397 if (channel >= 24 || in snd_emu1010_output_source_get()
399 channel >= 18)) in snd_emu1010_output_source_get()
401 ucontrol->value.enumerated.item[0] = emu->emu1010.output_source[channel]; in snd_emu1010_output_source_get()
410 unsigned int channel; in snd_emu1010_output_source_put() local
417 channel = (kcontrol->private_value) & 0xff; in snd_emu1010_output_source_put()
419 if (channel >= 24 || in snd_emu1010_output_source_put()
421 channel >= 18)) in snd_emu1010_output_source_put()
423 if (emu->emu1010.output_source[channel] == val) in snd_emu1010_output_source_put()
[all …]
/sound/soc/tegra/
Dtegra30_ahub.c91 int channel; in tegra30_ahub_allocate_rx_fifo() local
95 channel = find_first_zero_bit(ahub->rx_usage, in tegra30_ahub_allocate_rx_fifo()
97 if (channel >= TEGRA30_AHUB_CHANNEL_CTRL_COUNT) in tegra30_ahub_allocate_rx_fifo()
100 __set_bit(channel, ahub->rx_usage); in tegra30_ahub_allocate_rx_fifo()
102 *rxcif = TEGRA30_AHUB_RXCIF_APBIF_RX0 + channel; in tegra30_ahub_allocate_rx_fifo()
103 snprintf(dmachan, dmachan_len, "rx%d", channel); in tegra30_ahub_allocate_rx_fifo()
105 (channel * TEGRA30_AHUB_CHANNEL_RXFIFO_STRIDE); in tegra30_ahub_allocate_rx_fifo()
110 (channel * TEGRA30_AHUB_CHANNEL_CTRL_STRIDE); in tegra30_ahub_allocate_rx_fifo()
132 (channel * TEGRA30_AHUB_CIF_RX_CTRL_STRIDE); in tegra30_ahub_allocate_rx_fifo()
143 int channel = rxcif - TEGRA30_AHUB_RXCIF_APBIF_RX0; in tegra30_ahub_enable_rx_fifo() local
[all …]
/sound/sh/
Daica.c251 dreamcastcard->channel, sizeof(struct aica_channel)); in startup_aica()
267 dreamcastcard->channel->flags |= 0x01; in run_spu_dma()
329 struct aica_channel *channel; in snd_aicapcm_pcm_open() local
334 channel = kmalloc(sizeof(struct aica_channel), GFP_KERNEL); in snd_aicapcm_pcm_open()
335 if (!channel) in snd_aicapcm_pcm_open()
338 channel->sfmt = SM_8BIT; in snd_aicapcm_pcm_open()
339 channel->cmd = AICA_CMD_START; in snd_aicapcm_pcm_open()
340 channel->vol = dreamcastcard->master_volume; in snd_aicapcm_pcm_open()
341 channel->pan = 0x80; in snd_aicapcm_pcm_open()
342 channel->pos = 0; in snd_aicapcm_pcm_open()
[all …]
/sound/pci/oxygen/
Doxygen_pcm.c121 unsigned int channel) in oxygen_open() argument
127 runtime->private_data = (void *)(uintptr_t)channel; in oxygen_open()
128 if (channel == PCM_B && chip->has_ac97_1 && in oxygen_open()
132 runtime->hw = *oxygen_hardware[channel]; in oxygen_open()
133 switch (channel) { in oxygen_open()
150 chip->model.pcm_hardware_filter(channel, &runtime->hw); 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()
222 unsigned int channel = oxygen_substream_channel(substream); in oxygen_close() local
[all …]
/sound/pci/ca0106/
Dca0106_main.c550 struct snd_ca0106_channel *channel = &(chip->playback_channels[channel_id]); in snd_ca0106_pcm_open_playback_channel() local
568 channel->emu = chip; in snd_ca0106_pcm_open_playback_channel()
569 channel->number = channel_id; 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()
643 struct snd_ca0106_channel *channel = &(chip->capture_channels[channel_id]); in snd_ca0106_pcm_open_capture_channel() local
661 channel->emu = chip; in snd_ca0106_pcm_open_capture_channel()
662 channel->number = channel_id; in snd_ca0106_pcm_open_capture_channel()
664 channel->use = 1; in snd_ca0106_pcm_open_capture_channel()
670 channel->epcm = epcm; in snd_ca0106_pcm_open_capture_channel()
[all …]
/sound/mips/
Dsgio2audio.c88 struct snd_sgio2audio_chan channel[3]; member
355 struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime; in snd_sgio2audio_dma_pull_frag()
357 spin_lock_irqsave(&chip->channel[ch].lock, flags); in snd_sgio2audio_dma_pull_frag()
362 dst_pos = chip->channel[ch].pos; in snd_sgio2audio_dma_pull_frag()
366 chip->channel[ch].size += (count >> 3); /* in frames */ in snd_sgio2audio_dma_pull_frag()
367 ret = chip->channel[ch].size >= runtime->period_size; in snd_sgio2audio_dma_pull_frag()
368 chip->channel[ch].size %= runtime->period_size; in snd_sgio2audio_dma_pull_frag()
384 chip->channel[ch].pos = dst_pos; in snd_sgio2audio_dma_pull_frag()
386 spin_unlock_irqrestore(&chip->channel[ch].lock, flags); in snd_sgio2audio_dma_pull_frag()
403 struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime; in snd_sgio2audio_dma_push_frag()
[all …]
/sound/pci/au88x0/
Dau88x0_core.c77 static void vortex_mixer_en_sr(vortex_t * vortex, int channel) in vortex_mixer_en_sr() argument
80 hwread(vortex->mmio, VORTEX_MIXER_SR) | (0x1 << channel)); in vortex_mixer_en_sr()
82 static void vortex_mixer_dis_sr(vortex_t * vortex, int channel) in vortex_mixer_dis_sr() argument
85 hwread(vortex->mmio, VORTEX_MIXER_SR) & ~(0x1 << channel)); in vortex_mixer_dis_sr()
91 unsigned char channel)
93 hwwrite(vortex->mmio, VORTEX_MIX_INVOL_A + ((mix << 5) + channel),
95 hwwrite(vortex->mmio, VORTEX_MIX_INVOL_B + ((mix << 5) + channel),
109 int channel, int *vol)
112 if (!(mchannels[mix] & (1 << channel)))
115 VORTEX_MIX_INVOL_A + (((mix << 5) + channel) << 2));
[all …]
/sound/pci/ali5451/
Dali5451.c462 unsigned int channel) in snd_ali_enable_special_channel() argument
467 dwVal |= 1 << (channel & 0x0000001f); in snd_ali_enable_special_channel()
472 unsigned int channel) in snd_ali_disable_special_channel() argument
477 dwVal &= ~(1 << (channel & 0x0000001f)); in snd_ali_disable_special_channel()
502 unsigned int channel) in snd_ali_disable_voice_irq() argument
507 dev_dbg(codec->card->dev, "disable_voice_irq channel=%d\n", channel); in snd_ali_disable_voice_irq()
509 mask = 1 << (channel & 0x1f); in snd_ali_disable_voice_irq()
515 static int snd_ali_alloc_pcm_channel(struct snd_ali *codec, int channel) in snd_ali_alloc_pcm_channel() argument
517 unsigned int idx = channel & 0x1f; in snd_ali_alloc_pcm_channel()
583 static void snd_ali_free_channel_pcm(struct snd_ali *codec, int channel) in snd_ali_free_channel_pcm() argument
[all …]
/sound/soc/ti/
Domap-mcbsp-st.c154 static int omap_mcbsp_st_set_chgain(struct omap_mcbsp *mcbsp, int channel, in omap_mcbsp_st_set_chgain() argument
164 if (channel == 0) in omap_mcbsp_st_set_chgain()
166 else if (channel == 1) in omap_mcbsp_st_set_chgain()
178 static int omap_mcbsp_st_get_chgain(struct omap_mcbsp *mcbsp, int channel, in omap_mcbsp_st_get_chgain() argument
188 if (channel == 0) in omap_mcbsp_st_get_chgain()
190 else if (channel == 1) in omap_mcbsp_st_get_chgain()
399 #define OMAP_MCBSP_ST_CHANNEL_VOLUME(channel) \ argument
401 omap_mcbsp_set_st_ch##channel##_volume(struct snd_kcontrol *kc, \
416 return omap_mcbsp_st_set_chgain(mcbsp, channel, val); \
420 omap_mcbsp_get_st_ch##channel##_volume(struct snd_kcontrol *kc, \
[all …]
/sound/soc/codecs/
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()
1497 int channel = max98095_get_eq_channel(kcontrol->id.name); in max98095_put_eq_enum() local
1504 if (WARN_ON(channel > 1)) in max98095_put_eq_enum()
1513 cdata = &max98095->dai[channel]; in max98095_put_eq_enum()
1534 regmask = (channel == 0) ? M98095_EQ1EN : M98095_EQ2EN; in max98095_put_eq_enum()
1542 m98095_eq_band(component, channel, 0, coef_set->band1); in max98095_put_eq_enum()
1543 m98095_eq_band(component, channel, 1, coef_set->band2); in max98095_put_eq_enum()
[all …]
/sound/drivers/opl3/
Dopl3_oss.c200 if (sbi.channel < 0 || sbi.channel >= SBFM_MAXINSTR) { in snd_opl3_load_patch_seq_oss()
202 sbi.channel); in snd_opl3_load_patch_seq_oss()
207 sprintf(name, "Chan%d", sbi.channel); in snd_opl3_load_patch_seq_oss()
209 err = snd_opl3_load_patch(opl3, sbi.channel, 127, type, name, NULL, in snd_opl3_load_patch_seq_oss()
/sound/pci/hda/
Dhda_local.h32 #define HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, channel, xindex, dir, flags) \ argument
42 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, dir) | flags }
47 #define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \ argument
48 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, channel, xindex, direction, 0)
57 #define HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument
63 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }
68 #define HDA_CODEC_MUTE_MONO(xname, nid, channel, xindex, direction) \ argument
69 HDA_CODEC_MUTE_MONO_IDX(xname, 0, nid, channel, xindex, direction)
75 #define HDA_CODEC_MUTE_BEEP_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument
81 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }
[all …]
/sound/soc/intel/haswell/
Dsst-haswell-ipc.c829 u32 stage_id, u32 channel, u32 *volume) in sst_hsw_stream_get_volume() argument
831 if (channel > 1) in sst_hsw_stream_get_volume()
835 stream->reply.volume_register_address[channel], in sst_hsw_stream_get_volume()
843 struct sst_hsw_stream *stream, u32 stage_id, u32 channel, u32 volume) in sst_hsw_stream_set_volume() argument
851 if (channel >= 2 && channel != SST_HSW_CHANNELS_ALL) in sst_hsw_stream_set_volume()
864 if (channel == SST_HSW_CHANNELS_ALL) { in sst_hsw_stream_set_volume()
869 req->channel = 1; in sst_hsw_stream_set_volume()
871 req->channel = 0; in sst_hsw_stream_set_volume()
873 req->channel = SST_HSW_CHANNELS_ALL; in sst_hsw_stream_set_volume()
876 if (hsw->mute[channel]) { in sst_hsw_stream_set_volume()
[all …]
/sound/pci/
Des1968.c692 static void __apu_set_register(struct es1968 *chip, u16 channel, u8 reg, u16 data) in __apu_set_register() argument
694 if (snd_BUG_ON(channel >= NR_APUS)) in __apu_set_register()
697 chip->apu_map[channel][reg] = data; in __apu_set_register()
699 reg |= (channel << 4); in __apu_set_register()
704 static void apu_set_register(struct es1968 *chip, u16 channel, u8 reg, u16 data) in apu_set_register() argument
708 __apu_set_register(chip, channel, reg, data); in apu_set_register()
712 static u16 __apu_get_register(struct es1968 *chip, u16 channel, u8 reg) in __apu_get_register() argument
714 if (snd_BUG_ON(channel >= NR_APUS)) in __apu_get_register()
716 reg |= (channel << 4); in __apu_get_register()
721 static u16 apu_get_register(struct es1968 *chip, u16 channel, u8 reg) in apu_get_register() argument
[all …]

12345