[alsa-devel] [PATCH 03/19] ASoC: mrst_machine: add moorestown machine driver
Dimitris Papastamos
dp at opensource.wolfsonmicro.com
Wed May 4 16:55:17 CEST 2011
On Wed, May 04, 2011 at 09:45:09PM +0800, Lu Guanqun wrote:
> This machine driver glues upd9976 codec driver and sst_platform driver.
>
> Signed-off-by: Lu Guanqun <guanqun.lu at intel.com>
> Signed-off-by: Wang Xingchao <xingchao.wang at intel.com>
> +static int mrst_hw_params(struct snd_pcm_substream *substream,
> + struct snd_pcm_hw_params *params)
> +{
> + struct snd_soc_pcm_runtime *rtd = substream->private_data;
> + struct snd_soc_dai *codec_dai = rtd->codec_dai;
> + int ret;
> +
> + ret = snd_soc_dai_set_fmt(codec_dai,
> + SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBM_CFM);
> +
> + return ret;
> +}
Should we not be letting know the CPU that the CODEC is master? Or is
it by default slave?
Thanks,
Dimitris
More information about the Alsa-devel
mailing list