Lines Matching +full:sound +full:- +full:hdmi

1 // SPDX-License-Identifier: GPL-2.0-only
6 #include <sound/pcm.h>
7 #include <sound/soc.h>
8 #include <sound/hda_codec.h>
9 #include <sound/hda_i915.h>
18 * matching Nth HDMI device (zero-based index).
28 spcm = rtd->pcm ? in hda_dsp_hdmi_pcm_handle()
29 rtd->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].pcm : NULL; in hda_dsp_hdmi_pcm_handle()
30 if (spcm && strstr(spcm->id, "HDMI")) { in hda_dsp_hdmi_pcm_handle()
32 return rtd->pcm; in hda_dsp_hdmi_pcm_handle()
41 * Search card topology and register HDMI PCM related controls
54 return -EINVAL; in hda_dsp_hdmi_build_controls()
57 hcodec = hda_pvt->codec; in hda_dsp_hdmi_build_controls()
59 list_for_each_entry(hpcm, &hcodec->pcm_list_head, list) { in hda_dsp_hdmi_build_controls()
62 hpcm->pcm = spcm; in hda_dsp_hdmi_build_controls()
63 hpcm->device = spcm->device; in hda_dsp_hdmi_build_controls()
64 dev_dbg(card->dev, in hda_dsp_hdmi_build_controls()
65 "mapping HDMI converter %d to PCM %d (%p)\n", in hda_dsp_hdmi_build_controls()
66 i, hpcm->device, spcm); in hda_dsp_hdmi_build_controls()
68 hpcm->pcm = NULL; in hda_dsp_hdmi_build_controls()
69 hpcm->device = SNDRV_PCM_INVALID_DEVICE; in hda_dsp_hdmi_build_controls()
70 dev_warn(card->dev, in hda_dsp_hdmi_build_controls()
71 "%s: no PCM in topology for HDMI converter %d\n", in hda_dsp_hdmi_build_controls()
76 snd_hdac_display_power(hcodec->core.bus, in hda_dsp_hdmi_build_controls()
80 dev_err(card->dev, "unable to create controls %d\n", err); in hda_dsp_hdmi_build_controls()
81 snd_hdac_display_power(hcodec->core.bus, in hda_dsp_hdmi_build_controls()
90 MODULE_DESCRIPTION("ASoC Intel HDMI helpers");