All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Timofei V. Bondarenko" <tim@ipi.ac.ru>
To: alsa-devel@alsa-project.org
Subject: [PATCH] cmipci - utilize ADC48K44K bit
Date: Wed, 07 Nov 2007 15:08:19 +0300	[thread overview]
Message-ID: <4731AAB3.5000209@ipi.ac.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 378 bytes --]

Hi.

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.


Regards,
	Tim.

[-- Attachment #2: cmi-adc48k.patch --]
[-- Type: text/x-patch, Size: 639 bytes --]

Signed-off-by: Timofei Bondarenko <tim@ipi.ac.ru>

--- alsa-driver-hg20071107/alsa-kernel/pci/cmipci.c	2007-11-01 04:00:07.000000000 +0300
+++ alsa-driver/alsa-kernel/pci/cmipci.c	2007-11-07 14:55:05.000000000 +0300
@@ -869,6 +869,13 @@ static int snd_cmipci_pcm_prepare(struct
 	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);
 


[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

             reply	other threads:[~2007-11-07 12:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-07 12:08 Timofei V. Bondarenko [this message]
2007-11-07 11:45 ` [PATCH] cmipci - utilize ADC48K44K bit Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4731AAB3.5000209@ipi.ac.ru \
    --to=tim@ipi.ac.ru \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.