Hello,

This question is for someone which knows the ALSA 0.9.8 via82xx
driver.

I have a problem with my sound card. The default sample rate is
48000Hz, and I cannot set it to 44100Hz.

I have a GA-7VM400MF mainboard with a VIA KM400 chipset; the sound
card is integrated in the mainboard, and has a RealTek ALC650 codec.

I found in the documentation from vendors' web site that the hardware
should support different sample rates, among which there is 44100 Hz.

The sound card works correctly with ALSA 0.9.8, using the snd-via82xx
driver, as I found in some web pages.

The module parameter ac97_clock should set the desired frequency. If I
load the module with this parameter set to 44100, by looking in
/proc/asound/card0/ac97#0 I find the sample rate to be set to 44100.

However, the sound is ugly exactly in the same way as when the sample
rate is set to 48000.

The ALSA driver in the module via82xx seems to support only 48000Hz as
sample rate. Indeed I found the following lines in the
alsa-kernel/pci/via82xx.c source file:

1011 /*
1012  * pcm hardware definition, identical for both playback and capture
1013  */
1014 static snd_pcm_hardware_t snd_via82xx_hw =
1015 {
1016         .info =                 (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED 
|
1017                                  SNDRV_PCM_INFO_BLOCK_TRANSFER |
1018                                  SNDRV_PCM_INFO_MMAP_VALID |
1019                                  SNDRV_PCM_INFO_PAUSE),
1020         .formats =              SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE,
1021         .rates =                SNDRV_PCM_RATE_48000,
1022         .rate_min =             48000,
1023         .rate_max =             48000,
1024         .channels_min =         1,
1025         .channels_max =         2,
1026         .buffer_bytes_max =     128 * 1024,
1027         .period_bytes_min =     32,
1028         .period_bytes_max =     128 * 1024,
1029         .periods_min =          2,
1030         .periods_max =          VIA_TABLE_SIZE / 2,
1031         .fifo_size =            0,
1032 };

My question is: am I wrong or it's the driver which supports only
48000Hz as the sample rate of the codec?

Thank you in advance for any help
GC


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to