Lines Matching refs:card
168 struct udev_device *card = NULL; in pa_udev_get_info() local
183 card = udev_device_new_from_syspath(udev, t); in pa_udev_get_info()
186 if (!card) { in pa_udev_get_info()
192 if (((v = udev_device_get_property_value(card, "ID_PATH")) && *v) || in pa_udev_get_info()
193 (v = udev_device_get_devpath(card))) in pa_udev_get_info()
197 if ((v = udev_device_get_devpath(card))) in pa_udev_get_info()
201 if ((v = udev_device_get_property_value(card, "ID_ID")) && *v) in pa_udev_get_info()
205 if ((bus = udev_device_get_property_value(card, "ID_BUS")) && *bus) in pa_udev_get_info()
209 if ((id = read_id(card, "ID_VENDOR_ID")) > 0) in pa_udev_get_info()
214 …if (!pa_safe_streq(bus, "firewire") && (v = udev_device_get_property_value(card, "ID_VENDOR_FROM_D… in pa_udev_get_info()
216 else if ((v = udev_device_get_property_value(card, "ID_VENDOR_ENC")) && *v) in pa_udev_get_info()
218 else if ((v = udev_device_get_property_value(card, "ID_VENDOR")) && *v) in pa_udev_get_info()
223 if ((id = read_id(card, "ID_MODEL_ID")) >= 0) in pa_udev_get_info()
228 …if (!pa_safe_streq(bus, "firewire") && (v = udev_device_get_property_value(card, "ID_MODEL_FROM_DA… in pa_udev_get_info()
230 else if ((v = udev_device_get_property_value(card, "ID_MODEL_ENC")) && *v) in pa_udev_get_info()
232 else if ((v = udev_device_get_property_value(card, "ID_MODEL")) && *v) in pa_udev_get_info()
237 if ((v = udev_device_get_property_value(card, "ID_SERIAL")) && *v) in pa_udev_get_info()
241 if ((v = udev_device_get_property_value(card, "SOUND_CLASS")) && *v) in pa_udev_get_info()
245 if ((v = udev_device_get_property_value(card, "SOUND_FORM_FACTOR")) && *v) in pa_udev_get_info()
251 if ((v = udev_device_get_property_value(card, "SOUND_DESCRIPTION")) && *v) in pa_udev_get_info()
258 if (card) in pa_udev_get_info()
259 udev_device_unref(card); in pa_udev_get_info()
269 struct udev_device *card = NULL; in pa_udev_get_property() local
282 card = udev_device_new_from_syspath(udev, t); in pa_udev_get_property()
285 if (!card) { in pa_udev_get_property()
290 if ((v = udev_device_get_property_value(card, name)) && *v) in pa_udev_get_property()
295 if (card) in pa_udev_get_property()
296 udev_device_unref(card); in pa_udev_get_property()