Lines Matching +full:cm +full:- +full:name
1 // SPDX-License-Identifier: GPL-2.0-only
13 #include "hid-ids.h"
26 /* Fixed report descriptor of HS-100B audio chip
91 static void hp_ev(struct hid_device *hid, struct cmhid *cm, int value) in hp_ev() argument
93 input_report_switch(cm->input_dev, SW_HEADPHONE_INSERT, value); in hp_ev()
94 input_sync(cm->input_dev); in hp_ev()
100 struct cmhid *cm = hid_get_drvdata(hid); in cmhid_raw_event() local
108 hp_ev(hid, cm, 0); in cmhid_raw_event()
112 hp_ev(hid, cm, 1); in cmhid_raw_event()
123 struct input_dev *input_dev = hidinput->input; in cmhid_input_configured()
124 struct cmhid *cm = hid_get_drvdata(hid); in cmhid_input_configured() local
127 cm->input_dev = input_dev; in cmhid_input_configured()
128 memcpy(cm->switch_map, jack_switch_types, sizeof(cm->switch_map)); in cmhid_input_configured()
129 input_dev->evbit[0] = BIT(EV_SW); in cmhid_input_configured()
131 input_set_capability(cm->input_dev, in cmhid_input_configured()
140 return -1; in cmhid_input_mapping()
146 struct cmhid *cm; in cmhid_probe() local
148 cm = kzalloc(sizeof(struct cmhid), GFP_KERNEL); in cmhid_probe()
149 if (!cm) { in cmhid_probe()
150 ret = -ENOMEM; in cmhid_probe()
154 cm->hid = hid; in cmhid_probe()
156 hid->quirks |= HID_QUIRK_HIDINPUT_FORCE; in cmhid_probe()
157 hid_set_drvdata(hid, cm); in cmhid_probe()
173 kfree(cm); in cmhid_probe()
180 struct cmhid *cm = hid_get_drvdata(hid); in cmhid_remove() local
183 kfree(cm); in cmhid_remove()
193 .name = "cm6533_jd",
206 hid_info(hid, "Fixing CMedia HS-100B report descriptor\n"); in cmhid_hs100b_report_fixup()
220 .name = "cmedia_hs100b",