projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
022b466
)
ALSA: hda - Call snd_pcm_lib_hw_rates() again after codec open callback
author
Takashi Iwai
<tiwai@suse.de>
Fri, 3 Jul 2009 21:06:45 +0000
(23:06 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 3 Jul 2009 21:06:45 +0000
(23:06 +0200)
The PCM rates bit field may have been changed by the codec open callback.
In that case, we need to reset rate_min and rate_max. So, simply call
snd_pcm_lib_hw_rates() again after the codec open callback.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/hda_intel.c
b/sound/pci/hda/hda_intel.c
index 4e9ea70802701247ef09f6d1a6ce4a68164a216f..b36dc46615a4e1a801a89f60a8307216ae543220 100644
(file)
--- a/
sound/pci/hda/hda_intel.c
+++ b/
sound/pci/hda/hda_intel.c
@@
-1454,6
+1454,7
@@
static int azx_pcm_open(struct snd_pcm_substream *substream)
mutex_unlock(&chip->open_mutex);
return err;
}
+ snd_pcm_limit_hw_rates(runtime);
spin_lock_irqsave(&chip->reg_lock, flags);
azx_dev->substream = substream;
azx_dev->running = 0;