Lines Matching defs:hdev

146 	struct hdac_device *hdev = &codec->core;
147 struct hdac_bus *bus = hdev->bus;
152 dev_err(&hdev->dev, "unable to create controls %d\n", ret);
157 pm_runtime_set_active(&hdev->dev);
174 struct hdac_device *hdev = &codec->core;
175 struct hdac_bus *bus = hdev->bus;
181 WARN_ON(atomic_read(&hdev->dev.power.usage_count) != 1 ||
182 !pm_runtime_status_suspended(&hdev->dev));
185 hlink = snd_hdac_ext_bus_get_hlink_by_addr(bus, hdev->addr);
187 dev_err(&hdev->dev, "hdac link not found\n");
193 snd_hdac_display_power(bus, hdev->addr, true);
196 ret = snd_hda_codec_device_new(codec->bus, component->card->snd_card, hdev->addr, codec,
199 dev_err(&hdev->dev, "create hda codec failed: %d\n", ret);
205 dev_err(&hdev->dev, "name failed %s\n", codec->preset->name);
211 dev_err(&hdev->dev, "regmap init failed\n");
217 dev_err(&hdev->dev, "no patch specified\n");
224 dev_err(&hdev->dev, "patch failed %d\n", ret);
230 dev_err(&hdev->dev, "unable to map pcms to dai %d\n", ret);
236 dev_err(&hdev->dev, "update dais failed: %d\n", ret);
259 snd_hdac_display_power(bus, hdev->addr, false);
272 struct hdac_device *hdev = &codec->core;
273 struct hdac_bus *bus = hdev->bus;
278 pm_runtime_forbid(&hdev->dev);
286 pm_runtime_put_noidle(&hdev->dev);
288 pm_runtime_set_suspended(&hdev->dev);
291 snd_hdac_display_power(bus, hdev->addr, false);
293 hlink = snd_hdac_ext_bus_get_hlink_by_addr(bus, hdev->addr);
306 WARN_ON(atomic_read(&hdev->dev.power.usage_count) != 1 ||
307 !pm_runtime_status_suspended(&hdev->dev));
346 static int hda_hdev_attach(struct hdac_device *hdev)
348 struct hda_codec *codec = dev_to_hda_codec(&hdev->dev);
351 comp_drv = devm_kzalloc(&hdev->dev, sizeof(*comp_drv), GFP_KERNEL);
359 comp_drv->name = dev_name(&hdev->dev);
370 return snd_soc_register_component(&hdev->dev, comp_drv, &card_binder_dai, 1);
373 static int hda_hdev_detach(struct hdac_device *hdev)
375 struct hda_codec *codec = dev_to_hda_codec(&hdev->dev);
380 snd_soc_unregister_component(&hdev->dev);