mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
usb: gadget: uac1: struct gaudio is useless for struct f_uac1_opts
Since we call gaudio_cleanup at f_audio_free, the f_uac1_opts doesn't need to use gaudio any more. Signed-off-by: Peter Chen <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
This commit is contained in:
parent
d7b3968dbc
commit
3703cfe782
2 changed files with 0 additions and 2 deletions
|
|
@ -674,7 +674,6 @@ f_audio_bind(struct usb_configuration *c, struct usb_function *f)
|
|||
|
||||
audio_opts = container_of(f->fi, struct f_uac1_opts, func_inst);
|
||||
audio->card.gadget = c->cdev->gadget;
|
||||
audio_opts->card = &audio->card;
|
||||
/* set up ASLA audio devices */
|
||||
if (!audio_opts->bound) {
|
||||
status = gaudio_setup(&audio->card);
|
||||
|
|
|
|||
|
|
@ -70,7 +70,6 @@ struct f_uac1_opts {
|
|||
unsigned fn_play_alloc:1;
|
||||
unsigned fn_cap_alloc:1;
|
||||
unsigned fn_cntl_alloc:1;
|
||||
struct gaudio *card;
|
||||
struct mutex lock;
|
||||
int refcnt;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue