Home
last modified time | relevance | path

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

123456

/linux-3.4.99/sound/pci/hda/
Dpatch_via.c81 #define VT2002P_COMPATIBLE(spec) \ argument
82 ((spec)->codec_type == VT2002P ||\
83 (spec)->codec_type == VT1812 ||\
84 (spec)->codec_type == VT1802)
235 struct via_spec *spec; in via_new_spec() local
237 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in via_new_spec()
238 if (spec == NULL) in via_new_spec()
241 mutex_init(&spec->config_mutex); in via_new_spec()
242 codec->spec = spec; in via_new_spec()
243 spec->codec = codec; in via_new_spec()
[all …]
Dpatch_sigmatel.c594 struct sigmatel_spec *spec = codec->spec; in stac92xx_dmux_enum_info() local
595 return snd_hda_input_mux_info(spec->dinput_mux, uinfo); in stac92xx_dmux_enum_info()
602 struct sigmatel_spec *spec = codec->spec; in stac92xx_dmux_enum_get() local
605 ucontrol->value.enumerated.item[0] = spec->cur_dmux[dmux_idx]; in stac92xx_dmux_enum_get()
613 struct sigmatel_spec *spec = codec->spec; in stac92xx_dmux_enum_put() local
616 return snd_hda_input_mux_put(codec, spec->dinput_mux, ucontrol, in stac92xx_dmux_enum_put()
617 spec->dmux_nids[dmux_idx], &spec->cur_dmux[dmux_idx]); in stac92xx_dmux_enum_put()
624 struct sigmatel_spec *spec = codec->spec; in stac92xx_smux_enum_info() local
625 return snd_hda_input_mux_info(spec->sinput_mux, uinfo); in stac92xx_smux_enum_info()
632 struct sigmatel_spec *spec = codec->spec; in stac92xx_smux_enum_get() local
[all …]
Dpatch_cirrus.c159 struct cs_spec *spec = codec->spec; in cs_vendor_coef_get() local
160 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_get()
162 return snd_hda_codec_read(codec, spec->vendor_nid, 0, in cs_vendor_coef_get()
169 struct cs_spec *spec = codec->spec; in cs_vendor_coef_set() local
170 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set()
172 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set()
187 struct cs_spec *spec = codec->spec; in cs_playback_pcm_open() local
188 return snd_hda_multi_out_analog_open(codec, &spec->multiout, substream, in cs_playback_pcm_open()
198 struct cs_spec *spec = codec->spec; in cs_playback_pcm_prepare() local
199 return snd_hda_multi_out_analog_prepare(codec, &spec->multiout, in cs_playback_pcm_prepare()
[all …]
Dpatch_cmedia.c85 struct cmi_spec *spec = codec->spec; in cmi_mux_enum_info() local
86 return snd_hda_input_mux_info(spec->input_mux, uinfo); in cmi_mux_enum_info()
92 struct cmi_spec *spec = codec->spec; in cmi_mux_enum_get() local
95 ucontrol->value.enumerated.item[0] = spec->cur_mux[adc_idx]; in cmi_mux_enum_get()
102 struct cmi_spec *spec = codec->spec; in cmi_mux_enum_put() local
105 return snd_hda_input_mux_put(codec, spec->input_mux, ucontrol, in cmi_mux_enum_put()
106 spec->adc_nids[adc_idx], &spec->cur_mux[adc_idx]); in cmi_mux_enum_put()
155 struct cmi_spec *spec = codec->spec; in cmi_ch_mode_info() local
156 return snd_hda_ch_mode_info(codec, uinfo, spec->channel_modes, in cmi_ch_mode_info()
157 spec->num_channel_modes); in cmi_ch_mode_info()
[all …]
Dpatch_conexant.c174 struct conexant_spec *spec = codec->spec; in conexant_playback_pcm_open() local
175 return snd_hda_multi_out_analog_open(codec, &spec->multiout, substream, in conexant_playback_pcm_open()
185 struct conexant_spec *spec = codec->spec; in conexant_playback_pcm_prepare() local
186 return snd_hda_multi_out_analog_prepare(codec, &spec->multiout, in conexant_playback_pcm_prepare()
195 struct conexant_spec *spec = codec->spec; in conexant_playback_pcm_cleanup() local
196 return snd_hda_multi_out_analog_cleanup(codec, &spec->multiout); in conexant_playback_pcm_cleanup()
206 struct conexant_spec *spec = codec->spec; in conexant_dig_playback_pcm_open() local
207 return snd_hda_multi_out_dig_open(codec, &spec->multiout); in conexant_dig_playback_pcm_open()
214 struct conexant_spec *spec = codec->spec; in conexant_dig_playback_pcm_close() local
215 return snd_hda_multi_out_dig_close(codec, &spec->multiout); in conexant_dig_playback_pcm_close()
[all …]
Dpatch_ca0110.c55 struct ca0110_spec *spec = codec->spec; in ca0110_playback_pcm_open() local
56 return snd_hda_multi_out_analog_open(codec, &spec->multiout, substream, in ca0110_playback_pcm_open()
66 struct ca0110_spec *spec = codec->spec; in ca0110_playback_pcm_prepare() local
67 return snd_hda_multi_out_analog_prepare(codec, &spec->multiout, in ca0110_playback_pcm_prepare()
75 struct ca0110_spec *spec = codec->spec; in ca0110_playback_pcm_cleanup() local
76 return snd_hda_multi_out_analog_cleanup(codec, &spec->multiout); in ca0110_playback_pcm_cleanup()
86 struct ca0110_spec *spec = codec->spec; in ca0110_dig_playback_pcm_open() local
87 return snd_hda_multi_out_dig_open(codec, &spec->multiout); in ca0110_dig_playback_pcm_open()
94 struct ca0110_spec *spec = codec->spec; in ca0110_dig_playback_pcm_close() local
95 return snd_hda_multi_out_dig_close(codec, &spec->multiout); in ca0110_dig_playback_pcm_close()
[all …]
Dpatch_realtek.c250 struct alc_spec *spec = codec->spec; in alc_mux_enum_info() local
252 if (mux_idx >= spec->num_mux_defs) in alc_mux_enum_info()
254 if (!spec->input_mux[mux_idx].num_items && mux_idx > 0) in alc_mux_enum_info()
256 return snd_hda_input_mux_info(&spec->input_mux[mux_idx], uinfo); in alc_mux_enum_info()
263 struct alc_spec *spec = codec->spec; in alc_mux_enum_get() local
266 ucontrol->value.enumerated.item[0] = spec->cur_mux[adc_idx]; in alc_mux_enum_get()
272 struct alc_spec *spec = codec->spec; in alc_dyn_adc_pcm_resetup() local
273 hda_nid_t new_adc = spec->adc_nids[spec->dyn_adc_idx[cur]]; in alc_dyn_adc_pcm_resetup()
275 if (spec->cur_adc && spec->cur_adc != new_adc) { in alc_dyn_adc_pcm_resetup()
277 __snd_hda_codec_cleanup_stream(codec, spec->cur_adc, 1); in alc_dyn_adc_pcm_resetup()
[all …]
Dpatch_analog.c102 struct ad198x_spec *spec = codec->spec; in ad198x_mux_enum_info() local
104 return snd_hda_input_mux_info(spec->input_mux, uinfo); in ad198x_mux_enum_info()
110 struct ad198x_spec *spec = codec->spec; in ad198x_mux_enum_get() local
113 ucontrol->value.enumerated.item[0] = spec->cur_mux[adc_idx]; in ad198x_mux_enum_get()
120 struct ad198x_spec *spec = codec->spec; in ad198x_mux_enum_put() local
123 return snd_hda_input_mux_put(codec, spec->input_mux, ucontrol, in ad198x_mux_enum_put()
124 spec->capsrc_nids[adc_idx], in ad198x_mux_enum_put()
125 &spec->cur_mux[adc_idx]); in ad198x_mux_enum_put()
133 struct ad198x_spec *spec = codec->spec; in ad198x_init() local
136 for (i = 0; i < spec->num_init_verbs; i++) in ad198x_init()
[all …]
Dhda_generic.c96 struct hda_gspec *spec = codec->spec; in snd_hda_generic_free() local
99 if (! spec) in snd_hda_generic_free()
102 list_for_each_entry_safe(node, n, &spec->nid_list, list) { in snd_hda_generic_free()
107 kfree(spec); in snd_hda_generic_free()
114 static int add_new_node(struct hda_codec *codec, struct hda_gspec *spec, hda_nid_t nid) in add_new_node() argument
160 node->amp_out_caps = spec->def_amp_out_caps; in add_new_node()
166 node->amp_in_caps = spec->def_amp_in_caps; in add_new_node()
168 list_add_tail(&node->list, &spec->nid_list); in add_new_node()
177 struct hda_gspec *spec = codec->spec; in build_afg_tree() local
181 if (snd_BUG_ON(!spec)) in build_afg_tree()
[all …]
Dpatch_ca0132.c430 struct ca0132_spec *spec = codec->spec; in chipio_write() local
433 mutex_lock(&spec->chipio_mutex); in chipio_write()
445 mutex_unlock(&spec->chipio_mutex); in chipio_write()
456 struct ca0132_spec *spec = codec->spec; in chipio_read() local
459 mutex_lock(&spec->chipio_mutex); in chipio_read()
471 mutex_unlock(&spec->chipio_mutex); in chipio_read()
526 struct ca0132_spec *spec = codec->spec; in ca0132_playback_pcm_prepare() local
528 ca0132_setup_stream(codec, spec->dacs[0], stream_tag, 0, format); in ca0132_playback_pcm_prepare()
537 struct ca0132_spec *spec = codec->spec; in ca0132_playback_pcm_cleanup() local
539 ca0132_cleanup_stream(codec, spec->dacs[0]); in ca0132_playback_pcm_cleanup()
[all …]
Dpatch_hdmi.c295 static int pin_nid_to_pin_index(struct hdmi_spec *spec, hda_nid_t pin_nid) in pin_nid_to_pin_index() argument
299 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) in pin_nid_to_pin_index()
300 if (spec->pins[pin_idx].pin_nid == pin_nid) in pin_nid_to_pin_index()
307 static int hinfo_to_pin_index(struct hdmi_spec *spec, in hinfo_to_pin_index() argument
312 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) in hinfo_to_pin_index()
313 if (&spec->pcm_rec[pin_idx].stream[0] == hinfo) in hinfo_to_pin_index()
320 static int cvt_nid_to_cvt_index(struct hdmi_spec *spec, hda_nid_t cvt_nid) in cvt_nid_to_cvt_index() argument
324 for (cvt_idx = 0; cvt_idx < spec->num_cvts; cvt_idx++) in cvt_nid_to_cvt_index()
325 if (spec->cvts[cvt_idx].cvt_nid == cvt_nid) in cvt_nid_to_cvt_index()
336 struct hdmi_spec *spec; in hdmi_eld_ctl_info() local
[all …]
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()
/linux-3.4.99/sound/pci/ice1712/
Dhoontech.c58 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_darear() local
60 ICE1712_STDSP24_0_DAREAR(spec->boxbits, activate); in snd_ice1712_stdsp24_darear()
61 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[0]); in snd_ice1712_stdsp24_darear()
67 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_mute() local
69 ICE1712_STDSP24_3_MUTE(spec->boxbits, activate); in snd_ice1712_stdsp24_mute()
70 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]); in snd_ice1712_stdsp24_mute()
76 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_insel() local
78 ICE1712_STDSP24_3_INSEL(spec->boxbits, activate); in snd_ice1712_stdsp24_insel()
79 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]); in snd_ice1712_stdsp24_insel()
85 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_box_channel() local
[all …]
Dse.c470 struct se_spec *spec = ice->spec; in se200pci_cont_volume_get() local
472 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_volume_get()
473 uc->value.integer.value[1] = spec->vol[n].ch2; in se200pci_cont_volume_get()
481 struct se_spec *spec = ice->spec; in se200pci_cont_boolean_get() local
483 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_boolean_get()
491 struct se_spec *spec = ice->spec; in se200pci_cont_enum_get() local
493 uc->value.enumerated.item[0] = spec->vol[n].ch1; in se200pci_cont_enum_get()
499 struct se_spec *spec = ice->spec; in se200pci_cont_update() local
504 spec->vol[n].ch1, in se200pci_cont_update()
505 spec->vol[n].ch2); in se200pci_cont_update()
[all …]
Dphase.c347 struct phase28_spec *spec = ice->spec; in wm_master_vol_get() local
350 ucontrol->value.integer.value[i] = spec->master[i] & in wm_master_vol_get()
359 struct phase28_spec *spec = ice->spec; in wm_master_vol_put() local
367 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
368 if (vol != spec->master[ch]) { in wm_master_vol_put()
370 spec->master[ch] = vol; in wm_master_vol_put()
373 spec->vol[dac + ch], in wm_master_vol_put()
374 spec->master[ch]); in wm_master_vol_put()
423 struct phase28_spec *spec; in phase28_init() local
430 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in phase28_init()
[all …]
Dprodigy_hifi.c270 struct prodigy_hifi_spec *spec = ice->spec; in ak4396_dac_vol_get() local
274 ucontrol->value.integer.value[i] = spec->vol[i]; in ak4396_dac_vol_get()
282 struct prodigy_hifi_spec *spec = ice->spec; in ak4396_dac_vol_put() local
288 if (ucontrol->value.integer.value[i] != spec->vol[i]) { in ak4396_dac_vol_put()
289 spec->vol[i] = ucontrol->value.integer.value[i]; in ak4396_dac_vol_put()
291 spec->vol[i] & 0xff); in ak4396_dac_vol_put()
398 struct prodigy_hifi_spec *spec = ice->spec; in wm_dac_vol_get() local
403 spec->vol[2 + i] & ~WM_VOL_MUTE; in wm_dac_vol_get()
410 struct prodigy_hifi_spec *spec = ice->spec; in wm_dac_vol_put() local
415 if (ucontrol->value.integer.value[i] != spec->vol[2 + i]) { in wm_dac_vol_put()
[all …]
Dews.c149 struct ews_spec *spec = ice->spec; in snd_ice1712_ews88mt_chip_select() local
155 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF2], &data, 1) != 1) in snd_ice1712_ews88mt_chip_select()
159 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF2], &ndata, 1) in snd_ice1712_ews88mt_chip_select()
234 struct ews_spec *spec = ice->spec; in snd_ice1712_ews_cs8404_spdif_write() local
243 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_CS8404], &bits, 1) in snd_ice1712_ews_cs8404_spdif_write()
248 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_88D], bytes, 2) in snd_ice1712_ews_cs8404_spdif_write()
253 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_88D], in snd_ice1712_ews_cs8404_spdif_write()
427 struct ews_spec *spec; in snd_ice1712_ews_init() local
453 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in snd_ice1712_ews_init()
454 if (!spec) in snd_ice1712_ews_init()
[all …]
Djuli.c184 struct juli_spec *spec = ice->spec; in juli_spdif_in_open() local
191 rate = snd_ak4114_external_rate(spec->ak4114); in juli_spdif_in_open()
228 struct juli_spec *spec = ice->spec; in juli_akm_set_rate_val() local
269 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 …]
Dquartet.c452 struct qtet_spec *spec = ice->spec; in get_scr() local
453 return spec->scr; in get_scr()
458 struct qtet_spec *spec = ice->spec; in get_mcr() local
459 return spec->mcr; in get_mcr()
464 struct qtet_spec *spec = ice->spec; in get_cpld() local
465 return spec->cpld; in get_cpld()
470 struct qtet_spec *spec = ice->spec; in set_scr() local
472 spec->scr = val; in set_scr()
477 struct qtet_spec *spec = ice->spec; in set_mcr() local
479 spec->mcr = val; in set_mcr()
[all …]
Dprodigy192.c127 struct prodigy192_spec *spec = ice->spec; in stac9460_dac_mute_put() local
135 mutex_lock(&spec->mute_mutex); in stac9460_dac_mute_put()
141 mutex_unlock(&spec->mute_mutex); in stac9460_dac_mute_put()
332 struct prodigy192_spec *spec = ice->spec; in stac9460_set_rate_val() local
347 mutex_lock(&spec->mute_mutex); in stac9460_set_rate_val()
361 mutex_unlock(&spec->mute_mutex); in stac9460_set_rate_val()
638 struct prodigy192_spec *spec = ice->spec; in prodigy192_ak4114_init() local
645 ice, &spec->ak4114); in prodigy192_ak4114_init()
650 spec->ak4114->check_flags = AK4114_CHECK_NO_RATE; in prodigy192_ak4114_init()
677 struct prodigy192_spec *spec = ice->spec; in prodigy192_add_controls() local
[all …]
/linux-3.4.99/drivers/video/via/
Dvia_aux_edid.c35 struct fb_monspecs *spec = drv->data; in query_edid() local
39 if (spec) { in query_edid()
40 fb_destroy_modedb(spec->modedb); in query_edid()
42 spec = kmalloc(sizeof(*spec), GFP_KERNEL); in query_edid()
43 if (!spec) in query_edid()
47 spec->version = spec->revision = 0; in query_edid()
49 fb_edid_to_monspecs(edid, spec); in query_edid()
50 valid = spec->version || spec->revision; in query_edid()
54 kfree(spec); in query_edid()
55 spec = NULL; in query_edid()
[all …]
/linux-3.4.99/drivers/net/ethernet/sfc/
Dfilter.c56 struct efx_filter_spec *spec; member
93 efx_filter_spec_table_id(const struct efx_filter_spec *spec) in efx_filter_spec_table_id() argument
102 EFX_BUG_ON_PARANOID(spec->type == EFX_FILTER_UNSPEC); in efx_filter_spec_table_id()
103 return (spec->type >> 2) + ((spec->flags & EFX_FILTER_FLAG_TX) ? 2 : 0); in efx_filter_spec_table_id()
108 const struct efx_filter_spec *spec) in efx_filter_spec_table() argument
110 if (spec->type == EFX_FILTER_UNSPEC) in efx_filter_spec_table()
113 return &state->table[efx_filter_spec_table_id(spec)]; in efx_filter_spec_table()
159 table->spec[EFX_FILTER_INDEX_UC_DEF].dmaq_id); in efx_filter_push_rx_config()
162 !!(table->spec[EFX_FILTER_INDEX_UC_DEF].flags & in efx_filter_push_rx_config()
166 !!(table->spec[EFX_FILTER_INDEX_UC_DEF].flags & in efx_filter_push_rx_config()
[all …]
Dfilter.h102 static inline void efx_filter_init_rx(struct efx_filter_spec *spec, in efx_filter_init_rx() argument
107 spec->type = EFX_FILTER_UNSPEC; in efx_filter_init_rx()
108 spec->priority = priority; in efx_filter_init_rx()
109 spec->flags = EFX_FILTER_FLAG_RX | flags; in efx_filter_init_rx()
110 spec->dmaq_id = rxq_id; in efx_filter_init_rx()
113 static inline void efx_filter_init_tx(struct efx_filter_spec *spec, in efx_filter_init_tx() argument
116 spec->type = EFX_FILTER_UNSPEC; in efx_filter_init_tx()
117 spec->priority = EFX_FILTER_PRI_REQUIRED; in efx_filter_init_tx()
118 spec->flags = EFX_FILTER_FLAG_TX; in efx_filter_init_tx()
119 spec->dmaq_id = txq_id; in efx_filter_init_tx()
[all …]
/linux-3.4.99/lib/
Dvsprintf.c278 struct printf_spec spec) in number() argument
286 int need_pfx = ((spec.flags & SPECIAL) && spec.base != 10); in number()
291 locase = (spec.flags & SMALL); in number()
292 if (spec.flags & LEFT) in number()
293 spec.flags &= ~ZEROPAD; in number()
295 if (spec.flags & SIGN) { in number()
299 spec.field_width--; in number()
300 } else if (spec.flags & PLUS) { in number()
302 spec.field_width--; in number()
303 } else if (spec.flags & SPACE) { in number()
[all …]

123456