]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: usb-audio: avoid setting of sample rate multiple times on bus
authorDaniel Girnus <dgirnus@de.adit-jv.com>
Tue, 6 Dec 2016 05:46:15 +0000 (14:46 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 6 Dec 2016 12:55:15 +0000 (13:55 +0100)
commit1e2e3fe480064ca33186e5a923beaa160efed35d
treeab3155a9ffd5391a54b5072a798615e71d382b54
parent4763601a56f155ddf94ef35fc2c41504a2de15f5
ALSA: usb-audio: avoid setting of sample rate multiple times on bus

Some of userland applications call 'snd_pcm_hw_params()' and
'snd_pcm_hw_prepare()' sequentially, which means 'snd_pcm_hw_prepare()'
is called twice and the second 'snd_pcm_hw_prepare()' is called in
'SNDRV_PCM_STATE_PREPARED' state.

Some devices are not able to manage this and they will stop playback
if the sample rate will be configured several times over USB protocol.

V2: updated Changelog

Signed-off-by: Daniel Girnus <dgirnus@de.adit-jv.com>
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/pcm.c