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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jan 2017 10:16:19 +0000 (11:16 +0100)
commit5496ec423449d6415a1c14381dfa2a9056101d03
tree056fee336fcb9ebee1cc28163ba01f5abbdee64e
parentabf549a8b9693419c1a076eda3c859d646a2d887
ALSA: hiface: Fix M2Tech hiFace driver sampling rate change

commit 995c6a7fd9b9212abdf01160f6ce3193176be503 upstream.

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/hiface/pcm.c