]> git.karo-electronics.de Git - linux-beck.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)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Dec 2016 21:46:43 +0000 (22:46 +0100)
commit995c6a7fd9b9212abdf01160f6ce3193176be503
treef0e52df281844e8349464e89da65630012b8a7e8
parent012007309133d21a5a7eae3f552c03ac061a2b51
ALSA: hiface: Fix M2Tech hiFace driver sampling rate change

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>
sound/usb/hiface/pcm.c