Searched refs:pcm_idx (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/include/sound/ |
H A D | hda_chmap.h | 40 int (*get_spk_alloc)(struct hdac_device *hdac, int pcm_idx); 42 void (*get_chmap)(struct hdac_device *hdac, int pcm_idx, 44 void (*set_chmap)(struct hdac_device *hdac, int pcm_idx, 46 bool (*is_pcm_attached)(struct hdac_device *hdac, int pcm_idx); 77 int snd_hdac_add_chmap_ctls(struct snd_pcm *pcm, int pcm_idx,
|
/openbmc/linux/sound/pci/hda/ |
H A D | patch_hdmi.c | 83 int pcm_idx; /* which pcm is attached. -1 means no pcm is attached */ member 280 int pcm_idx; in hinfo_to_pcm_index() local 282 for (pcm_idx = 0; pcm_idx < spec->pcm_used; pcm_idx++) in hinfo_to_pcm_index() 283 if (get_pcm_rec(spec, pcm_idx)->stream == hinfo) in hinfo_to_pcm_index() 284 return pcm_idx; in hinfo_to_pcm_index() 310 int pcm_idx) in pcm_idx_to_pin() argument 317 if (per_pin->pcm_idx == pcm_idx) in pcm_idx_to_pin() 343 int pcm_idx; in hdmi_eld_ctl_info() local 347 pcm_idx = kcontrol->private_value; in hdmi_eld_ctl_info() 349 per_pin = pcm_idx_to_pin(spec, pcm_idx); in hdmi_eld_ctl_info() [all …]
|
/openbmc/linux/Documentation/sound/hd-audio/ |
H A D | dp-mst.rst | 69 Will not use hda_jack but use snd_jack in spec->pcm_rec[pcm_idx].jack directly. 73 Use hda_jack and assign spec->pcm_rec[pcm_idx].jack = jack->jack statically. 88 Use directly snd_jack_report() on spec->pcm_rec[pcm_idx].jack for 96 Use directly snd_jack_report() on spec->pcm_rec[pcm_idx].jack for dyn_pcm_assign.
|
/openbmc/linux/sound/hda/ |
H A D | hdmi_chmap.c | 669 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() 775 int pcm_idx = kcontrol->private_value; in hdmi_chmap_ctl_put() local 788 if (!hchmap->ops.is_pcm_attached(hchmap->hdac, pcm_idx)) in hdmi_chmap_ctl_put() 809 hchmap->ops.get_chmap(hchmap->hdac, pcm_idx, per_pin_chmap); in hdmi_chmap_ctl_put() 822 hchmap->ops.set_chmap(hchmap->hdac, pcm_idx, chmap, prepared); in hdmi_chmap_ctl_put() 844 int snd_hdac_add_chmap_ctls(struct snd_pcm *pcm, int pcm_idx, in snd_hdac_add_chmap_ctls() argument 853 NULL, 0, pcm_idx, &chmap); in snd_hdac_add_chmap_ctls()
|
/openbmc/linux/sound/soc/codecs/ |
H A D | hdac_hdmi.c | 283 int pcm_idx) in get_hdmi_pcm_from_id() argument 288 if (pcm->pcm_id == pcm_idx) in get_hdmi_pcm_from_id() 2068 static void hdac_hdmi_get_chmap(struct hdac_device *hdev, int pcm_idx, in hdac_hdmi_get_chmap() argument 2072 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); in hdac_hdmi_get_chmap() 2077 static void hdac_hdmi_set_chmap(struct hdac_device *hdev, int pcm_idx, in hdac_hdmi_set_chmap() argument 2081 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); in hdac_hdmi_set_chmap() 2099 static bool is_hdac_hdmi_pcm_attached(struct hdac_device *hdev, int pcm_idx) in is_hdac_hdmi_pcm_attached() argument 2102 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); in is_hdac_hdmi_pcm_attached() 2113 static int hdac_hdmi_get_spk_alloc(struct hdac_device *hdev, int pcm_idx) in hdac_hdmi_get_spk_alloc() argument 2116 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); in hdac_hdmi_get_spk_alloc()
|