ANDROID: GKI: sound/usb/card.h: add Android ABI padding to struct snd_usb_endpoint

There seems to be lots of people wanting to change this structure, and
while it feels internal, due to some SoC patches, there's an ABI that
needs to be preserved here over time.

So add some padding to struct snd_usb_endpoint so that we can maintain
this succesfully in the future.

Of course, now that the padding is there, there never will be any need
to change this structure again...

Bug: 151154716
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I21cb3abbdca2961e33a94b2bc48b49f3fadbd206
This commit is contained in:
Greg Kroah-Hartman 2020-06-25 10:43:32 +02:00
parent d48452b710
commit 996537b557

View file

@ -2,6 +2,8 @@
#ifndef __USBAUDIO_CARD_H
#define __USBAUDIO_CARD_H
#include <linux/android_kabi.h>
#define MAX_NR_RATES 1024
#define MAX_PACKS 6 /* per URB */
#define MAX_PACKS_HS (MAX_PACKS * 8) /* in high speed mode */
@ -106,6 +108,11 @@ struct snd_usb_endpoint {
spinlock_t lock;
struct list_head list;
ANDROID_KABI_RESERVE(1);
ANDROID_KABI_RESERVE(2);
ANDROID_KABI_RESERVE(3);
ANDROID_KABI_RESERVE(4);
};
struct snd_usb_substream {