mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: Aaron Plattner <aplattner@nvidia.com>,
	Jaroslav Kysela <perex@perex.cz>,
	alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ALSA: hda - Add new GPU codec ID to snd-hda
Date: Mon, 15 Jul 2013 10:27:32 +0200	[thread overview]
Message-ID: <s5h1u701b4b.wl%tiwai@suse.de> (raw)
In-Reply-To: <20130714040501.GA11088@kroah.com>

At Sat, 13 Jul 2013 21:05:01 -0700,
Greg KH wrote:
> 
> On Fri, Jul 12, 2013 at 11:01:37AM -0700, Aaron Plattner wrote:
> > Vendor ID 0x10de0060 is used by a yet-to-be-named GPU chip.
> > 
> > Reviewed-by: Andy Ritger <aritger@nvidia.com>
> > Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
> > ---
> >  sound/pci/hda/patch_hdmi.c | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
> > index e12f7a0..486def7 100644
> > --- a/sound/pci/hda/patch_hdmi.c
> > +++ b/sound/pci/hda/patch_hdmi.c
> > @@ -2536,6 +2536,7 @@ static const struct hda_codec_preset snd_hda_preset_hdmi[] = {
> >  { .id = 0x10de0043, .name = "GPU 43 HDMI/DP",	.patch = patch_generic_hdmi },
> >  { .id = 0x10de0044, .name = "GPU 44 HDMI/DP",	.patch = patch_generic_hdmi },
> >  { .id = 0x10de0051, .name = "GPU 51 HDMI/DP",	.patch = patch_generic_hdmi },
> > +{ .id = 0x10de0060, .name = "GPU 60 HDMI/DP",	.patch = patch_generic_hdmi },
> >  { .id = 0x10de0067, .name = "MCP67 HDMI",	.patch = patch_nvhdmi_2ch },
> >  { .id = 0x10de8001, .name = "MCP73 HDMI",	.patch = patch_nvhdmi_2ch },
> >  { .id = 0x11069f80, .name = "VX900 HDMI/DP",	.patch = patch_via_hdmi },
> > @@ -2588,6 +2589,7 @@ MODULE_ALIAS("snd-hda-codec-id:10de0042");
> >  MODULE_ALIAS("snd-hda-codec-id:10de0043");
> >  MODULE_ALIAS("snd-hda-codec-id:10de0044");
> >  MODULE_ALIAS("snd-hda-codec-id:10de0051");
> > +MODULE_ALIAS("snd-hda-codec-id:10de0060");
> >  MODULE_ALIAS("snd-hda-codec-id:10de0067");
> >  MODULE_ALIAS("snd-hda-codec-id:10de8001");
> >  MODULE_ALIAS("snd-hda-codec-id:11069f80");
> 
> Why are these module aliases being created by hand and not automated
> like all other aliases that contain device ids like this are?

Because of the bad design :)

The HD-audio codec isn't created as a normal device but just as an own
object of HD-audio driver.  The module alias is used when hd-audio
codec driver loads its codec-specific code, and it does
request_module() manually.

The module alias isn't automated because there won't be much additions
that require manual alias any longer.  Most of new codecs are grouped
in the vendor id, thus no need for addition.  The only still necessary
case is HDMI audio like this, and there will be only a few per year at
most.

Of course, it'd be better to be moved to a more standard model, but
it's been left as is, partly due to a historical reason, partly not to
break the current user-space setup, and partly lack of my time.


thanks,

Takashi

  reply	other threads:[~2013-07-15  8:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-12 18:01 Aaron Plattner
2013-07-14  4:05 ` Greg KH
2013-07-15  8:27   ` Takashi Iwai [this message]
2013-07-16  6:27 ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2014-05-13  3:05 Aaron Plattner
2014-05-13  7:14 ` Takashi Iwai
2012-07-17  0:10 Aaron Plattner
2012-07-17  5:45 ` Takashi Iwai

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=s5h1u701b4b.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=aplattner@nvidia.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    /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®