ALSA: usb-audio: set the interface format after resume on Dell WD19
[platform/kernel/linux-starfive.git] / sound / usb / card.h
index 79fa2a1..395403a 100644 (file)
@@ -109,6 +109,8 @@ struct snd_usb_endpoint {
        struct list_head list;
 };
 
+struct media_ctl;
+
 struct snd_usb_substream {
        struct snd_usb_stream *stream;
        struct usb_device *dev;
@@ -143,6 +145,7 @@ struct snd_usb_substream {
        struct snd_usb_endpoint *sync_endpoint;
        unsigned long flags;
        bool need_setup_ep;             /* (re)configure EP at prepare? */
+       bool need_setup_fmt;            /* (re)configure fmt after resume? */
        unsigned int speed;             /* USB_SPEED_XXX */
 
        u64 formats;                    /* format bitmasks (all or'ed) */
@@ -161,6 +164,7 @@ struct snd_usb_substream {
        } dsd_dop;
 
        bool trigger_tstamp_pending_update; /* trigger timestamp being updated from initial estimate */
+       struct media_ctl *media_ctl;
 };
 
 struct snd_usb_stream {