alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [ASoC]one Small Suggestion
@ 2007-06-07 12:58 Nobin Mathew
  2007-06-08  7:47 ` Nobin Mathew
  0 siblings, 1 reply; 6+ messages in thread
From: Nobin Mathew @ 2007-06-07 12:58 UTC (permalink / raw)
  To: Liam Girdwood; +Cc: alsa-devel

Liam,

Thank you for your support, my work is almost complete now, driver is
working perfectly now.


I have one suggestion,

I modified the wm9713.c codec driver in probe function , so that


	if(socdev->machine->dai_link->cpu_dai->private_data)
		codec->ac97->bus->private_data =
socdev->machine->dai_link->cpu_dai->private_data;

Here i am assigning the controller private data.


so that my following ac97 read and write to access codec registers become good.

static void aaci_ac97_write(struct snd_ac97 *ac97, unsigned short reg,
unsigned short val)
{
	struct platform_controller *controller = ac97->bus->private_data;
	struct aaci *aaci = (struct aaci *)controller->bus_controller;


static unsigned short aaci_ac97_read(struct snd_ac97 *ac97, unsigned short reg)
{
	struct platform_controller *controller = ac97->bus->private_data;
	struct aaci *aaci = (struct aaci *)controller->bus_controller;
	u32 v;


Is there a way to accomodate this in existing ASoC design?
Or a better way to do this?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-06-08  8:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-07 12:58 [ASoC]one Small Suggestion Nobin Mathew
2007-06-08  7:47 ` Nobin Mathew
2007-06-08  7:56   ` Graeme Gregory
2007-06-08  8:26     ` Nobin Mathew
2007-06-08  8:47       ` Graeme Gregory
2007-06-08  8:48       ` Takashi Iwai

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).