usb: gadget: f_uac2: Fix pcm sample size selection
authorSebastian Reimers <sebastian.reimers@googlemail.com>
Thu, 3 Jul 2014 18:15:28 +0000 (20:15 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 16 Jul 2014 17:50:40 +0000 (12:50 -0500)
commit55f7840ac4c6224263d88014b69f8cd35fa66817
tree5999cdb78ed8853c5395d46a368bbab40e4e650e
parentc9d872592611b98d3481e978f93b90a5fa194252
usb: gadget: f_uac2: Fix pcm sample size selection

The pcm playback and capture sample size format was fixed
SNDRV_PCM_FMTBIT_S16_LE.

This patch respects also 16, 24 and 32 bit p_ssize and c_ssize values.

Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sebastian Reimers <sebastian.reimers@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_uac2.c