ASoC: Max98090: Fix digital sidetone gain TLV

TLV for digital sidetone volume is wrong, this fix matches it to the
datasheet.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
ASoC: Intel: Only export one Baytrail DAI

We dont need more than 1 DAI for Baytrail do only export one DAI.
Make the PCM data per stream rather than per DAI.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
ASoC: Byt Max98090: use only one baytrail DAI

Update the machine driver to use only one DAI like the Byt PCM driver.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
ASoC: Intel: byt-rt5640: Use only one baytrail DAI

Convert to one DAI after 458deaa4b174 ("ASoC: Intel: Only export one
Baytrail DAI").

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
ALSA: PCM: Provide runtime pending state to trigger() START+STOP

It would be useful to provide hints on the reason for triggering START and
STOP so we can intercept XRUN triggers() that cause errors with the ADSP
firmware.

This patch should be extended to other trigger commands. Will look at
this as RFC to mailing list.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
ASoC: Intel: Fix BYT pause/resume.

The BYT FW can't handle the strea, STOP/START with underruns as pause +
resume. Make sure we dont STOP/START the stream now for underruns.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Merge remote-tracking branch 'jarkko-gh/intel/test' into rambi/upstream
ASoC: Intel: byt-max98090: Fix max98090 master clock setting

Currently we set max98090 master clock to params_rate(params) * 256,
which should actually be 19.2 MHz on Rambi.

Signed-off-by: Cheng-Yi Chiang <cychiang@chromium.org>
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
ASoC: Intel: byt-max98090: Cleanup debug and error prints

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
ASoC: Intel: byt-max98090: Namespace cleanup

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
ASoC: Intel: byt-max98090: Reduce indentation in hs_jack_gpios[]

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
ASoC: Intel: byt-max98090: Beautify couple indentation

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
ASoC: Intel: byt-max98090: Move codec sysclk setting to byt_max98090_init()

Codec MCLK is static and thus can be moved to driver init time.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
ASoC: Intel: byt-max98090: Remove needless snd_soc_add_card_controls call

byt_max98090_controls are referenced in snd_soc_card_byt and thus they are
added during snd_soc_instantiate_card() so there is no need to add them in
DAI link init time.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
ASoC: Intel: byt-max98090: Rename snd_soc_card_byt to byt_max98090_card

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
ASoC: BYT-maax98090: Enable the PLL interrupt source.

Enable the PLL lock failure interrupt source so that the codec driver
can handle PLL lock failures.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
ASoC: Maxim89090: Testing PLL lock irq handler

This is a testing patch to try and recover PLL lock on PLL interrupt.
We now try and toggle the SHDN bit upto 10 times on PLL lock IRQs.
We also check the PLL lock status after every toggle.

TODO: clean up PLL lock code - maybe move to workq. mask IRQs when handler
is running (including jacks) as handler does not seem optimal atm.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
ASoC: Intel: Print Baytrail DSP firmware details when DSP has booted up

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
HACK: i2c: designware: Slow down all buses for now

In order to get rid of I2C timeout messages we see after S3 resume when
talking to the codec.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
ASoC: max898090: Test - Move PLL recovery to workQ and mask interrupts.

Update the IRQ handler to mask IRQs on reception and only unmask when IRQ
is resolved. Move PLL recovery into workQ. Remove DAPM DHDN control.

Will need to split into several patches for integration/upstream.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>