All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: tiwai@suse.de
Cc: alsa-devel@alsa-project.org, Takashi Sakamoto <o-takashi@sakamocchi.jp>
Subject: Re: [PATCH] firewire-speakers: remove not-reused member from structure
Date: Tue, 09 Jul 2013 18:00:55 +0200	[thread overview]
Message-ID: <51DC33B7.8000507@ladisch.de> (raw)
In-Reply-To: <1373383366-14340-1-git-send-email-o-takashi@sakamocchi.jp>

Takashi Sakamoto wrote:
> "pcm" member in struct fwspk is used to set pcm operations but is not used
> again. This commit remove this member and set pcm operations with
> snd_pcm_set_ops().
>
> Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>

Acked-by: Clemens Ladisch <clemens@ladisch.de>

> ---
>  sound/firewire/speakers.c |    4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/sound/firewire/speakers.c b/sound/firewire/speakers.c
> index 2c63865..fe9e6e2 100644
> --- a/sound/firewire/speakers.c
> +++ b/sound/firewire/speakers.c
> @@ -49,7 +49,6 @@ struct fwspk {
>  	struct snd_card *card;
>  	struct fw_unit *unit;
>  	const struct device_info *device_info;
> -	struct snd_pcm_substream *pcm;
>  	struct mutex mutex;
>  	struct cmp_connection connection;
>  	struct amdtp_out_stream stream;
> @@ -363,8 +362,7 @@ static int fwspk_create_pcm(struct fwspk *fwspk)
>  		return err;
>  	pcm->private_data = fwspk;
>  	strcpy(pcm->name, fwspk->device_info->short_name);
> -	fwspk->pcm = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
> -	fwspk->pcm->ops = &ops;
> +	snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &ops);
>  	return 0;
>  }
>

  reply	other threads:[~2013-07-09 16:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-09 15:22 [PATCH] firewire-speakers: remove not-reused member from structure Takashi Sakamoto
2013-07-09 16:00 ` Clemens Ladisch [this message]
2013-07-09 16:21 ` Takashi Iwai

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=51DC33B7.8000507@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=o-takashi@sakamocchi.jp \
    --cc=tiwai@suse.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 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.