• Home
  • Raw
  • Download

Lines Matching refs:bus

40 int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable)  in snd_hdac_set_codec_wakeup()  argument
42 struct i915_audio_component *acomp = bus->audio_component; in snd_hdac_set_codec_wakeup()
48 dev_warn(bus->dev, in snd_hdac_set_codec_wakeup()
53 dev_dbg(bus->dev, "%s codec wakeup\n", in snd_hdac_set_codec_wakeup()
75 int snd_hdac_display_power(struct hdac_bus *bus, bool enable) in snd_hdac_display_power() argument
77 struct i915_audio_component *acomp = bus->audio_component; in snd_hdac_display_power()
82 dev_dbg(bus->dev, "display power %s\n", in snd_hdac_display_power()
86 if (!bus->i915_power_refcount++) { in snd_hdac_display_power()
88 snd_hdac_set_codec_wakeup(bus, true); in snd_hdac_display_power()
89 snd_hdac_set_codec_wakeup(bus, false); in snd_hdac_display_power()
92 WARN_ON(!bus->i915_power_refcount); in snd_hdac_display_power()
93 if (!--bus->i915_power_refcount) in snd_hdac_display_power()
120 void snd_hdac_i915_set_bclk(struct hdac_bus *bus) in snd_hdac_i915_set_bclk() argument
122 struct i915_audio_component *acomp = bus->audio_component; in snd_hdac_i915_set_bclk()
123 struct pci_dev *pci = to_pci_dev(bus->dev); in snd_hdac_i915_set_bclk()
156 snd_hdac_chip_writew(bus, HSW_EM4, bclk_m); in snd_hdac_i915_set_bclk()
157 snd_hdac_chip_writew(bus, HSW_EM5, bclk_n); in snd_hdac_i915_set_bclk()
208 struct hdac_bus *bus = codec->bus; in snd_hdac_sync_audio_rate() local
209 struct i915_audio_component *acomp = bus->audio_component; in snd_hdac_sync_audio_rate()
246 struct hdac_bus *bus = codec->bus; in snd_hdac_acomp_get_eld() local
247 struct i915_audio_component *acomp = bus->audio_component; in snd_hdac_acomp_get_eld()
360 int snd_hdac_i915_init(struct hdac_bus *bus) in snd_hdac_i915_init() argument
363 struct device *dev = bus->dev; in snd_hdac_i915_init()
376 bus->audio_component = acomp; in snd_hdac_i915_init()
379 component_match_add(dev, &match, hdac_component_master_match, bus); in snd_hdac_i915_init()
402 bus->audio_component = NULL; in snd_hdac_i915_init()
421 int snd_hdac_i915_exit(struct hdac_bus *bus) in snd_hdac_i915_exit() argument
423 struct device *dev = bus->dev; in snd_hdac_i915_exit()
424 struct i915_audio_component *acomp = bus->audio_component; in snd_hdac_i915_exit()
429 WARN_ON(bus->i915_power_refcount); in snd_hdac_i915_exit()
430 if (bus->i915_power_refcount > 0 && acomp->ops) in snd_hdac_i915_exit()
436 bus->audio_component = NULL; in snd_hdac_i915_exit()