lkml.org 
[lkml]   [2001]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: i810_audio mono troubles
Date
+++ drivers/sound/i810_audio.c	Mon Dec 17 23:15:19 2001
@@ -609,6 +609,9 @@

new_rate = ac97_set_dac_rate(codec, rate);

+ if ((dmabuf->fmt & I810_FMT_STEREO) == 0)
+ new_rate *= 2;
+
if(new_rate != rate) {
dmabuf->rate = (new_rate * 48000)/clocking;
}
@@ -1687,6 +1690,12 @@
if (dmabuf->enable & ADC_RUNNING) {
stop_adc(state);
}
+
+ if (*(int *)arg == 0)
+ dmabuf->fmt &= ~I810_FMT_STEREO;
+ else
+ dmabuf->fmt |= I810_FMT_STEREO;
+
return put_user(1, (int *)arg);

case SNDCTL_DSP_GETBLKSIZE:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:14    [W:0.242 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site