ALSA: hda - Call snd_pcm_lib_hw_rates() again after codec open callback

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git-commits-head@...>
Date: Saturday, July 4, 2009 - 1:59 pm

Gitweb:     http://git.kernel.org/linus/70d321e6380f128096429d6e5b678f94ab0cef5d
Commit:     70d321e6380f128096429d6e5b678f94ab0cef5d
Parent:     022b466fc353d3dc7a152451144be656248666ce
Author:     Takashi Iwai <tiwai@suse.de>
AuthorDate: Fri Jul 3 23:06:45 2009 +0200
Committer:  Takashi Iwai <tiwai@suse.de>
CommitDate: Fri Jul 3 23:06:45 2009 +0200

    ALSA: hda - Call snd_pcm_lib_hw_rates() again after codec open callback
    
    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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 4e9ea70..b36dc46 100644
--- 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;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ALSA: hda - Call snd_pcm_lib_hw_rates() again after codec op..., Linux Kernel Mailing List..., (Sat Jul 4, 1:59 pm)