Re: AT32 ASoC Driver Patches on alsa-devel

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Haavard Skinnemoen
Date: Thursday, June 5, 2008 - 9:40 am

Mark Brown <broonie@opensource.wolfsonmicro.com> wrote:

Whoops, that should have been sound/soc/codecs/ac97.c.


Ok, but why write a whole new driver instead of extending the existing
one to support the missing features?


Sounds like it could be solved by a thin adapter layer on top of a more
flexible AC97 driver.


Right, so ALSA really did need a common codec abstraction.


But why is it only useful on SoCs?


Again, that sounds very useful in general, not only for SoCs. Power
consumption is perhaps _more_ important on embedded systems than PCs,
but I very much doubt that anyone would complain if their laptop
battery lasted a few minutes longer ;-)


The SSC hardware is essentially identical on the two platforms, and
there's also a common driver of sorts in drivers/misc/atmel-ssc.c. So
it shouldn't be too hard to have them share the same i2s driver.

This is why I think grouping drivers based on platform, bus type or
whatever is just wrong. It prevents using the same drivers on identical
hardware that just happens to be integrated on a different type of chip
or wired up to a different kind of bus.

Now, I'm not sure what kind of changes that were necessary to make the
at91 driver work on avr32, but if it was only about changing it to use
the atmel-ssc driver, maybe we should just replace the existing at91
driver with the new at32 driver?


Ok, so why not call it "DMA" or something instead of "PCM"?

Btw, there are chips that use a different kind of DMA interface to the
SSC, so I think the split makes sense. I just think the name "at32-pcm"
is confusing. "atmel-ssc-pdc" would have been much better.


Yes, thanks a lot for explaining. I think the design goals of the ASoC
layer makes sense, it's just that I don't see anything inherently
SoC-specific about them.

Haavard
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: AT32 ASoC Driver Patches on alsa-devel, Haavard Skinnemoen, (Thu Jun 5, 7:22 am)
Re: AT32 ASoC Driver Patches on alsa-devel, Geoffrey Wossum, (Thu Jun 5, 8:00 am)
Re: AT32 ASoC Driver Patches on alsa-devel, Mark Brown, (Thu Jun 5, 8:22 am)
Re: AT32 ASoC Driver Patches on alsa-devel, Haavard Skinnemoen, (Thu Jun 5, 9:24 am)
Re: AT32 ASoC Driver Patches on alsa-devel, Haavard Skinnemoen, (Thu Jun 5, 9:40 am)
Re: AT32 ASoC Driver Patches on alsa-devel, Takashi Iwai, (Thu Jun 5, 9:54 am)
Re: AT32 ASoC Driver Patches on alsa-devel, Haavard Skinnemoen, (Thu Jun 5, 10:06 am)
Re: AT32 ASoC Driver Patches on alsa-devel, Geoffrey Wossum, (Thu Jun 5, 10:10 am)
Re: AT32 ASoC Driver Patches on alsa-devel, Takashi Iwai, (Thu Jun 5, 11:15 pm)
Re: AT32 ASoC Driver Patches on alsa-devel, Haavard Skinnemoen, (Fri Jun 6, 2:29 am)
Re: AT32 ASoC Driver Patches on alsa-devel, Mark Brown, (Fri Jun 6, 4:37 am)
Re: AT32 ASoC Driver Patches on alsa-devel, Mark Brown, (Fri Jun 6, 5:07 am)
Re: AT32 ASoC Driver Patches on alsa-devel, Geoffrey Wossum, (Fri Jun 6, 7:32 am)