From: Timur Tabi <timur@freescale.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH] ALSA: Fix prototype for snd_soc_dai_link.init() function pointer
Date: Mon, 04 Jun 2007 11:44:51 -0500 [thread overview]
Message-ID: <46644183.9090109@freescale.com> (raw)
In-Reply-To: <s5hmyzgau3t.wl%tiwai@suse.de>
Takashi Iwai wrote:
> At Fri, 1 Jun 2007 17:44:57 -0500,
> Timur Tabi wrote:
>> Change the snd_soc_dai_link.init() function to take a pointer to the
>> corresponding snd_soc_dai_link structure, instead of a pointer to a
>> snd_soc_codec structure. This allows the initialization function to initialize
>> its own structure.
>>
>> Signed-off-by: Timur Tabi <timur@freescale.com>
>
> Liam, is this change OK for you?
> If yes, I'll add this to HG tree after 1.0.14 release.
Please note my comment in the patch. I have not compiled all the code that I changed, so
I don't know if this patch is good. I would like someone to test this patch.
This patch is just a refactoring - no new features have been added, so after applying this
patch, everything should still compile and run exactly the same.
The key code changes are:
struct snd_soc_codec *codec = dai->codec_dai->codec;
I'm hoping that 'codec' contains the same value that it did before the patch, and
err = socdev->machine->dai_link[i].init(&machine->dai_link[i]);
I hope this passes the correct snd_soc_dai_link pointer.
--
Timur Tabi
Linux Kernel Developer @ Freescale
prev parent reply other threads:[~2007-06-04 16:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-01 22:44 [PATCH] ALSA: Fix prototype for snd_soc_dai_link.init() function pointer Timur Tabi
2007-06-04 10:31 ` Takashi Iwai
2007-06-04 16:44 ` Timur Tabi [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=46644183.9090109@freescale.com \
--to=timur@freescale.com \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/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).