提交 b6c44f41 编写于 作者: T Takashi Sakamoto 提交者: Takashi Iwai

ALSA: firewire-speakers: remove not-reused member from structure

"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: NTakashi Sakamoto <o-takashi@sakamocchi.jp>
Acked-by: NClemens Ladisch <clemens@ladisch.de>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 69358fca
...@@ -49,7 +49,6 @@ struct fwspk { ...@@ -49,7 +49,6 @@ struct fwspk {
struct snd_card *card; struct snd_card *card;
struct fw_unit *unit; struct fw_unit *unit;
const struct device_info *device_info; const struct device_info *device_info;
struct snd_pcm_substream *pcm;
struct mutex mutex; struct mutex mutex;
struct cmp_connection connection; struct cmp_connection connection;
struct amdtp_out_stream stream; struct amdtp_out_stream stream;
...@@ -363,8 +362,7 @@ static int fwspk_create_pcm(struct fwspk *fwspk) ...@@ -363,8 +362,7 @@ static int fwspk_create_pcm(struct fwspk *fwspk)
return err; return err;
pcm->private_data = fwspk; pcm->private_data = fwspk;
strcpy(pcm->name, fwspk->device_info->short_name); strcpy(pcm->name, fwspk->device_info->short_name);
fwspk->pcm = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &ops);
fwspk->pcm->ops = &ops;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册