From: Philip Prindeville <philipp_subx@redfish-solutions.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Last set of diffs for vt1617, etc.
Date: Wed, 17 Aug 2005 18:06:58 -0600 [thread overview]
Message-ID: <4303D122.2090806@redfish-solutions.com> (raw)
In-Reply-To: <s5hd5oexkfo.wl%tiwai@suse.de>
Takashi Iwai wrote:
>At Mon, 15 Aug 2005 13:08:37 -0600,
>Philip Prindeville wrote:
>
>
>>Even though I've run "aclocal" and "autoconf" previously. It seems it needs
>>to be run every time???
>>
>>
>
>No, once you update the tree and run cvscompile, you need to run only
>make after that.
>
>
>
>> And the version of /usr/share/gettext/gettext.h on
>>FC3 isn't compatible with alsa-utils/include/gettext.h because the N_ macro
>>isn't defined.
>>
>>
>
>It's not that package. Did you install gettext-devel.rpm?
>
>
>
>>Not sure what the first paragraph is about.
>>
>>So I've tried all of this, with the diffs attached, and I still have
>>problems
>>playing 44.1kHz sound.
>>
>>The next question is, how do we go about figuring out if the codec doesn't
>>like 44.1kHz, or if there really is a bug in
>>snd_ac97_determine_spdif_rates()?
>>
>>
>
>Needs a datasheet.
>
>As a test, you can add the line to force to reset the SPDIF_RATES
>value after the line calling snd_ac97_determine_spdif_rates(), and try
>aplay again.
>
>
>
>
>>Thanks,
>>
>>-Philip
>>
>>P.S. I've turned off "oss" in the diffs just because I'm trying to
>>isolate ALSA.
>>
>>
>
>Use "cvs diff". Also, use -u option to get the unified diff style.
>
>
>Takashi
>
>
I applied the following "patch":
[root@media alsa]# diff -u alsa-driver/pci/ac97/ac97_codec.c.bak
alsa-driver/pci/ac97/ac97_codec.c
--- alsa-driver/pci/ac97/ac97_codec.c.bak 2005-08-15
10:27:41.000000000 -0600
+++ alsa-driver/pci/ac97/ac97_codec.c 2005-08-17 17:57:01.000000000 -0600
@@ -1521,6 +1521,8 @@
/* consumer,PCM audio,no copyright,no
preemphasis,PCM coder,original,48000Hz */
snd_ac97_write_cache(ac97, AC97_SPDIF, 0x2a20);
ac97->rates[AC97_RATES_SPDIF] =
snd_ac97_determine_spdif_rates(ac97);
+// tweak...
+ac97->rates[AC97_RATES_SPDIF] = SNDRV_PCM_RATE_44100;
}
ac97->spdif_status = SNDRV_PCM_DEFAULT_CON_SPDIF;
}
[root@media alsa]#
and when I ran "aplay", this is what I got:
[root@media alsa]# aplay -v -D spdif
/usr/share/system-config-soundcard/sound-sample.wav
Playing WAVE '/usr/share/system-config-soundcard/sound-sample.wav' :
Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Hooks PCM
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 44100
exact rate : 44100 (44100/1)
msbits : 16
buffer_size : 16384
period_size : 4096
period_time : 92879
tick_time : 1000
tstamp_mode : NONE
period_step : 1
sleep_min : 0
avail_min : 4096
xfer_align : 4096
start_threshold : 16384
stop_threshold : 16384
silence_threshold: 0
silence_size : 0
boundary : 4611686018427387904
Slave: Hardware PCM card 0 'VIA 8237' device 0 subdevice 3
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 44100
exact rate : 44100 (44100/1)
msbits : 16
buffer_size : 16384
period_size : 4096
period_time : 92879
tick_time : 1000
tstamp_mode : NONE
period_step : 1
sleep_min : 0
avail_min : 4096
xfer_align : 4096
start_threshold : 16384
stop_threshold : 16384
silence_threshold: 0
silence_size : 0
boundary : 4611686018427387904
[root@media alsa]#
However my receiver says "PCM [48kHz]" in the LED display.
I'm wondering if there might be other things that need to be changed
as well... Config files?
-Philip
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
next prev parent reply other threads:[~2005-08-18 0:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-13 21:22 Last set of diffs for vt1617, etc Philip Prindeville
2005-08-15 12:45 ` Takashi Iwai
[not found] ` <4300E835.5000608@redfish-solutions.com>
2005-08-16 10:09 ` Takashi Iwai
2005-08-18 0:06 ` Philip Prindeville [this message]
2005-08-18 9:43 ` 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=4303D122.2090806@redfish-solutions.com \
--to=philipp_subx@redfish-solutions.com \
--cc=alsa-devel@lists.sourceforge.net \
--cc=tiwai@suse.de \
/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.