Home
last modified time | relevance | path

Searched refs:spec (Results 1 – 25 of 37) sorted by relevance

12

/sound/pci/ice1712/
Dhoontech.c57 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_darear() local
59 ICE1712_STDSP24_0_DAREAR(spec->boxbits, activate); in snd_ice1712_stdsp24_darear()
60 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[0]); in snd_ice1712_stdsp24_darear()
66 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_mute() local
68 ICE1712_STDSP24_3_MUTE(spec->boxbits, activate); in snd_ice1712_stdsp24_mute()
69 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]); in snd_ice1712_stdsp24_mute()
75 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_insel() local
77 ICE1712_STDSP24_3_INSEL(spec->boxbits, activate); in snd_ice1712_stdsp24_insel()
78 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]); in snd_ice1712_stdsp24_insel()
84 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_box_channel() local
[all …]
Dpsc724.c120 struct psc724_spec *spec = container_of(wm, struct psc724_spec, wm8766); in psc724_wm8766_write() local
121 struct snd_ice1712 *ice = spec->ice; in psc724_wm8766_write()
162 struct psc724_spec *spec = container_of(wm, struct psc724_spec, wm8776); in psc724_wm8776_write() local
164 snd_vt1724_write_i2c(spec->ice, 0x34, addr, data); in psc724_wm8776_write()
172 struct psc724_spec *spec = ice->spec; in psc724_set_master_switch() local
174 spec->mute_all = !on; in psc724_set_master_switch()
184 struct psc724_spec *spec = ice->spec; in psc724_get_master_switch() local
186 return !spec->mute_all; in psc724_get_master_switch()
193 struct psc724_spec *spec = ice->spec; in psc724_set_jack_state() local
196 u16 power = spec->wm8776.regs[WM8776_REG_PWRDOWN] & ~WM8776_PWR_HPPD; in psc724_set_jack_state()
[all …]
Dse.c469 struct se_spec *spec = ice->spec; in se200pci_cont_volume_get() local
471 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_volume_get()
472 uc->value.integer.value[1] = spec->vol[n].ch2; in se200pci_cont_volume_get()
480 struct se_spec *spec = ice->spec; in se200pci_cont_boolean_get() local
482 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_boolean_get()
490 struct se_spec *spec = ice->spec; in se200pci_cont_enum_get() local
492 uc->value.enumerated.item[0] = spec->vol[n].ch1; in se200pci_cont_enum_get()
498 struct se_spec *spec = ice->spec; in se200pci_cont_update() local
503 spec->vol[n].ch1, in se200pci_cont_update()
504 spec->vol[n].ch2); in se200pci_cont_update()
[all …]
Dphase.c346 struct phase28_spec *spec = ice->spec; in wm_master_vol_get() local
349 ucontrol->value.integer.value[i] = spec->master[i] & in wm_master_vol_get()
358 struct phase28_spec *spec = ice->spec; in wm_master_vol_put() local
366 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
367 if (vol != spec->master[ch]) { in wm_master_vol_put()
369 spec->master[ch] = vol; in wm_master_vol_put()
372 spec->vol[dac + ch], in wm_master_vol_put()
373 spec->master[ch]); in wm_master_vol_put()
422 struct phase28_spec *spec; in phase28_init() local
429 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in phase28_init()
[all …]
Dprodigy_hifi.c269 struct prodigy_hifi_spec *spec = ice->spec; in ak4396_dac_vol_get() local
273 ucontrol->value.integer.value[i] = spec->vol[i]; in ak4396_dac_vol_get()
281 struct prodigy_hifi_spec *spec = ice->spec; in ak4396_dac_vol_put() local
287 if (ucontrol->value.integer.value[i] != spec->vol[i]) { in ak4396_dac_vol_put()
288 spec->vol[i] = ucontrol->value.integer.value[i]; in ak4396_dac_vol_put()
290 spec->vol[i] & 0xff); in ak4396_dac_vol_put()
397 struct prodigy_hifi_spec *spec = ice->spec; in wm_dac_vol_get() local
402 spec->vol[2 + i] & ~WM_VOL_MUTE; in wm_dac_vol_get()
409 struct prodigy_hifi_spec *spec = ice->spec; in wm_dac_vol_put() local
414 if (ucontrol->value.integer.value[i] != spec->vol[2 + i]) { in wm_dac_vol_put()
[all …]
Dews.c148 struct ews_spec *spec = ice->spec; in snd_ice1712_ews88mt_chip_select() local
154 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF2], &data, 1) != 1) in snd_ice1712_ews88mt_chip_select()
158 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF2], &ndata, 1) in snd_ice1712_ews88mt_chip_select()
233 struct ews_spec *spec = ice->spec; in snd_ice1712_ews_cs8404_spdif_write() local
242 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_CS8404], &bits, 1) in snd_ice1712_ews_cs8404_spdif_write()
247 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_88D], bytes, 2) in snd_ice1712_ews_cs8404_spdif_write()
252 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_88D], in snd_ice1712_ews_cs8404_spdif_write()
426 struct ews_spec *spec; in snd_ice1712_ews_init() local
452 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in snd_ice1712_ews_init()
453 if (!spec) in snd_ice1712_ews_init()
[all …]
Djuli.c183 struct juli_spec *spec = ice->spec; in juli_spdif_in_open() local
190 rate = snd_ak4114_external_rate(spec->ak4114); in juli_spdif_in_open()
227 struct juli_spec *spec = ice->spec; in juli_akm_set_rate_val() local
268 snd_ak4114_reinit(spec->ak4114); in juli_akm_set_rate_val()
452 struct juli_spec *spec = ice->spec; in juli_add_controls() local
478 err = snd_ak4114_build(spec->ak4114, NULL, in juli_add_controls()
493 struct juli_spec *spec = ice->spec; in juli_resume() local
497 snd_ak4114_reinit(spec->ak4114); in juli_resume()
598 struct juli_spec *spec; in juli_init() local
601 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in juli_init()
[all …]
Daureon.c221 struct aureon_spec *spec = ice->spec; in aureon_universe_inmux_get() local
222 ucontrol->value.enumerated.item[0] = spec->pca9554_out; in aureon_universe_inmux_get()
230 struct aureon_spec *spec = ice->spec; in aureon_universe_inmux_put() local
238 oval = spec->pca9554_out; in aureon_universe_inmux_put()
242 spec->pca9554_out = nval; in aureon_universe_inmux_put()
252 struct aureon_spec *spec = ice->spec; in aureon_ac97_write() local
300 spec->stac9744[(reg & 0x7F) >> 1] = val; in aureon_ac97_write()
305 struct aureon_spec *spec = ice->spec; in aureon_ac97_read() local
306 return spec->stac9744[(reg & 0x7F) >> 1]; in aureon_ac97_read()
314 struct aureon_spec *spec = ice->spec; in aureon_ac97_init() local
[all …]
Drevo.c161 struct revo51_spec *spec; in revo51_i2c_init() local
164 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in revo51_i2c_init()
165 if (!spec) in revo51_i2c_init()
167 ice->spec = spec; in revo51_i2c_init()
178 err = snd_i2c_device_create(ice->i2c, "PT2258", 0x40, &spec->dev); in revo51_i2c_init()
184 pt->i2c_dev = spec->dev; in revo51_i2c_init()
185 spec->pt2258 = pt; in revo51_i2c_init()
486 struct revo51_spec *spec; in ap192_ak4114_init() local
487 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in ap192_ak4114_init()
488 if (!spec) in ap192_ak4114_init()
[all …]
Dquartet.c451 struct qtet_spec *spec = ice->spec; in get_scr() local
452 return spec->scr; in get_scr()
457 struct qtet_spec *spec = ice->spec; in get_mcr() local
458 return spec->mcr; in get_mcr()
463 struct qtet_spec *spec = ice->spec; in get_cpld() local
464 return spec->cpld; in get_cpld()
469 struct qtet_spec *spec = ice->spec; in set_scr() local
471 spec->scr = val; in set_scr()
476 struct qtet_spec *spec = ice->spec; in set_mcr() local
478 spec->mcr = val; in set_mcr()
[all …]
Dprodigy192.c126 struct prodigy192_spec *spec = ice->spec; in stac9460_dac_mute_put() local
134 mutex_lock(&spec->mute_mutex); in stac9460_dac_mute_put()
140 mutex_unlock(&spec->mute_mutex); in stac9460_dac_mute_put()
331 struct prodigy192_spec *spec = ice->spec; in stac9460_set_rate_val() local
346 mutex_lock(&spec->mute_mutex); in stac9460_set_rate_val()
360 mutex_unlock(&spec->mute_mutex); in stac9460_set_rate_val()
637 struct prodigy192_spec *spec = ice->spec; in prodigy192_ak4114_init() local
644 ice, &spec->ak4114); in prodigy192_ak4114_init()
649 spec->ak4114->check_flags = AK4114_CHECK_NO_RATE; in prodigy192_ak4114_init()
676 struct prodigy192_spec *spec = ice->spec; in prodigy192_add_controls() local
[all …]
/sound/pci/hda/
Dhda_generic.c42 int snd_hda_gen_spec_init(struct hda_gen_spec *spec) in snd_hda_gen_spec_init() argument
44 snd_array_init(&spec->kctls, sizeof(struct snd_kcontrol_new), 32); in snd_hda_gen_spec_init()
45 snd_array_init(&spec->paths, sizeof(struct nid_path), 8); in snd_hda_gen_spec_init()
46 snd_array_init(&spec->loopback_list, sizeof(struct hda_amp_list), 8); in snd_hda_gen_spec_init()
47 mutex_init(&spec->pcm_mutex); in snd_hda_gen_spec_init()
53 snd_hda_gen_add_kctl(struct hda_gen_spec *spec, const char *name, in snd_hda_gen_add_kctl() argument
56 struct snd_kcontrol_new *knew = snd_array_new(&spec->kctls); in snd_hda_gen_add_kctl()
70 static void free_kctls(struct hda_gen_spec *spec) in free_kctls() argument
72 if (spec->kctls.list) { in free_kctls()
73 struct snd_kcontrol_new *kctl = spec->kctls.list; in free_kctls()
[all …]
Dpatch_conexant.c143 static inline void set_beep_amp(struct conexant_spec *spec, hda_nid_t nid, in set_beep_amp() argument
146 spec->gen.beep_nid = nid; in set_beep_amp()
147 spec->beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir); in set_beep_amp()
159 struct conexant_spec *spec = codec->spec; in add_beep_ctls() local
162 if (spec->beep_amp) { in add_beep_ctls()
169 kctl->private_value = spec->beep_amp; in add_beep_ctls()
178 #define set_beep_amp(spec, nid, idx, dir) /* NOP */ argument
188 struct conexant_spec *spec = codec->spec; in conexant_playback_pcm_open() local
189 return snd_hda_multi_out_analog_open(codec, &spec->multiout, substream, in conexant_playback_pcm_open()
199 struct conexant_spec *spec = codec->spec; in conexant_playback_pcm_prepare() local
[all …]
Dpatch_cmedia.c92 struct cmi_spec *spec = codec->spec; in cmi_mux_enum_info() local
93 return snd_hda_input_mux_info(spec->input_mux, uinfo); in cmi_mux_enum_info()
99 struct cmi_spec *spec = codec->spec; in cmi_mux_enum_get() local
102 ucontrol->value.enumerated.item[0] = spec->cur_mux[adc_idx]; in cmi_mux_enum_get()
109 struct cmi_spec *spec = codec->spec; in cmi_mux_enum_put() local
112 return snd_hda_input_mux_put(codec, spec->input_mux, ucontrol, in cmi_mux_enum_put()
113 spec->adc_nids[adc_idx], &spec->cur_mux[adc_idx]); in cmi_mux_enum_put()
162 struct cmi_spec *spec = codec->spec; in cmi_ch_mode_info() local
163 return snd_hda_ch_mode_info(codec, uinfo, spec->channel_modes, in cmi_ch_mode_info()
164 spec->num_channel_modes); in cmi_ch_mode_info()
[all …]
Dpatch_analog.c104 struct ad198x_spec *spec = codec->spec; in ad198x_mux_enum_info() local
106 return snd_hda_input_mux_info(spec->input_mux, uinfo); in ad198x_mux_enum_info()
112 struct ad198x_spec *spec = codec->spec; in ad198x_mux_enum_get() local
115 ucontrol->value.enumerated.item[0] = spec->cur_mux[adc_idx]; in ad198x_mux_enum_get()
122 struct ad198x_spec *spec = codec->spec; in ad198x_mux_enum_put() local
125 return snd_hda_input_mux_put(codec, spec->input_mux, ucontrol, in ad198x_mux_enum_put()
126 spec->capsrc_nids[adc_idx], in ad198x_mux_enum_put()
127 &spec->cur_mux[adc_idx]); in ad198x_mux_enum_put()
135 struct ad198x_spec *spec = codec->spec; in ad198x_init() local
138 for (i = 0; i < spec->num_init_verbs; i++) in ad198x_init()
[all …]
Dpatch_sigmatel.c247 struct sigmatel_spec *spec = codec->spec; in stac_playback_pcm_hook() local
248 if (action == HDA_GEN_PCM_ACT_OPEN && spec->stream_delay) in stac_playback_pcm_hook()
249 msleep(spec->stream_delay); in stac_playback_pcm_hook()
257 struct sigmatel_spec *spec = codec->spec; in stac_capture_pcm_hook() local
260 if (!spec->powerdown_adcs) in stac_capture_pcm_hook()
263 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_capture_pcm_hook()
264 if (spec->gen.all_adcs[i] == hinfo->nid) { in stac_capture_pcm_hook()
275 spec->active_adcs |= (1 << idx); in stac_capture_pcm_hook()
280 spec->active_adcs &= ~(1 << idx); in stac_capture_pcm_hook()
327 struct sigmatel_spec *spec = codec->spec; in stac_capture_led_hook() local
[all …]
Dpatch_cirrus.c140 struct cs_spec *spec = codec->spec; in cs_vendor_coef_get() local
141 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_get()
143 return snd_hda_codec_read(codec, spec->vendor_nid, 0, in cs_vendor_coef_get()
150 struct cs_spec *spec = codec->spec; in cs_vendor_coef_set() local
151 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set()
153 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set()
165 struct cs_spec *spec = codec->spec; in cs_automute() local
168 spec->gen.master_mute = !!(spec->spdif_present && spec->sense_b); in cs_automute()
172 if (spec->gpio_eapd_hp) { in cs_automute()
173 spec->gpio_data = spec->gen.hp_jack_present ? in cs_automute()
[all …]
Dpatch_via.c85 #define VT2002P_COMPATIBLE(spec) \ argument
86 ((spec)->codec_type == VT2002P ||\
87 (spec)->codec_type == VT1812 ||\
88 (spec)->codec_type == VT1802)
125 struct via_spec *spec; in via_new_spec() local
127 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in via_new_spec()
128 if (spec == NULL) in via_new_spec()
131 codec->spec = spec; in via_new_spec()
132 snd_hda_gen_spec_init(&spec->gen); in via_new_spec()
133 spec->codec_type = get_codec_type(codec); in via_new_spec()
[all …]
Dpatch_realtek.c130 static void add_mixer(struct alc_spec *spec, const struct snd_kcontrol_new *mix) in add_mixer() argument
132 if (snd_BUG_ON(spec->num_mixers >= ARRAY_SIZE(spec->mixers))) in add_mixer()
134 spec->mixers[spec->num_mixers++] = mix; in add_mixer()
169 struct alc_spec *spec = codec->spec; in alc_fix_pll() local
172 if (!spec->pll_nid) in alc_fix_pll()
174 snd_hda_codec_write(codec, spec->pll_nid, 0, AC_VERB_SET_COEF_INDEX, in alc_fix_pll()
175 spec->pll_coef_idx); in alc_fix_pll()
176 val = snd_hda_codec_read(codec, spec->pll_nid, 0, in alc_fix_pll()
178 snd_hda_codec_write(codec, spec->pll_nid, 0, AC_VERB_SET_COEF_INDEX, in alc_fix_pll()
179 spec->pll_coef_idx); in alc_fix_pll()
[all …]
Dpatch_ca0132.c816 struct ca0132_spec *spec = codec->spec; in chipio_write_address() local
819 if (spec->curr_chip_addx == chip_addx) in chipio_write_address()
832 spec->curr_chip_addx = (res < 0) ? ~0UL : chip_addx; in chipio_write_address()
842 struct ca0132_spec *spec = codec->spec; in chipio_write_data() local
856 spec->curr_chip_addx = (res != -EIO) ? in chipio_write_data()
857 (spec->curr_chip_addx + 4) : ~0UL; in chipio_write_data()
887 struct ca0132_spec *spec = codec->spec; in chipio_read_data() local
907 spec->curr_chip_addx = (res != -EIO) ? in chipio_read_data()
908 (spec->curr_chip_addx + 4) : ~0UL; in chipio_read_data()
919 struct ca0132_spec *spec = codec->spec; in chipio_write() local
[all …]
Dpatch_hdmi.c298 #define get_pin(spec, idx) \ argument
299 ((struct hdmi_spec_per_pin *)snd_array_elem(&spec->pins, idx))
300 #define get_cvt(spec, idx) \ argument
301 ((struct hdmi_spec_per_cvt *)snd_array_elem(&spec->cvts, idx))
302 #define get_pcm_rec(spec, idx) \ argument
303 ((struct hda_pcm *)snd_array_elem(&spec->pcm_rec, idx))
305 static int pin_nid_to_pin_index(struct hdmi_spec *spec, hda_nid_t pin_nid) in pin_nid_to_pin_index() argument
309 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) in pin_nid_to_pin_index()
310 if (get_pin(spec, pin_idx)->pin_nid == pin_nid) in pin_nid_to_pin_index()
317 static int hinfo_to_pin_index(struct hdmi_spec *spec, in hinfo_to_pin_index() argument
[all …]
Dpatch_ca0110.c43 struct hda_gen_spec *spec = codec->spec; in ca0110_parse_auto_config() local
46 err = snd_hda_parse_pin_defcfg(codec, &spec->autocfg, NULL, 0); in ca0110_parse_auto_config()
49 err = snd_hda_gen_parse_auto_config(codec, &spec->autocfg); in ca0110_parse_auto_config()
59 struct hda_gen_spec *spec; in patch_ca0110() local
62 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in patch_ca0110()
63 if (!spec) in patch_ca0110()
65 snd_hda_gen_spec_init(spec); in patch_ca0110()
66 codec->spec = spec; in patch_ca0110()
68 spec->multi_cap_vol = 1; in patch_ca0110()
Dpatch_si3054.c202 struct si3054_spec *spec = codec->spec; in si3054_build_pcms() local
203 struct hda_pcm *info = &spec->pcm; in si3054_build_pcms()
222 struct si3054_spec *spec = codec->spec; in si3054_init() local
254 spec->international = GET_REG(codec, SI3054_CHIPID) & SI3054_CHIPID_INTERNATIONAL; in si3054_init()
261 kfree(codec->spec); in si3054_free()
277 struct si3054_spec *spec = kzalloc(sizeof(*spec), GFP_KERNEL); in patch_si3054() local
278 if (spec == NULL) in patch_si3054()
280 codec->spec = spec; in patch_si3054()
/sound/usb/caiaq/
Ddevice.c173 memcpy(&cdev->spec, buf+1, sizeof(struct caiaq_device_spec)); in usb_ep1_command_reply_dispatch()
174 cdev->spec.fw_version = le16_to_cpu(cdev->spec.fw_version); in usb_ep1_command_reply_dispatch()
177 cdev->spec.fw_version, in usb_ep1_command_reply_dispatch()
178 cdev->spec.num_analog_audio_in, in usb_ep1_command_reply_dispatch()
179 cdev->spec.num_analog_audio_out, in usb_ep1_command_reply_dispatch()
180 cdev->spec.num_midi_in, in usb_ep1_command_reply_dispatch()
181 cdev->spec.num_midi_out, in usb_ep1_command_reply_dispatch()
182 cdev->spec.data_alignment); in usb_ep1_command_reply_dispatch()
347 if (cdev->spec.num_analog_audio_out + in setup_card()
348 cdev->spec.num_analog_audio_in + in setup_card()
[all …]
/sound/pci/ac97/
Dac97_proc.c351 if (ac97->spec.ad18xx.id[idx]) { in snd_ac97_proc_read()
354 ac97->spec.ad18xx.unchained[idx] | ac97->spec.ad18xx.chained[idx]); in snd_ac97_proc_read()
363 ac97->spec.ad18xx.unchained[0], in snd_ac97_proc_read()
364 ac97->spec.ad18xx.unchained[1], in snd_ac97_proc_read()
365 ac97->spec.ad18xx.unchained[2]); in snd_ac97_proc_read()
367 ac97->spec.ad18xx.chained[0], in snd_ac97_proc_read()
368 ac97->spec.ad18xx.chained[1], in snd_ac97_proc_read()
369 ac97->spec.ad18xx.chained[2]); in snd_ac97_proc_read()
415 if (ac97->spec.ad18xx.id[idx]) { in snd_ac97_proc_regs_read()
418 ac97->spec.ad18xx.unchained[idx] | ac97->spec.ad18xx.chained[idx]); in snd_ac97_proc_regs_read()

12