]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: hiface: Fix M2Tech hiFace driver sampling rate change
authorJussi Laako <jussi@sonarnerd.net>
Mon, 28 Nov 2016 09:27:45 +0000 (11:27 +0200)
committerSasha Levin <alexander.levin@verizon.com>
Fri, 13 Jan 2017 01:56:57 +0000 (20:56 -0500)
commited21b94ebbf4218baadbaad82bbea8a43a8bf5a9
tree2e625f11d9fb184b16a6bdec5c69c563c24a9079
parentf8c36e2b98b7b5ea41a01c60349f70764a4e33e6
ALSA: hiface: Fix M2Tech hiFace driver sampling rate change

[ Upstream commit 995c6a7fd9b9212abdf01160f6ce3193176be503 ]

Sampling rate changes after first set one are not reflected to the
hardware, while driver and ALSA think the rate has been changed.

Fix the problem by properly stopping the interface at the beginning of
prepare call, allowing new rate to be set to the hardware. This keeps
the hardware in sync with the driver.

Signed-off-by: Jussi Laako <jussi@sonarnerd.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
sound/usb/hiface/pcm.c