Re: ASoC: hook for codec control updates and clock controls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 8, 2008 at 2:04 AM, Daniel Mack <daniel@xxxxxxxxx> wrote:

>
> Sorry for not being precise enough here. In our case, the codec is slave
> and all clocks are provided by the I2S master, which is a PXA processor.
>
> The idea is to provide a way for codecs to signal the need for the
> master clock (or whatever clock) to be applied externally. And it's
> actually not important what it takes to actually do that - a generic way
> the board support code can use would be good.
>
> Is such an aproach feasible?
>
> My two cents. However, aic3x specific only.

Would it work if there is some set_mclk(int enable) callback in struct
aic3x_setup_data, then codec->write in aic3x_init points to higher level
aic3x_write_xxx which takes care of calling set_mclk(1) when needed and call
aic3x_write? Also delayed set_mclk(0) can be put into aic3x driver.

Machine driver can then decide will it provide the callback.


Jarkko
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux