Home
last modified time | relevance | path

Searched refs:hdac (Results 1 – 6 of 6) sorted by relevance

/sound/soc/codecs/
Dhdac_hdmi.c132 struct hdac_device *hdac = dev_to_hdac_dev(dev); in to_hda_ext_device() local
134 return to_ehdac_device(hdac); in to_hda_ext_device()
250 static int hdac_hdmi_setup_stream(struct hdac_ext_device *hdac, in hdac_hdmi_setup_stream() argument
256 dev_dbg(&hdac->hdac.dev, "cvt nid %d pnid %d stream %d format 0x%x\n", in hdac_hdmi_setup_stream()
261 snd_hdac_codec_write(&hdac->hdac, cvt_nid, 0, in hdac_hdmi_setup_stream()
263 snd_hdac_codec_write(&hdac->hdac, cvt_nid, 0, in hdac_hdmi_setup_stream()
270 hdac_hdmi_set_dip_index(struct hdac_ext_device *hdac, hda_nid_t pin_nid, in hdac_hdmi_set_dip_index() argument
277 snd_hdac_codec_write(&hdac->hdac, pin_nid, 0, in hdac_hdmi_set_dip_index()
293 static int hdac_hdmi_setup_audio_infoframe(struct hdac_ext_device *hdac, in hdac_hdmi_setup_audio_infoframe() argument
299 struct hdac_hdmi_priv *hdmi = hdac->private_data; in hdac_hdmi_setup_audio_infoframe()
[all …]
DMakefile68 snd-soc-hdac-hdmi-objs := hdac_hdmi.o
293 obj-$(CONFIG_SND_SOC_HDAC_HDMI) += snd-soc-hdac-hdmi.o
/sound/hda/ext/
Dhdac_ext_bus.c149 hdev = &edev->hdac; in snd_hdac_ext_bus_device_init()
245 drv->hdac.type = HDA_DEV_ASOC; in snd_hda_ext_driver_register()
246 drv->hdac.driver.bus = &snd_hda_bus_type; in snd_hda_ext_driver_register()
250 drv->hdac.driver.probe = hda_ext_drv_probe; in snd_hda_ext_driver_register()
252 drv->hdac.driver.remove = hdac_ext_drv_remove; in snd_hda_ext_driver_register()
254 drv->hdac.driver.shutdown = hdac_ext_drv_shutdown; in snd_hda_ext_driver_register()
256 return driver_register(&drv->hdac.driver); in snd_hda_ext_driver_register()
267 driver_unregister(&drv->hdac.driver); in snd_hda_ext_driver_unregister()
/sound/hda/
Dhdmi_chmap.c331 chmap->hdac, pin_nid, i); in hdmi_debug_channel_mapping()
332 dev_dbg(&chmap->hdac->dev, "HDMI: ASP channel %d => slot %d\n", in hdmi_debug_channel_mapping()
380 err = chmap->ops.pin_set_slot_channel(chmap->hdac, in hdmi_std_setup_channel_mapping()
383 dev_dbg(&chmap->hdac->dev, "HDMI: channel mapping failed\n"); in hdmi_std_setup_channel_mapping()
526 err = chmap->ops.pin_set_slot_channel(chmap->hdac, in hdmi_manual_setup_channel_mapping()
586 int snd_hdac_channel_allocation(struct hdac_device *hdac, int spk_alloc, in snd_hdac_channel_allocation() argument
594 ca = hdmi_channel_allocation_spk_alloc_blk(hdac, in snd_hdac_channel_allocation()
682 spk_alloc = chmap->ops.get_spk_alloc(chmap->hdac, pcm_idx); in hdmi_chmap_ctl_tlv()
747 chmap->ops.get_chmap(chmap->hdac, pcm_idx, pcm_chmap); in hdmi_chmap_ctl_get()
769 if (!hchmap->ops.is_pcm_attached(hchmap->hdac, pcm_idx)) in hdmi_chmap_ctl_put()
[all …]
Dhdac_device.c1009 static unsigned int codec_read(struct hdac_device *hdac, hda_nid_t nid, in codec_read() argument
1012 unsigned int cmd = snd_hdac_make_cmd(hdac, nid, verb, parm); in codec_read()
1015 if (snd_hdac_exec_verb(hdac, cmd, flags, &res)) in codec_read()
1021 static int codec_write(struct hdac_device *hdac, hda_nid_t nid, in codec_write() argument
1024 unsigned int cmd = snd_hdac_make_cmd(hdac, nid, verb, parm); in codec_write()
1026 return snd_hdac_exec_verb(hdac, cmd, flags, NULL); in codec_write()
1041 int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid, in snd_hdac_codec_read() argument
1044 return codec_read(hdac, nid, flags, verb, parm); in snd_hdac_codec_read()
1060 int snd_hdac_codec_write(struct hdac_device *hdac, hda_nid_t nid, in snd_hdac_codec_write() argument
1063 return codec_write(hdac, nid, flags, verb, parm); in snd_hdac_codec_write()
[all …]
/sound/pci/hda/
Dpatch_hdmi.c1844 static int hdmi_get_spk_alloc(struct hdac_device *hdac, int pcm_idx) in hdmi_get_spk_alloc() argument
1846 struct hda_codec *codec = container_of(hdac, struct hda_codec, core); in hdmi_get_spk_alloc()
1856 static void hdmi_get_chmap(struct hdac_device *hdac, int pcm_idx, in hdmi_get_chmap() argument
1859 struct hda_codec *codec = container_of(hdac, struct hda_codec, core); in hdmi_get_chmap()
1870 static void hdmi_set_chmap(struct hdac_device *hdac, int pcm_idx, in hdmi_set_chmap() argument
1873 struct hda_codec *codec = container_of(hdac, struct hda_codec, core); in hdmi_set_chmap()
1887 static bool is_hdmi_pcm_attached(struct hdac_device *hdac, int pcm_idx) in is_hdmi_pcm_attached() argument
1889 struct hda_codec *codec = container_of(hdac, struct hda_codec, core); in is_hdmi_pcm_attached()
3344 static int atihdmi_pin_set_slot_channel(struct hdac_device *hdac, in atihdmi_pin_set_slot_channel() argument
3347 struct hda_codec *codec = container_of(hdac, struct hda_codec, core); in atihdmi_pin_set_slot_channel()
[all …]