Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=feb77712b0e780f04507cdda0529088ff0f3286f
Commit:     feb77712b0e780f04507cdda0529088ff0f3286f
Parent:     b98f9334e25c463fbfbb1cc468c66845e1c8e46a
Author:     Timofei Bondarenko <[EMAIL PROTECTED]>
AuthorDate: Wed Nov 7 15:49:57 2007 +0100
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Thu Jan 31 17:29:19 2008 +0100

    [ALSA] cmipci - utilize ADC48K44K bit
    
    Setting the ADC48K44K greatly improves capture quality at 48k sampling rate.
    With this bit clear ADC does ZOH interpolation of every 22th sample at 48k.
    At frequencies higher than 48k there ADC performs a little better with
    ADC48K44K bit set.
    At 44.1k ADC performs a little better with this bit clear.
    At frequencies below 44.1k there is no difference.
    
    Signed-off-by: Timofei Bondarenko <[EMAIL PROTECTED]>
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/pci/cmipci.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c
index 3a2d942..d1f23eb 100644
--- a/sound/pci/cmipci.c
+++ b/sound/pci/cmipci.c
@@ -869,6 +869,13 @@ static int snd_cmipci_pcm_prepare(struct cmipci *cm, 
struct cmipci_pcm *rec,
        snd_cmipci_write(cm, CM_REG_CHFORMAT, val);
        //snd_printd("cmipci: chformat = %08x\n", val);
 
+       if (!rec->is_dac && cm->chip_version) {
+               if (runtime->rate > 44100)
+                       snd_cmipci_set_bit(cm, CM_REG_EXT_MISC, CM_ADC48K44K);
+               else
+                       snd_cmipci_clear_bit(cm, CM_REG_EXT_MISC, CM_ADC48K44K);
+       }
+
        rec->running = 0;
        spin_unlock_irq(&cm->reg_lock);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to