All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: libin.yang@linux.intel.com
Cc: libin.yang@intel.com, mengdong.lin@intel.com,
	alsa-devel@alsa-project.org
Subject: Re: [RFC PATCH 4/4] ALSA - hda: add DP MST support
Date: Mon, 07 Mar 2016 16:19:24 +0100	[thread overview]
Message-ID: <s5hsi02e2o3.wl-tiwai@suse.de> (raw)
In-Reply-To: <1457362666-53937-5-git-send-email-libin.yang@linux.intel.com>

On Mon, 07 Mar 2016 15:57:46 +0100,
libin.yang@linux.intel.com wrote:
> 
> From: Libin Yang <libin.yang@linux.intel.com>
> 
> This patch adds the DP MST support in hdmi audio driver.
> ---
>  sound/pci/hda/hda_codec.c  |   3 +
>  sound/pci/hda/patch_hdmi.c | 167 +++++++++++++++++++++++++++++++--------------
>  2 files changed, 120 insertions(+), 50 deletions(-)
> 
> diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
> index 1a42c51..7244f87 100644
> --- a/sound/pci/hda/hda_codec.c
> +++ b/sound/pci/hda/hda_codec.c
> @@ -589,6 +589,9 @@ static int read_pin_defaults(struct hda_codec *codec)
>  		pin->nid = nid;
>  		pin->cfg = snd_hda_codec_read(codec, nid, 0,
>  					      AC_VERB_GET_CONFIG_DEFAULT, 0);
> +		/* all device entries are the same widget control so far
> +		 * fixme: if any codec is different, need fix here
> +		 */
>  		pin->ctrl = snd_hda_codec_read(codec, nid, 0,
>  					       AC_VERB_GET_PIN_WIDGET_CONTROL,
>  					       0);
> diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
> index 11be04a..26f5efd 100644
> --- a/sound/pci/hda/patch_hdmi.c
> +++ b/sound/pci/hda/patch_hdmi.c
> @@ -144,7 +144,9 @@ struct hdmi_spec {
>  	struct snd_array cvts; /* struct hdmi_spec_per_cvt */
>  	hda_nid_t cvt_nids[4]; /* only for haswell fix */
>  
> -	int num_pins;
> +	int num_pins; /* number of pins (including device entries) */
> +	int num_nids; /* number of pin nids*/
> +	int dev_num;

These new definitions are unclear to me.  Please give a bit more
detailed comments there.  e.g. what actually means "including device
entries"?  You can give some example there.  I suppose num_nids is the
actual number of pins, right?  Also what is dev_num?  It's not an
index, right? 


thanks,

Takashi

  reply	other threads:[~2016-03-07 15:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-07 14:57 [RFC PATCH 0/4] MST DP audio support libin.yang
2016-03-07 14:57 ` [RFC PATCH 1/4] ALSA: hda - codec add DP MST support for connection list libin.yang
2016-03-07 16:40   ` Takashi Iwai
2016-03-08  6:47     ` Yang, Libin
2016-03-07 14:57 ` [PATCH 2/4] ALSA: hda - add DP mst verb support libin.yang
2016-03-07 16:45   ` Takashi Iwai
2016-03-08  6:54     ` Yang, Libin
2016-03-08  7:39       ` Takashi Iwai
2016-03-08  7:49         ` Yang, Libin
2016-03-07 14:57 ` [RFC PATCH 3/4] ALSA - hda: add devid support in acom libin.yang
2016-03-07 14:57 ` [RFC PATCH 4/4] ALSA - hda: add DP MST support libin.yang
2016-03-07 15:19   ` Takashi Iwai [this message]
2016-03-08  6:47     ` Yang, Libin

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=s5hsi02e2o3.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=libin.yang@intel.com \
    --cc=libin.yang@linux.intel.com \
    --cc=mengdong.lin@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.