aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/line6/playback.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/usb/line6/playback.c')
-rw-r--r--sound/usb/line6/playback.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sound/usb/line6/playback.c b/sound/usb/line6/playback.c
index ae41124c351e..05dee690f487 100644
--- a/sound/usb/line6/playback.c
+++ b/sound/usb/line6/playback.c
@@ -148,10 +148,10 @@ static int submit_audio_out_urb(struct snd_line6_pcm *line6pcm)
148 int ret; 148 int ret;
149 const int bytes_per_frame = line6pcm->properties->bytes_per_frame; 149 const int bytes_per_frame = line6pcm->properties->bytes_per_frame;
150 const int frame_increment = 150 const int frame_increment =
151 line6pcm->properties->snd_line6_rates.rats[0].num_min; 151 line6pcm->properties->rates.rats[0].num_min;
152 const int frame_factor = 152 const int frame_factor =
153 line6pcm->properties->snd_line6_rates.rats[0].den * 153 line6pcm->properties->rates.rats[0].den *
154 (USB_INTERVALS_PER_SECOND / LINE6_ISO_INTERVAL); 154 (USB_INTERVALS_PER_SECOND / LINE6_ISO_INTERVAL);
155 struct urb *urb_out; 155 struct urb *urb_out;
156 156
157 index = 157 index =
@@ -370,12 +370,11 @@ static int snd_line6_playback_open(struct snd_pcm_substream *substream)
370 struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream); 370 struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream);
371 371
372 err = snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, 372 err = snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
373 (&line6pcm-> 373 &line6pcm->properties->rates);
374 properties->snd_line6_rates));
375 if (err < 0) 374 if (err < 0)
376 return err; 375 return err;
377 376
378 runtime->hw = line6pcm->properties->snd_line6_playback_hw; 377 runtime->hw = line6pcm->properties->playback_hw;
379 return 0; 378 return 0;
380} 379}
381 380