/sound/core/oss/ |
D | mulaw.c | 174 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 …]
|
D | rate.c | 55 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 …]
|
D | io.c | 49 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 …]
|
D | linear.c | 61 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 …]
|
D | copy.c | 32 unsigned int channel; in copy_transfer() local 40 for (channel = 0; channel < nchannels; channel++) { in copy_transfer()
|
D | pcm_plugin.c | 54 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() 555 int width, nchannels, channel; in snd_pcm_plug_client_channels_buf() local 575 for (channel = 0; channel < nchannels; channel++, v++) { in snd_pcm_plug_client_channels_buf() 580 v->area.first = channel * width; in snd_pcm_plug_client_channels_buf()
|
/sound/firewire/ |
D | iso-resources.c | 109 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 …]
|
D | amdtp-stream-trace.h | 22 __field(int, channel) 35 __entry->channel = s->context->channel; 51 __entry->channel, 66 __field(int, channel) 79 __entry->channel = s->context->channel; 95 __entry->channel,
|
/sound/oss/ |
D | midi_synth.c | 283 midi_synth_kill_note(int dev, int channel, int note, int velocity) in midi_synth_kill_note() argument 290 if (channel < 0 || channel > 15) in midi_synth_kill_note() 302 if (chn == channel && ((msg == 0x90 && velocity == 64) || msg == 0x80)) in midi_synth_kill_note() 324 if (!prefix_cmd(orig_dev, 0x90 | (channel & 0x0f))) in midi_synth_kill_note() 326 midi_outc(orig_dev, 0x90 | (channel & 0x0f)); /* in midi_synth_kill_note() 335 if (!prefix_cmd(orig_dev, 0x80 | (channel & 0x0f))) in midi_synth_kill_note() 337 midi_outc(orig_dev, 0x80 | (channel & 0x0f)); /* in midi_synth_kill_note() 350 midi_synth_set_instr(int dev, int channel, int instr_no) in midi_synth_set_instr() argument 356 if (channel < 0 || channel > 15) in midi_synth_set_instr() 361 if (!prefix_cmd(orig_dev, 0xc0 | (channel & 0x0f))) in midi_synth_set_instr() [all …]
|
D | midi_synth.h | 3 int midi_synth_kill_note (int dev, int channel, int note, int velocity); 4 int midi_synth_set_instr (int dev, int channel, int instr_no); 5 int midi_synth_start_note (int dev, int channel, int note, int volume); 12 void midi_synth_panning (int dev, int channel, int pressure); 13 void midi_synth_aftertouch (int dev, int channel, int pressure); 14 void midi_synth_controller (int dev, int channel, int ctrl_num, int value);
|
/sound/pci/emu10k1/ |
D | p16v.c | 177 struct snd_emu10k1_voice *channel = &(emu->p16v_voices[channel_id]); in snd_p16v_pcm_open_playback_channel() local 198 channel->emu = emu; in snd_p16v_pcm_open_playback_channel() 199 channel->number = channel_id; in snd_p16v_pcm_open_playback_channel() 201 channel->use=1; in snd_p16v_pcm_open_playback_channel() 205 channel_id, channel, channel->use); in snd_p16v_pcm_open_playback_channel() 207 channel_id, chip, channel); in snd_p16v_pcm_open_playback_channel() 210 channel->epcm = epcm; in snd_p16v_pcm_open_playback_channel() 225 struct snd_emu10k1_voice *channel = &(emu->p16v_capture_voice); in snd_p16v_pcm_open_capture_channel() local 246 channel->emu = emu; in snd_p16v_pcm_open_capture_channel() 247 channel->number = channel_id; in snd_p16v_pcm_open_capture_channel() [all …]
|
D | emumixer.c | 407 unsigned int channel; in snd_emu1010_output_source_get() local 409 channel = (kcontrol->private_value) & 0xff; in snd_emu1010_output_source_get() 411 if (channel >= 24 || in snd_emu1010_output_source_get() 413 channel >= 18)) in snd_emu1010_output_source_get() 415 ucontrol->value.enumerated.item[0] = emu->emu1010.output_source[channel]; in snd_emu1010_output_source_get() 424 unsigned int channel; in snd_emu1010_output_source_put() local 431 channel = (kcontrol->private_value) & 0xff; in snd_emu1010_output_source_put() 433 if (channel >= 24 || in snd_emu1010_output_source_put() 435 channel >= 18)) in snd_emu1010_output_source_put() 437 if (emu->emu1010.output_source[channel] == val) in snd_emu1010_output_source_put() [all …]
|
/sound/soc/tegra/ |
D | tegra30_ahub.c | 101 int channel; in tegra30_ahub_allocate_rx_fifo() local 105 channel = find_first_zero_bit(ahub->rx_usage, in tegra30_ahub_allocate_rx_fifo() 107 if (channel >= TEGRA30_AHUB_CHANNEL_CTRL_COUNT) in tegra30_ahub_allocate_rx_fifo() 110 __set_bit(channel, ahub->rx_usage); in tegra30_ahub_allocate_rx_fifo() 112 *rxcif = TEGRA30_AHUB_RXCIF_APBIF_RX0 + channel; in tegra30_ahub_allocate_rx_fifo() 113 snprintf(dmachan, dmachan_len, "rx%d", channel); in tegra30_ahub_allocate_rx_fifo() 115 (channel * TEGRA30_AHUB_CHANNEL_RXFIFO_STRIDE); in tegra30_ahub_allocate_rx_fifo() 120 (channel * TEGRA30_AHUB_CHANNEL_CTRL_STRIDE); in tegra30_ahub_allocate_rx_fifo() 142 (channel * TEGRA30_AHUB_CIF_RX_CTRL_STRIDE); in tegra30_ahub_allocate_rx_fifo() 153 int channel = rxcif - TEGRA30_AHUB_RXCIF_APBIF_RX0; in tegra30_ahub_enable_rx_fifo() local [all …]
|
/sound/sh/ |
D | aica.c | 267 dreamcastcard->channel, sizeof(struct aica_channel)); in startup_aica() 283 dreamcastcard->channel->flags |= 0x01; in run_spu_dma() 352 struct aica_channel *channel; in snd_aicapcm_pcm_open() local 357 channel = kmalloc(sizeof(struct aica_channel), GFP_KERNEL); in snd_aicapcm_pcm_open() 358 if (!channel) in snd_aicapcm_pcm_open() 361 channel->sfmt = SM_8BIT; in snd_aicapcm_pcm_open() 362 channel->cmd = AICA_CMD_START; in snd_aicapcm_pcm_open() 363 channel->vol = dreamcastcard->master_volume; in snd_aicapcm_pcm_open() 364 channel->pan = 0x80; in snd_aicapcm_pcm_open() 365 channel->pos = 0; in snd_aicapcm_pcm_open() [all …]
|
/sound/pci/oxygen/ |
D | oxygen_pcm.c | 133 unsigned int channel) in oxygen_open() argument 139 runtime->private_data = (void *)(uintptr_t)channel; in oxygen_open() 140 if (channel == PCM_B && chip->has_ac97_1 && in oxygen_open() 144 runtime->hw = *oxygen_hardware[channel]; in oxygen_open() 145 switch (channel) { in oxygen_open() 162 chip->model.pcm_hardware_filter(channel, &runtime->hw); in oxygen_open() 184 chip->streams[channel] = substream; in oxygen_open() 187 chip->pcm_active |= 1 << channel; in oxygen_open() 188 if (channel == PCM_SPDIF) { in oxygen_open() 234 unsigned int channel = oxygen_substream_channel(substream); in oxygen_close() local [all …]
|
/sound/pci/ca0106/ |
D | ca0106_main.c | 564 struct snd_ca0106_channel *channel = &(chip->playback_channels[channel_id]); in snd_ca0106_pcm_open_playback_channel() local 582 channel->emu = chip; in snd_ca0106_pcm_open_playback_channel() 583 channel->number = channel_id; in snd_ca0106_pcm_open_playback_channel() 585 channel->use = 1; in snd_ca0106_pcm_open_playback_channel() 591 channel->epcm = epcm; in snd_ca0106_pcm_open_playback_channel() 657 struct snd_ca0106_channel *channel = &(chip->capture_channels[channel_id]); in snd_ca0106_pcm_open_capture_channel() local 677 channel->emu = chip; in snd_ca0106_pcm_open_capture_channel() 678 channel->number = channel_id; in snd_ca0106_pcm_open_capture_channel() 680 channel->use = 1; in snd_ca0106_pcm_open_capture_channel() 686 channel->epcm = epcm; in snd_ca0106_pcm_open_capture_channel() [all …]
|
/sound/mips/ |
D | sgio2audio.c | 102 struct snd_sgio2audio_chan channel[3]; member 369 struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime; in snd_sgio2audio_dma_pull_frag() 371 spin_lock_irqsave(&chip->channel[ch].lock, flags); in snd_sgio2audio_dma_pull_frag() 376 dst_pos = chip->channel[ch].pos; in snd_sgio2audio_dma_pull_frag() 380 chip->channel[ch].size += (count >> 3); /* in frames */ in snd_sgio2audio_dma_pull_frag() 381 ret = chip->channel[ch].size >= runtime->period_size; in snd_sgio2audio_dma_pull_frag() 382 chip->channel[ch].size %= runtime->period_size; in snd_sgio2audio_dma_pull_frag() 398 chip->channel[ch].pos = dst_pos; in snd_sgio2audio_dma_pull_frag() 400 spin_unlock_irqrestore(&chip->channel[ch].lock, flags); in snd_sgio2audio_dma_pull_frag() 417 struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime; in snd_sgio2audio_dma_push_frag() [all …]
|
/sound/pci/au88x0/ |
D | au88x0_core.c | 89 static void vortex_mixer_en_sr(vortex_t * vortex, int channel) in vortex_mixer_en_sr() argument 92 hwread(vortex->mmio, VORTEX_MIXER_SR) | (0x1 << channel)); in vortex_mixer_en_sr() 94 static void vortex_mixer_dis_sr(vortex_t * vortex, int channel) in vortex_mixer_dis_sr() argument 97 hwread(vortex->mmio, VORTEX_MIXER_SR) & ~(0x1 << channel)); in vortex_mixer_dis_sr() 103 unsigned char channel) 105 hwwrite(vortex->mmio, VORTEX_MIX_INVOL_A + ((mix << 5) + channel), 107 hwwrite(vortex->mmio, VORTEX_MIX_INVOL_B + ((mix << 5) + channel), 121 int channel, int *vol) 124 if (!(mchannels[mix] & (1 << channel))) 127 VORTEX_MIX_INVOL_A + (((mix << 5) + channel) << 2)); [all …]
|
/sound/pci/ali5451/ |
D | ali5451.c | 476 unsigned int channel) in snd_ali_enable_special_channel() argument 481 dwVal |= 1 << (channel & 0x0000001f); in snd_ali_enable_special_channel() 486 unsigned int channel) in snd_ali_disable_special_channel() argument 491 dwVal &= ~(1 << (channel & 0x0000001f)); in snd_ali_disable_special_channel() 516 unsigned int channel) in snd_ali_disable_voice_irq() argument 521 dev_dbg(codec->card->dev, "disable_voice_irq channel=%d\n", channel); in snd_ali_disable_voice_irq() 523 mask = 1 << (channel & 0x1f); in snd_ali_disable_voice_irq() 529 static int snd_ali_alloc_pcm_channel(struct snd_ali *codec, int channel) in snd_ali_alloc_pcm_channel() argument 531 unsigned int idx = channel & 0x1f; in snd_ali_alloc_pcm_channel() 597 static void snd_ali_free_channel_pcm(struct snd_ali *codec, int channel) in snd_ali_free_channel_pcm() argument [all …]
|
/sound/soc/codecs/ |
D | max98095.c | 629 int event, u8 channel) in max98095_line_pga() argument 635 if (WARN_ON(!(channel == 1 || channel == 2))) in max98095_line_pga() 642 *state |= channel; in max98095_line_pga() 647 *state &= ~channel; in max98095_line_pga() 1500 int channel = max98095_get_eq_channel(kcontrol->id.name); in max98095_put_eq_enum() local 1507 if (WARN_ON(channel > 1)) in max98095_put_eq_enum() 1516 cdata = &max98095->dai[channel]; in max98095_put_eq_enum() 1537 regmask = (channel == 0) ? M98095_EQ1EN : M98095_EQ2EN; in max98095_put_eq_enum() 1545 m98095_eq_band(codec, channel, 0, coef_set->band1); in max98095_put_eq_enum() 1546 m98095_eq_band(codec, channel, 1, coef_set->band2); in max98095_put_eq_enum() [all …]
|
/sound/pci/hda/ |
D | hda_local.h | 45 #define HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, channel, xindex, dir, flags) \ argument 55 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, dir) | flags } 60 #define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \ argument 61 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, channel, xindex, direction, 0) 70 #define HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument 76 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) } 81 #define HDA_CODEC_MUTE_MONO(xname, nid, channel, xindex, direction) \ argument 82 HDA_CODEC_MUTE_MONO_IDX(xname, 0, nid, channel, xindex, direction) 88 #define HDA_CODEC_MUTE_BEEP_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument 94 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) } [all …]
|
/sound/drivers/opl3/ |
D | opl3_oss.c | 229 if (sbi.channel < 0 || sbi.channel >= SBFM_MAXINSTR) { in snd_opl3_load_patch_seq_oss() 231 sbi.channel); in snd_opl3_load_patch_seq_oss() 236 sprintf(name, "Chan%d", sbi.channel); in snd_opl3_load_patch_seq_oss() 238 err = snd_opl3_load_patch(opl3, sbi.channel, 127, type, name, NULL, in snd_opl3_load_patch_seq_oss()
|
/sound/soc/intel/haswell/ |
D | sst-haswell-ipc.c | 842 u32 stage_id, u32 channel, u32 *volume) in sst_hsw_stream_get_volume() argument 844 if (channel > 1) in sst_hsw_stream_get_volume() 848 stream->reply.volume_register_address[channel], in sst_hsw_stream_get_volume() 856 struct sst_hsw_stream *stream, u32 stage_id, u32 channel, u32 volume) in sst_hsw_stream_set_volume() argument 864 if (channel >= 2 && channel != SST_HSW_CHANNELS_ALL) in sst_hsw_stream_set_volume() 877 if (channel == SST_HSW_CHANNELS_ALL) { in sst_hsw_stream_set_volume() 882 req->channel = 1; in sst_hsw_stream_set_volume() 884 req->channel = 0; in sst_hsw_stream_set_volume() 886 req->channel = SST_HSW_CHANNELS_ALL; in sst_hsw_stream_set_volume() 889 if (hsw->mute[channel]) { in sst_hsw_stream_set_volume() [all …]
|
/sound/pci/ |
D | es1968.c | 706 static void __apu_set_register(struct es1968 *chip, u16 channel, u8 reg, u16 data) in __apu_set_register() argument 708 if (snd_BUG_ON(channel >= NR_APUS)) in __apu_set_register() 711 chip->apu_map[channel][reg] = data; in __apu_set_register() 713 reg |= (channel << 4); in __apu_set_register() 718 static void apu_set_register(struct es1968 *chip, u16 channel, u8 reg, u16 data) in apu_set_register() argument 722 __apu_set_register(chip, channel, reg, data); in apu_set_register() 726 static u16 __apu_get_register(struct es1968 *chip, u16 channel, u8 reg) in __apu_get_register() argument 728 if (snd_BUG_ON(channel >= NR_APUS)) in __apu_get_register() 730 reg |= (channel << 4); in __apu_get_register() 735 static u16 apu_get_register(struct es1968 *chip, u16 channel, u8 reg) in apu_get_register() argument [all …]
|
/sound/atmel/ |
D | ac97c.h | 68 #define AC97C_CH_ASSIGN(slot, channel) \ argument 69 (AC97C_CHANNEL_##channel << (3 * (AC97_SLOT_##slot - 3)))
|