Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 25 of 26) sorted by relevance

12

/sound/core/oss/
Dmixer_oss.c257 static int snd_mixer_oss_get_volume(struct snd_mixer_oss_file *fmixer, int slot) in snd_mixer_oss_get_volume() argument
263 if (mixer == NULL || slot > 30) in snd_mixer_oss_get_volume()
266 pslot = &mixer->slots[slot]; in snd_mixer_oss_get_volume()
292 int slot, int volume) in snd_mixer_oss_set_volume() argument
298 if (mixer == NULL || slot > 30) in snd_mixer_oss_set_volume()
301 pslot = &mixer->slots[slot]; in snd_mixer_oss_set_volume()
462 static void snd_mixer_oss_recsrce_set(struct snd_card *card, int slot)
466 mixer->mask_recsrc |= 1 << slot;
469 static int snd_mixer_oss_recsrce_get(struct snd_card *card, int slot)
472 if (mixer && (mixer->mask_recsrc & (1 << slot)))
[all …]
/sound/atmel/
Dac97c.h63 #define AC97C_CH_MASK(slot) \ argument
64 (0x7 << (3 * (AC97_SLOT_##slot - 3)))
65 #define AC97C_CH_ASSIGN(slot, channel) \ argument
66 (AC97C_CHANNEL_##channel << (3 * (AC97_SLOT_##slot - 3)))
/sound/soc/codecs/
Dcs35l33.c554 int slot, slot_num; in cs35l33_set_tdm_slot() local
560 slot = ffs(rx_mask) - 1; in cs35l33_set_tdm_slot()
561 if (slot >= 0) { in cs35l33_set_tdm_slot()
563 CS35L33_X_LOC, slot); in cs35l33_set_tdm_slot()
564 dev_dbg(component->dev, "Audio starts from slots %d", slot); in cs35l33_set_tdm_slot()
571 slot = ffs(tx_mask) - 1; in cs35l33_set_tdm_slot()
585 while (slot >= 0) { in cs35l33_set_tdm_slot()
589 CS35L33_X_STATE | CS35L33_X_LOC, slot); in cs35l33_set_tdm_slot()
591 slot, slot + 1); in cs35l33_set_tdm_slot()
597 CS35L33_X_STATE | CS35L33_X_LOC, slot); in cs35l33_set_tdm_slot()
[all …]
Dab8500-codec.h80 #define AB8500_ADSLOTSEL(slot) (AB8500_ADSLOTSEL1 + (slot >> 1)) argument
152 #define AB8500_MASK_SLOT(slot) ((slot & 1) ? 0xF0 : 0x0F) argument
368 #define AB8500_ADSLOTSELX_AD_OUT_TO_SLOT(out, slot) \ argument
369 ((out) << (((slot) & 1) ? \
Dcs35l34.c272 int slot, slot_num; in cs35l34_set_tdm_slot() local
279 slot = ffs(rx_mask) - 1; in cs35l34_set_tdm_slot()
280 if (slot >= 0) in cs35l34_set_tdm_slot()
282 CS35L34_X_LOC, slot); in cs35l34_set_tdm_slot()
287 slot = ffs(tx_mask) - 1; in cs35l34_set_tdm_slot()
299 while (slot >= 0) { in cs35l34_set_tdm_slot()
303 CS35L34_X_STATE | CS35L34_X_LOC, slot); in cs35l34_set_tdm_slot()
308 CS35L34_X_STATE | CS35L34_X_LOC, slot); in cs35l34_set_tdm_slot()
313 CS35L34_X_STATE | CS35L34_X_LOC, slot); in cs35l34_set_tdm_slot()
319 CS35L34_X_STATE | CS35L34_X_LOC, slot); in cs35l34_set_tdm_slot()
[all …]
Dab8500-codec.c2226 unsigned int val, mask, slot, slots_active; in ab8500_codec_set_dai_tdm_slot() local
2297 slot = ffs(tx_mask); in ab8500_codec_set_dai_tdm_slot()
2298 snd_soc_component_update_bits(component, AB8500_DASLOTCONF1, mask, slot); in ab8500_codec_set_dai_tdm_slot()
2299 snd_soc_component_update_bits(component, AB8500_DASLOTCONF3, mask, slot); in ab8500_codec_set_dai_tdm_slot()
2300 snd_soc_component_update_bits(component, AB8500_DASLOTCONF2, mask, slot); in ab8500_codec_set_dai_tdm_slot()
2301 snd_soc_component_update_bits(component, AB8500_DASLOTCONF4, mask, slot); in ab8500_codec_set_dai_tdm_slot()
2304 slot = ffs(tx_mask); in ab8500_codec_set_dai_tdm_slot()
2305 snd_soc_component_update_bits(component, AB8500_DASLOTCONF1, mask, slot); in ab8500_codec_set_dai_tdm_slot()
2306 snd_soc_component_update_bits(component, AB8500_DASLOTCONF3, mask, slot); in ab8500_codec_set_dai_tdm_slot()
2307 slot = fls(tx_mask); in ab8500_codec_set_dai_tdm_slot()
[all …]
Dadau1977.c501 unsigned int slot[4]; in adau1977_set_tdm_slot() local
519 slot[i] = __ffs(rx_mask); in adau1977_set_tdm_slot()
521 rx_mask &= ~(1 << slot[i]); in adau1977_set_tdm_slot()
522 if (slot[i] >= slots) in adau1977_set_tdm_slot()
574 (slot[1] << ADAU1977_CHAN_MAP_SECOND_SLOT_OFFSET) | in adau1977_set_tdm_slot()
575 (slot[0] << ADAU1977_CHAN_MAP_FIRST_SLOT_OFFSET)); in adau1977_set_tdm_slot()
580 (slot[3] << ADAU1977_CHAN_MAP_SECOND_SLOT_OFFSET) | in adau1977_set_tdm_slot()
581 (slot[2] << ADAU1977_CHAN_MAP_FIRST_SLOT_OFFSET)); in adau1977_set_tdm_slot()
Dssm4567.c238 int slot; in ssm4567_set_tdm_slot() local
247 slot = __ffs(tx_mask); in ssm4567_set_tdm_slot()
248 if (tx_mask != BIT(slot)) in ssm4567_set_tdm_slot()
267 SSM4567_SAI_CTRL_2_TDM_SLOT(slot)); in ssm4567_set_tdm_slot()
Darizona.c1978 int slot, i; in arizona_set_channels_to_mask() local
1981 slot = ffs(mask) - 1; in arizona_set_channels_to_mask()
1982 if (slot < 0) in arizona_set_channels_to_mask()
1985 regmap_write(arizona->regmap, base + i, slot); in arizona_set_channels_to_mask()
1987 mask &= ~(1 << slot); in arizona_set_channels_to_mask()
Dmadera.c3292 int slot, i; in madera_set_channels_to_mask() local
3295 slot = ffs(mask) - 1; in madera_set_channels_to_mask()
3296 if (slot < 0) in madera_set_channels_to_mask()
3299 regmap_write(madera->regmap, base + i, slot); in madera_set_channels_to_mask()
3301 mask &= ~(1 << slot); in madera_set_channels_to_mask()
/sound/arm/
Dpxa2xx-ac97-lib.c46 int pxa2xx_ac97_read(int slot, unsigned short reg) in pxa2xx_ac97_read() argument
51 if (slot > 0) in pxa2xx_ac97_read()
58 reg_addr = slot ? &SMC_REG_BASE : &PMC_REG_BASE; in pxa2xx_ac97_read()
60 reg_addr = slot ? &SAC_REG_BASE : &PAC_REG_BASE; in pxa2xx_ac97_read()
89 int pxa2xx_ac97_write(int slot, unsigned short reg, unsigned short val) in pxa2xx_ac97_write() argument
98 reg_addr = slot ? &SMC_REG_BASE : &PMC_REG_BASE; in pxa2xx_ac97_write()
100 reg_addr = slot ? &SAC_REG_BASE : &PAC_REG_BASE; in pxa2xx_ac97_write()
/sound/core/
Dinit.c87 static int check_empty_slot(struct module *module, int slot) in check_empty_slot() argument
89 return !slots[slot] || !*slots[slot]; in check_empty_slot()
99 int slot; in get_slot_from_bitmask() local
101 for (slot = 0; slot < SNDRV_CARDS; slot++) { in get_slot_from_bitmask()
102 if (slot < 32 && !(mask & (1U << slot))) in get_slot_from_bitmask()
104 if (!test_bit(slot, snd_cards_lock)) { in get_slot_from_bitmask()
105 if (check(module, slot)) in get_slot_from_bitmask()
106 return slot; /* found */ in get_slot_from_bitmask()
/sound/soc/pxa/
Dpxa2xx-ac97.c42 static int pxa2xx_ac97_read_actrl(struct ac97_controller *adrv, int slot, in pxa2xx_ac97_read_actrl() argument
45 return pxa2xx_ac97_read(slot, reg); in pxa2xx_ac97_read_actrl()
48 static int pxa2xx_ac97_write_actrl(struct ac97_controller *adrv, int slot, in pxa2xx_ac97_write_actrl() argument
51 return pxa2xx_ac97_write(slot, reg, val); in pxa2xx_ac97_write_actrl()
/sound/pci/ctxfi/
Dctimap.c35 if (pos_ent->slot > entry->slot) { in input_mapper_add()
80 entry->next = entry->addr = entry->user = entry->slot = 0; in input_mapper_delete()
Dctimap.h21 unsigned short slot; /* the id of the slot containing input data */ member
Dcthardware.h124 int (*srcimp_mgr_set_imaparc)(void *blk, unsigned int slot);
171 int (*daio_mgr_set_imaparc)(void *blk, unsigned int slot);
Dctdaio.c171 entry->slot = input->ops->output_slot(input); in dao_set_left_input()
200 entry->slot = input->ops->output_slot(input); in dao_set_right_input()
637 hw->daio_mgr_set_imaparc(mgr->ctrl_blk, entry->slot); in daio_map_op()
710 entry->slot = entry->addr = entry->next = entry->user = 0; in daio_mgr_create()
Dctsrc.c628 entry->slot = input->ops->output_slot(input); in srcimp_map()
781 hw->srcimp_mgr_set_imaparc(mgr->ctrl_blk, entry->slot); in srcimp_map_op()
847 entry->slot = entry->addr = entry->next = entry->user = 0; in srcimp_mgr_create()
Dcthw20k1.c523 static int srcimp_mgr_set_imaparc(void *blk, unsigned int slot) in srcimp_mgr_set_imaparc() argument
527 set_field(&ctl->srcimap.srcaim, SRCAIM_ARC, slot); in srcimp_mgr_set_imaparc()
1071 static int daio_mgr_set_imaparc(void *blk, unsigned int slot) in daio_mgr_set_imaparc() argument
1075 set_field(&ctl->daoimap.aim, AIM_ARC, slot); in daio_mgr_set_imaparc()
Dcthw20k2.c523 static int srcimp_mgr_set_imaparc(void *blk, unsigned int slot) in srcimp_mgr_set_imaparc() argument
527 set_field(&ctl->srcimap.srcaim, SRCAIM_ARC, slot); in srcimp_mgr_set_imaparc()
1026 static int daio_mgr_set_imaparc(void *blk, unsigned int slot) in daio_mgr_set_imaparc() argument
1030 set_field(&ctl->daoimap.aim, AIM_ARC, slot); in daio_mgr_set_imaparc()
/sound/pci/ac97/
Dac97_pcm.c145 unsigned short slot, int dbl) in get_slot_reg() argument
147 if (slot < 3) in get_slot_reg()
149 if (slot > 11) in get_slot_reg()
154 return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; in get_slot_reg()
156 return rate_cregs[slot - 3]; in get_slot_reg()
/sound/soc/bcm/
Dbcm2835-i2s.c296 static int bcm2835_i2s_convert_slot(unsigned int slot, unsigned int odd_offset) in bcm2835_i2s_convert_slot() argument
299 return slot; in bcm2835_i2s_convert_slot()
301 if (slot & 1) in bcm2835_i2s_convert_slot()
302 return (slot >> 1) + odd_offset; in bcm2835_i2s_convert_slot()
304 return slot >> 1; in bcm2835_i2s_convert_slot()
/sound/
DKconfig23 appropriate module using sound-slot/service-* and char-major-*
31 /proc/devices. sound-slot/service-* module aliases are scheduled
/sound/ac97/
Dbus.c39 static int ac97_unbound_ctrl_write(struct ac97_controller *adrv, int slot, in ac97_unbound_ctrl_write() argument
45 static int ac97_unbound_ctrl_read(struct ac97_controller *adrv, int slot, in ac97_unbound_ctrl_read() argument
/sound/hda/
Dhdmi_chmap.c465 static int from_cea_slot(int ordered_ca, unsigned char slot) in from_cea_slot() argument
472 if (slot >= 8) in from_cea_slot()
475 mask = channel_allocations[ordered_ca].speakers[7 - slot]; in from_cea_slot()

12