ALSA: usb-audio: Fix the first PCM interface assignment

In the new PCM streaming logic, the interface number is assigned to
usb stream instance (subs->interface) after the format and rate setups
are succeeded, but some codes are still passing subs->interface as the
reference to helper functions. This leads to initializing with an
invalid iface number (-1).

This patch replaces the wrong references with the ones from the target
fmt correctly.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

Changed files
+2 -2
sound
usb
+2 -2
sound/usb/pcm.c
··· 387 387 subs->data_endpoint->sync_master = subs->sync_endpoint; 388 388 } 389 389 390 - if ((err = snd_usb_init_pitch(subs->stream->chip, subs->interface, alts, fmt)) < 0) 390 + if ((err = snd_usb_init_pitch(subs->stream->chip, fmt->iface, alts, fmt)) < 0) 391 391 return err; 392 392 393 393 subs->cur_audiofmt = fmt; ··· 450 450 struct usb_interface *iface; 451 451 iface = usb_ifnum_to_if(subs->dev, fmt->iface); 452 452 alts = &iface->altsetting[fmt->altset_idx]; 453 - ret = snd_usb_init_sample_rate(subs->stream->chip, subs->interface, alts, fmt, rate); 453 + ret = snd_usb_init_sample_rate(subs->stream->chip, fmt->iface, alts, fmt, rate); 454 454 if (ret < 0) 455 455 return ret; 456 456 subs->cur_rate = rate;