From: Mark Brown <broonie@kernel.org>
To: Stefan Roese <sr@denx.de>
Cc: alsa-devel@alsa-project.org, linux-omap@vger.kernel.org,
Thorsten Eisbein <thorsten.eisbein@head-acoustics.de>,
Jarkko Nikula <jarkko.nikula@bitmer.com>
Subject: Re: [PATCH 2/5] ASoC: Add HA (HEAD acoustics) DSP codec driver template
Date: Tue, 29 Apr 2014 11:47:19 -0700 [thread overview]
Message-ID: <20140429184719.GI15125@sirena.org.uk> (raw)
In-Reply-To: <1398687476-10829-2-git-send-email-sr@denx.de>
[-- Attachment #1.1: Type: text/plain, Size: 1376 bytes --]
On Mon, Apr 28, 2014 at 02:17:53PM +0200, Stefan Roese wrote:
> +static int ha_dsp_hw_params(struct snd_pcm_substream *substream,
> + struct snd_pcm_hw_params *params,
> + struct snd_soc_dai *dai)
> +{
> + struct snd_soc_pcm_runtime *rtd = substream->private_data;
> + struct snd_soc_codec *codec = rtd->codec;
> +
> + dev_dbg(codec->dev, "Sample format 0x%X\n", params_format(params));
> + dev_dbg(codec->dev, "Channels %d\n", params_channels(params));
> + dev_dbg(codec->dev, "Rate %d\n", params_rate(params));
> +
> + return 0;
> +}
This doesn't do anything, you should either implement active code here
or remove it (I note that a range of sample rates are supported and the
CODEC can be clock master so I'd expect to see code here).
> + /* codec role */
> + switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
> + case SND_SOC_DAIFMT_CBM_CFM:
> + dev_dbg(codec->dev, "Codec is master\n");
> + break;
> + case SND_SOC_DAIFMT_CBS_CFS:
> + dev_dbg(codec->dev, "Codec is slave\n");
> + break;
> + default:
> + return -EINVAL;
> + }
This isn't doing anything with what it parsed, how does that work?
> +/*
> + * This name/ID is neded to match the DT node for the codec
> + */
> +static const struct i2c_device_id ha_dsp_i2c_id[] = {
> + { "ha-dsp-audio", 0 },
> + { }
> +};
> +MODULE_DEVICE_TABLE(i2c, ha_dsp_i2c_id);
This doesn't have any actual part numbers?
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2014-04-29 18:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-28 12:17 [PATCH 1/5] ASoC: Add support for machine specific trigger callback Stefan Roese
2014-04-28 12:17 ` [PATCH 2/5] ASoC: Add HA (HEAD acoustics) DSP codec driver template Stefan Roese
2014-04-28 14:45 ` [alsa-devel] " Lars-Peter Clausen
2014-04-28 17:32 ` Jarkko Nikula
2014-04-29 18:47 ` Mark Brown [this message]
2014-04-28 12:17 ` [PATCH 3/5] ASoC: omap: Add HA (HEAD acoustics) DSP add-on card audio driver for TAO3530 Stefan Roese
2014-04-28 17:35 ` Jarkko Nikula
2014-04-28 17:39 ` Jarkko Nikula
2014-04-29 18:54 ` Mark Brown
2014-04-28 12:17 ` [PATCH 4/5] DT: Add vendor prefix for HEAD acoustics Stefan Roese
2014-04-28 12:17 ` [PATCH 5/5] ASoC: omap: Add DT bindings documentation for HA DSP audio driver Stefan Roese
2014-04-29 19:05 ` [PATCH 1/5] ASoC: Add support for machine specific trigger callback Mark Brown
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=20140429184719.GI15125@sirena.org.uk \
--to=broonie@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=jarkko.nikula@bitmer.com \
--cc=linux-omap@vger.kernel.org \
--cc=sr@denx.de \
--cc=thorsten.eisbein@head-acoustics.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox