From: Geoffrey Wossum <geoffrey@pager.net>
To: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Cc: kernel@avr32linux.org, linux-kernel@vger.kernel.org
Subject: Re: AT32 ASoC Driver Patches on alsa-devel
Date: Fri, 6 Jun 2008 09:32:15 -0500 [thread overview]
Message-ID: <200806060932.15461.geoffrey@pager.net> (raw)
In-Reply-To: <20080606112915.4b1d5d42@hskinnemo-gx745.norway.atmel.com>
On Friday 06 June 2008 04:29:15 am Haavard Skinnemoen wrote:
> Geoffrey Wossum <geoffrey@pager.net> wrote:
> > On Thursday 05 June 2008 11:24:09 am Haavard Skinnemoen wrote:
> > > Geoffrey Wossum <geoffrey@pager.net> wrote:
> > > > On Thursday 05 June 2008 09:22:06 am Haavard Skinnemoen wrote:
> > > > > Geoffrey Wossum <geoffrey@pager.net> wrote:
> Ok. Since the SSC module is a multi-purpose module, the SSC driver was
> designed to be as thin and flexible as possible. So we just added some
> platform_driver glue and a request/free interface and left everything
> else up to the higher-level driver.
>
> I suppose we could add a few more helper functions. Suggestions are
> welcome.
It's hard to try to add all the possible permutations of functionality.
Probably just getting register bit field constants defined would help out
tremendously.
> > One issue is the SSC
> > interface, which you have said could be used on the AT91. After that,
> > the main differences are that the DMA buffer has to be allocated
> > differently, and the mmap() implementation is different.
>
> Oh. That's a bit surprising to me...can you elaborate on the
> differences?
Well, I used a coherent DMA buffer on the AVR32. I was trying to rule out
caching effects for the issues I was having at first. Eventually it should
be switched back to a writecombined DMA buffer. I assume this will require
adding some dma_sync_*() calls, which strangely seem to be missing from
at91-pcm.c.
The mmap() would still look different, though. The AT91 uses
dma_mmap_writecombine(), which only exists on the ARM. Glancing at that
routine, it seems to jump through a lot of hoops. I've never worked on an
ARM with an MMU, so I don't really know why it's necessary. But the AVR32
just requires a call to remap_pfn_range().
---
Geoffrey
next prev parent reply other threads:[~2008-06-06 14:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200806050851.47319.geoffrey@pager.net>
2008-06-05 14:22 ` Haavard Skinnemoen
2008-06-05 15:00 ` Geoffrey Wossum
2008-06-05 16:24 ` Haavard Skinnemoen
2008-06-05 16:54 ` Takashi Iwai
2008-06-05 17:06 ` Haavard Skinnemoen
2008-06-06 6:15 ` Takashi Iwai
2008-06-05 17:10 ` Geoffrey Wossum
2008-06-06 9:29 ` Haavard Skinnemoen
2008-06-06 12:07 ` Mark Brown
2008-06-06 14:32 ` Geoffrey Wossum [this message]
2008-06-05 15:22 ` Mark Brown
2008-06-05 16:40 ` Haavard Skinnemoen
2008-06-06 11:37 ` Mark Brown
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=200806060932.15461.geoffrey@pager.net \
--to=geoffrey@pager.net \
--cc=haavard.skinnemoen@atmel.com \
--cc=kernel@avr32linux.org \
--cc=linux-kernel@vger.kernel.org \
/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®