mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-25 02:48:21 +00:00
a577b318fc
Platform parameter to enable automatic FIFO configuration when the codec is in Mode1 or Mode7 FIFO mode. When this mode is selected, the controls for changing nSample (in Mode1), and UTHR (in Mode7) are not added. The driver configures the FIFO configuration based on the stream's period size in a way, that every burst will read period size of data from the host. In Mode7 we need to use a formula, which gives close enough aproximation for the burst length from the host point of view. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
25 lines
723 B
C
25 lines
723 B
C
/*
|
|
* Platform header for Texas Instruments TLV320DAC33 codec driver
|
|
*
|
|
* Author: Peter Ujfalusi <peter.ujfalusi@nokia.com>
|
|
*
|
|
* Copyright: (C) 2009 Nokia Corporation
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __TLV320DAC33_PLAT_H
|
|
#define __TLV320DAC33_PLAT_H
|
|
|
|
struct tlv320dac33_platform_data {
|
|
int power_gpio;
|
|
int mode1_latency; /* latency caused by the i2c writes in us */
|
|
int auto_fifo_config; /* FIFO config based on the period size */
|
|
int keep_bclk; /* Keep the BCLK running in FIFO modes */
|
|
u8 burst_bclkdiv;
|
|
};
|
|
|
|
#endif /* __TLV320DAC33_PLAT_H */
|