Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 28) sorted by relevance

12

/sound/hda/
Dhdac_sysfs.c21 struct device_attribute *attr, \
31 struct device_attribute *attr, \
49 static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, in modalias_show() argument
57 &dev_attr_type.attr,
58 &dev_attr_vendor_id.attr,
59 &dev_attr_subsystem_id.attr,
60 &dev_attr_revision_id.attr,
61 &dev_attr_afg.attr,
62 &dev_attr_mfg.attr,
63 &dev_attr_vendor_name.attr,
[all …]
/sound/pci/hda/
Dhda_sysfs.c31 struct device_attribute *attr, in power_on_acct_show() argument
40 struct device_attribute *attr, in power_off_acct_show() argument
54 struct device_attribute *attr, \
63 struct device_attribute *attr, \
96 struct device_attribute *attr, in init_pin_configs_show() argument
104 struct device_attribute *attr, in driver_pin_configs_show() argument
168 struct device_attribute *attr, \
182 struct device_attribute *attr, \
203 struct device_attribute *attr, \
217 struct device_attribute *attr, in init_verbs_show() argument
[all …]
Dhda_auto_parser.c133 int attr; in can_be_headset_mic() local
142 attr = snd_hda_get_input_pin_attr(def_conf); in can_be_headset_mic()
143 if (attr <= INPUT_PIN_ATTR_DOCK) in can_be_headset_mic()
492 int attr; in hda_get_input_pin_label() local
504 attr = snd_hda_get_input_pin_attr(def_conf); in hda_get_input_pin_label()
505 if (!attr) in hda_get_input_pin_label()
507 return mic_names[attr - 1]; in hda_get_input_pin_label()
511 attr = snd_hda_get_input_pin_attr(def_conf); in hda_get_input_pin_label()
512 if (!attr) in hda_get_input_pin_label()
514 if (attr == INPUT_PIN_ATTR_DOCK) in hda_get_input_pin_label()
[all …]
Dhda_generic.h60 unsigned int attr; /* pin attribute (INPUT_PIN_ATTR_*) */ member
Dhda_generic.c4821 return (int)(a->attr - b->attr); in compare_attr()
4842 unsigned int attr; in check_auto_mic_availability() local
4843 attr = snd_hda_codec_get_pincfg(codec, nid); in check_auto_mic_availability()
4844 attr = snd_hda_get_input_pin_attr(attr); in check_auto_mic_availability()
4845 if (types & (1 << attr)) in check_auto_mic_availability()
4847 switch (attr) { in check_auto_mic_availability()
4866 types |= (1 << attr); in check_auto_mic_availability()
4868 spec->am_entry[num_pins].attr = attr; in check_auto_mic_availability()
/sound/aoa/soundbus/
Dsysfs.c8 static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, in modalias_show() argument
30 struct device_attribute *attr, char *buf) in name_show() argument
40 struct device_attribute *attr, char *buf) in type_show() argument
50 &dev_attr_name.attr,
51 &dev_attr_type.attr,
52 &dev_attr_modalias.attr,
/sound/soc/intel/catpt/
Dsysfs.c12 struct device_attribute *attr, char *buf) in fw_version_show() argument
34 struct device_attribute *attr, char *buf) in fw_info_show() argument
43 &dev_attr_fw_version.attr,
44 &dev_attr_fw_info.attr,
/sound/core/
Dcontrol_led.c397 struct device_attribute *attr, char *buf) in mode_show() argument
412 struct device_attribute *attr, in mode_store() argument
442 struct device_attribute *attr, char *buf) in brightness_show() argument
453 &dev_attr_mode.attr,
454 &dev_attr_brightness.attr,
584 struct device_attribute *attr, in attach_store() argument
592 struct device_attribute *attr, in detach_store() argument
600 struct device_attribute *attr, in reset_store() argument
615 struct device_attribute *attr, char *buf) in list_show() argument
654 &dev_attr_attach.attr,
[all …]
Dinit.c776 struct device_attribute *attr, char *buf) in id_show() argument
782 static ssize_t id_store(struct device *dev, struct device_attribute *attr, in id_store() argument
814 struct device_attribute *attr, char *buf) in number_show() argument
823 &dev_attr_id.attr,
824 &dev_attr_number.attr,
Dpcm.c1016 struct device_attribute *attr, char *buf) in pcm_class_show() argument
1037 &dev_attr_pcm_class.attr,
/sound/usb/line6/
Dpod.c234 struct device_attribute *attr, char *buf) in serial_number_show() argument
246 struct device_attribute *attr, char *buf) in firmware_version_show() argument
259 struct device_attribute *attr, char *buf) in device_id_show() argument
303 &dev_attr_device_id.attr,
304 &dev_attr_firmware_version.attr,
305 &dev_attr_serial_number.attr,
Dpodhd.c144 struct device_attribute *attr, char *buf) in serial_number_show() argument
153 struct device_attribute *attr, char *buf) in firmware_version_show() argument
165 &dev_attr_firmware_version.attr,
166 &dev_attr_serial_number.attr,
Ddriver.h196 extern ssize_t line6_set_raw(struct device *dev, struct device_attribute *attr,
/sound/ac97/
Dbus.c240 struct device_attribute *attr, const char *buf, in cold_reset_store() argument
254 struct device_attribute *attr, const char *buf, in warm_reset_store() argument
271 &dev_attr_cold_reset.attr,
272 &dev_attr_warm_reset.attr,
459 struct device_attribute *attr, char *buf) in vendor_id_show() argument
468 &dev_attr_vendor_id.attr,
/sound/soc/qcom/qdsp6/
Dq6afe-clocks.c195 unsigned int attr = clkspec->args[1]; in q6afe_of_clk_hw_get() local
197 if (idx >= Q6AFE_MAX_CLK_ID || attr > LPASS_CLK_ATTRIBUTE_COUPLE_DIVISOR) { in q6afe_of_clk_hw_get()
198 dev_err(cc->dev, "Invalid clk specifier (%d, %d)\n", idx, attr); in q6afe_of_clk_hw_get()
203 cc->clks[idx]->attributes = attr; in q6afe_of_clk_hw_get()
/sound/usb/
Dpcm.c99 int cur_attr = 0, attr; in find_format() local
119 attr = fp->ep_attr & USB_ENDPOINT_SYNCTYPE; in find_format()
121 trace_android_vh_audio_usb_offload_synctype(subs, attr, &need_ignore); in find_format()
127 cur_attr = attr; in find_format()
135 if (subs && attr != cur_attr) { in find_format()
136 if ((attr == USB_ENDPOINT_SYNC_ASYNC && in find_format()
138 (attr == USB_ENDPOINT_SYNC_ADAPTIVE && in find_format()
146 cur_attr = attr; in find_format()
153 cur_attr = attr; in find_format()
298 unsigned int ep, attr, sync_attr; in snd_usb_audioformat_set_sync_ep() local
[all …]
Dimplicit.c296 unsigned int attr = fmt->ep_attr & USB_ENDPOINT_SYNCTYPE; in audioformat_implicit_fb_quirk() local
324 if (attr == USB_ENDPOINT_SYNC_ASYNC && in audioformat_implicit_fb_quirk()
/sound/soc/intel/skylake/
Dskl-nhlt.c153 struct device_attribute *attr, char *buf) in platform_id_show() argument
175 if (sysfs_create_file(&dev->kobj, &dev_attr_platform_id.attr)) in skl_nhlt_create_sysfs()
186 sysfs_remove_file(&dev->kobj, &dev_attr_platform_id.attr); in skl_nhlt_remove_sysfs()
/sound/soc/ti/
Domap-mcbsp.c518 struct device_attribute *attr, char *buf) \
526 struct device_attribute *attr, \
554 struct device_attribute *attr, char *buf) in dma_op_mode_show() argument
575 struct device_attribute *attr, const char *buf, in dma_op_mode_store() argument
601 &dev_attr_max_tx_thres.attr,
602 &dev_attr_max_rx_thres.attr,
603 &dev_attr_dma_op_mode.attr,
Domap-mcbsp-st.c238 struct device_attribute *attr, char *buf) in st_taps_show() argument
257 struct device_attribute *attr, in st_taps_store() argument
296 &dev_attr_st_taps.attr,
/sound/soc/codecs/
Dtlv320aic26.c265 struct device_attribute *attr, char *buf) in keyclick_show() argument
280 struct device_attribute *attr, in keyclick_store() argument
Dcs43130.c1676 struct device_attribute *attr, char *buf) in hpload_dc_l_show() argument
1682 struct device_attribute *attr, char *buf) in hpload_dc_r_show() argument
1723 struct device_attribute *attr, char *buf) in hpload_ac_l_show() argument
1729 struct device_attribute *attr, char *buf) in hpload_ac_r_show() argument
1740 &dev_attr_hpload_dc_l.attr,
1741 &dev_attr_hpload_dc_r.attr,
1742 &dev_attr_hpload_ac_l.attr,
1743 &dev_attr_hpload_ac_r.attr,
Dcs42l56.c1024 static ssize_t beep_store(struct device *dev, struct device_attribute *attr, in beep_store() argument
/sound/soc/
Dsoc-core.c71 struct device_attribute *attr, char *buf) in pmdown_time_show() argument
79 struct device_attribute *attr, in pmdown_time_store() argument
95 &dev_attr_pmdown_time.attr,
100 struct attribute *attr, int idx) in soc_dev_attr_is_visible() argument
108 if (attr == &dev_attr_pmdown_time.attr) in soc_dev_attr_is_visible()
109 return attr->mode; /* always visible */ in soc_dev_attr_is_visible()
110 return rtd->num_codecs ? attr->mode : 0; /* enabled only with codec */ in soc_dev_attr_is_visible()
/sound/soc/intel/atom/sst/
Dsst.c239 struct device_attribute *attr, char *buf) in firmware_version_show() argument
256 &dev_attr_firmware_version.attr,

12