[alsa-devel] [PATCH] ASoC: nau8825: Add driver for headset chip Nuvoton 8825

Anatol Pomozov anatol.pomozov at gmail.com
Sat Aug 29 01:23:34 CEST 2015


Hi

Sorry for the delay.

On Mon, Aug 17, 2015 at 11:20 AM, Mark Brown <broonie at kernel.org> wrote:
> On Sun, Aug 16, 2015 at 12:38:41AM -0700, Anatol Pomozov wrote:
>> On Thu, Aug 13, 2015 at 3:33 PM, Mark Brown <broonie at kernel.org> wrote:
>
>> > So ACPI based platforms have to deal with providing clocks in some other
>> > way, that's something that is abstracted away by the clock API.  There
>> > are a number of drivers for both board file based and ACPI based systems
>> > already in tree which manage to make use of the clock API.
>
>> What is the best example of driver that uses clk API in both DT and
>> ACPI friendly way? I will use it as a template for my driver.
>
> Any driver using the clock API should provide a suitable reference.  The
> mechanism used to resolve clocks is completely opaque to the driver
> using the clock API.

Okay, I added clk support for MCLK. set_sysclk() callback sets rate
for this clock. Platform driver needs to call
snd_soc_codec_set_sysclk() to choose codec clock source and set its
rate.

Another change - added 10ms delay after enabling charge pump to eliminate pop.


More information about the Alsa-devel mailing list