Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3703cfe7 authored by Peter Chen's avatar Peter Chen Committed by Felipe Balbi
Browse files

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: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent d7b3968d
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -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_opts = container_of(f->fi, struct f_uac1_opts, func_inst);
	audio->card.gadget = c->cdev->gadget;
	audio->card.gadget = c->cdev->gadget;
	audio_opts->card = &audio->card;
	/* set up ASLA audio devices */
	/* set up ASLA audio devices */
	if (!audio_opts->bound) {
	if (!audio_opts->bound) {
		status = gaudio_setup(&audio->card);
		status = gaudio_setup(&audio->card);
+0 −1
Original line number Original line Diff line number Diff line
@@ -70,7 +70,6 @@ struct f_uac1_opts {
	unsigned			fn_play_alloc:1;
	unsigned			fn_play_alloc:1;
	unsigned			fn_cap_alloc:1;
	unsigned			fn_cap_alloc:1;
	unsigned			fn_cntl_alloc:1;
	unsigned			fn_cntl_alloc:1;
	struct gaudio			*card;
	struct mutex			lock;
	struct mutex			lock;
	int				refcnt;
	int				refcnt;
};
};