stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch "ALSA: hiface: Fix M2Tech hiFace driver sampling rate change" has been added to the 4.9-stable tree
@ 2017-01-03 19:57 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-01-03 19:57 UTC (permalink / raw)
  To: jussi, gregkh, tiwai; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    ALSA: hiface: Fix M2Tech hiFace driver sampling rate change

to the 4.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     alsa-hiface-fix-m2tech-hiface-driver-sampling-rate-change.patch
and it can be found in the queue-4.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From 995c6a7fd9b9212abdf01160f6ce3193176be503 Mon Sep 17 00:00:00 2001
From: Jussi Laako <jussi@sonarnerd.net>
Date: Mon, 28 Nov 2016 11:27:45 +0200
Subject: ALSA: hiface: Fix M2Tech hiFace driver sampling rate change

From: Jussi Laako <jussi@sonarnerd.net>

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 |    2 ++
 1 file changed, 2 insertions(+)

--- a/sound/usb/hiface/pcm.c
+++ b/sound/usb/hiface/pcm.c
@@ -445,6 +445,8 @@ static int hiface_pcm_prepare(struct snd
 
 	mutex_lock(&rt->stream_mutex);
 
+	hiface_pcm_stream_stop(rt);
+
 	sub->dma_off = 0;
 	sub->period_off = 0;
 


Patches currently in stable-queue which might be from jussi@sonarnerd.net are

queue-4.9/alsa-hiface-fix-m2tech-hiface-driver-sampling-rate-change.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-01-03 19:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-03 19:57 Patch "ALSA: hiface: Fix M2Tech hiFace driver sampling rate change" has been added to the 4.9-stable tree gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).