Home
last modified time | relevance | path

Searched refs:chn (Results 1 – 25 of 247) sorted by relevance

12345678910

/third_party/alsa-utils/alsaloop/
Deffect-sweep.c83 int chn; in effect_apply() local
96 for (chn=0; chn < priv->channels; chn++) in effect_apply()
98 priv->x[chn][2] = priv->x[chn][1]; in effect_apply()
99 priv->x[chn][1] = priv->x[chn][0]; in effect_apply()
101 priv->y[chn][2] = priv->y[chn][1]; in effect_apply()
102 priv->y[chn][1] = priv->y[chn][0]; in effect_apply()
104 priv->x[chn][0] = samples[i*channels+chn]; in effect_apply()
105 priv->y[chn][0] = priv->a0*priv->x[0][chn] in effect_apply()
106 + priv->a1*priv->x[1][chn] + priv->a2*x[2][chn] in effect_apply()
107 - priv->b1*priv->y[1][chn] - priv->b2*y[2][chn]; in effect_apply()
[all …]
/third_party/alsa-lib/src/mixer/
Dsimple.c477 snd_mixer_selem_channel_id_t chn; in snd_mixer_selem_set_playback_volume_all() local
480 for (chn = 0; chn < 32; chn++) { in snd_mixer_selem_set_playback_volume_all()
481 if (!snd_mixer_selem_has_playback_channel(elem, chn)) in snd_mixer_selem_set_playback_volume_all()
483 err = snd_mixer_selem_set_playback_volume(elem, chn, value); in snd_mixer_selem_set_playback_volume_all()
486 if (chn == 0 && snd_mixer_selem_has_playback_volume_joined(elem)) in snd_mixer_selem_set_playback_volume_all()
502 snd_mixer_selem_channel_id_t chn; in snd_mixer_selem_set_playback_dB_all() local
505 for (chn = 0; chn < 32; chn++) { in snd_mixer_selem_set_playback_dB_all()
506 if (!snd_mixer_selem_has_playback_channel(elem, chn)) in snd_mixer_selem_set_playback_dB_all()
508 err = snd_mixer_selem_set_playback_dB(elem, chn, value, dir); in snd_mixer_selem_set_playback_dB_all()
511 if (chn == 0 && snd_mixer_selem_has_playback_volume_joined(elem)) in snd_mixer_selem_set_playback_dB_all()
[all …]
/third_party/alsa-utils/speaker-test/
Dspeaker-test.c244 static int get_speaker_channel(int chn) in get_speaker_channel() argument
247 if (channel_map_set || (ordered_channels && chn >= channel_map->channels)) in get_speaker_channel()
248 return chn; in get_speaker_channel()
250 return ordered_channels[chn]; in get_speaker_channel()
255 chn = channels4[chn]; in get_speaker_channel()
258 chn = channels6[chn]; in get_speaker_channel()
261 chn = channels8[chn]; in get_speaker_channel()
265 return chn; in get_speaker_channel()
268 static const char *get_channel_name(int chn) in get_channel_name() argument
273 if (chn < channel_map->channels) in get_channel_name()
[all …]
/third_party/alsa-lib/modules/mixer/simple/python/
Dcommon.py20 def opsIsChannel(self, dir, chn): argument
21 return chn >= 0 and chn < self.channels
100 def opsGetVolume(self, dir, chn): argument
101 return (0, self.volumeToUser(self.volumeinfo[dir], dir, self.volumearray[dir][chn]))
103 def opsSetVolume(self, dir, chn, value): argument
105 if self.volumearray[dir][chn] == val:
107 self.volumearray[dir][chn] = val
112 def opsGetSwitch(self, dir, chn): argument
113 return (0, self.switcharray[dir][chn])
115 def opsSetSwitch(self, dir, chn, value): argument
[all …]
/third_party/alsa-lib/test/
Dpcm.c39 unsigned int chn; in generate_sine() local
50 for (chn = 0; chn < channels; chn++) { in generate_sine()
51 if ((areas[chn].first % 8) != 0) { in generate_sine()
52 printf("areas[%u].first == %u, aborting...\n", chn, areas[chn].first); in generate_sine()
55 samples[chn] = /*(signed short *)*/(((unsigned char *)areas[chn].addr) + (areas[chn].first / 8)); in generate_sine()
56 if ((areas[chn].step % 16) != 0) { in generate_sine()
57 printf("areas[%u].step == %u, aborting...\n", chn, areas[chn].step); in generate_sine()
60 steps[chn] = areas[chn].step / 8; in generate_sine()
61 samples[chn] += offset * steps[chn]; in generate_sine()
77 for (chn = 0; chn < channels; chn++) { in generate_sine()
[all …]
Dlatency.c408 int chn; in applyeffect() local
421 for (chn=0;chn<channels;chn++) in applyeffect()
423 x[chn][2] = x[chn][1]; in applyeffect()
424 x[chn][1] = x[chn][0]; in applyeffect()
426 y[chn][2] = y[chn][1]; in applyeffect()
427 y[chn][1] = y[chn][0]; in applyeffect()
429 x[chn][0] = samples[i*channels+chn]; in applyeffect()
430 y[chn][0] = a0*x[chn][0] + a1*x[chn][1] + a2*x[chn][2] in applyeffect()
431 - b1*y[chn][1] - b2*y[chn][2]; in applyeffect()
432 samples[i*channels+chn] = y[chn][0]; in applyeffect()
/third_party/alsa-utils/amixer/
Damixer.c331 snd_mixer_selem_channel_id_t chn, in set_volume_simple() argument
377 if (vol_ops[dir].v[vol_type].get(elem, chn, &orig) < 0) in set_volume_simple()
395 err = vol_ops[dir].v[vol_type].set(elem, chn, val, correct); in set_volume_simple()
754 snd_mixer_selem_channel_id_t chn, int dir, in show_selem_volume() argument
758 vol_ops[dir].v[VOL_RAW].get(elem, chn, &raw); in show_selem_volume()
762 vol_ops[dir].v[std_vol_type].get(elem, chn, &val); in show_selem_volume()
766 if (!vol_ops[dir].v[VOL_DB].get(elem, chn, &val)) { in show_selem_volume()
775 snd_mixer_selem_channel_id_t chn; in show_selem() local
863 for (chn = 0; chn <= SND_MIXER_SCHN_LAST; chn++){ in show_selem()
864 if (!snd_mixer_selem_has_playback_channel(elem, chn)) in show_selem()
[all …]
/third_party/boost/boost/iostreams/
Dpipeline.hpp68 void push(Chain& chn) const { chn.push(component_); } in push()
92 void push(Chain& chn) const in push()
94 Pipeline::push(chn); in push()
95 chn.push(component_); in push()
Dchain.hpp454 chain_client(chain_type* chn = 0) : chain_(chn ) { } in chain_client() argument
/third_party/alsa-lib/src/pcm/
Dpcm_dshare.c62 unsigned int chn, dchn, channels; in do_silence() local
68 for (chn = 0; chn < channels; chn++) { in do_silence()
69 dchn = dshare->bindings ? dshare->bindings[chn] : chn; in do_silence()
83 unsigned int chn, dchn, channels; in share_areas() local
94 for (chn = 0; chn < channels; chn++) { in share_areas()
95 dchn = dshare->bindings ? dshare->bindings[chn] : chn; in share_areas()
98 &src_areas[chn], src_ofs, size, format); in share_areas()
697 unsigned int chn; in snd_pcm_dshare_open() local
807 for (chn = 0; dshare->bindings && (chn < dshare->channels); chn++) { in snd_pcm_dshare_open()
808 unsigned int dchn = dshare->bindings ? dshare->bindings[chn] : chn; in snd_pcm_dshare_open()
Dpcm_direct.c1629 unsigned int chn, channels; local
1642 for (chn = 1; chn < channels; chn++) {
1643 if (dst_areas[chn-1].addr != dst_areas[chn].addr)
1645 if (src_areas[chn-1].addr != src_areas[chn].addr)
1648 for (chn = 0; chn < channels; chn++) {
1649 if (dmix->bindings && dmix->bindings[chn] != chn)
1651 if (dst_areas[chn].first != chn * bits ||
1652 dst_areas[chn].step != channels * bits)
1654 if (src_areas[chn].first != chn * bits ||
1655 src_areas[chn].step != channels * bits)
[all …]
Dpcm_ladspa.c693 unsigned int idx, chn; in snd_pcm_ladspa_allocate_memory() local
715 chn = instance->input.channels.array[idx]; in snd_pcm_ladspa_allocate_memory()
717 if (chn >= nchannels) in snd_pcm_ladspa_allocate_memory()
718 nchannels = chn + 1; in snd_pcm_ladspa_allocate_memory()
721 chn = instance->output.channels.array[idx]; in snd_pcm_ladspa_allocate_memory()
723 if (chn >= nchannels) in snd_pcm_ladspa_allocate_memory()
724 nchannels = chn + 1; in snd_pcm_ladspa_allocate_memory()
752 chn = instance->input.channels.array[idx]; in snd_pcm_ladspa_allocate_memory()
753 if (pchannels[chn] == NULL && chn < ichannels) { in snd_pcm_ladspa_allocate_memory()
757 instance->input.data[idx] = pchannels[chn]; in snd_pcm_ladspa_allocate_memory()
[all …]
Dpcm_dmix.c162 unsigned int chn, dchn, channels, sample_size; in mix_areas() local
206 for (chn = 0; chn < channels; chn++) { in mix_areas()
207 dchn = dmix->bindings ? dmix->bindings[chn] : chn; in mix_areas()
210 src_step = src_areas[chn].step / 8; in mix_areas()
214 ((unsigned char *)src_areas[chn].addr + src_areas[chn].first / 8) + src_ofs * src_step, in mix_areas()
230 unsigned int chn, dchn, channels, sample_size; in remix_areas() local
274 for (chn = 0; chn < channels; chn++) { in remix_areas()
275 dchn = dmix->bindings ? dmix->bindings[chn] : chn; in remix_areas()
278 src_step = src_areas[chn].step / 8; in remix_areas()
282 ((unsigned char *)src_areas[chn].addr + src_areas[chn].first / 8) + src_ofs * src_step, in remix_areas()
Dpcm_dsnoop.c81 unsigned int chn, schn, channels; in snoop_areas() local
92 for (chn = 0; chn < channels; chn++) { in snoop_areas()
93 schn = dsnoop->bindings ? dsnoop->bindings[chn] : chn; in snoop_areas()
94 snd_pcm_area_copy(&dst_areas[chn], dst_ofs, &src_areas[schn], src_ofs, size, format); in snoop_areas()
/third_party/gstreamer/gstplugins_good/sys/oss4/
Doss4-soundcard.h574 EXTERNC void OSS_patch_caching (int dev, int chn, int patch, int fd,
576 EXTERNC void OSS_drum_caching (int dev, int chn, int patch, int fd,
665 #define _CHN_VOICE(dev, event, chn, note, parm) \ argument
670 _seqbuf[_seqbufptr+3] = (chn);\
677 #define SEQ_START_NOTE(dev, chn, note, vol) \ argument
678 _CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol)
680 #define SEQ_STOP_NOTE(dev, chn, note, vol) \ argument
681 _CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol)
683 #define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \ argument
684 _CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure)
[all …]
/third_party/boost/boost/gil/extension/io/pnm/detail/
Dwrite.hpp77 std::size_t chn = num_channels< View >::value; in apply() local
78 std::size_t pitch = chn * width; in apply()
/third_party/flutter/skia/third_party/externals/icu/source/data/lang/
Dfr_CA.txt15 chn{"chinook"}
Dks.txt71 chn{"چِنوٗک جارگَن"}
Dbrx.txt69 chn{"चीनूक् जार्गन्"}
/third_party/openssl/apps/
Dpkcs12.c750 STACK_OF(X509) *chn = NULL; in get_cert_chain()
765 chn = X509_STORE_CTX_get1_chain(store_ctx); in get_cert_chain()
771 *chain = chn; in get_cert_chain()
/third_party/icu/icu4c/source/data/lang/
Dfr_CA.txt15 chn{"chinook"}
/third_party/skia/third_party/externals/icu/source/data/lang/
Dfr_CA.txt15 chn{"chinook"}
Dbrx.txt70 chn{"चीनूक् जार्गन्"}
Dks.txt72 chn{"چِنوٗک جارگَن"}
/third_party/alsa-lib/src/control/
Dcontrol_remap.c1043 long idx = -1, chn = -1; in parse_map_vindex() local
1047 if (safe_strtol(id, &idx) || snd_config_get_integer(n, &chn)) { in parse_map_vindex()
1048 SNDERR("Wrong channel mapping (%ld -> %ld)", idx, chn); in parse_map_vindex()
1051 err = add_chn_to_map(mctl, idx, chn); in parse_map_vindex()

12345678910