Skip to contentSkip to conversation

Patch "ALSA: hiface: Fix M2Tech hiFace driver sampling rate change" has been added to the 4.8-stable tree

PATCH [email protected] 1 participant 1 message Jan 3, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

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.8-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.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 995c6a7fd9b9212abdf01160f6ce3193176be503 Mon Sep 17 00:00:00 2001

From: Jussi Laako <[email protected]>
Date: Mon, 28 Nov 2016 11:27:45 +0200
Subject: ALSA: hiface: Fix M2Tech hiFace driver sampling rate change

From: Jussi Laako <[email protected]>

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.

---
 sound/usb/hiface/pcm.c |    2 ++
 1 file changed, 2 insertions(+)
sound/usb/hiface/pcm.c +2 -0
@@ -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 [email protected] are

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