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.c114 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_register_oss_device() local
137 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_AUDIO); in snd_register_oss_device()
140 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI); in snd_register_oss_device()
143 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI1); in snd_register_oss_device()
175 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_unregister_oss_device() local
192 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_AUDIO); in snd_unregister_oss_device()
195 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI); in snd_unregister_oss_device()
198 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI1); in snd_unregister_oss_device()
Dpcm.c1020 int cidx, err; in snd_pcm_dev_register() local
1036 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_register()
1038 if (pcm->streams[cidx].substream == NULL || pcm->internal) in snd_pcm_dev_register()
1040 switch (cidx) { in snd_pcm_dev_register()
1059 &snd_pcm_f_ops[cidx], in snd_pcm_dev_register()
1068 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) in snd_pcm_dev_register()
1084 int cidx, devtype; in snd_pcm_dev_disconnect() local
1093 for (cidx = 0; cidx < 2; cidx++) in snd_pcm_dev_disconnect()
1094 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) { in snd_pcm_dev_disconnect()
1106 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_disconnect()
[all …]
/sound/pci/hda/
Dhda_generic.c825 int cidx, unsigned long val) in add_control() argument
832 knew->index = cidx; in add_control()
841 const char *sfx, int cidx, unsigned long val) in add_control_with_pfx() argument
845 if (!add_control(spec, type, name, cidx, val)) in add_control_with_pfx()
854 #define __add_pb_vol_ctrl(spec, type, pfx, cidx, val) \ argument
855 add_control_with_pfx(spec, type, pfx, "Playback", "Volume", cidx, val)
856 #define __add_pb_sw_ctrl(spec, type, pfx, cidx, val) \ argument
857 add_control_with_pfx(spec, type, pfx, "Playback", "Switch", cidx, val)
859 static int add_vol_ctl(struct hda_codec *codec, const char *pfx, int cidx, in add_vol_ctl() argument
869 return __add_pb_vol_ctrl(codec->spec, HDA_CTL_WIDGET_VOL, pfx, cidx, val); in add_vol_ctl()
[all …]
/sound/drivers/
Daloop.c1117 static int loopback_proc_new(struct loopback *loopback, int cidx) in loopback_proc_new() argument
1123 snprintf(name, sizeof(name), "cable#%d", cidx); in loopback_proc_new()
1134 #define loopback_proc_new(loopback, cidx) do { } while (0) argument
/sound/core/oss/
Dpcm_oss.c2300 int cidx; in snd_pcm_oss_release_file() local
2303 for (cidx = 0; cidx < 2; ++cidx) { in snd_pcm_oss_release_file()
2304 struct snd_pcm_substream *substream = pcm_oss_file->streams[cidx]; in snd_pcm_oss_release_file()