Home
last modified time | relevance | path

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

1234

/sound/pci/ice1712/
Dhoontech.c43 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_darear() local
45 ICE1712_STDSP24_0_DAREAR(spec->boxbits, activate); in snd_ice1712_stdsp24_darear()
46 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[0]); in snd_ice1712_stdsp24_darear()
52 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_mute() local
54 ICE1712_STDSP24_3_MUTE(spec->boxbits, activate); in snd_ice1712_stdsp24_mute()
55 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]); in snd_ice1712_stdsp24_mute()
61 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_insel() local
63 ICE1712_STDSP24_3_INSEL(spec->boxbits, activate); in snd_ice1712_stdsp24_insel()
64 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]); in snd_ice1712_stdsp24_insel()
70 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_box_channel() local
[all …]
Dpsc724.c106 struct psc724_spec *spec = container_of(wm, struct psc724_spec, wm8766); in psc724_wm8766_write() local
107 struct snd_ice1712 *ice = spec->ice; in psc724_wm8766_write()
148 struct psc724_spec *spec = container_of(wm, struct psc724_spec, wm8776); in psc724_wm8776_write() local
150 snd_vt1724_write_i2c(spec->ice, 0x34, addr, data); in psc724_wm8776_write()
158 struct psc724_spec *spec = ice->spec; in psc724_set_master_switch() local
160 spec->mute_all = !on; in psc724_set_master_switch()
170 struct psc724_spec *spec = ice->spec; in psc724_get_master_switch() local
172 return !spec->mute_all; in psc724_get_master_switch()
179 struct psc724_spec *spec = ice->spec; in psc724_set_jack_state() local
182 u16 power = spec->wm8776.regs[WM8776_REG_PWRDOWN] & ~WM8776_PWR_HPPD; in psc724_set_jack_state()
[all …]
Dse.c448 struct se_spec *spec = ice->spec; in se200pci_cont_volume_get() local
450 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_volume_get()
451 uc->value.integer.value[1] = spec->vol[n].ch2; in se200pci_cont_volume_get()
459 struct se_spec *spec = ice->spec; in se200pci_cont_boolean_get() local
461 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_boolean_get()
469 struct se_spec *spec = ice->spec; in se200pci_cont_enum_get() local
471 uc->value.enumerated.item[0] = spec->vol[n].ch1; in se200pci_cont_enum_get()
477 struct se_spec *spec = ice->spec; in se200pci_cont_update() local
482 spec->vol[n].ch1, in se200pci_cont_update()
483 spec->vol[n].ch2); in se200pci_cont_update()
[all …]
Dphase.c332 struct phase28_spec *spec = ice->spec; in wm_master_vol_get() local
335 ucontrol->value.integer.value[i] = spec->master[i] & in wm_master_vol_get()
344 struct phase28_spec *spec = ice->spec; in wm_master_vol_put() local
352 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
353 if (vol != spec->master[ch]) { in wm_master_vol_put()
355 spec->master[ch] = vol; in wm_master_vol_put()
358 spec->vol[dac + ch], in wm_master_vol_put()
359 spec->master[ch]); in wm_master_vol_put()
408 struct phase28_spec *spec; in phase28_init() local
415 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in phase28_init()
[all …]
Dprodigy_hifi.c255 struct prodigy_hifi_spec *spec = ice->spec; in ak4396_dac_vol_get() local
259 ucontrol->value.integer.value[i] = spec->vol[i]; in ak4396_dac_vol_get()
267 struct prodigy_hifi_spec *spec = ice->spec; in ak4396_dac_vol_put() local
273 if (ucontrol->value.integer.value[i] != spec->vol[i]) { in ak4396_dac_vol_put()
274 spec->vol[i] = ucontrol->value.integer.value[i]; in ak4396_dac_vol_put()
276 spec->vol[i] & 0xff); in ak4396_dac_vol_put()
364 struct prodigy_hifi_spec *spec = ice->spec; in wm_dac_vol_get() local
369 spec->vol[2 + i] & ~WM_VOL_MUTE; in wm_dac_vol_get()
376 struct prodigy_hifi_spec *spec = ice->spec; in wm_dac_vol_put() local
381 if (ucontrol->value.integer.value[i] != spec->vol[2 + i]) { in wm_dac_vol_put()
[all …]
Djuli.c169 struct juli_spec *spec = ice->spec; in juli_spdif_in_open() local
176 rate = snd_ak4114_external_rate(spec->ak4114); in juli_spdif_in_open()
213 struct juli_spec *spec = ice->spec; in juli_akm_set_rate_val() local
254 snd_ak4114_reinit(spec->ak4114); in juli_akm_set_rate_val()
437 struct juli_spec *spec = ice->spec; in juli_add_controls() local
463 return snd_ak4114_build(spec->ak4114, NULL, in juli_add_controls()
475 struct juli_spec *spec = ice->spec; in juli_resume() local
479 snd_ak4114_resume(spec->ak4114); in juli_resume()
486 struct juli_spec *spec = ice->spec; in juli_suspend() local
489 snd_ak4114_suspend(spec->ak4114); in juli_suspend()
[all …]
Dews.c134 struct ews_spec *spec = ice->spec; in snd_ice1712_ews88mt_chip_select() local
140 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF2], &data, 1) != 1) in snd_ice1712_ews88mt_chip_select()
144 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF2], &ndata, 1) in snd_ice1712_ews88mt_chip_select()
220 struct ews_spec *spec = ice->spec; in snd_ice1712_ews_cs8404_spdif_write() local
229 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_CS8404], &bits, 1) in snd_ice1712_ews_cs8404_spdif_write()
234 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_88D], bytes, 2) in snd_ice1712_ews_cs8404_spdif_write()
239 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_88D], in snd_ice1712_ews_cs8404_spdif_write()
413 struct ews_spec *spec; in snd_ice1712_ews_init() local
439 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in snd_ice1712_ews_init()
440 if (!spec) in snd_ice1712_ews_init()
[all …]
Daureon.c201 struct aureon_spec *spec = ice->spec; in aureon_universe_inmux_get() local
202 ucontrol->value.enumerated.item[0] = spec->pca9554_out; in aureon_universe_inmux_get()
210 struct aureon_spec *spec = ice->spec; in aureon_universe_inmux_put() local
218 oval = spec->pca9554_out; in aureon_universe_inmux_put()
222 spec->pca9554_out = nval; in aureon_universe_inmux_put()
232 struct aureon_spec *spec = ice->spec; in aureon_ac97_write() local
280 spec->stac9744[(reg & 0x7F) >> 1] = val; in aureon_ac97_write()
285 struct aureon_spec *spec = ice->spec; in aureon_ac97_read() local
286 return spec->stac9744[(reg & 0x7F) >> 1]; in aureon_ac97_read()
294 struct aureon_spec *spec = ice->spec; in aureon_ac97_init() local
[all …]
Drevo.c147 struct revo51_spec *spec; in revo51_i2c_init() local
150 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in revo51_i2c_init()
151 if (!spec) in revo51_i2c_init()
153 ice->spec = spec; in revo51_i2c_init()
164 err = snd_i2c_device_create(ice->i2c, "PT2258", 0x40, &spec->dev); in revo51_i2c_init()
170 pt->i2c_dev = spec->dev; in revo51_i2c_init()
171 spec->pt2258 = pt; in revo51_i2c_init()
472 struct revo51_spec *spec; in ap192_ak4114_init() local
473 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in ap192_ak4114_init()
474 if (!spec) in ap192_ak4114_init()
[all …]
Dquartet.c437 struct qtet_spec *spec = ice->spec; in get_scr() local
438 return spec->scr; in get_scr()
443 struct qtet_spec *spec = ice->spec; in get_mcr() local
444 return spec->mcr; in get_mcr()
449 struct qtet_spec *spec = ice->spec; in get_cpld() local
450 return spec->cpld; in get_cpld()
455 struct qtet_spec *spec = ice->spec; in set_scr() local
457 spec->scr = val; in set_scr()
462 struct qtet_spec *spec = ice->spec; in set_mcr() local
464 spec->mcr = val; in set_mcr()
[all …]
Dprodigy192.c112 struct prodigy192_spec *spec = ice->spec; in stac9460_dac_mute_put() local
120 mutex_lock(&spec->mute_mutex); in stac9460_dac_mute_put()
126 mutex_unlock(&spec->mute_mutex); in stac9460_dac_mute_put()
309 struct prodigy192_spec *spec = ice->spec; in stac9460_set_rate_val() local
324 mutex_lock(&spec->mute_mutex); in stac9460_set_rate_val()
338 mutex_unlock(&spec->mute_mutex); in stac9460_set_rate_val()
609 struct prodigy192_spec *spec = ice->spec; in prodigy192_ak4114_init() local
616 ice, &spec->ak4114); in prodigy192_ak4114_init()
621 spec->ak4114->check_flags = AK4114_CHECK_NO_RATE; in prodigy192_ak4114_init()
647 struct prodigy192_spec *spec = ice->spec; in prodigy192_add_controls() local
[all …]
/sound/pci/hda/
Dhda_generic.c37 int snd_hda_gen_spec_init(struct hda_gen_spec *spec) in snd_hda_gen_spec_init() argument
39 snd_array_init(&spec->kctls, sizeof(struct snd_kcontrol_new), 32); in snd_hda_gen_spec_init()
40 snd_array_init(&spec->paths, sizeof(struct nid_path), 8); in snd_hda_gen_spec_init()
41 snd_array_init(&spec->loopback_list, sizeof(struct hda_amp_list), 8); in snd_hda_gen_spec_init()
42 mutex_init(&spec->pcm_mutex); in snd_hda_gen_spec_init()
59 snd_hda_gen_add_kctl(struct hda_gen_spec *spec, const char *name, in snd_hda_gen_add_kctl() argument
62 struct snd_kcontrol_new *knew = snd_array_new(&spec->kctls); in snd_hda_gen_add_kctl()
76 static void free_kctls(struct hda_gen_spec *spec) in free_kctls() argument
78 if (spec->kctls.list) { in free_kctls()
79 struct snd_kcontrol_new *kctl = spec->kctls.list; in free_kctls()
[all …]
Dpatch_cs8409.c24 struct cs8409_spec *spec = codec->spec; in cs8409_parse_auto_config() local
28 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in cs8409_parse_auto_config()
32 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in cs8409_parse_auto_config()
37 if (spec->gen.dyn_adc_switch) { in cs8409_parse_auto_config()
40 for (i = 0; i < spec->gen.input_mux.num_items; i++) { in cs8409_parse_auto_config()
41 int idx = spec->gen.dyn_adc_idx[i]; in cs8409_parse_auto_config()
45 snd_hda_gen_fix_pin_power(codec, spec->gen.adc_nids[idx]); in cs8409_parse_auto_config()
57 struct cs8409_spec *spec; in cs8409_alloc_spec() local
59 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in cs8409_alloc_spec()
60 if (!spec) in cs8409_alloc_spec()
[all …]
Dpatch_analog.c43 #define set_beep_amp(spec, nid, idx, dir) \ argument
44 ((spec)->beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir)) /* mono */
46 #define set_beep_amp(spec, nid, idx, dir) /* NOP */ argument
52 struct ad198x_spec *spec = codec->spec; in create_beep_ctls() local
55 if (!spec->beep_amp) in create_beep_ctls()
64 kctl->private_value = spec->beep_amp; in create_beep_ctls()
127 struct ad198x_spec *spec = codec->spec; in ad_vmaster_eapd_hook() local
129 if (!spec->eapd_nid) in ad_vmaster_eapd_hook()
133 snd_hda_codec_write_cache(codec, spec->eapd_nid, 0, in ad_vmaster_eapd_hook()
170 struct ad198x_spec *spec = codec->spec; in ad198x_parse_auto_config() local
[all …]
Dpatch_cirrus.c132 struct cs_spec *spec = codec->spec; in cs_vendor_coef_get() local
134 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_get()
136 return snd_hda_codec_read(codec, spec->vendor_nid, 0, in cs_vendor_coef_get()
143 struct cs_spec *spec = codec->spec; in cs_vendor_coef_set() local
145 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set()
147 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set()
159 struct cs_spec *spec = codec->spec; in cs_automute() local
162 spec->gen.master_mute = !!(spec->spdif_present && spec->sense_b); in cs_automute()
166 if (spec->gpio_eapd_hp || spec->gpio_eapd_speaker) { in cs_automute()
167 if (spec->gen.automute_speaker) in cs_automute()
[all …]
Dpatch_sigmatel.c246 struct sigmatel_spec *spec = codec->spec; in stac_playback_pcm_hook() local
247 if (action == HDA_GEN_PCM_ACT_OPEN && spec->stream_delay) in stac_playback_pcm_hook()
248 msleep(spec->stream_delay); in stac_playback_pcm_hook()
256 struct sigmatel_spec *spec = codec->spec; in stac_capture_pcm_hook() local
259 if (!spec->powerdown_adcs) in stac_capture_pcm_hook()
262 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_capture_pcm_hook()
263 if (spec->gen.all_adcs[i] == hinfo->nid) { in stac_capture_pcm_hook()
274 spec->active_adcs |= (1 << idx); in stac_capture_pcm_hook()
279 spec->active_adcs &= ~(1 << idx); in stac_capture_pcm_hook()
328 struct sigmatel_spec *spec = codec->spec; in stac_capture_led_update() local
[all …]
Dpatch_conexant.c63 static int set_beep_amp(struct conexant_spec *spec, hda_nid_t nid, in set_beep_amp() argument
70 spec->gen.beep_nid = nid; in set_beep_amp()
72 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp()
83 struct conexant_spec *spec = codec->spec; in cx_auto_parse_beep() local
88 return set_beep_amp(spec, nid, 0, HDA_OUTPUT); in cx_auto_parse_beep()
102 struct conexant_spec *spec = codec->spec; in cx_auto_parse_eapd() local
110 spec->eapds[spec->num_eapds++] = nid; in cx_auto_parse_eapd()
111 if (spec->num_eapds >= ARRAY_SIZE(spec->eapds)) in cx_auto_parse_eapd()
121 if (spec->num_eapds > 2) in cx_auto_parse_eapd()
122 spec->dynamic_eapd = 1; in cx_auto_parse_eapd()
[all …]
Dpatch_ca0132.c1182 #define ca0132_quirk(spec) ((spec)->quirk) argument
1183 #define ca0132_use_pci_mmio(spec) ((spec)->use_pci_mmio) argument
1184 #define ca0132_use_alt_functions(spec) ((spec)->use_alt_functions) argument
1185 #define ca0132_use_alt_controls(spec) ((spec)->use_alt_controls) argument
1187 #define ca0132_quirk(spec) ({ (void)(spec); QUIRK_NONE; }) argument
1188 #define ca0132_use_alt_functions(spec) ({ (void)(spec); false; }) argument
1189 #define ca0132_use_pci_mmio(spec) ({ (void)(spec); false; }) argument
1190 #define ca0132_use_alt_controls(spec) ({ (void)(spec); false; }) argument
1569 struct ca0132_spec *spec = codec->spec; in chipio_write_address() local
1572 if (spec->curr_chip_addx == chip_addx) in chipio_write_address()
[all …]
Dpatch_via.c72 #define VT2002P_COMPATIBLE(spec) \ argument
73 ((spec)->codec_type == VT2002P ||\
74 (spec)->codec_type == VT1812 ||\
75 (spec)->codec_type == VT1802)
102 struct via_spec *spec; in via_new_spec() local
104 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in via_new_spec()
105 if (spec == NULL) in via_new_spec()
108 codec->spec = spec; in via_new_spec()
109 snd_hda_gen_spec_init(&spec->gen); in via_new_spec()
110 spec->codec_type = get_codec_type(codec); in via_new_spec()
[all …]
Dpatch_hdmi.c190 struct hdmi_spec *spec = codec->spec; in codec_has_acomp() local
191 return spec->use_acomp_notifier; in codec_has_acomp()
233 #define get_pin(spec, idx) \ argument
234 ((struct hdmi_spec_per_pin *)snd_array_elem(&spec->pins, idx))
235 #define get_cvt(spec, idx) \ argument
236 ((struct hdmi_spec_per_cvt *)snd_array_elem(&spec->cvts, idx))
238 #define get_hdmi_pcm(spec, idx) (&(spec)->pcm_rec[idx]) argument
240 #define get_pcm_rec(spec, idx) (get_hdmi_pcm(spec, idx)->pcm) argument
245 struct hdmi_spec *spec = codec->spec; in pin_id_to_pin_index() local
256 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) { in pin_id_to_pin_index()
[all …]
Dpatch_realtek.c139 struct alc_spec *spec = codec->spec; in coef_mutex_lock() local
142 mutex_lock(&spec->coef_mutex); in coef_mutex_lock()
147 struct alc_spec *spec = codec->spec; in coef_mutex_unlock() local
149 mutex_unlock(&spec->coef_mutex); in coef_mutex_unlock()
221 struct alc_spec *spec = codec->spec; in alc_get_coef0() local
223 if (!spec->coef0) in alc_get_coef0()
224 spec->coef0 = alc_read_coef_idx(codec, 0); in alc_get_coef0()
225 return spec->coef0; in alc_get_coef0()
263 struct alc_spec *spec = codec->spec; in alc_setup_gpio() local
265 spec->gpio_mask |= mask; in alc_setup_gpio()
[all …]
Dpatch_cmedia.c37 struct cmi_spec *spec; in patch_cmi9880() local
41 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in patch_cmi9880()
42 if (spec == NULL) in patch_cmi9880()
45 codec->spec = spec; in patch_cmi9880()
47 cfg = &spec->gen.autocfg; in patch_cmi9880()
48 snd_hda_gen_spec_init(&spec->gen); in patch_cmi9880()
66 struct cmi_spec *spec; in patch_cmi8888() local
70 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in patch_cmi8888()
71 if (!spec) in patch_cmi8888()
74 codec->spec = spec; in patch_cmi8888()
[all …]
Dpatch_ca0110.c29 struct hda_gen_spec *spec = codec->spec; in ca0110_parse_auto_config() local
32 err = snd_hda_parse_pin_defcfg(codec, &spec->autocfg, NULL, 0); in ca0110_parse_auto_config()
35 err = snd_hda_gen_parse_auto_config(codec, &spec->autocfg); in ca0110_parse_auto_config()
45 struct hda_gen_spec *spec; in patch_ca0110() local
48 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in patch_ca0110()
49 if (!spec) in patch_ca0110()
51 snd_hda_gen_spec_init(spec); in patch_ca0110()
52 codec->spec = spec; in patch_ca0110()
55 spec->multi_cap_vol = 1; in patch_ca0110()
/sound/firewire/motu/
Dmotu.h58 const struct snd_motu_spec *spec; member
142 const struct snd_motu_spec *spec,
212 if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V2) in snd_motu_protocol_get_clock_rate()
214 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V3) in snd_motu_protocol_get_clock_rate()
216 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V1) in snd_motu_protocol_get_clock_rate()
225 if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V2) in snd_motu_protocol_set_clock_rate()
227 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V3) in snd_motu_protocol_set_clock_rate()
229 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V1) in snd_motu_protocol_set_clock_rate()
238 if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V2) in snd_motu_protocol_get_clock_source()
240 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V3) in snd_motu_protocol_get_clock_source()
[all …]
/sound/firewire/bebob/
Dbebob_proc.c75 const struct snd_bebob_meter_spec *spec = bebob->spec->meter; in proc_read_meters() local
79 if (spec == NULL) in proc_read_meters()
82 channels = spec->num * 2; in proc_read_meters()
88 if (spec->get(bebob, buf, size) < 0) in proc_read_meters()
93 spec->labels[i / 2], c++, buf[i]); in proc_read_meters()
95 (strcmp(spec->labels[i / 2], in proc_read_meters()
96 spec->labels[(i + 1) / 2]) != 0)) in proc_read_meters()
140 const struct snd_bebob_rate_spec *rate_spec = bebob->spec->rate; in proc_read_clock()
141 const struct snd_bebob_clock_spec *clk_spec = bebob->spec->clock; in proc_read_clock()
187 if (bebob->spec->meter != NULL) in snd_bebob_proc_init()

1234