mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Wei Ni <wni@nvidia.com>
Cc: "'Pavel Hofman'" <pavel.hofman@insite.cz>,
	"'alsa-devel'" <alsa-devel@alsa-project.org>,
	"'linux-kernel'" <linux-kernel@vger.kernel.org>,
	"'akpm'" <akpm@linux-foundation.org>
Subject: Re: [alsa-devel] [PATCH]Support MCP89 and GT21x hdmi audio
Date: Tue, 02 Mar 2010 08:59:38 +0100	[thread overview]
Message-ID: <s5hmxyrp311.wl%tiwai@suse.de> (raw)
In-Reply-To: <6B4D417B830BC44B8026029FD256F7F1C068B2BA8B@HKMAIL01.nvidia.com>

At Mon, 1 Mar 2010 19:27:53 +0800,
Wei Ni wrote:
> 
> Hi, Takashi
> I developed the hdmi audio driver for new chipset MCP89 and GT21x.
> The new HAD controller and codec support standard HDMI operation.
> 
> I attached the patch file, please check it.

Thanks.  A brief review comments below.


> diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
> index d5c93ad..fbf2c29 100644
> --- a/sound/pci/hda/hda_intel.c
> +++ b/sound/pci/hda/hda_intel.c
> @@ -267,7 +267,7 @@ enum { SDI0, SDI1, SDI2, SDI3, SDO0, SDO1, SDO2, SDO3 };
>  #define RIRB_INT_MASK		0x05
>  
>  /* STATESTS int mask: S3,SD2,SD1,SD0 */
> -#define AZX_MAX_CODECS		4
> +#define AZX_MAX_CODECS		8

Changing this blindly to all codecs seems a bit dangerous.
We have bad experiences regarding the codec probing, and probing more
codec slots may result in unexpected behavior with the older chip.

Do you know which controller chip supports more than 4 slots?
 

> +struct hdmi_audio_infoframe {
> +	u8 type; /* 0x84 */
> +	u8 ver;  /* 0x01 */
> +	u8 len;  /* 0x0a */
> +
> +	u8 checksum;	/* PB0 */
> +	u8 CC02_CT47;	/* CC in bits 0:2, CT in 4:7 */
> +	u8 SS01_SF24;
> +	u8 CXT04;
> +	u8 CA;
> +	u8 LFEPBL01_LSV36_DM_INH7;
...

Let's merge the stuff with patch_intelhdmi.c later...


> +static void hdmi_get_show_eld(struct hda_codec *codec, hda_nid_t pin_nid,
> +			      struct hdmi_eld *eld)
> +{
> +	if (!snd_hdmi_get_eld(eld, codec, pin_nid))
> +		snd_hdmi_show_eld(eld);

So, now this module depends on the ELD helper?
Then we need to change Makefile and Kconfig as well.
Right now, the eld helper is built into intel-hdmi module.  Now this
is needed to be individual or built-in snd-hda-codec.


thanks,

Takashi

  parent reply	other threads:[~2010-03-02  7:59 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <6B4D417B830BC44B8026029FD256F7F1C068B2BA8B@HKMAIL01.nvidia.com>
2010-03-02  5:43 ` Wu Fengguang
2010-03-03  3:33   ` Wei Ni
2010-03-03  6:46   ` Takashi Iwai
2010-03-04  1:17     ` Wu Fengguang
2010-03-04  2:18     ` Wu Fengguang
2010-03-04  5:44       ` Wu Fengguang
2010-03-04  5:52         ` Wei Ni
2010-03-04  6:09           ` Wu Fengguang
2010-03-02  7:59 ` Takashi Iwai [this message]
2010-03-02  9:43   ` Wei Ni
2010-03-02  9:55     ` Takashi Iwai
2010-03-02 10:03       ` Wei Ni
2010-03-02 10:42         ` Takashi Iwai
2010-03-02 10:44           ` Wei Ni
2010-03-03  3:28       ` Wei Ni
2010-03-03  4:06         ` Wei Ni
2010-03-03  6:44           ` Takashi Iwai
2010-03-03  7:21             ` Wei Ni
2010-03-03 21:49               ` Takashi Iwai
2010-03-04  2:21                 ` Wei Ni
2010-03-04  9:46                   ` Takashi Iwai
2010-03-04 10:46                     ` Wei Ni
2010-03-04 10:56                       ` Takashi Iwai
2010-03-04 11:09                         ` Wei Ni
2010-03-04 11:31                           ` Takashi Iwai
2010-03-04 11:37                             ` Wei Ni
2010-03-04 11:43                               ` Takashi Iwai
2010-03-04 11:46                                 ` Wei Ni
2010-03-04 15:34                                   ` Takashi Iwai
2010-03-05  2:41                                     ` Wei Ni
2010-03-07 19:21                                       ` VDR User
2010-03-08  4:35                                         ` Wei Ni
2010-03-08  4:46                                           ` Wu Fengguang
2010-03-10  5:42                                             ` VDR User
2010-03-10  6:01                                               ` Wu Fengguang
2010-03-10  7:58                                               ` Jaroslav Kysela
2010-03-10  8:05                                                 ` VDR User
2010-03-10 12:54                                                   ` Wu Fengguang
2010-03-10 17:38                                                     ` VDR User
2010-03-11  7:30                                                       ` Jaroslav Kysela
2010-03-11 18:15                                                         ` VDR User
2010-03-11 18:32                                                           ` Jaroslav Kysela
2010-03-11 19:24                                                             ` VDR User
2010-03-12  4:32                                                             ` VDR User
2010-03-12  4:37                                                               ` Wu Fengguang

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=s5hmxyrp311.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel.hofman@insite.cz \
    --cc=wni@nvidia.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

all inboxes | Powered by JetHome®