alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Nikhil Mahale <nmahale@nvidia.com>
Cc: alsa-devel@alsa-project.org, tiwai@suse.com, aplattner@nvidia.com
Subject: Re: [alsa-devel] [PATCH v1 3/5] ALSA: hda - Add DP-MST conn list support
Date: Fri, 15 Nov 2019 11:30:08 +0100	[thread overview]
Message-ID: <s5hr229jutr.wl-tiwai@suse.de> (raw)
In-Reply-To: <5eb1ef50-e129-c188-0996-cd74de6a5025@nvidia.com>

On Fri, 15 Nov 2019 10:52:30 +0100,
Nikhil Mahale wrote:
> 
> On 11/14/19 6:44 PM, Takashi Iwai wrote:
> > On Thu, 14 Nov 2019 12:47:36 +0100,
> > Nikhil Mahale wrote:
> >>
> >> On 11/14/19 4:27 PM, Takashi Iwai wrote:
> >>> On Thu, 14 Nov 2019 04:37:02 +0100,
> >>> Nikhil Mahale wrote:
> >>>>
> >>>> Document change notification HDA040-A for the Intel High Definition
> >>>> Audio 1.0a specification introduces a Device Select verb for Digital
> >>>> Display Pin Widgets that are multi-stream capable. This verb selects
> >>>> a Device Entry that is used by subsequent Pin Widget verbs,
> >>>> including the Get Connection List Entry verb.
> >>>>
> >>>> This patch queries the current Device Select value, associates it
> >>>> with the connection list, and updates the connection list management
> >>>> code to consider dev_id along with nid.
> >>>
> >>> I don't get why this is needed.  This is the list that is added only
> >>> from snd_hda_override_conn_list(), and you don't change that call
> >>> pattern, so dev_id is always zero.
> >>
> >> In follow-on patch "ALSA: hda - Add DP-MST support for non-acomp codecs",
> >> hdmi_read_pin_conn() calls into snd_hda_set_dev_select() before
> >> running into code path -
> >>   
> >>   snd_hda_get_connections()
> >>    |-> snd_hda_get_conn_list()
> >>         |-> read_and_add_raw_conns()
> >>              |-> snd_hda_override_conn_list()
> >>                   |-> add_conn_list()
> >>
> >> If I understand spec correctly, conn_list need to read/write/track
> >> along with device entry set into AC_VERB_SET_DEVICE_SEL verb, right?
> > 
> > AFAIK, the device connection list itself is same no matter which
> > device entry is.  The pin widget may choose the route per device
> > entry, but the available routes should be same.
> 
> Section 7.3.3.42 of https://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/high-definition-audio-multi-stream.pdf says that 'Get Connection List Entry' control should be per-device!

Hrm, right.  It's a bit concern that this may lead to the unlimited
number of data, though.

Since the necessity is only for HDMI codec, if that's the only place
we need the connection list, the call there can be replaced with
snd_hda_get_raw_connections() so that the result won't be cached in
HD-audio core side.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2019-11-15 10:31 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-14  3:36 [alsa-devel] [PATCH v1 0/5] ALSA: hda - Add DP-MST support for NVIDIA codecs Nikhil Mahale
2019-11-14  3:37 ` [alsa-devel] [PATCH v1 1/5] ALSA: hda - Rename snd_hda_pin_sense to snd_hda_jack_pin_sense Nikhil Mahale
2019-11-14  3:37 ` [alsa-devel] [PATCH v1 2/5] ALSA: hda - Add DP-MST jack support Nikhil Mahale
2019-11-14 10:46   ` Kai Vehmanen
2019-11-15  9:39     ` Nikhil Mahale
2019-11-14 10:54   ` Takashi Iwai
2019-11-15  9:46     ` Nikhil Mahale
2019-11-14  3:37 ` [alsa-devel] [PATCH v1 3/5] ALSA: hda - Add DP-MST conn list support Nikhil Mahale
2019-11-14 10:57   ` Takashi Iwai
2019-11-14 11:47     ` Nikhil Mahale
2019-11-14 13:14       ` Takashi Iwai
2019-11-15  9:52         ` Nikhil Mahale
2019-11-15 10:30           ` Takashi Iwai [this message]
2019-11-19  8:43             ` Nikhil Mahale
2019-11-14  3:37 ` [alsa-devel] [PATCH v1 4/5] ALSA: hda - Add DP-MST support for non-acomp codecs Nikhil Mahale
2019-11-14  3:37 ` [alsa-devel] [PATCH v1 5/5] ALSA: hda - Add DP-MST support for NVIDIA codecs Nikhil Mahale
2019-11-14 11:02   ` Takashi Iwai
2019-11-14 11:50     ` Nikhil Mahale
2019-11-14 13:15       ` Takashi Iwai
2019-11-14 10:38 ` [alsa-devel] [PATCH v1 0/5] " Takashi Iwai
2019-11-15  9:37   ` Nikhil Mahale

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hr229jutr.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=aplattner@nvidia.com \
    --cc=nmahale@nvidia.com \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).