aboutsummaryrefslogtreecommitdiffstats
path: root/sound/firewire/speakers.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/firewire/speakers.c')
-rw-r--r--sound/firewire/speakers.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/firewire/speakers.c b/sound/firewire/speakers.c
index 2c6386503940..fe9e6e2f2c5b 100644
--- a/sound/firewire/speakers.c
+++ b/sound/firewire/speakers.c
@@ -49,7 +49,6 @@ struct fwspk {
49 struct snd_card *card; 49 struct snd_card *card;
50 struct fw_unit *unit; 50 struct fw_unit *unit;
51 const struct device_info *device_info; 51 const struct device_info *device_info;
52 struct snd_pcm_substream *pcm;
53 struct mutex mutex; 52 struct mutex mutex;
54 struct cmp_connection connection; 53 struct cmp_connection connection;
55 struct amdtp_out_stream stream; 54 struct amdtp_out_stream stream;
@@ -363,8 +362,7 @@ static int fwspk_create_pcm(struct fwspk *fwspk)
363 return err; 362 return err;
364 pcm->private_data = fwspk; 363 pcm->private_data = fwspk;
365 strcpy(pcm->name, fwspk->device_info->short_name); 364 strcpy(pcm->name, fwspk->device_info->short_name);
366 fwspk->pcm = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; 365 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &ops);
367 fwspk->pcm->ops = &ops;
368 return 0; 366 return 0;
369} 367}
370 368