Home
last modified time | relevance | path

Searched refs:mix (Results 1 – 18 of 18) sorted by relevance

/sound/ppc/
Dtumbler.c198 static int tumbler_set_master_volume(struct pmac_tumbler *mix) in tumbler_set_master_volume() argument
203 if (! mix->i2c.client) in tumbler_set_master_volume()
206 if (! mix->master_switch[0]) in tumbler_set_master_volume()
209 left_vol = mix->master_vol[0]; in tumbler_set_master_volume()
214 if (! mix->master_switch[1]) in tumbler_set_master_volume()
217 right_vol = mix->master_vol[1]; in tumbler_set_master_volume()
231 if (i2c_smbus_write_i2c_block_data(mix->i2c.client, TAS_REG_VOL, 6, in tumbler_set_master_volume()
256 struct pmac_tumbler *mix = chip->mixer_data; in tumbler_get_master_volume() local
258 ucontrol->value.integer.value[0] = mix->master_vol[0]; in tumbler_get_master_volume()
259 ucontrol->value.integer.value[1] = mix->master_vol[1]; in tumbler_get_master_volume()
[all …]
Ddaca.c54 static int daca_set_volume(struct pmac_daca *mix) in daca_set_volume() argument
58 if (! mix->i2c.client) in daca_set_volume()
61 if (mix->left_vol > DACA_VOL_MAX) in daca_set_volume()
64 data[0] = mix->left_vol; in daca_set_volume()
65 if (mix->right_vol > DACA_VOL_MAX) in daca_set_volume()
68 data[1] = mix->right_vol; in daca_set_volume()
69 data[1] |= mix->deemphasis ? 0x40 : 0; in daca_set_volume()
70 if (i2c_smbus_write_block_data(mix->i2c.client, DACA_REG_AVOL, in daca_set_volume()
86 struct pmac_daca *mix; in daca_get_deemphasis() local
87 mix = chip->mixer_data; in daca_get_deemphasis()
[all …]
/sound/soc/sh/rcar/
Dmix.c61 #define rsnd_mix_get(priv, id) ((struct rsnd_mix *)(priv->mix) + id)
66 ((pos) = (struct rsnd_mix *)(priv)->mix + i); \
81 #define rsnd_mix_get_vol(mix, X) \ argument
82 rsnd_flags_has(mix, HAS_VOL##X) ? \
83 (VOL_MAX - rsnd_kctrl_vals(mix->volume##X)) : 0
89 struct rsnd_mix *mix = rsnd_mod_to_mix(mod); in rsnd_mix_volume_parameter() local
90 u32 volA = rsnd_mix_get_vol(mix, A); in rsnd_mix_volume_parameter()
91 u32 volB = rsnd_mix_get_vol(mix, B); in rsnd_mix_volume_parameter()
92 u32 volC = rsnd_mix_get_vol(mix, C); in rsnd_mix_volume_parameter()
93 u32 volD = rsnd_mix_get_vol(mix, D); in rsnd_mix_volume_parameter()
[all …]
Dcmd.c28 struct rsnd_mod *mix = rsnd_io_to_mod_mix(io); in rsnd_cmd_init() local
38 if (!mix && !dvc) in rsnd_cmd_init()
44 if (mix) { in rsnd_cmd_init()
58 if (mix == rsnd_io_to_mod_mix(tio)) in rsnd_cmd_init()
63 if (mix == rsnd_io_to_mod_mix(tio)) in rsnd_cmd_init()
DMakefile2 snd-soc-rcar-objs := core.o gen.o dma.o adg.o ssi.o ssiu.o src.o ctu.o mix.o dvc.o cmd.o debugfs.o
Ddma.c684 struct rsnd_mod *mix = rsnd_io_to_mod_mix(io); in rsnd_dma_of_path() local
750 } else if (mix) { in rsnd_dma_of_path()
751 mod[idx++] = mix; in rsnd_dma_of_path()
752 mix = NULL; in rsnd_dma_of_path()
Drsnd.h676 void *mix; member
/sound/pci/emu10k1/
Demumixer.c1233 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_send_routing_get() local
1243 mix->send_routing[voice][idx] & mask; in snd_emu10k1_send_routing_get()
1253 struct snd_emu10k1_pcm_mixer *mix = in snd_emu10k1_send_routing_put() local
1263 if (mix->send_routing[voice][idx] != val) { in snd_emu10k1_send_routing_put()
1264 mix->send_routing[voice][idx] = val; in snd_emu10k1_send_routing_put()
1268 if (change && mix->epcm) { in snd_emu10k1_send_routing_put()
1269 if (mix->epcm->voices[0] && mix->epcm->voices[1]) { in snd_emu10k1_send_routing_put()
1270 update_emu10k1_fxrt(emu, mix->epcm->voices[0]->number, in snd_emu10k1_send_routing_put()
1271 &mix->send_routing[1][0]); in snd_emu10k1_send_routing_put()
1272 update_emu10k1_fxrt(emu, mix->epcm->voices[1]->number, in snd_emu10k1_send_routing_put()
[all …]
Demupcm.c274 struct snd_emu10k1_pcm_mixer *mix) in snd_emu10k1_pcm_init_voice() argument
312 memcpy(send_routing, &mix->send_routing[tmp][0], 8); in snd_emu10k1_pcm_init_voice()
313 memcpy(send_amount, &mix->send_volume[tmp][0], 8); in snd_emu10k1_pcm_init_voice()
658 struct snd_emu10k1_pcm_mixer *mix) in snd_emu10k1_playback_prepare_voice() argument
673 vattn = mix != NULL ? (mix->attn[tmp] << 16) : 0; in snd_emu10k1_playback_prepare_voice()
745 struct snd_emu10k1_pcm_mixer *mix; in snd_emu10k1_playback_trigger() local
763 mix = &emu->pcm_mixer[substream->number]; in snd_emu10k1_playback_trigger()
764 snd_emu10k1_playback_prepare_voice(emu, epcm->voices[0], 1, 0, mix); in snd_emu10k1_playback_trigger()
765 snd_emu10k1_playback_prepare_voice(emu, epcm->voices[1], 0, 0, mix); in snd_emu10k1_playback_trigger()
1068 struct snd_emu10k1_pcm_mixer *mix; in snd_emu10k1_efx_playback_close() local
[all …]
/sound/pci/au88x0/
Dau88x0_core.c90 vortex_mix_muteinputgain(vortex_t * vortex, unsigned char mix,
93 hwwrite(vortex->mmio, VORTEX_MIX_INVOL_A + ((mix << 5) + channel),
95 hwwrite(vortex->mmio, VORTEX_MIX_INVOL_B + ((mix << 5) + channel),
99 static int vortex_mix_getvolume(vortex_t * vortex, unsigned char mix)
102 a = hwread(vortex->mmio, VORTEX_MIX_VOL_A + (mix << 2)) & 0xff;
108 vortex_mix_getinputvolume(vortex_t * vortex, unsigned char mix,
112 if (!(mchannels[mix] & (1 << channel)))
115 VORTEX_MIX_INVOL_A + (((mix << 5) + channel) << 2));
131 static void vortex_mix_rampvolume(vortex_t * vortex, int mix)
137 if (((1 << ch) & rampchs[mix]) == 0)
[all …]
Dau88x0_synth.c20 unsigned char mix, int a);
106 int i, ii, mix; in vortex_wt_connect() local
117 mix = in vortex_wt_connect()
121 vortex->mixwt[(i * NR_WTROUTES) + ii] = mix; in vortex_wt_connect()
124 ADB_WTOUT(i, ii + 0x20), ADB_MIXIN(mix)); in vortex_wt_connect()
126 vortex_connection_mixin_mix(vortex, en, mix, in vortex_wt_connect()
130 mix, in vortex_wt_connect()
Dau88x0.h255 unsigned char mix, int a);
257 unsigned char mix, int mixin,
259 static void vortex_mix_setvolumebyte(vortex_t * vortex, unsigned char mix,
/sound/pci/trident/
Dtrident_main.c912 struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[substream->number]; in snd_trident_playback_prepare() local
934 voice->Vol = mix->vol; in snd_trident_playback_prepare()
935 voice->RVol = mix->rvol; in snd_trident_playback_prepare()
936 voice->CVol = mix->cvol; in snd_trident_playback_prepare()
937 voice->Pan = mix->pan; in snd_trident_playback_prepare()
1363 struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[substream->number]; in snd_trident_spdif_prepare() local
1439 voice->Vol = mix->vol; in snd_trident_spdif_prepare()
1440 voice->RVol = mix->rvol; in snd_trident_spdif_prepare()
1441 voice->CVol = mix->cvol; in snd_trident_spdif_prepare()
1442 voice->Pan = mix->pan; in snd_trident_spdif_prepare()
[all …]
/sound/soc/atmel/
Dtse850-pcm5142.c239 static const struct snd_kcontrol_new mix[] = { variable
262 SOC_MIXER_ARRAY("MIX", SND_SOC_NOPM, 0, 0, mix),
/sound/pci/lola/
Dlola.h120 #define LOLA_BAR1_MIX_GAIN(dest, mix) \ argument
121 (LOLA_BAR1_DEST00_MIX00_01_GAIN + (dest) * 0x40 + (mix) * 2)
/sound/usb/
Dmixer_scarlett_gen2.c421 u8 mix[SCARLETT2_INPUT_MIX_MAX * SCARLETT2_OUTPUT_MIX_MAX]; member
1368 private->mix[j] = k; in scarlett2_usb_get_mix()
1396 scarlett2_mixer_values[private->mix[j]] in scarlett2_usb_set_mix()
3222 ucontrol->value.integer.value[0] = private->mix[elem->control]; in scarlett2_mixer_ctl_get()
3239 oval = private->mix[index]; in scarlett2_mixer_ctl_put()
3248 private->mix[index] = val; in scarlett2_mixer_ctl_put()
/sound/core/oss/
Dmixer_oss.c1290 #define snd_mixer_oss_proc_init(mix) argument
1291 #define snd_mixer_oss_proc_done(mix) argument
/sound/pci/hda/
Dhda_generic.c3036 static int add_loopback_list(struct hda_gen_spec *spec, hda_nid_t mix, int idx) in add_loopback_list() argument
3043 list->nid = mix; in add_loopback_list()
4922 static void mute_all_mixer_nid(struct hda_codec *codec, hda_nid_t mix) in mute_all_mixer_nid() argument
4928 nums = snd_hda_get_conn_list(codec, mix, &conn); in mute_all_mixer_nid()
4929 has_amp = nid_has_mute(codec, mix, HDA_INPUT); in mute_all_mixer_nid()
4932 update_amp(codec, mix, HDA_INPUT, i, in mute_all_mixer_nid()