Home
last modified time | relevance | path

Searched refs:pcm_idx (Results 1 – 5 of 5) sorted by relevance

/sound/pci/hda/
Dpatch_hdmi.c92 int pcm_idx; /* which pcm is attached. -1 means no pcm is attached */ member
273 int pcm_idx; in hinfo_to_pcm_index() local
275 for (pcm_idx = 0; pcm_idx < spec->pcm_used; pcm_idx++) in hinfo_to_pcm_index()
276 if (get_pcm_rec(spec, pcm_idx)->stream == hinfo) in hinfo_to_pcm_index()
277 return pcm_idx; in hinfo_to_pcm_index()
302 int pcm_idx) in pcm_idx_to_pin() argument
309 if (per_pin->pcm_idx == pcm_idx) in pcm_idx_to_pin()
335 int pcm_idx; in hdmi_eld_ctl_info() local
339 pcm_idx = kcontrol->private_value; in hdmi_eld_ctl_info()
341 per_pin = pcm_idx_to_pin(spec, pcm_idx); in hdmi_eld_ctl_info()
[all …]
/sound/hda/
Dhdmi_chmap.c669 int pcm_idx = kcontrol->private_value; in hdmi_chmap_ctl_tlv() local
683 spk_alloc = chmap->ops.get_spk_alloc(chmap->hdac, pcm_idx); in hdmi_chmap_ctl_tlv()
743 int pcm_idx = kcontrol->private_value; in hdmi_chmap_ctl_get() local
748 chmap->ops.get_chmap(chmap->hdac, pcm_idx, pcm_chmap); in hdmi_chmap_ctl_get()
761 int pcm_idx = kcontrol->private_value; in hdmi_chmap_ctl_put() local
770 if (!hchmap->ops.is_pcm_attached(hchmap->hdac, pcm_idx)) in hdmi_chmap_ctl_put()
791 hchmap->ops.get_chmap(hchmap->hdac, pcm_idx, per_pin_chmap); in hdmi_chmap_ctl_put()
804 hchmap->ops.set_chmap(hchmap->hdac, pcm_idx, chmap, prepared); in hdmi_chmap_ctl_put()
826 int snd_hdac_add_chmap_ctls(struct snd_pcm *pcm, int pcm_idx, in snd_hdac_add_chmap_ctls() argument
835 NULL, 0, pcm_idx, &chmap); in snd_hdac_add_chmap_ctls()
/sound/soc/codecs/
Dhdac_hdmi.c289 int pcm_idx) in get_hdmi_pcm_from_id() argument
294 if (pcm->pcm_id == pcm_idx) in get_hdmi_pcm_from_id()
1963 static void hdac_hdmi_get_chmap(struct hdac_device *hdev, int pcm_idx, in hdac_hdmi_get_chmap() argument
1967 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); in hdac_hdmi_get_chmap()
1972 static void hdac_hdmi_set_chmap(struct hdac_device *hdev, int pcm_idx, in hdac_hdmi_set_chmap() argument
1976 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); in hdac_hdmi_set_chmap()
1994 static bool is_hdac_hdmi_pcm_attached(struct hdac_device *hdev, int pcm_idx) in is_hdac_hdmi_pcm_attached() argument
1997 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); in is_hdac_hdmi_pcm_attached()
2008 static int hdac_hdmi_get_spk_alloc(struct hdac_device *hdev, int pcm_idx) in hdac_hdmi_get_spk_alloc() argument
2011 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); in hdac_hdmi_get_spk_alloc()
/sound/usb/
Dcard.c223 unsigned int pcm_idx, unsigned int direction, struct snd_usb_audio in find_snd_usb_substream() argument
251 if (pcm_idx >= chip->pcm_devs) { in find_snd_usb_substream()
253 pcm_idx, chip->pcm_devs); in find_snd_usb_substream()
263 if (as->pcm_index == pcm_idx) { in find_snd_usb_substream()
Dcard.h188 unsigned int pcm_idx, unsigned int direction, struct snd_usb_audio