alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Liam Girdwood <lrg@ti.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH 2/5] ASoC: dpcm: Add debugFS support for DPCM
Date: Thu, 26 Apr 2012 17:44:54 +0100	[thread overview]
Message-ID: <20120426164454.GM3207@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <1335352373-5237-2-git-send-email-lrg@ti.com>


[-- Attachment #1.1: Type: text/plain, Size: 942 bytes --]

On Wed, Apr 25, 2012 at 12:12:50PM +0100, Liam Girdwood wrote:

I've queued this to apply this but a few nits I noticed:

> +#ifdef CONFIG_DEBUG_FS
> +	dpcm->debugfs_state = debugfs_create_u32(be->dai_link->name, 0644,
> +			fe->debugfs_dpcm_root, &dpcm->state);
> +#endif

I have to say that this being writable seems rather scary...  any great
need for that?

> +static int dpcm_state_open_file(struct inode *inode, struct file *file)
> +{
> +	file->private_data = inode->i_private;
> +	return 0;
> +}

This is simple_open() - could just remove this and use simple_open() in
the ops.

> +	if (fe->cpu_dai->driver->capture.channels_min)
> +		offset += dpcm_show_state(fe, SNDRV_PCM_STREAM_CAPTURE,
> +					buf + offset, out_count - offset);
> +
> +        ret = simple_read_from_buffer(user_buf, count, ppos, buf, offset);
> +
> +        kfree(buf);
> +
> +        return ret;

Suspect there's some spaces being used for indentation here...

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



  reply	other threads:[~2012-04-26 16:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-25 11:12 [PATCH 1/5] ASoC: dpcm: Add Dynamic PCM core operations Liam Girdwood
2012-04-25 11:12 ` [PATCH 2/5] ASoC: dpcm: Add debugFS support for DPCM Liam Girdwood
2012-04-26 16:44   ` Mark Brown [this message]
2012-04-26 16:57     ` Liam Girdwood
2012-04-25 11:12 ` [PATCH 3/5] ASoC: dpcm: Add runtime dynamic route update Liam Girdwood
2012-04-25 11:12 ` [PATCH 4/5] ASoC: dpcm: Add bespoke trigger() Liam Girdwood
2012-04-25 11:12 ` [PATCH 5/5] ASoC: dpcm: Add API for DAI link substream and runtime lookup Liam Girdwood
2012-04-26 16:54 ` [PATCH 1/5] ASoC: dpcm: Add Dynamic PCM core operations Mark Brown
2012-04-26 17:04   ` Liam Girdwood

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=20120426164454.GM3207@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=lrg@ti.com \
    /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;
as well as URLs for NNTP newsgroup(s).