alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: jassi brar <jassisinghbrar@gmail.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	SeungHyun Choi <sh428.choi@samsung.com>,
	"ben-linux@fluff.org" <ben-linux@fluff.org>,
	"graeme.gregory@wolfsonmicro.com"
	<graeme.gregory@wolfsonmicro.com>,
	"jassi.brar@samsung.com" <jassi.brar@samsung.com>
Subject: Re: Reforming s3c2443 ac97 driver
Date: Thu, 21 Jan 2010 15:58:46 +0900	[thread overview]
Message-ID: <1b68c6791001202258p7ef0ebcdt444a3be2eeaaff36@mail.gmail.com> (raw)
In-Reply-To: <9A9547C8-08FD-4310-A69C-44CA8A3E01C2@opensource.wolfsonmicro.com>

On Fri, Jan 8, 2010 at 6:48 PM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
> On 8 Jan 2010, at 05:28, JASWINDERSINGH BRAR <jassi.brar@samsung.com>
> wrote:
>
>> Hi,
>>     Right now the S3C2443's AC97_ver2.0 controller driver isn't
>> flexible enough
>> to handle newer SoCs.
>>   In order to prepare ground for supporting 64xx and S5Pxxxx the
>> extant driver
>> needs to be reformed, and that is what i am planning to do next.
>>
>> I plan to do the following:-
>> 1) User platform_driver structure to detect and manage AC97 controller
>> platform devices.
>> 2) Remove hardcoded parameters(DMA, IO address, IRQ etc) and pass via
>> platform resources.
>> 3) Initialize platform specific stuff by callback pointers to
>> platform code(cfg_gpio)
>>
>> Objections, suggestions welcome.
>
> This sounds like a good approach - please go ahead.
There has been a slight change though.

Both parts(platform_device interface and ALSA AC97 interface)
of s3c2443-ac97.c needed so much reforming that I found rewriting the
driver again a better option.
The new driver is called 's3c-ac97.c' ... hoping the AC97 controller
doesn't change in SoCs released after you read this mail :)

The s3c2443-ac97.c is used by SMDK2443 and LN2440SBC machines. My new
driver is at least as good as old one for SMDK2443(both detect
controller fine but none produce any sound..
might be some h/w issue on the only board I have got).
I have no access to LN2440SBC but there is no reason for it to
complain.
Besides, the new AC97 controller driver(plus a machine driver for
SMDKs with WM9713 attached to AC97 port) has been tested on all
SoCs that I could get my hands on(6410, C100, C110 and V210).

Trying to avoid one outright rejected series of patches, I wanted to
confirm if my approach is acceptable.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2010-01-21  6:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-08  5:28 Reforming s3c2443 ac97 driver JASWINDERSINGH BRAR
2010-01-08  5:53 ` Ben Dooks
2010-01-08  9:48 ` Mark Brown
2010-01-21  6:58   ` jassi brar [this message]
2010-01-21 10:03     ` Mark Brown
2010-01-21 10:37     ` Liam Girdwood
2010-01-21 11:22       ` jassi brar
2010-01-21 11:30         ` Mark Brown
2010-01-21 11:34           ` jassi brar
     [not found] <0KWM003YNI0X6D@ms11.samsung.com>
2010-01-22  1:03 ` jassi brar
2010-01-22  1:04 ` Ben Dooks

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=1b68c6791001202258p7ef0ebcdt444a3be2eeaaff36@mail.gmail.com \
    --to=jassisinghbrar@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=ben-linux@fluff.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=graeme.gregory@wolfsonmicro.com \
    --cc=jassi.brar@samsung.com \
    --cc=sh428.choi@samsung.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;
as well as URLs for NNTP newsgroup(s).