usb: gadget: u_audio: remove caching of stream buffer parameters
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Thu, 21 Jun 2018 15:22:49 +0000 (17:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2018 07:26:26 +0000 (09:26 +0200)
commit42b09bece176fdbf3b8ebc459b5046901ac49be4
treeec9f9445c248e83b1d0120e2c96f3875f192dd6d
parent224c0d0894ff7c3e85add1ce02a523d7f49cfdda
usb: gadget: u_audio: remove caching of stream buffer parameters

[ Upstream commit 96afb54ece0ee903d23a7ac04ddc461413b972c4 ]

There is no necessity to copy PCM stream ring buffer area and size
properties to UAC private data structure, these values can be got
from substream itself.

The change gives more control on substream and avoid stale caching.

Fixes: 132fcb460839 ("usb: gadget: Add Audio Class 2.0 Driver")
Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/u_audio.c