mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 03:50:24 +09:00
Revert "ALSA: usb-audio: Always initialize fixed_rate in snd_usb_find_implicit_fb_sync_format()"
This reverts commitbfd36b1d18which is commit291e9da914upstream. It breaks the Android kernel abi and can be brought back in the future in an abi-safe way if it is really needed. Bug: 161946584 Change-Id: I087bfd704d03c5aef4cf14d6130d0c310ea9313a Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -471,7 +471,7 @@ snd_usb_find_implicit_fb_sync_format(struct snd_usb_audio *chip,
|
||||
subs = find_matching_substream(chip, stream, target->sync_ep,
|
||||
target->fmt_type);
|
||||
if (!subs)
|
||||
goto end;
|
||||
return sync_fmt;
|
||||
|
||||
high_score = 0;
|
||||
list_for_each_entry(fp, &subs->fmt_list, list) {
|
||||
@@ -485,7 +485,6 @@ snd_usb_find_implicit_fb_sync_format(struct snd_usb_audio *chip,
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
if (fixed_rate)
|
||||
*fixed_rate = snd_usb_pcm_has_fixed_rate(subs);
|
||||
return sync_fmt;
|
||||
|
||||
@@ -172,8 +172,6 @@ bool snd_usb_pcm_has_fixed_rate(struct snd_usb_substream *subs)
|
||||
struct snd_usb_audio *chip = subs->stream->chip;
|
||||
int rate = -1;
|
||||
|
||||
if (!subs)
|
||||
return false;
|
||||
if (!(chip->quirk_flags & QUIRK_FLAG_FIXED_RATE))
|
||||
return false;
|
||||
list_for_each_entry(fp, &subs->fmt_list, list) {
|
||||
|
||||
Reference in New Issue
Block a user