Home
last modified time | relevance | path

Searched refs:cidx (Results 1 – 6 of 6) sorted by relevance

/sound/pci/ac97/
Dac97_pcm.c159 static unsigned char get_slot_reg(struct ac97_pcm *pcm, unsigned short cidx, in get_slot_reg() argument
169 return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; in get_slot_reg()
408 static unsigned int get_rates(struct ac97_pcm *pcm, unsigned int cidx, unsigned short slots, int db… in get_rates() argument
417 reg = get_slot_reg(pcm, cidx, i, dbl); in get_rates()
426 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; in get_rates()
574 int i, cidx, r, ok_flag; in snd_ac97_pcm_open() local
582 for (cidx = 0; cidx < 4; cidx++) in snd_ac97_pcm_open()
583 if (bus->codec[cidx] && (bus->codec[cidx]->ext_id & AC97_EI_SPDIF)) { in snd_ac97_pcm_open()
584 err = set_spdif_rate(bus->codec[cidx], rate); in snd_ac97_pcm_open()
594 for (cidx = 0; cidx < 4; cidx++) { in snd_ac97_pcm_open()
[all …]
/sound/core/
Dsound_oss.c107 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_register_oss_device() local
130 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_AUDIO); in snd_register_oss_device()
133 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI); in snd_register_oss_device()
136 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI1); in snd_register_oss_device()
168 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_unregister_oss_device() local
185 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_AUDIO); in snd_unregister_oss_device()
188 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI); in snd_unregister_oss_device()
191 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI1); in snd_unregister_oss_device()
Dpcm.c1084 int cidx, err; in snd_pcm_dev_register() local
1099 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_register()
1101 if (pcm->streams[cidx].substream == NULL) in snd_pcm_dev_register()
1103 switch (cidx) { in snd_pcm_dev_register()
1113 &snd_pcm_f_ops[cidx], pcm, in snd_pcm_dev_register()
1114 &pcm->streams[cidx].dev); in snd_pcm_dev_register()
1120 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) in snd_pcm_dev_register()
1137 int cidx; in snd_pcm_dev_disconnect() local
1143 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_disconnect()
1144 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) { in snd_pcm_dev_disconnect()
[all …]
/sound/pci/hda/
Dhda_generic.c996 int cidx, unsigned long val) in add_control() argument
1003 knew->index = cidx; in add_control()
1012 const char *sfx, int cidx, unsigned long val) in add_control_with_pfx() argument
1016 if (!add_control(spec, type, name, cidx, val)) in add_control_with_pfx()
1025 #define __add_pb_vol_ctrl(spec, type, pfx, cidx, val) \ argument
1026 add_control_with_pfx(spec, type, pfx, "Playback", "Volume", cidx, val)
1027 #define __add_pb_sw_ctrl(spec, type, pfx, cidx, val) \ argument
1028 add_control_with_pfx(spec, type, pfx, "Playback", "Switch", cidx, val)
1030 static int add_vol_ctl(struct hda_codec *codec, const char *pfx, int cidx, in add_vol_ctl() argument
1040 return __add_pb_vol_ctrl(codec->spec, HDA_CTL_WIDGET_VOL, pfx, cidx, val); in add_vol_ctl()
[all …]
/sound/core/oss/
Dpcm_oss.c2451 int cidx; in snd_pcm_oss_release_file() local
2454 for (cidx = 0; cidx < 2; ++cidx) { in snd_pcm_oss_release_file()
2455 struct snd_pcm_substream *substream = pcm_oss_file->streams[cidx]; in snd_pcm_oss_release_file()
/sound/drivers/
Daloop.c1153 static int loopback_proc_new(struct loopback *loopback, int cidx) in loopback_proc_new() argument
1159 snprintf(name, sizeof(name), "cable#%d", cidx); in loopback_proc_new()