Symbol: mix
arch/x86/boot/video-mode.c
102
struct mode_info mix;
arch/x86/boot/video-mode.c
103
*real_mode = mix.mode = mode;
arch/x86/boot/video-mode.c
104
mix.x = mix.y = 0;
arch/x86/boot/video-mode.c
105
return card->set_mode(&mix);
drivers/char/random.c
1012
struct timer_list mix;
drivers/char/random.c
1025
.mix = __TIMER_INITIALIZER(mix_interrupt_randomness, 0)
drivers/char/random.c
1069
struct fast_pool *fast_pool = container_of(work, struct fast_pool, mix);
drivers/char/random.c
1122
if (!timer_pending(&fast_pool->mix)) {
drivers/char/random.c
1123
fast_pool->mix.expires = jiffies;
drivers/char/random.c
1124
add_timer_on(&fast_pool->mix, raw_smp_processor_id());
drivers/clk/mmp/clk-mix.c
101
if (mix->mux_table)
drivers/clk/mmp/clk-mix.c
102
return mix->mux_table[mux];
drivers/clk/mmp/clk-mix.c
107
static void _filter_clk_table(struct mmp_clk_mix *mix,
drivers/clk/mmp/clk-mix.c
116
hw = &mix->hw;
drivers/clk/mmp/clk-mix.c
131
static int _set_rate(struct mmp_clk_mix *mix, u32 mux_val, u32 div_val,
drivers/clk/mmp/clk-mix.c
134
struct mmp_clk_mix_reg_info *ri = &mix->reg_info;
drivers/clk/mmp/clk-mix.c
143
if (mix->lock)
drivers/clk/mmp/clk-mix.c
144
spin_lock_irqsave(mix->lock, flags);
drivers/clk/mmp/clk-mix.c
146
if (mix->type == MMP_CLK_MIX_TYPE_V1
drivers/clk/mmp/clk-mix.c
147
|| mix->type == MMP_CLK_MIX_TYPE_V2)
drivers/clk/mmp/clk-mix.c
166
if (mix->type == MMP_CLK_MIX_TYPE_V1) {
drivers/clk/mmp/clk-mix.c
168
} else if (mix->type == MMP_CLK_MIX_TYPE_V2) {
drivers/clk/mmp/clk-mix.c
181
__func__, clk_hw_get_name(&mix->hw));
drivers/clk/mmp/clk-mix.c
195
if (mix->lock)
drivers/clk/mmp/clk-mix.c
196
spin_unlock_irqrestore(mix->lock, flags);
drivers/clk/mmp/clk-mix.c
204
struct mmp_clk_mix *mix = to_clk_mix(hw);
drivers/clk/mmp/clk-mix.c
219
if (mix->table) {
drivers/clk/mmp/clk-mix.c
220
for (i = 0; i < mix->table_size; i++) {
drivers/clk/mmp/clk-mix.c
221
item = &mix->table[i];
drivers/clk/mmp/clk-mix.c
24
static unsigned int _get_maxdiv(struct mmp_clk_mix *mix)
drivers/clk/mmp/clk-mix.c
242
div_val_max = _get_maxdiv(mix);
drivers/clk/mmp/clk-mix.c
244
div = _get_div(mix, j);
drivers/clk/mmp/clk-mix.c
26
unsigned int div_mask = (1 << mix->reg_info.width_div) - 1;
drivers/clk/mmp/clk-mix.c
275
struct mmp_clk_mix *mix = to_clk_mix(hw);
drivers/clk/mmp/clk-mix.c
280
div_val = _get_div_val(mix, div);
drivers/clk/mmp/clk-mix.c
281
mux_val = _get_mux_val(mix, index);
drivers/clk/mmp/clk-mix.c
283
return _set_rate(mix, mux_val, div_val, 1, 1);
drivers/clk/mmp/clk-mix.c
288
struct mmp_clk_mix *mix = to_clk_mix(hw);
drivers/clk/mmp/clk-mix.c
289
struct mmp_clk_mix_reg_info *ri = &mix->reg_info;
drivers/clk/mmp/clk-mix.c
295
if (mix->lock)
drivers/clk/mmp/clk-mix.c
296
spin_lock_irqsave(mix->lock, flags);
drivers/clk/mmp/clk-mix.c
298
if (mix->type == MMP_CLK_MIX_TYPE_V1
drivers/clk/mmp/clk-mix.c
299
|| mix->type == MMP_CLK_MIX_TYPE_V2)
drivers/clk/mmp/clk-mix.c
30
if (mix->div_flags & CLK_DIVIDER_ONE_BASED)
drivers/clk/mmp/clk-mix.c
304
if (mix->lock)
drivers/clk/mmp/clk-mix.c
305
spin_unlock_irqrestore(mix->lock, flags);
drivers/clk/mmp/clk-mix.c
307
width = mix->reg_info.width_mux;
drivers/clk/mmp/clk-mix.c
308
shift = mix->reg_info.shift_mux;
drivers/clk/mmp/clk-mix.c
312
return _get_mux(mix, mux_val);
drivers/clk/mmp/clk-mix.c
318
struct mmp_clk_mix *mix = to_clk_mix(hw);
drivers/clk/mmp/clk-mix.c
319
struct mmp_clk_mix_reg_info *ri = &mix->reg_info;
drivers/clk/mmp/clk-mix.c
32
if (mix->div_flags & CLK_DIVIDER_POWER_OF_TWO)
drivers/clk/mmp/clk-mix.c
325
if (mix->lock)
drivers/clk/mmp/clk-mix.c
326
spin_lock_irqsave(mix->lock, flags);
drivers/clk/mmp/clk-mix.c
328
if (mix->type == MMP_CLK_MIX_TYPE_V1
drivers/clk/mmp/clk-mix.c
329
|| mix->type == MMP_CLK_MIX_TYPE_V2)
drivers/clk/mmp/clk-mix.c
334
if (mix->lock)
drivers/clk/mmp/clk-mix.c
335
spin_unlock_irqrestore(mix->lock, flags);
drivers/clk/mmp/clk-mix.c
337
width = mix->reg_info.width_div;
drivers/clk/mmp/clk-mix.c
338
shift = mix->reg_info.shift_div;
drivers/clk/mmp/clk-mix.c
34
if (mix->div_table) {
drivers/clk/mmp/clk-mix.c
340
div = _get_div(mix, MMP_CLK_BITS_GET_VAL(mux_div, width, shift));
drivers/clk/mmp/clk-mix.c
347
struct mmp_clk_mix *mix = to_clk_mix(hw);
drivers/clk/mmp/clk-mix.c
35
for (clkt = mix->div_table; clkt->div; clkt++)
drivers/clk/mmp/clk-mix.c
352
if (mix->table) {
drivers/clk/mmp/clk-mix.c
353
for (i = 0; i < mix->table_size; i++) {
drivers/clk/mmp/clk-mix.c
354
item = &mix->table[i];
drivers/clk/mmp/clk-mix.c
360
if (i < mix->table_size) {
drivers/clk/mmp/clk-mix.c
361
div_val = _get_div_val(mix, item->divisor);
drivers/clk/mmp/clk-mix.c
362
mux_val = _get_mux_val(mix, item->parent_index);
drivers/clk/mmp/clk-mix.c
366
mux_val = _get_mux_val(mix, index);
drivers/clk/mmp/clk-mix.c
370
return _set_rate(mix, mux_val, div_val, 1, div_val ? 1 : 0);
drivers/clk/mmp/clk-mix.c
376
struct mmp_clk_mix *mix = to_clk_mix(hw);
drivers/clk/mmp/clk-mix.c
385
if (mix->table) {
drivers/clk/mmp/clk-mix.c
386
for (i = 0; i < mix->table_size; i++) {
drivers/clk/mmp/clk-mix.c
387
item = &mix->table[i];
drivers/clk/mmp/clk-mix.c
397
if (i < mix->table_size)
drivers/clk/mmp/clk-mix.c
398
return _set_rate(mix,
drivers/clk/mmp/clk-mix.c
399
_get_mux_val(mix, item->parent_index),
drivers/clk/mmp/clk-mix.c
400
_get_div_val(mix, item->divisor),
drivers/clk/mmp/clk-mix.c
412
return _set_rate(mix, _get_mux_val(mix, i),
drivers/clk/mmp/clk-mix.c
413
_get_div_val(mix, best_divisor), 1, 1);
drivers/clk/mmp/clk-mix.c
421
struct mmp_clk_mix *mix = to_clk_mix(hw);
drivers/clk/mmp/clk-mix.c
423
if (mix->table)
drivers/clk/mmp/clk-mix.c
424
_filter_clk_table(mix, mix->table, mix->table_size);
drivers/clk/mmp/clk-mix.c
43
static unsigned int _get_div(struct mmp_clk_mix *mix, unsigned int val)
drivers/clk/mmp/clk-mix.c
447
struct mmp_clk_mix *mix;
drivers/clk/mmp/clk-mix.c
451
mix = kzalloc_obj(*mix);
drivers/clk/mmp/clk-mix.c
452
if (!mix)
drivers/clk/mmp/clk-mix.c
461
memcpy(&mix->reg_info, &config->reg_info, sizeof(config->reg_info));
drivers/clk/mmp/clk-mix.c
463
mix->table = kmemdup_array(config->table, config->table_size,
drivers/clk/mmp/clk-mix.c
464
sizeof(*mix->table), GFP_KERNEL);
drivers/clk/mmp/clk-mix.c
465
if (!mix->table)
drivers/clk/mmp/clk-mix.c
468
mix->table_size = config->table_size;
drivers/clk/mmp/clk-mix.c
47
if (mix->div_flags & CLK_DIVIDER_ONE_BASED)
drivers/clk/mmp/clk-mix.c
472
mix->mux_table = kmemdup_array(config->mux_table, num_parents,
drivers/clk/mmp/clk-mix.c
473
sizeof(*mix->mux_table), GFP_KERNEL);
drivers/clk/mmp/clk-mix.c
474
if (!mix->mux_table) {
drivers/clk/mmp/clk-mix.c
475
kfree(mix->table);
drivers/clk/mmp/clk-mix.c
480
mix->div_flags = config->div_flags;
drivers/clk/mmp/clk-mix.c
481
mix->mux_flags = config->mux_flags;
drivers/clk/mmp/clk-mix.c
482
mix->lock = lock;
drivers/clk/mmp/clk-mix.c
483
mix->hw.init = &init;
drivers/clk/mmp/clk-mix.c
486
mix->type = MMP_CLK_MIX_TYPE_V1;
drivers/clk/mmp/clk-mix.c
488
mix->type = MMP_CLK_MIX_TYPE_V3;
drivers/clk/mmp/clk-mix.c
49
if (mix->div_flags & CLK_DIVIDER_POWER_OF_TWO)
drivers/clk/mmp/clk-mix.c
490
mix->type = MMP_CLK_MIX_TYPE_V2;
drivers/clk/mmp/clk-mix.c
491
clk = clk_register(dev, &mix->hw);
drivers/clk/mmp/clk-mix.c
494
kfree(mix->mux_table);
drivers/clk/mmp/clk-mix.c
495
kfree(mix->table);
drivers/clk/mmp/clk-mix.c
496
kfree(mix);
drivers/clk/mmp/clk-mix.c
502
kfree(mix);
drivers/clk/mmp/clk-mix.c
51
if (mix->div_table) {
drivers/clk/mmp/clk-mix.c
52
for (clkt = mix->div_table; clkt->div; clkt++)
drivers/clk/mmp/clk-mix.c
61
static unsigned int _get_mux(struct mmp_clk_mix *mix, unsigned int val)
drivers/clk/mmp/clk-mix.c
63
int num_parents = clk_hw_get_num_parents(&mix->hw);
drivers/clk/mmp/clk-mix.c
66
if (mix->mux_flags & CLK_MUX_INDEX_BIT)
drivers/clk/mmp/clk-mix.c
68
if (mix->mux_flags & CLK_MUX_INDEX_ONE)
drivers/clk/mmp/clk-mix.c
70
if (mix->mux_table) {
drivers/clk/mmp/clk-mix.c
72
if (mix->mux_table[i] == val)
drivers/clk/mmp/clk-mix.c
80
static unsigned int _get_div_val(struct mmp_clk_mix *mix, unsigned int div)
drivers/clk/mmp/clk-mix.c
84
if (mix->div_flags & CLK_DIVIDER_ONE_BASED)
drivers/clk/mmp/clk-mix.c
86
if (mix->div_flags & CLK_DIVIDER_POWER_OF_TWO)
drivers/clk/mmp/clk-mix.c
88
if (mix->div_table) {
drivers/clk/mmp/clk-mix.c
89
for (clkt = mix->div_table; clkt->div; clkt++)
drivers/clk/mmp/clk-mix.c
99
static unsigned int _get_mux_val(struct mmp_clk_mix *mix, unsigned int mux)
drivers/clk/spacemit/ccu_mix.c
107
struct ccu_mix *mix = hw_to_ccu_mix(hw);
drivers/clk/spacemit/ccu_mix.c
109
struct ccu_div_config *div = &mix->div;
drivers/clk/spacemit/ccu_mix.c
155
struct ccu_mix *mix = hw_to_ccu_mix(hw);
drivers/clk/spacemit/ccu_mix.c
156
struct ccu_common *common = &mix->common;
drivers/clk/spacemit/ccu_mix.c
157
struct ccu_div_config *div = &mix->div;
drivers/clk/spacemit/ccu_mix.c
177
struct ccu_mix *mix = hw_to_ccu_mix(hw);
drivers/clk/spacemit/ccu_mix.c
178
struct ccu_mux_config *mux = &mix->mux;
drivers/clk/spacemit/ccu_mix.c
18
struct ccu_mix *mix = hw_to_ccu_mix(hw);
drivers/clk/spacemit/ccu_mix.c
181
parent = ccu_read(&mix->common, ctrl) >> mux->shift;
drivers/clk/spacemit/ccu_mix.c
189
struct ccu_mix *mix = hw_to_ccu_mix(hw);
drivers/clk/spacemit/ccu_mix.c
19
struct ccu_gate_config *gate = &mix->gate;
drivers/clk/spacemit/ccu_mix.c
190
struct ccu_mux_config *mux = &mix->mux;
drivers/clk/spacemit/ccu_mix.c
195
ccu_update(&mix->common, ctrl, mask, index << mux->shift);
drivers/clk/spacemit/ccu_mix.c
22
ccu_update(&mix->common, ctrl, gate->mask, val);
drivers/clk/spacemit/ccu_mix.c
27
struct ccu_mix *mix = hw_to_ccu_mix(hw);
drivers/clk/spacemit/ccu_mix.c
28
struct ccu_gate_config *gate = &mix->gate;
drivers/clk/spacemit/ccu_mix.c
31
ccu_update(&mix->common, ctrl, gate->mask, val);
drivers/clk/spacemit/ccu_mix.c
37
struct ccu_mix *mix = hw_to_ccu_mix(hw);
drivers/clk/spacemit/ccu_mix.c
38
struct ccu_gate_config *gate = &mix->gate;
drivers/clk/spacemit/ccu_mix.c
39
u32 tmp = ccu_read(&mix->common, ctrl) & gate->mask;
drivers/clk/spacemit/ccu_mix.c
48
struct ccu_mix *mix = hw_to_ccu_mix(hw);
drivers/clk/spacemit/ccu_mix.c
50
return parent_rate * mix->factor.mul / mix->factor.div;
drivers/clk/spacemit/ccu_mix.c
56
struct ccu_mix *mix = hw_to_ccu_mix(hw);
drivers/clk/spacemit/ccu_mix.c
57
struct ccu_div_config *div = &mix->div;
drivers/clk/spacemit/ccu_mix.c
60
val = ccu_read(&mix->common, ctrl) >> div->shift;
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
511
u32 mix, ext, mix_ext;
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
534
mix = (i + 1) & 0x7;
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
552
mixercfg[0] |= mix << cfg->shift;
drivers/infiniband/hw/hfi1/pio.h
45
union mix carry; /* pending unwritten bytes */
drivers/infiniband/hw/hfi1/pio_copy.c
106
union mix val;
drivers/infiniband/hw/hfi1/pio_copy.c
231
static inline void carry8_write8(union mix carry, void __iomem *dest)
drivers/md/dm-vdo/int-map.c
147
return mix(sizeof(key) + (((u64) pun.u32[0]) << 3), pun.u32[1]);
drivers/media/dvb-frontends/dib0090.c
103
u16 mix;
drivers/media/dvb-frontends/dib0090.c
2490
dib0090_write_reg(state, 0x0d, tune->mix);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
1008
mix_ctl.u64 = cvmx_read_csr(p->mix + MIX_CTL);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
1013
cvmx_write_csr(p->mix + MIX_CTL, mix_ctl.u64);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
1015
mix_ctl.u64 = cvmx_read_csr(p->mix + MIX_CTL);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
1047
cvmx_write_csr(p->mix + MIX_ORING1, oring1.u64);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
1052
cvmx_write_csr(p->mix + MIX_IRING1, iring1.u64);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
1071
cvmx_write_csr(p->mix + MIX_CTL, mix_ctl.u64);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
1153
cvmx_write_csr(p->mix + MIX_ISR, cvmx_read_csr(p->mix + MIX_ISR));
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
1164
cvmx_write_csr(p->mix + MIX_IRHWM, mix_irhwm.u64);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
1169
cvmx_write_csr(p->mix + MIX_ORHWM, mix_orhwm.u64);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
1175
cvmx_write_csr(p->mix + MIX_INTENA, mix_intena.u64);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
119
u64 mix;
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
1323
cvmx_write_csr(p->mix + MIX_ORING2, 1);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
1478
p->mix = (u64)devm_ioremap(&pdev->dev, p->mix_phys, p->mix_size);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
1482
if (!p->mix || !p->agl || !p->agl_prt_ctl) {
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
163
mix_intena.u64 = cvmx_read_csr(p->mix + MIX_INTENA);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
165
cvmx_write_csr(p->mix + MIX_INTENA, mix_intena.u64);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
175
mix_intena.u64 = cvmx_read_csr(p->mix + MIX_INTENA);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
177
cvmx_write_csr(p->mix + MIX_INTENA, mix_intena.u64);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
249
cvmx_write_csr(p->mix + MIX_IRING2, 1);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
261
mix_orcnt.u64 = cvmx_read_csr(p->mix + MIX_ORCNT);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
265
mix_orcnt.u64 = cvmx_read_csr(p->mix + MIX_ORCNT);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
285
cvmx_write_csr(p->mix + MIX_ORCNT, mix_orcnt.u64);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
311
mix_orcnt.u64 = cvmx_read_csr(p->mix + MIX_ORCNT);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
472
cvmx_write_csr(p->mix + MIX_IRCNT, mix_ircnt.u64);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
482
mix_ircnt.u64 = cvmx_read_csr(p->mix + MIX_IRCNT);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
490
mix_ircnt.u64 = cvmx_read_csr(p->mix + MIX_IRCNT);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
524
cvmx_write_csr(p->mix + MIX_CTL, mix_ctl.u64);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
526
mix_ctl.u64 = cvmx_read_csr(p->mix + MIX_CTL);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
529
cvmx_write_csr(p->mix + MIX_CTL, mix_ctl.u64);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
530
cvmx_read_csr(p->mix + MIX_CTL);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
533
mix_bist.u64 = cvmx_read_csr(p->mix + MIX_BIST);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
675
mixx_isr.u64 = cvmx_read_csr(p->mix + MIX_ISR);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
678
cvmx_write_csr(p->mix + MIX_ISR, mixx_isr.u64);
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
679
cvmx_read_csr(p->mix + MIX_ISR);
drivers/net/wireless/ath/ath5k/phy.c
486
u32 mix, step;
drivers/net/wireless/ath/ath5k/phy.c
515
mix = g_step->gos_param[0];
drivers/net/wireless/ath/ath5k/phy.c
517
switch (mix) {
drivers/video/fbdev/aty/mach64_accel.c
291
u32 pix_width, rotation = 0, src, mix;
drivers/video/fbdev/aty/mach64_accel.c
370
mix = FRGD_MIX_S | BKGD_MIX_S;
drivers/video/fbdev/aty/mach64_accel.c
373
mix = FRGD_MIX_D_XOR_S | BKGD_MIX_D;
drivers/video/fbdev/aty/mach64_accel.c
378
aty_st_le32(DP_MIX, mix, par);
include/net/ipv6.h
715
unsigned int hash, mix = net_hash_mix(net);
include/net/ipv6.h
718
hash = jhash_1word(0, mix);
include/net/ipv6.h
720
hash = jhash_1word((__force u32)addr6->s6_addr32[3], mix);
include/net/ipv6.h
722
hash = jhash2((__force u32 *)addr6->s6_addr32, 4, mix);
net/ceph/ceph_hash.c
43
mix(a, b, c);
net/ceph/ceph_hash.c
86
mix(a, b, c);
security/selinux/include/hash.h
32
mix(key1);
security/selinux/include/hash.h
33
mix(key2);
security/selinux/include/hash.h
34
mix(key3);
sound/core/oss/mixer_oss.c
1230
#define snd_mixer_oss_proc_init(mix)
sound/core/oss/mixer_oss.c
1231
#define snd_mixer_oss_proc_done(mix)
sound/hda/codecs/generic.c
3031
static int add_loopback_list(struct hda_gen_spec *spec, hda_nid_t mix, int idx)
sound/hda/codecs/generic.c
3038
list->nid = mix;
sound/hda/codecs/generic.c
4914
static void mute_all_mixer_nid(struct hda_codec *codec, hda_nid_t mix)
sound/hda/codecs/generic.c
4920
nums = snd_hda_get_conn_list(codec, mix, &conn);
sound/hda/codecs/generic.c
4921
has_amp = nid_has_mute(codec, mix, HDA_INPUT);
sound/hda/codecs/generic.c
4924
update_amp(codec, mix, HDA_INPUT, i,
sound/pci/au88x0/au88x0.h
255
unsigned char mix, int a);
sound/pci/au88x0/au88x0.h
257
unsigned char mix, int mixin,
sound/pci/au88x0/au88x0.h
259
static void vortex_mix_setvolumebyte(vortex_t * vortex, unsigned char mix,
sound/pci/au88x0/au88x0_core.c
102
a = hwread(vortex->mmio, VORTEX_MIX_VOL_A + (mix << 2)) & 0xff;
sound/pci/au88x0/au88x0_core.c
108
vortex_mix_getinputvolume(vortex_t * vortex, unsigned char mix,
sound/pci/au88x0/au88x0_core.c
112
if (!(mchannels[mix] & (1 << channel)))
sound/pci/au88x0/au88x0_core.c
115
VORTEX_MIX_INVOL_A + (((mix << 5) + channel) << 2));
sound/pci/au88x0/au88x0_core.c
131
static void vortex_mix_rampvolume(vortex_t * vortex, int mix)
sound/pci/au88x0/au88x0_core.c
137
if (((1 << ch) & rampchs[mix]) == 0)
sound/pci/au88x0/au88x0_core.c
140
VORTEX_MIX_INVOL_B + (((mix << 5) + ch) << 2));
sound/pci/au88x0/au88x0_core.c
145
(((mix << 5) + ch) << 2), a);
sound/pci/au88x0/au88x0_core.c
148
(((mix << 5) + ch) << 2), a);
sound/pci/au88x0/au88x0_core.c
150
vortex_mix_killinput(vortex, mix, ch);
sound/pci/au88x0/au88x0_core.c
155
vortex_mix_getenablebit(vortex_t * vortex, unsigned char mix, int mixin)
sound/pci/au88x0/au88x0_core.c
162
addr = ((mix << 3) + (addr >> 2)) << 2;
sound/pci/au88x0/au88x0_core.c
168
vortex_mix_setvolumebyte(vortex_t * vortex, unsigned char mix,
sound/pci/au88x0/au88x0_core.c
172
hwwrite(vortex->mmio, VORTEX_MIX_VOL_A + (mix << 2), vol);
sound/pci/au88x0/au88x0_core.c
174
temp = hwread(vortex->mmio, VORTEX_MIX_VOL_B + (mix << 2));
sound/pci/au88x0/au88x0_core.c
178
hwwrite(vortex->mmio, VORTEX_MIX_VOL_B + (mix << 2), vol);
sound/pci/au88x0/au88x0_core.c
182
vortex_mix_setinputvolumebyte(vortex_t * vortex, unsigned char mix,
sound/pci/au88x0/au88x0_core.c
1848
unsigned char mix, int a)
sound/pci/au88x0/au88x0_core.c
1851
vortex_mix_enableinput(vortex, mix, mixin);
sound/pci/au88x0/au88x0_core.c
1852
vortex_mix_setinputvolumebyte(vortex, mix, mixin, MIX_DEFIGAIN); // added to original code.
sound/pci/au88x0/au88x0_core.c
1854
vortex_mix_disableinput(vortex, mix, mixin, a);
sound/pci/au88x0/au88x0_core.c
188
VORTEX_MIX_INVOL_A + (((mix << 5) + mixin) << 2), vol);
sound/pci/au88x0/au88x0_core.c
1886
unsigned char mix, unsigned char dest)
sound/pci/au88x0/au88x0_core.c
1888
vortex_route(vortex, en, ch, ADB_MIXOUT(mix), dest);
sound/pci/au88x0/au88x0_core.c
1889
vortex_mix_setvolumebyte(vortex, mix, MIX_DEFOGAIN); // added to original code.
sound/pci/au88x0/au88x0_core.c
1895
unsigned char mix, unsigned char src)
sound/pci/au88x0/au88x0_core.c
1897
vortex_route(vortex, en, ch, ADB_MIXOUT(mix), ADB_SRCIN(src));
sound/pci/au88x0/au88x0_core.c
1898
vortex_mix_setvolumebyte(vortex, mix, MIX_DEFOGAIN); // added to original code.
sound/pci/au88x0/au88x0_core.c
192
VORTEX_MIX_INVOL_B + (((mix << 5) + mixin) << 2));
sound/pci/au88x0/au88x0_core.c
197
VORTEX_MIX_INVOL_B + (((mix << 5) + mixin) << 2), vol);
sound/pci/au88x0/au88x0_core.c
201
vortex_mix_setenablebit(vortex_t * vortex, unsigned char mix, int mixin, int en)
sound/pci/au88x0/au88x0_core.c
209
addr = ((mix << 3) + (addr >> 2)) << 2;
sound/pci/au88x0/au88x0_core.c
2136
int src[4], mix[4], ch_top;
sound/pci/au88x0/au88x0_core.c
2152
mix[i] = vortex_adb_checkinout(vortex,
sound/pci/au88x0/au88x0_core.c
2156
if (mix[i] < 0) {
sound/pci/au88x0/au88x0_core.c
217
VORTEX_MIX_INVOL_B + (((mix << 5) + mixin) << 2), 0x80);
sound/pci/au88x0/au88x0_core.c
2200
mix[i]);
sound/pci/au88x0/au88x0_core.c
2202
mix[i],
sound/pci/au88x0/au88x0_core.c
2206
mix[i],
sound/pci/au88x0/au88x0_core.c
2210
mix[i],
sound/pci/au88x0/au88x0_core.c
2235
mix[i % nr_ch],
sound/pci/au88x0/au88x0_core.c
2239
mix[i % nr_ch],
sound/pci/au88x0/au88x0_core.c
2244
mix[i % nr_ch],
sound/pci/au88x0/au88x0_core.c
2252
p->mixin[i] = mix[i];
sound/pci/au88x0/au88x0_core.c
226
vortex_mix_killinput(vortex_t * vortex, unsigned char mix, int mixin)
sound/pci/au88x0/au88x0_core.c
2276
int src[2], mix[2];
sound/pci/au88x0/au88x0_core.c
228
rampchs[mix] &= ~(1 << mixin);
sound/pci/au88x0/au88x0_core.c
2283
mix[i] = vortex_adb_checkinout(vortex,
sound/pci/au88x0/au88x0_core.c
2286
if (mix[i] < 0) {
sound/pci/au88x0/au88x0_core.c
229
vortex_mix_setinputvolumebyte(vortex, mix, mixin, 0x80);
sound/pci/au88x0/au88x0_core.c
230
mchannels[mix] &= ~(1 << mixin);
sound/pci/au88x0/au88x0_core.c
2302
vortex_connection_mixin_mix(vortex, en, MIX_CAPT(0), mix[0], 0);
sound/pci/au88x0/au88x0_core.c
2303
vortex_connection_mix_src(vortex, en, 0x11, mix[0], src[0]);
sound/pci/au88x0/au88x0_core.c
2306
MIX_CAPT(1), mix[0], 0);
sound/pci/au88x0/au88x0_core.c
231
vortex_mix_setenablebit(vortex, mix, mixin, 0);
sound/pci/au88x0/au88x0_core.c
2312
MIX_CAPT(1), mix[1], 0);
sound/pci/au88x0/au88x0_core.c
2313
vortex_connection_mix_src(vortex, en, 0x11, mix[1],
sound/pci/au88x0/au88x0_core.c
235
vortex_mix_enableinput(vortex_t * vortex, unsigned char mix, int mixin)
sound/pci/au88x0/au88x0_core.c
237
vortex_mix_killinput(vortex, mix, mixin);
sound/pci/au88x0/au88x0_core.c
238
if ((mchannels[mix] & (1 << mixin)) == 0) {
sound/pci/au88x0/au88x0_core.c
239
vortex_mix_setinputvolumebyte(vortex, mix, mixin, 0x80); /*0x80 : mute */
sound/pci/au88x0/au88x0_core.c
240
mchannels[mix] |= (1 << mixin);
sound/pci/au88x0/au88x0_core.c
242
vortex_mix_setenablebit(vortex, mix, mixin, 1);
sound/pci/au88x0/au88x0_core.c
246
vortex_mix_disableinput(vortex_t * vortex, unsigned char mix, int channel,
sound/pci/au88x0/au88x0_core.c
250
rampchs[mix] |= (1 << channel);
sound/pci/au88x0/au88x0_core.c
253
vortex_mix_killinput(vortex, mix, channel);
sound/pci/au88x0/au88x0_core.c
255
vortex_mix_killinput(vortex, mix, channel);
sound/pci/au88x0/au88x0_core.c
259
vortex_mixer_addWTD(vortex_t * vortex, unsigned char mix, unsigned char ch)
sound/pci/au88x0/au88x0_core.c
265
hwwrite(vortex->mmio, VORTEX_MIXER_CHNBASE + (ch << 2), mix);
sound/pci/au88x0/au88x0_core.c
281
hwwrite(vortex->mmio, VORTEX_MIXER_RTBASE + ((temp & 0xf) << 2), mix);
sound/pci/au88x0/au88x0_core.c
287
vortex_mixer_delWTD(vortex_t * vortex, unsigned char mix, unsigned char ch)
sound/pci/au88x0/au88x0_core.c
301
if (mix == ebx) {
sound/pci/au88x0/au88x0_core.c
302
ebx = VORTEX_MIXER_RTBASE + (mix << 2);
sound/pci/au88x0/au88x0_core.c
313
while ((edx & 0xf) != mix) {
sound/pci/au88x0/au88x0_core.c
90
vortex_mix_muteinputgain(vortex_t * vortex, unsigned char mix,
sound/pci/au88x0/au88x0_core.c
93
hwwrite(vortex->mmio, VORTEX_MIX_INVOL_A + ((mix << 5) + channel),
sound/pci/au88x0/au88x0_core.c
95
hwwrite(vortex->mmio, VORTEX_MIX_INVOL_B + ((mix << 5) + channel),
sound/pci/au88x0/au88x0_core.c
99
static int vortex_mix_getvolume(vortex_t * vortex, unsigned char mix)
sound/pci/au88x0/au88x0_synth.c
106
int i, ii, mix;
sound/pci/au88x0/au88x0_synth.c
117
mix =
sound/pci/au88x0/au88x0_synth.c
121
vortex->mixwt[(i * NR_WTROUTES) + ii] = mix;
sound/pci/au88x0/au88x0_synth.c
124
ADB_WTOUT(i, ii + 0x20), ADB_MIXIN(mix));
sound/pci/au88x0/au88x0_synth.c
126
vortex_connection_mixin_mix(vortex, en, mix,
sound/pci/au88x0/au88x0_synth.c
130
mix,
sound/pci/au88x0/au88x0_synth.c
20
unsigned char mix, int a);
sound/pci/emu10k1/emumixer.c
1481
struct snd_emu10k1_pcm_mixer *mix =
sound/pci/emu10k1/emumixer.c
1490
mix->send_routing[voice][idx] & mask;
sound/pci/emu10k1/emumixer.c
1498
struct snd_emu10k1_pcm_mixer *mix =
sound/pci/emu10k1/emumixer.c
1508
if (mix->send_routing[voice][idx] != val) {
sound/pci/emu10k1/emumixer.c
1509
mix->send_routing[voice][idx] = val;
sound/pci/emu10k1/emumixer.c
1513
if (change && mix->epcm && mix->epcm->voices[0]) {
sound/pci/emu10k1/emumixer.c
1514
if (!mix->epcm->voices[0]->last) {
sound/pci/emu10k1/emumixer.c
1515
update_emu10k1_fxrt(emu, mix->epcm->voices[0]->number,
sound/pci/emu10k1/emumixer.c
1516
&mix->send_routing[1][0]);
sound/pci/emu10k1/emumixer.c
1517
update_emu10k1_fxrt(emu, mix->epcm->voices[0]->number + 1,
sound/pci/emu10k1/emumixer.c
1518
&mix->send_routing[2][0]);
sound/pci/emu10k1/emumixer.c
1520
update_emu10k1_fxrt(emu, mix->epcm->voices[0]->number,
sound/pci/emu10k1/emumixer.c
1521
&mix->send_routing[0][0]);
sound/pci/emu10k1/emumixer.c
1552
struct snd_emu10k1_pcm_mixer *mix =
sound/pci/emu10k1/emumixer.c
1558
ucontrol->value.integer.value[idx] = mix->send_volume[idx/num_efx][idx%num_efx];
sound/pci/emu10k1/emumixer.c
1566
struct snd_emu10k1_pcm_mixer *mix =
sound/pci/emu10k1/emumixer.c
1574
if (mix->send_volume[idx/num_efx][idx%num_efx] != val) {
sound/pci/emu10k1/emumixer.c
1575
mix->send_volume[idx/num_efx][idx%num_efx] = val;
sound/pci/emu10k1/emumixer.c
1579
if (change && mix->epcm && mix->epcm->voices[0]) {
sound/pci/emu10k1/emumixer.c
1580
if (!mix->epcm->voices[0]->last) {
sound/pci/emu10k1/emumixer.c
1581
update_emu10k1_send_volume(emu, mix->epcm->voices[0]->number,
sound/pci/emu10k1/emumixer.c
1582
&mix->send_volume[1][0]);
sound/pci/emu10k1/emumixer.c
1583
update_emu10k1_send_volume(emu, mix->epcm->voices[0]->number + 1,
sound/pci/emu10k1/emumixer.c
1584
&mix->send_volume[2][0]);
sound/pci/emu10k1/emumixer.c
1586
update_emu10k1_send_volume(emu, mix->epcm->voices[0]->number,
sound/pci/emu10k1/emumixer.c
1587
&mix->send_volume[0][0]);
sound/pci/emu10k1/emumixer.c
1617
struct snd_emu10k1_pcm_mixer *mix =
sound/pci/emu10k1/emumixer.c
1622
ucontrol->value.integer.value[idx] = mix->attn[idx] * 0xffffU / 0x8000U;
sound/pci/emu10k1/emumixer.c
1630
struct snd_emu10k1_pcm_mixer *mix =
sound/pci/emu10k1/emumixer.c
1638
if (mix->attn[idx] != val) {
sound/pci/emu10k1/emumixer.c
1639
mix->attn[idx] = val;
sound/pci/emu10k1/emumixer.c
1643
if (change && mix->epcm && mix->epcm->voices[0]) {
sound/pci/emu10k1/emumixer.c
1644
if (!mix->epcm->voices[0]->last) {
sound/pci/emu10k1/emumixer.c
1645
snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[0]->number, mix->attn[1]);
sound/pci/emu10k1/emumixer.c
1646
snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[0]->number + 1, mix->attn[2]);
sound/pci/emu10k1/emumixer.c
1648
snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[0]->number, mix->attn[0]);
sound/pci/emu10k1/emumixer.c
1681
struct snd_emu10k1_pcm_mixer *mix =
sound/pci/emu10k1/emumixer.c
1689
mix->send_routing[0][idx] & mask;
sound/pci/emu10k1/emumixer.c
1698
struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch];
sound/pci/emu10k1/emumixer.c
1706
if (mix->send_routing[0][idx] != val) {
sound/pci/emu10k1/emumixer.c
1707
mix->send_routing[0][idx] = val;
sound/pci/emu10k1/emumixer.c
1712
if (change && mix->epcm) {
sound/pci/emu10k1/emumixer.c
1713
if (mix->epcm->voices[ch]) {
sound/pci/emu10k1/emumixer.c
1714
update_emu10k1_fxrt(emu, mix->epcm->voices[ch]->number,
sound/pci/emu10k1/emumixer.c
1715
&mix->send_routing[0][0]);
sound/pci/emu10k1/emumixer.c
1746
struct snd_emu10k1_pcm_mixer *mix =
sound/pci/emu10k1/emumixer.c
1752
ucontrol->value.integer.value[idx] = mix->send_volume[0][idx];
sound/pci/emu10k1/emumixer.c
1761
struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch];
sound/pci/emu10k1/emumixer.c
1768
if (mix->send_volume[0][idx] != val) {
sound/pci/emu10k1/emumixer.c
1769
mix->send_volume[0][idx] = val;
sound/pci/emu10k1/emumixer.c
1773
if (change && mix->epcm) {
sound/pci/emu10k1/emumixer.c
1774
if (mix->epcm->voices[ch]) {
sound/pci/emu10k1/emumixer.c
1775
update_emu10k1_send_volume(emu, mix->epcm->voices[ch]->number,
sound/pci/emu10k1/emumixer.c
1776
&mix->send_volume[0][0]);
sound/pci/emu10k1/emumixer.c
1807
struct snd_emu10k1_pcm_mixer *mix =
sound/pci/emu10k1/emumixer.c
1810
ucontrol->value.integer.value[0] = mix->attn[0] * 0xffffU / 0x8000U;
sound/pci/emu10k1/emumixer.c
1819
struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch];
sound/pci/emu10k1/emumixer.c
1826
if (mix->attn[0] != val) {
sound/pci/emu10k1/emumixer.c
1827
mix->attn[0] = val;
sound/pci/emu10k1/emumixer.c
1830
if (change && mix->epcm) {
sound/pci/emu10k1/emumixer.c
1831
if (mix->epcm->voices[ch]) {
sound/pci/emu10k1/emumixer.c
1832
snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[ch]->number, mix->attn[0]);
sound/pci/emu10k1/emupcm.c
1100
struct snd_emu10k1_pcm_mixer *mix;
sound/pci/emu10k1/emupcm.c
1104
mix = &emu->efx_pcm_mixer[i];
sound/pci/emu10k1/emupcm.c
1105
mix->epcm = NULL;
sound/pci/emu10k1/emupcm.c
1131
struct snd_emu10k1_pcm_mixer *mix;
sound/pci/emu10k1/emupcm.c
1154
mix = &emu->efx_pcm_mixer[i];
sound/pci/emu10k1/emupcm.c
1156
mix->send_routing[0][j] = i + j;
sound/pci/emu10k1/emupcm.c
1157
memset(&mix->send_volume, 0, sizeof(mix->send_volume));
sound/pci/emu10k1/emupcm.c
1158
mix->send_volume[0][0] = 255;
sound/pci/emu10k1/emupcm.c
1159
mix->attn[0] = 0x8000;
sound/pci/emu10k1/emupcm.c
1160
mix->epcm = epcm;
sound/pci/emu10k1/emupcm.c
1170
struct snd_emu10k1_pcm_mixer *mix;
sound/pci/emu10k1/emupcm.c
1197
mix = &emu->pcm_mixer[substream->number];
sound/pci/emu10k1/emupcm.c
1199
mix->send_routing[0][i] = mix->send_routing[1][i] = mix->send_routing[2][i] = i;
sound/pci/emu10k1/emupcm.c
1200
memset(&mix->send_volume, 0, sizeof(mix->send_volume));
sound/pci/emu10k1/emupcm.c
1201
mix->send_volume[0][0] = mix->send_volume[0][1] =
sound/pci/emu10k1/emupcm.c
1202
mix->send_volume[1][0] = mix->send_volume[2][1] = 255;
sound/pci/emu10k1/emupcm.c
1203
mix->attn[0] = mix->attn[1] = mix->attn[2] = 0x8000;
sound/pci/emu10k1/emupcm.c
1204
mix->epcm = epcm;
sound/pci/emu10k1/emupcm.c
1212
struct snd_emu10k1_pcm_mixer *mix = &emu->pcm_mixer[substream->number];
sound/pci/emu10k1/emupcm.c
1214
mix->epcm = NULL;
sound/pci/emu10k1/emupcm.c
320
struct snd_emu10k1_pcm_mixer *mix)
sound/pci/emu10k1/emupcm.c
325
&mix->send_routing[stereo][0],
sound/pci/emu10k1/emupcm.c
326
&mix->send_volume[stereo][0]);
sound/pci/emu10k1/emupcm.c
330
&mix->send_routing[2][0],
sound/pci/emu10k1/emupcm.c
331
&mix->send_volume[2][0]);
sound/pci/emu10k1/emupcm.c
641
struct snd_emu10k1_pcm_mixer *mix)
sound/pci/emu10k1/emupcm.c
647
vattn = mix->attn[tmp] << 16;
sound/pci/emu10k1/emupcm.c
654
struct snd_emu10k1_pcm_mixer *mix)
sound/pci/emu10k1/emupcm.c
656
snd_emu10k1_playback_unmute_voice(emu, evoice, stereo, true, mix);
sound/pci/emu10k1/emupcm.c
658
snd_emu10k1_playback_unmute_voice(emu, evoice + 1, true, false, mix);
sound/pci/emu10k1/emupcm.c
725
struct snd_emu10k1_pcm_mixer *mix;
sound/pci/emu10k1/emupcm.c
741
mix = &emu->pcm_mixer[substream->number];
sound/pci/emu10k1/emupcm.c
742
snd_emu10k1_playback_unmute_voices(emu, epcm->voices[0], stereo, mix);
sound/pci/lola/lola.h
120
#define LOLA_BAR1_MIX_GAIN(dest, mix) \
sound/pci/lola/lola.h
121
(LOLA_BAR1_DEST00_MIX00_01_GAIN + (dest) * 0x40 + (mix) * 2)
sound/pci/trident/trident_main.c
1350
struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[substream->number];
sound/pci/trident/trident_main.c
1426
voice->Vol = mix->vol;
sound/pci/trident/trident_main.c
1427
voice->RVol = mix->rvol;
sound/pci/trident/trident_main.c
1428
voice->CVol = mix->cvol;
sound/pci/trident/trident_main.c
1429
voice->Pan = mix->pan;
sound/pci/trident/trident_main.c
2594
struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->id)];
sound/pci/trident/trident_main.c
2597
ucontrol->value.integer.value[0] = 1023 - mix->vol;
sound/pci/trident/trident_main.c
2599
ucontrol->value.integer.value[0] = 255 - (mix->vol>>2);
sound/pci/trident/trident_main.c
2608
struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->id)];
sound/pci/trident/trident_main.c
2618
change = val != mix->vol;
sound/pci/trident/trident_main.c
2619
mix->vol = val;
sound/pci/trident/trident_main.c
2620
if (mix->voice != NULL)
sound/pci/trident/trident_main.c
2621
snd_trident_write_vol_reg(trident, mix->voice, val);
sound/pci/trident/trident_main.c
2657
struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->id)];
sound/pci/trident/trident_main.c
2659
ucontrol->value.integer.value[0] = mix->pan;
sound/pci/trident/trident_main.c
2672
struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->id)];
sound/pci/trident/trident_main.c
2681
change = val != mix->pan;
sound/pci/trident/trident_main.c
2682
mix->pan = val;
sound/pci/trident/trident_main.c
2683
if (mix->voice != NULL)
sound/pci/trident/trident_main.c
2684
snd_trident_write_pan_reg(trident, mix->voice, val);
sound/pci/trident/trident_main.c
2719
struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->id)];
sound/pci/trident/trident_main.c
2721
ucontrol->value.integer.value[0] = 127 - mix->rvol;
sound/pci/trident/trident_main.c
2729
struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->id)];
sound/pci/trident/trident_main.c
2735
change = val != mix->rvol;
sound/pci/trident/trident_main.c
2736
mix->rvol = val;
sound/pci/trident/trident_main.c
2737
if (mix->voice != NULL)
sound/pci/trident/trident_main.c
2738
snd_trident_write_rvol_reg(trident, mix->voice, val);
sound/pci/trident/trident_main.c
2776
struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->id)];
sound/pci/trident/trident_main.c
2778
ucontrol->value.integer.value[0] = 127 - mix->cvol;
sound/pci/trident/trident_main.c
2786
struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->id)];
sound/pci/trident/trident_main.c
2792
change = val != mix->cvol;
sound/pci/trident/trident_main.c
2793
mix->cvol = val;
sound/pci/trident/trident_main.c
2794
if (mix->voice != NULL)
sound/pci/trident/trident_main.c
2795
snd_trident_write_cvol_reg(trident, mix->voice, val);
sound/pci/trident/trident_main.c
906
struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[substream->number];
sound/pci/trident/trident_main.c
928
voice->Vol = mix->vol;
sound/pci/trident/trident_main.c
929
voice->RVol = mix->rvol;
sound/pci/trident/trident_main.c
930
voice->CVol = mix->cvol;
sound/pci/trident/trident_main.c
931
voice->Pan = mix->pan;
sound/ppc/daca.c
101
mix = chip->mixer_data;
sound/ppc/daca.c
102
if (!mix)
sound/ppc/daca.c
104
change = mix->deemphasis != ucontrol->value.integer.value[0];
sound/ppc/daca.c
106
mix->deemphasis = !!ucontrol->value.integer.value[0];
sound/ppc/daca.c
107
daca_set_volume(mix);
sound/ppc/daca.c
127
struct pmac_daca *mix;
sound/ppc/daca.c
128
mix = chip->mixer_data;
sound/ppc/daca.c
129
if (!mix)
sound/ppc/daca.c
131
ucontrol->value.integer.value[0] = mix->left_vol;
sound/ppc/daca.c
132
ucontrol->value.integer.value[1] = mix->right_vol;
sound/ppc/daca.c
140
struct pmac_daca *mix;
sound/ppc/daca.c
144
mix = chip->mixer_data;
sound/ppc/daca.c
145
if (!mix)
sound/ppc/daca.c
151
change = mix->left_vol != vol[0] ||
sound/ppc/daca.c
152
mix->right_vol != vol[1];
sound/ppc/daca.c
154
mix->left_vol = vol[0];
sound/ppc/daca.c
155
mix->right_vol = vol[1];
sound/ppc/daca.c
156
daca_set_volume(mix);
sound/ppc/daca.c
168
struct pmac_daca *mix;
sound/ppc/daca.c
169
mix = chip->mixer_data;
sound/ppc/daca.c
170
if (!mix)
sound/ppc/daca.c
172
ucontrol->value.integer.value[0] = mix->amp_on ? 1 : 0;
sound/ppc/daca.c
180
struct pmac_daca *mix;
sound/ppc/daca.c
183
mix = chip->mixer_data;
sound/ppc/daca.c
184
if (!mix)
sound/ppc/daca.c
186
change = mix->amp_on != ucontrol->value.integer.value[0];
sound/ppc/daca.c
188
mix->amp_on = !!ucontrol->value.integer.value[0];
sound/ppc/daca.c
189
i2c_smbus_write_byte_data(mix->i2c.client, DACA_REG_GCFG,
sound/ppc/daca.c
190
mix->amp_on ? 0x05 : 0x04);
sound/ppc/daca.c
220
struct pmac_daca *mix = chip->mixer_data;
sound/ppc/daca.c
221
i2c_smbus_write_byte_data(mix->i2c.client, DACA_REG_SR, 0x08);
sound/ppc/daca.c
222
i2c_smbus_write_byte_data(mix->i2c.client, DACA_REG_GCFG,
sound/ppc/daca.c
223
mix->amp_on ? 0x05 : 0x04);
sound/ppc/daca.c
224
daca_set_volume(mix);
sound/ppc/daca.c
231
struct pmac_daca *mix = chip->mixer_data;
sound/ppc/daca.c
232
if (! mix)
sound/ppc/daca.c
234
snd_pmac_keywest_cleanup(&mix->i2c);
sound/ppc/daca.c
235
kfree(mix);
sound/ppc/daca.c
243
struct pmac_daca *mix;
sound/ppc/daca.c
247
mix = kzalloc_obj(*mix);
sound/ppc/daca.c
248
if (! mix)
sound/ppc/daca.c
250
chip->mixer_data = mix;
sound/ppc/daca.c
252
mix->amp_on = 1; /* default on */
sound/ppc/daca.c
254
mix->i2c.addr = DACA_I2C_ADDR;
sound/ppc/daca.c
255
mix->i2c.init_client = daca_init_client;
sound/ppc/daca.c
256
mix->i2c.name = "DACA";
sound/ppc/daca.c
257
err = snd_pmac_keywest_init(&mix->i2c);
sound/ppc/daca.c
54
static int daca_set_volume(struct pmac_daca *mix)
sound/ppc/daca.c
58
if (! mix->i2c.client)
sound/ppc/daca.c
61
if (mix->left_vol > DACA_VOL_MAX)
sound/ppc/daca.c
64
data[0] = mix->left_vol;
sound/ppc/daca.c
65
if (mix->right_vol > DACA_VOL_MAX)
sound/ppc/daca.c
68
data[1] = mix->right_vol;
sound/ppc/daca.c
69
data[1] |= mix->deemphasis ? 0x40 : 0;
sound/ppc/daca.c
70
if (i2c_smbus_write_block_data(mix->i2c.client, DACA_REG_AVOL,
sound/ppc/daca.c
72
dev_err(&mix->i2c.client->dev, "failed to set volume\n");
sound/ppc/daca.c
86
struct pmac_daca *mix;
sound/ppc/daca.c
87
mix = chip->mixer_data;
sound/ppc/daca.c
88
if (!mix)
sound/ppc/daca.c
90
ucontrol->value.integer.value[0] = mix->deemphasis ? 1 : 0;
sound/ppc/daca.c
98
struct pmac_daca *mix;
sound/ppc/tumbler.c
1000
check_mute(chip, &mix->amp_mute, 0, mix->auto_mute_notify,
sound/ppc/tumbler.c
1002
if (mix->anded_reset)
sound/ppc/tumbler.c
1004
check_mute(chip, &mix->hp_mute, 1, mix->auto_mute_notify,
sound/ppc/tumbler.c
1006
if (mix->line_mute.addr != 0)
sound/ppc/tumbler.c
1007
check_mute(chip, &mix->line_mute, 1, mix->auto_mute_notify,
sound/ppc/tumbler.c
1010
if (mix->auto_mute_notify)
sound/ppc/tumbler.c
1015
mix->drc_enable = ! (headphone || lineout);
sound/ppc/tumbler.c
1016
if (mix->auto_mute_notify)
sound/ppc/tumbler.c
1020
tumbler_set_drc(mix);
sound/ppc/tumbler.c
1022
snapper_set_drc(mix);
sound/ppc/tumbler.c
1026
tumbler_set_master_volume(mix);
sound/ppc/tumbler.c
1032
struct pmac_tumbler *mix;
sound/ppc/tumbler.c
1033
mix = chip->mixer_data;
sound/ppc/tumbler.c
1034
if (snd_BUG_ON(!mix))
sound/ppc/tumbler.c
1036
mix->auto_mute_notify = do_notify;
sound/ppc/tumbler.c
1165
struct pmac_tumbler *mix = chip->mixer_data;
sound/ppc/tumbler.c
1167
if (mix->anded_reset) {
sound/ppc/tumbler.c
1169
write_audio_gpio(&mix->hp_mute, 0);
sound/ppc/tumbler.c
1170
write_audio_gpio(&mix->amp_mute, 0);
sound/ppc/tumbler.c
1172
write_audio_gpio(&mix->hp_mute, 1);
sound/ppc/tumbler.c
1173
write_audio_gpio(&mix->amp_mute, 1);
sound/ppc/tumbler.c
1175
write_audio_gpio(&mix->hp_mute, 0);
sound/ppc/tumbler.c
1176
write_audio_gpio(&mix->amp_mute, 0);
sound/ppc/tumbler.c
1181
write_audio_gpio(&mix->audio_reset, 0);
sound/ppc/tumbler.c
1183
write_audio_gpio(&mix->audio_reset, 1);
sound/ppc/tumbler.c
1185
write_audio_gpio(&mix->audio_reset, 0);
sound/ppc/tumbler.c
1194
struct pmac_tumbler *mix = chip->mixer_data;
sound/ppc/tumbler.c
1196
if (mix->headphone_irq >= 0)
sound/ppc/tumbler.c
1197
disable_irq(mix->headphone_irq);
sound/ppc/tumbler.c
1198
if (mix->lineout_irq >= 0)
sound/ppc/tumbler.c
1199
disable_irq(mix->lineout_irq);
sound/ppc/tumbler.c
1200
mix->save_master_switch[0] = mix->master_switch[0];
sound/ppc/tumbler.c
1201
mix->save_master_switch[1] = mix->master_switch[1];
sound/ppc/tumbler.c
1202
mix->save_master_vol[0] = mix->master_vol[0];
sound/ppc/tumbler.c
1203
mix->save_master_vol[1] = mix->master_vol[1];
sound/ppc/tumbler.c
1204
mix->master_switch[0] = mix->master_switch[1] = 0;
sound/ppc/tumbler.c
1205
tumbler_set_master_volume(mix);
sound/ppc/tumbler.c
1206
if (!mix->anded_reset) {
sound/ppc/tumbler.c
1207
write_audio_gpio(&mix->amp_mute, 1);
sound/ppc/tumbler.c
1208
write_audio_gpio(&mix->hp_mute, 1);
sound/ppc/tumbler.c
1211
mix->acs |= 1;
sound/ppc/tumbler.c
1212
i2c_smbus_write_byte_data(mix->i2c.client, TAS_REG_ACS, mix->acs);
sound/ppc/tumbler.c
1214
if (mix->anded_reset) {
sound/ppc/tumbler.c
1215
write_audio_gpio(&mix->amp_mute, 1);
sound/ppc/tumbler.c
1216
write_audio_gpio(&mix->hp_mute, 1);
sound/ppc/tumbler.c
1218
write_audio_gpio(&mix->audio_reset, 1);
sound/ppc/tumbler.c
1224
struct pmac_tumbler *mix = chip->mixer_data;
sound/ppc/tumbler.c
1226
mix->acs &= ~1;
sound/ppc/tumbler.c
1227
mix->master_switch[0] = mix->save_master_switch[0];
sound/ppc/tumbler.c
1228
mix->master_switch[1] = mix->save_master_switch[1];
sound/ppc/tumbler.c
1229
mix->master_vol[0] = mix->save_master_vol[0];
sound/ppc/tumbler.c
1230
mix->master_vol[1] = mix->save_master_vol[1];
sound/ppc/tumbler.c
1232
if (mix->i2c.client && mix->i2c.init_client) {
sound/ppc/tumbler.c
1233
if (mix->i2c.init_client(&mix->i2c) < 0)
sound/ppc/tumbler.c
1238
tumbler_set_mono_volume(mix, &tumbler_pcm_vol_info);
sound/ppc/tumbler.c
1239
tumbler_set_mono_volume(mix, &tumbler_bass_vol_info);
sound/ppc/tumbler.c
1240
tumbler_set_mono_volume(mix, &tumbler_treble_vol_info);
sound/ppc/tumbler.c
1241
tumbler_set_drc(mix);
sound/ppc/tumbler.c
1243
snapper_set_mix_vol(mix, VOL_IDX_PCM);
sound/ppc/tumbler.c
1244
snapper_set_mix_vol(mix, VOL_IDX_PCM2);
sound/ppc/tumbler.c
1245
snapper_set_mix_vol(mix, VOL_IDX_ADC);
sound/ppc/tumbler.c
1246
tumbler_set_mono_volume(mix, &snapper_bass_vol_info);
sound/ppc/tumbler.c
1247
tumbler_set_mono_volume(mix, &snapper_treble_vol_info);
sound/ppc/tumbler.c
1248
snapper_set_drc(mix);
sound/ppc/tumbler.c
1249
snapper_set_capture_source(mix);
sound/ppc/tumbler.c
1251
tumbler_set_master_volume(mix);
sound/ppc/tumbler.c
1254
if (mix->headphone_irq >= 0) {
sound/ppc/tumbler.c
1257
enable_irq(mix->headphone_irq);
sound/ppc/tumbler.c
1259
val = do_gpio_read(&mix->hp_detect);
sound/ppc/tumbler.c
1260
do_gpio_write(&mix->hp_detect, val | 0x80);
sound/ppc/tumbler.c
1262
if (mix->lineout_irq >= 0)
sound/ppc/tumbler.c
1263
enable_irq(mix->lineout_irq);
sound/ppc/tumbler.c
1271
struct pmac_tumbler *mix = chip->mixer_data;
sound/ppc/tumbler.c
1275
&mix->audio_reset, 0) < 0)
sound/ppc/tumbler.c
1278
&mix->audio_reset, 1);
sound/ppc/tumbler.c
1281
&mix->amp_mute, 0) < 0)
sound/ppc/tumbler.c
1284
&mix->amp_mute, 1);
sound/ppc/tumbler.c
1287
&mix->hp_mute, 0) < 0)
sound/ppc/tumbler.c
1290
&mix->hp_mute, 1);
sound/ppc/tumbler.c
1293
&mix->line_mute, 0) < 0)
sound/ppc/tumbler.c
1296
&mix->line_mute, 1);
sound/ppc/tumbler.c
1298
NULL, &mix->hp_detect, 0);
sound/ppc/tumbler.c
1301
NULL, &mix->hp_detect, 1);
sound/ppc/tumbler.c
1304
NULL, &mix->hp_detect, 1);
sound/ppc/tumbler.c
1305
mix->headphone_irq = irq;
sound/ppc/tumbler.c
1307
NULL, &mix->line_detect, 0);
sound/ppc/tumbler.c
1310
NULL, &mix->line_detect, 1);
sound/ppc/tumbler.c
1313
NULL, &mix->line_detect, 1);
sound/ppc/tumbler.c
1314
mix->lineout_irq = irq;
sound/ppc/tumbler.c
1323
struct pmac_tumbler *mix = chip->mixer_data;
sound/ppc/tumbler.c
1324
if (! mix)
sound/ppc/tumbler.c
1327
if (mix->headphone_irq >= 0)
sound/ppc/tumbler.c
1328
free_irq(mix->headphone_irq, chip);
sound/ppc/tumbler.c
1329
if (mix->lineout_irq >= 0)
sound/ppc/tumbler.c
1330
free_irq(mix->lineout_irq, chip);
sound/ppc/tumbler.c
1331
tumbler_gpio_free(&mix->audio_reset);
sound/ppc/tumbler.c
1332
tumbler_gpio_free(&mix->amp_mute);
sound/ppc/tumbler.c
1333
tumbler_gpio_free(&mix->hp_mute);
sound/ppc/tumbler.c
1334
tumbler_gpio_free(&mix->hp_detect);
sound/ppc/tumbler.c
1335
snd_pmac_keywest_cleanup(&mix->i2c);
sound/ppc/tumbler.c
1336
kfree(mix);
sound/ppc/tumbler.c
1344
struct pmac_tumbler *mix;
sound/ppc/tumbler.c
1351
mix = kzalloc_obj(*mix);
sound/ppc/tumbler.c
1352
if (! mix)
sound/ppc/tumbler.c
1354
mix->headphone_irq = -1;
sound/ppc/tumbler.c
1356
chip->mixer_data = mix;
sound/ppc/tumbler.c
1358
mix->anded_reset = 0;
sound/ppc/tumbler.c
1359
mix->reset_on_sleep = 1;
sound/ppc/tumbler.c
1364
mix->anded_reset = 1;
sound/ppc/tumbler.c
1366
mix->reset_on_sleep = 0;
sound/ppc/tumbler.c
1386
mix->i2c.addr = (*paddr) >> 1;
sound/ppc/tumbler.c
1388
mix->i2c.addr = TAS_I2C_ADDR;
sound/ppc/tumbler.c
1391
DBG("(I) TAS i2c address is: %x\n", mix->i2c.addr);
sound/ppc/tumbler.c
1394
mix->i2c.init_client = tumbler_init_client;
sound/ppc/tumbler.c
1395
mix->i2c.name = "TAS3001c";
sound/ppc/tumbler.c
1398
mix->i2c.init_client = snapper_init_client;
sound/ppc/tumbler.c
1399
mix->i2c.name = "TAS3004";
sound/ppc/tumbler.c
1403
err = snd_pmac_keywest_init(&mix->i2c);
sound/ppc/tumbler.c
1433
if (mix->line_mute.addr != 0) {
sound/ppc/tumbler.c
1446
mix->drc_range = (TAS3001_DRC_MAX * 6) / 10;
sound/ppc/tumbler.c
1448
mix->drc_range = (TAS3004_DRC_MAX * 6) / 10;
sound/ppc/tumbler.c
1449
mix->drc_enable = 1; /* will be changed later if AUTO_DRC is set */
sound/ppc/tumbler.c
1451
tumbler_set_drc(mix);
sound/ppc/tumbler.c
1453
snapper_set_drc(mix);
sound/ppc/tumbler.c
1464
if (mix->headphone_irq >= 0 || mix->lineout_irq >= 0) {
sound/ppc/tumbler.c
1474
if (mix->headphone_irq >= 0) {
sound/ppc/tumbler.c
1476
err = request_irq(mix->headphone_irq, headphone_intr, 0,
sound/ppc/tumbler.c
1481
val = do_gpio_read(&mix->hp_detect);
sound/ppc/tumbler.c
1482
do_gpio_write(&mix->hp_detect, val | 0x80);
sound/ppc/tumbler.c
1484
if (mix->lineout_irq >= 0) {
sound/ppc/tumbler.c
1486
err = request_irq(mix->lineout_irq, headphone_intr, 0,
sound/ppc/tumbler.c
1491
val = do_gpio_read(&mix->line_detect);
sound/ppc/tumbler.c
1492
do_gpio_write(&mix->line_detect, val | 0x80);
sound/ppc/tumbler.c
198
static int tumbler_set_master_volume(struct pmac_tumbler *mix)
sound/ppc/tumbler.c
203
if (! mix->i2c.client)
sound/ppc/tumbler.c
206
if (! mix->master_switch[0])
sound/ppc/tumbler.c
209
left_vol = mix->master_vol[0];
sound/ppc/tumbler.c
214
if (! mix->master_switch[1])
sound/ppc/tumbler.c
217
right_vol = mix->master_vol[1];
sound/ppc/tumbler.c
231
if (i2c_smbus_write_i2c_block_data(mix->i2c.client, TAS_REG_VOL, 6,
sound/ppc/tumbler.c
233
dev_err(&mix->i2c.client->dev, "failed to set volume\n");
sound/ppc/tumbler.c
256
struct pmac_tumbler *mix = chip->mixer_data;
sound/ppc/tumbler.c
258
ucontrol->value.integer.value[0] = mix->master_vol[0];
sound/ppc/tumbler.c
259
ucontrol->value.integer.value[1] = mix->master_vol[1];
sound/ppc/tumbler.c
267
struct pmac_tumbler *mix = chip->mixer_data;
sound/ppc/tumbler.c
276
change = mix->master_vol[0] != vol[0] ||
sound/ppc/tumbler.c
277
mix->master_vol[1] != vol[1];
sound/ppc/tumbler.c
279
mix->master_vol[0] = vol[0];
sound/ppc/tumbler.c
280
mix->master_vol[1] = vol[1];
sound/ppc/tumbler.c
281
tumbler_set_master_volume(mix);
sound/ppc/tumbler.c
291
struct pmac_tumbler *mix = chip->mixer_data;
sound/ppc/tumbler.c
293
ucontrol->value.integer.value[0] = mix->master_switch[0];
sound/ppc/tumbler.c
294
ucontrol->value.integer.value[1] = mix->master_switch[1];
sound/ppc/tumbler.c
302
struct pmac_tumbler *mix = chip->mixer_data;
sound/ppc/tumbler.c
305
change = mix->master_switch[0] != ucontrol->value.integer.value[0] ||
sound/ppc/tumbler.c
306
mix->master_switch[1] != ucontrol->value.integer.value[1];
sound/ppc/tumbler.c
308
mix->master_switch[0] = !!ucontrol->value.integer.value[0];
sound/ppc/tumbler.c
309
mix->master_switch[1] = !!ucontrol->value.integer.value[1];
sound/ppc/tumbler.c
310
tumbler_set_master_volume(mix);
sound/ppc/tumbler.c
322
static int tumbler_set_drc(struct pmac_tumbler *mix)
sound/ppc/tumbler.c
326
if (! mix->i2c.client)
sound/ppc/tumbler.c
329
if (mix->drc_enable) {
sound/ppc/tumbler.c
331
if (mix->drc_range > TAS3001_DRC_MAX)
sound/ppc/tumbler.c
333
else if (mix->drc_range < 0)
sound/ppc/tumbler.c
336
val[1] = mix->drc_range + 0x91;
sound/ppc/tumbler.c
342
if (i2c_smbus_write_i2c_block_data(mix->i2c.client, TAS_REG_DRC,
sound/ppc/tumbler.c
344
dev_err(&mix->i2c.client->dev, "failed to set DRC\n");
sound/ppc/tumbler.c
357
static int snapper_set_drc(struct pmac_tumbler *mix)
sound/ppc/tumbler.c
361
if (! mix->i2c.client)
sound/ppc/tumbler.c
364
if (mix->drc_enable)
sound/ppc/tumbler.c
369
if (mix->drc_range > 0xef)
sound/ppc/tumbler.c
371
else if (mix->drc_range < 0)
sound/ppc/tumbler.c
374
val[2] = mix->drc_range;
sound/ppc/tumbler.c
379
if (i2c_smbus_write_i2c_block_data(mix->i2c.client, TAS_REG_DRC,
sound/ppc/tumbler.c
381
dev_err(&mix->i2c.client->dev, "failed to set DRC\n");
sound/ppc/tumbler.c
404
struct pmac_tumbler *mix;
sound/ppc/tumbler.c
405
mix = chip->mixer_data;
sound/ppc/tumbler.c
406
if (!mix)
sound/ppc/tumbler.c
408
ucontrol->value.integer.value[0] = mix->drc_range;
sound/ppc/tumbler.c
416
struct pmac_tumbler *mix;
sound/ppc/tumbler.c
420
mix = chip->mixer_data;
sound/ppc/tumbler.c
421
if (!mix)
sound/ppc/tumbler.c
431
change = mix->drc_range != val;
sound/ppc/tumbler.c
433
mix->drc_range = val;
sound/ppc/tumbler.c
435
tumbler_set_drc(mix);
sound/ppc/tumbler.c
437
snapper_set_drc(mix);
sound/ppc/tumbler.c
446
struct pmac_tumbler *mix;
sound/ppc/tumbler.c
447
mix = chip->mixer_data;
sound/ppc/tumbler.c
448
if (!mix)
sound/ppc/tumbler.c
450
ucontrol->value.integer.value[0] = mix->drc_enable;
sound/ppc/tumbler.c
458
struct pmac_tumbler *mix;
sound/ppc/tumbler.c
461
mix = chip->mixer_data;
sound/ppc/tumbler.c
462
if (!mix)
sound/ppc/tumbler.c
464
change = mix->drc_enable != ucontrol->value.integer.value[0];
sound/ppc/tumbler.c
466
mix->drc_enable = !!ucontrol->value.integer.value[0];
sound/ppc/tumbler.c
468
tumbler_set_drc(mix);
sound/ppc/tumbler.c
470
snapper_set_drc(mix);
sound/ppc/tumbler.c
488
static int tumbler_set_mono_volume(struct pmac_tumbler *mix,
sound/ppc/tumbler.c
495
if (! mix->i2c.client)
sound/ppc/tumbler.c
498
vol = mix->mono_vol[info->index];
sound/ppc/tumbler.c
504
if (i2c_smbus_write_i2c_block_data(mix->i2c.client, info->reg,
sound/ppc/tumbler.c
506
dev_err(&mix->i2c.client->dev, "failed to set mono volume %d\n",
sound/ppc/tumbler.c
530
struct pmac_tumbler *mix;
sound/ppc/tumbler.c
531
mix = chip->mixer_data;
sound/ppc/tumbler.c
532
if (!mix)
sound/ppc/tumbler.c
534
ucontrol->value.integer.value[0] = mix->mono_vol[info->index];
sound/ppc/tumbler.c
543
struct pmac_tumbler *mix;
sound/ppc/tumbler.c
547
mix = chip->mixer_data;
sound/ppc/tumbler.c
548
if (!mix)
sound/ppc/tumbler.c
553
change = mix->mono_vol[info->index] != vol;
sound/ppc/tumbler.c
555
mix->mono_vol[info->index] = vol;
sound/ppc/tumbler.c
556
tumbler_set_mono_volume(mix, info);
sound/ppc/tumbler.c
627
static int snapper_set_mix_vol1(struct pmac_tumbler *mix, int idx, int ch, int reg)
sound/ppc/tumbler.c
632
vol = mix->mix_vol[idx][ch];
sound/ppc/tumbler.c
635
mix->mix_vol[idx][ch] = vol;
sound/ppc/tumbler.c
639
vol = mix->mix_vol[i][ch];
sound/ppc/tumbler.c
644
if (i2c_smbus_write_i2c_block_data(mix->i2c.client, reg,
sound/ppc/tumbler.c
646
dev_err(&mix->i2c.client->dev,
sound/ppc/tumbler.c
653
static int snapper_set_mix_vol(struct pmac_tumbler *mix, int idx)
sound/ppc/tumbler.c
655
if (! mix->i2c.client)
sound/ppc/tumbler.c
657
if (snapper_set_mix_vol1(mix, idx, 0, TAS_REG_LMIX) < 0 ||
sound/ppc/tumbler.c
658
snapper_set_mix_vol1(mix, idx, 1, TAS_REG_RMIX) < 0)
sound/ppc/tumbler.c
678
struct pmac_tumbler *mix;
sound/ppc/tumbler.c
679
mix = chip->mixer_data;
sound/ppc/tumbler.c
680
if (!mix)
sound/ppc/tumbler.c
682
ucontrol->value.integer.value[0] = mix->mix_vol[idx][0];
sound/ppc/tumbler.c
683
ucontrol->value.integer.value[1] = mix->mix_vol[idx][1];
sound/ppc/tumbler.c
692
struct pmac_tumbler *mix;
sound/ppc/tumbler.c
696
mix = chip->mixer_data;
sound/ppc/tumbler.c
697
if (!mix)
sound/ppc/tumbler.c
704
change = mix->mix_vol[idx][0] != vol[0] ||
sound/ppc/tumbler.c
705
mix->mix_vol[idx][1] != vol[1];
sound/ppc/tumbler.c
707
mix->mix_vol[idx][0] = vol[0];
sound/ppc/tumbler.c
708
mix->mix_vol[idx][1] = vol[1];
sound/ppc/tumbler.c
709
snapper_set_mix_vol(mix, idx);
sound/ppc/tumbler.c
726
struct pmac_tumbler *mix;
sound/ppc/tumbler.c
728
mix = chip->mixer_data;
sound/ppc/tumbler.c
729
if (!mix)
sound/ppc/tumbler.c
733
gp = &mix->hp_mute; break;
sound/ppc/tumbler.c
735
gp = &mix->amp_mute; break;
sound/ppc/tumbler.c
737
gp = &mix->line_mute; break;
sound/ppc/tumbler.c
751
struct pmac_tumbler *mix;
sound/ppc/tumbler.c
758
mix = chip->mixer_data;
sound/ppc/tumbler.c
759
if (!mix)
sound/ppc/tumbler.c
763
gp = &mix->hp_mute; break;
sound/ppc/tumbler.c
765
gp = &mix->amp_mute; break;
sound/ppc/tumbler.c
767
gp = &mix->line_mute; break;
sound/ppc/tumbler.c
781
static int snapper_set_capture_source(struct pmac_tumbler *mix)
sound/ppc/tumbler.c
783
if (! mix->i2c.client)
sound/ppc/tumbler.c
785
if (mix->capture_source)
sound/ppc/tumbler.c
786
mix->acs |= 2;
sound/ppc/tumbler.c
788
mix->acs &= ~2;
sound/ppc/tumbler.c
789
return i2c_smbus_write_byte_data(mix->i2c.client, TAS_REG_ACS, mix->acs);
sound/ppc/tumbler.c
806
struct pmac_tumbler *mix = chip->mixer_data;
sound/ppc/tumbler.c
808
ucontrol->value.enumerated.item[0] = mix->capture_source;
sound/ppc/tumbler.c
816
struct pmac_tumbler *mix = chip->mixer_data;
sound/ppc/tumbler.c
819
change = ucontrol->value.enumerated.item[0] != mix->capture_source;
sound/ppc/tumbler.c
821
mix->capture_source = !!ucontrol->value.enumerated.item[0];
sound/ppc/tumbler.c
822
snapper_set_capture_source(mix);
sound/ppc/tumbler.c
936
struct pmac_tumbler *mix = chip->mixer_data;
sound/ppc/tumbler.c
939
if (mix->hp_detect.addr)
sound/ppc/tumbler.c
940
detect |= read_audio_gpio(&mix->hp_detect);
sound/ppc/tumbler.c
946
struct pmac_tumbler *mix = chip->mixer_data;
sound/ppc/tumbler.c
949
if (mix->line_detect.addr)
sound/ppc/tumbler.c
950
detect |= read_audio_gpio(&mix->line_detect);
sound/ppc/tumbler.c
971
struct pmac_tumbler *mix;
sound/ppc/tumbler.c
977
mix = chip->mixer_data;
sound/ppc/tumbler.c
978
if (snd_BUG_ON(!mix))
sound/ppc/tumbler.c
989
check_mute(chip, &mix->hp_mute, 0, mix->auto_mute_notify,
sound/ppc/tumbler.c
991
if (lineout && mix->line_mute.addr != 0)
sound/ppc/tumbler.c
992
check_mute(chip, &mix->line_mute, 0, mix->auto_mute_notify,
sound/ppc/tumbler.c
994
if (mix->anded_reset)
sound/ppc/tumbler.c
996
check_mute(chip, &mix->amp_mute, !IS_G4DA, mix->auto_mute_notify,
sound/soc/atmel/tse850-pcm5142.c
230
static const struct snd_kcontrol_new mix[] = {
sound/soc/atmel/tse850-pcm5142.c
253
SOC_MIXER_ARRAY("MIX", SND_SOC_NOPM, 0, 0, mix),
sound/soc/renesas/rcar/cmd.c
28
struct rsnd_mod *mix = rsnd_io_to_mod_mix(io);
sound/soc/renesas/rcar/cmd.c
38
if (!mix && !dvc)
sound/soc/renesas/rcar/cmd.c
44
if (mix) {
sound/soc/renesas/rcar/cmd.c
58
if (mix == rsnd_io_to_mod_mix(tio))
sound/soc/renesas/rcar/cmd.c
63
if (mix == rsnd_io_to_mod_mix(tio))
sound/soc/renesas/rcar/dma.c
653
struct rsnd_mod *mix = rsnd_io_to_mod_mix(io);
sound/soc/renesas/rcar/dma.c
719
} else if (mix) {
sound/soc/renesas/rcar/dma.c
720
mod[idx++] = mix;
sound/soc/renesas/rcar/dma.c
721
mix = NULL;
sound/soc/renesas/rcar/mix.c
107
struct rsnd_mix *mix = rsnd_mod_to_mix(mod);
sound/soc/renesas/rcar/mix.c
115
rsnd_mod_write(mod, MIX_MIXMR, rsnd_kctrl_vals(mix->ren));
sound/soc/renesas/rcar/mix.c
116
rsnd_mod_write(mod, MIX_MVPDR, rsnd_kctrl_vals(mix->rup) << 8 |
sound/soc/renesas/rcar/mix.c
117
rsnd_kctrl_vals(mix->rdw));
sound/soc/renesas/rcar/mix.c
181
struct rsnd_mix *mix = rsnd_mod_to_mix(mod);
sound/soc/renesas/rcar/mix.c
189
volume = &mix->volumeA;
sound/soc/renesas/rcar/mix.c
190
rsnd_flags_set(mix, HAS_VOLA);
sound/soc/renesas/rcar/mix.c
194
volume = &mix->volumeB;
sound/soc/renesas/rcar/mix.c
195
rsnd_flags_set(mix, HAS_VOLB);
sound/soc/renesas/rcar/mix.c
199
volume = &mix->volumeC;
sound/soc/renesas/rcar/mix.c
200
rsnd_flags_set(mix, HAS_VOLC);
sound/soc/renesas/rcar/mix.c
204
volume = &mix->volumeD;
sound/soc/renesas/rcar/mix.c
205
rsnd_flags_set(mix, HAS_VOLD);
sound/soc/renesas/rcar/mix.c
222
if (rsnd_flags_has(mix, ONCE_KCTRL_INITIALIZED))
sound/soc/renesas/rcar/mix.c
230
&mix->ren, 1);
sound/soc/renesas/rcar/mix.c
238
&mix->rup,
sound/soc/renesas/rcar/mix.c
248
&mix->rdw,
sound/soc/renesas/rcar/mix.c
252
rsnd_flags_set(mix, ONCE_KCTRL_INITIALIZED);
sound/soc/renesas/rcar/mix.c
292
struct rsnd_mix *mix;
sound/soc/renesas/rcar/mix.c
307
mix = devm_kcalloc(dev, nr, sizeof(*mix), GFP_KERNEL);
sound/soc/renesas/rcar/mix.c
308
if (!mix) {
sound/soc/renesas/rcar/mix.c
314
priv->mix = mix;
sound/soc/renesas/rcar/mix.c
319
mix = rsnd_mix_get(priv, i);
sound/soc/renesas/rcar/mix.c
330
ret = rsnd_mod_init(priv, rsnd_mod_get(mix), &rsnd_mix_ops,
sound/soc/renesas/rcar/mix.c
346
struct rsnd_mix *mix;
sound/soc/renesas/rcar/mix.c
349
for_each_rsnd_mix(mix, priv, i) {
sound/soc/renesas/rcar/mix.c
350
rsnd_mod_quit(rsnd_mod_get(mix));
sound/soc/renesas/rcar/mix.c
61
#define rsnd_mix_get(priv, id) ((struct rsnd_mix *)(priv->mix) + id)
sound/soc/renesas/rcar/mix.c
66
((pos) = (struct rsnd_mix *)(priv)->mix + i); \
sound/soc/renesas/rcar/mix.c
81
#define rsnd_mix_get_vol(mix, X) \
sound/soc/renesas/rcar/mix.c
82
rsnd_flags_has(mix, HAS_VOL##X) ? \
sound/soc/renesas/rcar/mix.c
83
(VOL_MAX - rsnd_kctrl_vals(mix->volume##X)) : 0
sound/soc/renesas/rcar/mix.c
89
struct rsnd_mix *mix = rsnd_mod_to_mix(mod);
sound/soc/renesas/rcar/mix.c
90
u32 volA = rsnd_mix_get_vol(mix, A);
sound/soc/renesas/rcar/mix.c
91
u32 volB = rsnd_mix_get_vol(mix, B);
sound/soc/renesas/rcar/mix.c
92
u32 volC = rsnd_mix_get_vol(mix, C);
sound/soc/renesas/rcar/mix.c
93
u32 volD = rsnd_mix_get_vol(mix, D);
sound/soc/renesas/rcar/rsnd.h
672
void *mix;
sound/usb/mixer_scarlett2.c
1339
u8 mix[SCARLETT2_MIX_MAX];
sound/usb/mixer_scarlett2.c
2869
private->mix[j] = scarlett2_mixer_value_to_db(
sound/usb/mixer_scarlett2.c
2895
scarlett2_mixer_values[private->mix[j]]
sound/usb/mixer_scarlett2.c
6800
ucontrol->value.integer.value[0] = private->mix[elem->control];
sound/usb/mixer_scarlett2.c
6818
oval = private->mix[index];
sound/usb/mixer_scarlett2.c
6826
private->mix[index] = val;