From: Murat Sahin <murat.sahin.zeisberg@googlemail.com>
To: alsa-devel@alsa-project.org
Subject: Problem to init AD1938 on i.MX25
Date: Mon, 23 Aug 2010 16:55:50 +0200 [thread overview]
Message-ID: <4C728BF6.506@googlemail.com> (raw)
Thanks Sascha for your Informations.
The Problem was solved by adding soc-cache.c and changing the KARO-SPI
driver with them from Mainline.
The codec is still running, but now we have another problem.
The AD1938 has 8 channels, the driver for i.mx25 supports 2 channels.
How we can solve the Problem?
static int imx_ad1938_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_link *machine = rtd->dai;
struct snd_soc_dai *cpu_dai = machine->cpu_dai;
struct snd_soc_dai *codec_dai = machine->codec_dai;
struct imx_ssi *ssi_mode = cpu_dai->private_data;
unsigned int channels = params_channels(params);
u32 dai_format;
int ret;
ssi_mode->sync_mode = 1;
if (channels == 1)
ssi_mode->network_mode = 0;
else
ssi_mode->network_mode = 1;
dai_format = SND_SOC_DAIFMT_DSP_A |
SND_SOC_DAIFMT_IB_IF | SND_SOC_DAIFMT_CBM_CFM;
/* set codec DAI configuration */
ret = snd_soc_dai_set_fmt(codec_dai, dai_format);
if (ret) {
pr_err("%s: failed set codec dai format\n", __func__);
return ret;
}
/* set codec DAI slots, 8 channels, all channels are enabled */
ret = snd_soc_dai_set_tdm_slot(codec_dai, 0xFF, 0xFF, 8, 32);
if (ret) {
pr_err("%s: failed set codec dai tdm slot\n", __func__);
return ret;
}
BR
Murat Sahin
Zeisberg GmbH
next reply other threads:[~2010-08-23 14:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-23 14:55 Murat Sahin [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-08-16 4:51 Problem to init AD1938 on i.MX25 Sven Zeisberg
2010-08-16 7:30 ` Sascha Hauer
2010-08-16 8:39 ` Sven Zeisberg
2010-08-16 8:47 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C728BF6.506@googlemail.com \
--to=murat.sahin.zeisberg@googlemail.com \
--cc=alsa-devel@alsa-project.org \
--cc=murat.sahin@zeisberg.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.