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

Commit 062909f6 authored by Jean-François Moine's avatar Jean-François Moine Committed by Mauro Carvalho Chehab
Browse files

[media] gspca - sonixj, zc3xx: Let some bandwidth for audio when USB 1.1

parent 5c95606b
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -1777,6 +1777,10 @@ static int sd_config(struct gspca_dev *gspca_dev,
	sd->ag_cnt = -1;
	sd->ag_cnt = -1;
	sd->quality = QUALITY_DEF;
	sd->quality = QUALITY_DEF;


	/* if USB 1.1, let some bandwidth for the audio device */
	if (gspca_dev->audio && gspca_dev->dev->speed < USB_SPEED_HIGH)
		gspca_dev->nbalt--;

	INIT_WORK(&sd->work, qual_upd);
	INIT_WORK(&sd->work, qual_upd);


	return 0;
	return 0;
+4 −0
Original line number Original line Diff line number Diff line
@@ -6414,6 +6414,10 @@ static int sd_config(struct gspca_dev *gspca_dev,
	gspca_dev->cam.ctrls = sd->ctrls;
	gspca_dev->cam.ctrls = sd->ctrls;
	sd->quality = QUALITY_DEF;
	sd->quality = QUALITY_DEF;


	/* if USB 1.1, let some bandwidth for the audio device */
	if (gspca_dev->audio && gspca_dev->dev->speed < USB_SPEED_HIGH)
		gspca_dev->nbalt--;

	return 0;
	return 0;
}
}