Re: [Alsa-devel] period crossing page boundary

2003-03-20 Thread Takashi Iwai
At Thu, 20 Mar 2003 15:24:20 +0100 (CET), Jaroslav wrote: > > On Thu, 20 Mar 2003, Giuliano Pochini wrote: > > > > > >> Ok, but how do I build the sg list when bufsize!=sz*periods ? Take > > >> the example above: have I to build 4 periods and let the last one > > >> smaller than 22052 ? > > > >

Re: [Alsa-devel] period crossing page boundary

2003-03-20 Thread Giuliano Pochini
>> Ok, but how do I build the sg list when bufsize!=sz*periods ? Take >> the example above: have I to build 4 periods and let the last one >> smaller than 22052 ? > > it depends on the hardware. There are no hw constraints IFAIK, but the hw does not provide the current dma address. It tells me ho

Re: [Alsa-devel] period crossing page boundary

2003-03-20 Thread Jaroslav Kysela
On Thu, 20 Mar 2003, Giuliano Pochini wrote: > > >> Ok, but how do I build the sg list when bufsize!=sz*periods ? Take > >> the example above: have I to build 4 periods and let the last one > >> smaller than 22052 ? > > > > it depends on the hardware. > > There are no hw constraints IFAIK, but t

Re: [Alsa-devel] period crossing page boundary

2003-03-20 Thread Takashi Iwai
At Thu, 20 Mar 2003 10:04:39 +0100 (CET), Giuliano Pochini wrote: > > > >> They are different: > >> > >> [aplay track.wav] > >> Mar 19 19:21:23 localhost kernel: pcm_hw_params (bufsize=88200 periods=3 > >> persize=22052) > >> > >> bufsize==88200 != 3*22052 == 66156 > > > > Note that there is no

Re: [Alsa-devel] period crossing page boundary

2003-03-20 Thread Giuliano Pochini
>> They are different: >> >> [aplay track.wav] >> Mar 19 19:21:23 localhost kernel: pcm_hw_params (bufsize=88200 periods=3 >> persize=22052) >> >> bufsize==88200 != 3*22052 == 66156 > > Note that there is no guarantee that the periods == integer value. > If your hardware doesn't allow to set peri

Re: [Alsa-devel] period crossing page boundary

2003-03-19 Thread Jaroslav Kysela
On 19 Mar 2003, Giuliano Pochini wrote: > > > I'm facing another *Ł%@ problem. When period size is a multiple or > > > submultiple of PAGE_SIZE, it works fine, but when it isn't, sound > > > clicks, pops, repeapeapeats, skps :(( And since the period never crosses > > > physically the page boundary

Re: [Alsa-devel] period crossing page boundary

2003-03-19 Thread Giuliano Pochini
> > I'm facing another *£%@ problem. When period size is a multiple or > > submultiple of PAGE_SIZE, it works fine, but when it isn't, sound > > clicks, pops, repeapeapeats, skps :(( And since the period never crosses > > physically the page boundary because I split it when it happens, I can't > >

Re: [Alsa-devel] period crossing page boundary

2003-03-19 Thread Takashi Iwai
At 19 Mar 2003 12:24:30 +, Giuliano Pochini wrote: > > > I'm facing another *£%@ problem. When period size is a multiple or > submultiple of PAGE_SIZE, it works fine, but when it isn't, sound > clicks, pops, repeapeapeats, skps :(( And since the period never crosses > physically the page boun

[Alsa-devel] period crossing page boundary

2003-03-19 Thread Giuliano Pochini
I'm facing another *£%@ problem. When period size is a multiple or submultiple of PAGE_SIZE, it works fine, but when it isn't, sound clicks, pops, repeapeapeats, skps :(( And since the period never crosses physically the page boundary because I split it when it happens, I can't imagine what's wron