diff options
Diffstat (limited to 'sound/usb/urb.c')
-rw-r--r-- | sound/usb/urb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/usb/urb.c b/sound/usb/urb.c index e9c339f75861..ad50d4398921 100644 --- a/sound/usb/urb.c +++ b/sound/usb/urb.c | |||
@@ -662,7 +662,7 @@ static int prepare_nodata_playback_urb(struct snd_usb_substream *subs, | |||
662 | urb->number_of_packets = ctx->packets; | 662 | urb->number_of_packets = ctx->packets; |
663 | urb->transfer_buffer_length = offs * stride; | 663 | urb->transfer_buffer_length = offs * stride; |
664 | memset(urb->transfer_buffer, | 664 | memset(urb->transfer_buffer, |
665 | subs->cur_audiofmt->format == SNDRV_PCM_FORMAT_U8 ? 0x80 : 0, | 665 | runtime->format == SNDRV_PCM_FORMAT_U8 ? 0x80 : 0, |
666 | offs * stride); | 666 | offs * stride); |
667 | return 0; | 667 | return 0; |
668 | } | 668 | } |
@@ -924,7 +924,7 @@ void snd_usb_init_substream(struct snd_usb_stream *as, | |||
924 | snd_usb_set_pcm_ops(as->pcm, stream); | 924 | snd_usb_set_pcm_ops(as->pcm, stream); |
925 | 925 | ||
926 | list_add_tail(&fp->list, &subs->fmt_list); | 926 | list_add_tail(&fp->list, &subs->fmt_list); |
927 | subs->formats |= 1ULL << fp->format; | 927 | subs->formats |= fp->formats; |
928 | subs->endpoint = fp->endpoint; | 928 | subs->endpoint = fp->endpoint; |
929 | subs->num_formats++; | 929 | subs->num_formats++; |
930 | subs->fmt_type = fp->fmt_type; | 930 | subs->fmt_type = fp->fmt_type; |