From: Takashi Iwai <tiwai@suse.de>
To: Stephen Warren <SWarren@nvidia.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: [PATCH] azx/realtek: Unify and parameterize code for ALC880/260 codecs, take 2
Date: Fri, 17 Dec 2004 15:18:33 +0100 [thread overview]
Message-ID: <s5hzn0dvwhy.wl@alsa2.suse.de> (raw)
In-Reply-To: <DBFABB80F7FD3143A911F9E6CFD477B003CE0B05@hqemmail02.nvidia.com>
At Thu, 16 Dec 2004 13:11:06 -0800,
Stephen Warren wrote:
>
> This patch updates the HD-Audio ALC880/260 code driver such
> that all board-specific decisions are made in a single function,
> which sets variables that all other code simply uses directly
> without decision making.
>
> Also, tweak snd_hda_add_new_ctls and snd_hda_resume_ctls so they
> use a sentinel value in the array of controls, and hence don't have
> to be passed an explicit array-size argument.
>
> This has the benefits of:
>
> * Isolating board-specific code to a single location
> * Simplifying the rest of the code
> * Unifying the code for ALC880/ALC260, which was previously separate.
>
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
> ---
>
> Note: This patch was generated by "cvs diff -u". Hopefully, that's a
> useful format - there are some extra lines of gunk that single-file
> regular "diff -u" doesn't generate...
Thanks for the patch. That's no problem. Patch is clever enough ;)
> This is an updated version of the patch I sent yesterday, that also
> tweaks the tweak snd_hda_add_new_ctls/snd_hda_resume_ctls API.
>
> For now, I think I'm done with generic changes to the AZX codec, so the
> patch is complete, unless you find any problems with it.
I applied to CVS now. Additionally, I put new comments about the
array termination for snd_hda_add_new_ctls() and
snd_hda_resume_ctls().
>
> I'm punting on making patch_alc880/260 use pre-initialized data
> structures for codec->spec for now - the code isn't too hairy yet, and
> it'll be something very easily added later on if we decide to do it.
This sounds nice.
Also, we can merge many codes between patch_realtek.c and
patch_cmedia.c. It would help for codecs from other vendors in
future.
Takashi
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
prev parent reply other threads:[~2004-12-17 14:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-16 21:11 [PATCH] azx/realtek: Unify and parameterize code for ALC880/260 codecs, take 2 Stephen Warren
2004-12-17 14:18 ` Takashi Iwai [this message]
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=s5hzn0dvwhy.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=SWarren@nvidia.com \
--cc=alsa-devel@lists.sourceforge.net \
/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