* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2004-10-01 14:18 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2004-10-01 14:18 UTC (permalink / raw)
To: alsa-devel
The following bug has been SUBMITTED.
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000557
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Bug ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 10-01-2004 16:18 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
Bug History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Bug
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-04-09 14:09 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-04-09 14:09 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 04-09-2005 16:09 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
jdthood - 04-09-05 16:09
----------------------------------------------------------------------
Submitter: Does this bug still exist? Can you give more details about the
specific situation in which it appears?
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
======================================================================
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-04-09 14:22 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-04-09 14:22 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 04-09-2005 16:22 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
jdthood - 04-09-05 16:09
----------------------------------------------------------------------
Submitter: Does this bug still exist? Can you give more details about the
specific situation in which it appears?
----------------------------------------------------------------------
minmax - 04-09-05 16:22
----------------------------------------------------------------------
i've got new laptop since i reported this bug.
I've stumbled upon a bug when using Cinelerra (video editing software),
and since then i have patched the software to ignore the excessively wrong
results gotten from SNDCTL_DSP_GETOPTR
if(!ioctl(get_output(0), SNDCTL_DSP_GETOPTR, &info))
{
//printf("AudioOSS::device_position %d %d %d\n", info.bytes,
device->get_obits(), device->get_ochannels());
// workaround for ALSA OSS emulation driver's bug
// the problem is that if the first write to sound device was not full
lenght fragment then
// _GETOPTR returns insanely large numbers at first moments of play
if (info.bytes > 2100000000)
return 0;
else
return info.bytes /
(device->get_obits() / 8) /
device->get_ochannels();
}
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
======================================================================
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-13 13:20 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-13 13:20 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-13-2005 15:20 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
minmax - 04-09-05 16:22
----------------------------------------------------------------------
i've got new laptop since i reported this bug.
I've stumbled upon a bug when using Cinelerra (video editing software),
and since then i have patched the software to ignore the excessively wrong
results gotten from SNDCTL_DSP_GETOPTR
if(!ioctl(get_output(0), SNDCTL_DSP_GETOPTR, &info))
{
//printf("AudioOSS::device_position %d %d %d\n", info.bytes,
device->get_obits(), device->get_ochannels());
// workaround for ALSA OSS emulation driver's bug
// the problem is that if the first write to sound device was not full
lenght fragment then
// _GETOPTR returns insanely large numbers at first moments of play
if (info.bytes > 2100000000)
return 0;
else
return info.bytes /
(device->get_obits() / 8) /
device->get_ochannels();
}
----------------------------------------------------------------------
gk4 - 05-13-05 15:20
----------------------------------------------------------------------
We are seeing the same problem for ibmtts on Fedora Core 3 using Gnome
2.10.1 & gnome-speech 0.3.6. I would like to request increasing the
priority on this 8 month old bug because it is impacting accessibility on
Linux.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-13 13:24 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-13 13:24 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-13-2005 15:24 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
gk4 - 05-13-05 15:20
----------------------------------------------------------------------
We are seeing the same problem for ibmtts on Fedora Core 3 using Gnome
2.10.1 & gnome-speech 0.3.6. I would like to request increasing the
priority on this 8 month old bug because it is impacting accessibility on
Linux.
----------------------------------------------------------------------
perex - 05-13-05 15:24
----------------------------------------------------------------------
Can someone write a short program / test utility which triggers this bug?
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-13 13:26 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-13 13:26 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-13-2005 15:26 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
perex - 05-13-05 15:24
----------------------------------------------------------------------
Can someone write a short program / test utility which triggers this bug?
----------------------------------------------------------------------
tiwai - 05-13-05 15:26
----------------------------------------------------------------------
Did you try the latest ALSA driver?
It's not clear which version causes this problem.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-13 17:35 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-13 17:35 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-13-2005 19:35 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
tiwai - 05-13-05 15:26
----------------------------------------------------------------------
Did you try the latest ALSA driver?
It's not clear which version causes this problem.
----------------------------------------------------------------------
gk4 - 05-13-05 19:35
----------------------------------------------------------------------
FC3 is using alsa-utils-1.0.6-3. Have you expclicitly fixed this problem
in a particular release?
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-13 17:38 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-13 17:38 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-13-2005 19:38 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
gk4 - 05-13-05 19:35
----------------------------------------------------------------------
FC3 is using alsa-utils-1.0.6-3. Have you expclicitly fixed this problem
in a particular release?
----------------------------------------------------------------------
tiwai - 05-13-05 19:38
----------------------------------------------------------------------
It's not the alsa-utils but ALSA drivers in kernel.
I won't be surprised if it was already fixed in ALSA 1.0.9rc3 :)
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-13 17:48 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-13 17:48 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-13-2005 19:48 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
tiwai - 05-13-05 19:38
----------------------------------------------------------------------
It's not the alsa-utils but ALSA drivers in kernel.
I won't be surprised if it was already fixed in ALSA 1.0.9rc3 :)
----------------------------------------------------------------------
gk4 - 05-13-05 19:48
----------------------------------------------------------------------
I'm running FC3 with the 2.6.10-1.766_FC3 kernel. How can I determine
which level of ALSA the kernel is using?
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-15 13:50 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-15 13:50 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-15-2005 15:50 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
gk4 - 05-13-05 19:48
----------------------------------------------------------------------
I'm running FC3 with the 2.6.10-1.766_FC3 kernel. How can I determine
which level of ALSA the kernel is using?
----------------------------------------------------------------------
tiwai - 05-15-05 15:50
----------------------------------------------------------------------
Check /proc/asound/version.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-16 14:08 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-16 14:08 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-16-2005 16:08 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
tiwai - 05-15-05 15:50
----------------------------------------------------------------------
Check /proc/asound/version.
----------------------------------------------------------------------
gk4 - 05-16-05 16:08
----------------------------------------------------------------------
My /proc/asound/version file has:
Advanced Linux Sound Architecture Driver Version 1.0.6 (Sun Aug 15
07:17:53 2004 UTC). Compiled on Feb 9 2005 for kernel 2.6.10-1.766_FC3.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-19 13:28 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-19 13:28 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-19-2005 15:28 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
gk4 - 05-16-05 16:08
----------------------------------------------------------------------
My /proc/asound/version file has:
Advanced Linux Sound Architecture Driver Version 1.0.6 (Sun Aug 15
07:17:53 2004 UTC). Compiled on Feb 9 2005 for kernel 2.6.10-1.766_FC3.
----------------------------------------------------------------------
parente - 05-19-05 15:28
----------------------------------------------------------------------
I'm trying to test this on FC4 test 3 with alsa driver 1.0.9rc3. grep isn't
turning up the original lines reported as causing the problem so maybe
they've been removed. Can someone point me to the file where this
problematic code was originally located?
There's still a clipping problem using alsa with gnome speech. I'd like to
see if it's being caused by this same bug.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-19 22:38 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-19 22:38 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-20-2005 00:38 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
parente - 05-19-05 15:28
----------------------------------------------------------------------
I'm trying to test this on FC4 test 3 with alsa driver 1.0.9rc3. grep isn't
turning up the original lines reported as causing the problem so maybe
they've been removed. Can someone point me to the file where this
problematic code was originally located?
There's still a clipping problem using alsa with gnome speech. I'd like to
see if it's being caused by this same bug.
----------------------------------------------------------------------
minmax - 05-20-05 00:38
----------------------------------------------------------------------
parente: The code that i posted is an example of WORKAROUND for the bug.
not the code from alsa, but something an application writer can do to get
around of the bug in ALSA. I have not investigated where in ALSA the bug
actually lies.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-26 15:27 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-26 15:27 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-26-2005 17:27 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
minmax - 05-20-05 00:38
----------------------------------------------------------------------
parente: The code that i posted is an example of WORKAROUND for the bug.
not the code from alsa, but something an application writer can do to get
around of the bug in ALSA. I have not investigated where in ALSA the bug
actually lies.
----------------------------------------------------------------------
Roger Mach - 05-26-05 17:27
----------------------------------------------------------------------
Summary: Fixes bug 557: SNDCTL_DSP_GETOPTR not working correctly
This patch changes snd_pcm_oss_bytes() by adding a local variable
for the frames -> bytes conversion, which means that the frame count
is no longer corrupted by this conversion.
Signed-off-by: Roger Mach <bigmach@us.ibm.com>
--- alsa-kernel/core/oss/pcm_oss.c.orig 2005-05-24 09:13:47.000000000
-0700
+++ alsa-kernel/core/oss/pcm_oss.c 2005-05-24 09:11:40.000000000
-0700
@@ -124,11 +124,12 @@ int snd_pcm_plugin_append(snd_pcm_plugin
static long snd_pcm_oss_bytes(snd_pcm_substream_t *substream, long
frames)
{
+ long bytes = 0;
snd_pcm_runtime_t *runtime = substream->runtime;
snd_pcm_uframes_t buffer_size =
snd_pcm_lib_buffer_bytes(substream);
- frames = frames_to_bytes(runtime, frames);
+ bytes = frames_to_bytes(runtime, frames);
if (buffer_size == runtime->oss.buffer_bytes)
- return frames;
+ return bytes;
return (runtime->oss.buffer_bytes * frames) / buffer_size;
}
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-27 8:56 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-27 8:56 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-27-2005 10:56 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
Roger Mach - 05-26-05 17:27
----------------------------------------------------------------------
Summary: Fixes bug 557: SNDCTL_DSP_GETOPTR not working correctly
This patch changes snd_pcm_oss_bytes() by adding a local variable
for the frames -> bytes conversion, which means that the frame count
is no longer corrupted by this conversion.
Signed-off-by: Roger Mach <bigmach@us.ibm.com>
--- alsa-kernel/core/oss/pcm_oss.c.orig 2005-05-24 09:13:47.000000000
-0700
+++ alsa-kernel/core/oss/pcm_oss.c 2005-05-24 09:11:40.000000000
-0700
@@ -124,11 +124,12 @@ int snd_pcm_plugin_append(snd_pcm_plugin
static long snd_pcm_oss_bytes(snd_pcm_substream_t *substream, long
frames)
{
+ long bytes = 0;
snd_pcm_runtime_t *runtime = substream->runtime;
snd_pcm_uframes_t buffer_size =
snd_pcm_lib_buffer_bytes(substream);
- frames = frames_to_bytes(runtime, frames);
+ bytes = frames_to_bytes(runtime, frames);
if (buffer_size == runtime->oss.buffer_bytes)
- return frames;
+ return bytes;
return (runtime->oss.buffer_bytes * frames) / buffer_size;
}
----------------------------------------------------------------------
perex - 05-27-05 10:56
----------------------------------------------------------------------
It seems like a wrong patch to me. We cannot mix frames with bytes (see
last expression). I think that there might be an overflow in the return
expression.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-27 9:04 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-27 9:04 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-27-2005 11:04 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
perex - 05-27-05 10:56
----------------------------------------------------------------------
It seems like a wrong patch to me. We cannot mix frames with bytes (see
last expression). I think that there might be an overflow in the return
expression.
----------------------------------------------------------------------
perex - 05-27-05 11:04
----------------------------------------------------------------------
Ok, attached fix2.patch might fix this issue properly. Could you test it?
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-27 13:41 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-27 13:41 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-27-2005 15:41 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
perex - 05-27-05 11:04
----------------------------------------------------------------------
Ok, attached fix2.patch might fix this issue properly. Could you test it?
----------------------------------------------------------------------
parente - 05-27-05 15:41
----------------------------------------------------------------------
perex: The fix2.patch does not work on my system. It compiles, but refuses
to be inserted into the kernel with a "symbol error." (Probably because
int64 isn't recognized on my system?)
I also tried just casting to regular "int" but that does not solve the
problem. Output from gnome-speech is still clipped.
What about the patch submitted by Roger Mach? I can compile and install
it, and it appears to correct the problem without introducing others.
Maybe the last expression computes the number of bytes properly using the
number of frames?
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-30 7:51 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-30 7:51 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-30-2005 09:51 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
parente - 05-27-05 15:41
----------------------------------------------------------------------
perex: The fix2.patch does not work on my system. It compiles, but refuses
to be inserted into the kernel with a "symbol error." (Probably because
int64 isn't recognized on my system?)
I also tried just casting to regular "int" but that does not solve the
problem. Output from gnome-speech is still clipped.
What about the patch submitted by Roger Mach? I can compile and install
it, and it appears to correct the problem without introducing others.
Maybe the last expression computes the number of bytes properly using the
number of frames?
----------------------------------------------------------------------
perex - 05-30-05 09:51
----------------------------------------------------------------------
Could you try 1.0.9 final? My patch is there and compilation should be
fixed.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
05-30-05 09:51 perex Note Added: 0004798
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-31 12:04 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-31 12:04 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To:
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-31-2005 14:04 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
perex - 05-30-05 09:51
----------------------------------------------------------------------
Could you try 1.0.9 final? My patch is there and compilation should be
fixed.
----------------------------------------------------------------------
parente - 05-31-05 14:04
----------------------------------------------------------------------
perex: I can now compile and insert the module into the kernel on my
machine.
However, the clipping problem still remains. Considering that Roger Mach's
patch works, I do not believe this is an overflow problem. Rather, the bug
seems to stem from an incorrect calculation involving bytes instead of the
desired frames.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
05-30-05 09:51 perex Note Added: 0004798
05-31-05 14:04 parente Note Added: 0004831
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-31 13:54 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-31 13:54 UTC (permalink / raw)
To: alsa-devel
The following issue has been ASSIGNED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To: perex
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-31-2005 15:54 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
jdthood - 04-09-05 16:09
----------------------------------------------------------------------
Submitter: Does this bug still exist? Can you give more details about the
specific situation in which it appears?
----------------------------------------------------------------------
minmax - 04-09-05 16:22
----------------------------------------------------------------------
i've got new laptop since i reported this bug.
I've stumbled upon a bug when using Cinelerra (video editing software),
and since then i have patched the software to ignore the excessively wrong
results gotten from SNDCTL_DSP_GETOPTR
if(!ioctl(get_output(0), SNDCTL_DSP_GETOPTR, &info))
{
//printf("AudioOSS::device_position %d %d %d\n", info.bytes,
device->get_obits(), device->get_ochannels());
// workaround for ALSA OSS emulation driver's bug
// the problem is that if the first write to sound device was not full
lenght fragment then
// _GETOPTR returns insanely large numbers at first moments of play
if (info.bytes > 2100000000)
return 0;
else
return info.bytes /
(device->get_obits() / 8) /
device->get_ochannels();
}
----------------------------------------------------------------------
gk4 - 05-13-05 15:20
----------------------------------------------------------------------
We are seeing the same problem for ibmtts on Fedora Core 3 using Gnome
2.10.1 & gnome-speech 0.3.6. I would like to request increasing the
priority on this 8 month old bug because it is impacting accessibility on
Linux.
----------------------------------------------------------------------
perex - 05-13-05 15:24
----------------------------------------------------------------------
Can someone write a short program / test utility which triggers this bug?
----------------------------------------------------------------------
tiwai - 05-13-05 15:26
----------------------------------------------------------------------
Did you try the latest ALSA driver?
It's not clear which version causes this problem.
----------------------------------------------------------------------
gk4 - 05-13-05 19:35
----------------------------------------------------------------------
FC3 is using alsa-utils-1.0.6-3. Have you expclicitly fixed this problem
in a particular release?
----------------------------------------------------------------------
tiwai - 05-13-05 19:38
----------------------------------------------------------------------
It's not the alsa-utils but ALSA drivers in kernel.
I won't be surprised if it was already fixed in ALSA 1.0.9rc3 :)
----------------------------------------------------------------------
gk4 - 05-13-05 19:48
----------------------------------------------------------------------
I'm running FC3 with the 2.6.10-1.766_FC3 kernel. How can I determine
which level of ALSA the kernel is using?
----------------------------------------------------------------------
tiwai - 05-15-05 15:50
----------------------------------------------------------------------
Check /proc/asound/version.
----------------------------------------------------------------------
gk4 - 05-16-05 16:08
----------------------------------------------------------------------
My /proc/asound/version file has:
Advanced Linux Sound Architecture Driver Version 1.0.6 (Sun Aug 15
07:17:53 2004 UTC). Compiled on Feb 9 2005 for kernel 2.6.10-1.766_FC3.
----------------------------------------------------------------------
parente - 05-19-05 15:28
----------------------------------------------------------------------
I'm trying to test this on FC4 test 3 with alsa driver 1.0.9rc3. grep isn't
turning up the original lines reported as causing the problem so maybe
they've been removed. Can someone point me to the file where this
problematic code was originally located?
There's still a clipping problem using alsa with gnome speech. I'd like to
see if it's being caused by this same bug.
----------------------------------------------------------------------
minmax - 05-20-05 00:38
----------------------------------------------------------------------
parente: The code that i posted is an example of WORKAROUND for the bug.
not the code from alsa, but something an application writer can do to get
around of the bug in ALSA. I have not investigated where in ALSA the bug
actually lies.
----------------------------------------------------------------------
Roger Mach - 05-26-05 17:27
----------------------------------------------------------------------
Summary: Fixes bug 557: SNDCTL_DSP_GETOPTR not working correctly
This patch changes snd_pcm_oss_bytes() by adding a local variable
for the frames -> bytes conversion, which means that the frame count
is no longer corrupted by this conversion.
Signed-off-by: Roger Mach <bigmach@us.ibm.com>
--- alsa-kernel/core/oss/pcm_oss.c.orig 2005-05-24 09:13:47.000000000
-0700
+++ alsa-kernel/core/oss/pcm_oss.c 2005-05-24 09:11:40.000000000
-0700
@@ -124,11 +124,12 @@ int snd_pcm_plugin_append(snd_pcm_plugin
static long snd_pcm_oss_bytes(snd_pcm_substream_t *substream, long
frames)
{
+ long bytes = 0;
snd_pcm_runtime_t *runtime = substream->runtime;
snd_pcm_uframes_t buffer_size =
snd_pcm_lib_buffer_bytes(substream);
- frames = frames_to_bytes(runtime, frames);
+ bytes = frames_to_bytes(runtime, frames);
if (buffer_size == runtime->oss.buffer_bytes)
- return frames;
+ return bytes;
return (runtime->oss.buffer_bytes * frames) / buffer_size;
}
----------------------------------------------------------------------
perex - 05-27-05 10:56
----------------------------------------------------------------------
It seems like a wrong patch to me. We cannot mix frames with bytes (see
last expression). I think that there might be an overflow in the return
expression.
----------------------------------------------------------------------
perex - 05-27-05 11:04
----------------------------------------------------------------------
Ok, attached fix2.patch might fix this issue properly. Could you test it?
----------------------------------------------------------------------
parente - 05-27-05 15:41
----------------------------------------------------------------------
perex: The fix2.patch does not work on my system. It compiles, but refuses
to be inserted into the kernel with a "symbol error." (Probably because
int64 isn't recognized on my system?)
I also tried just casting to regular "int" but that does not solve the
problem. Output from gnome-speech is still clipped.
What about the patch submitted by Roger Mach? I can compile and install
it, and it appears to correct the problem without introducing others.
Maybe the last expression computes the number of bytes properly using the
number of frames?
----------------------------------------------------------------------
perex - 05-30-05 09:51
----------------------------------------------------------------------
Could you try 1.0.9 final? My patch is there and compilation should be
fixed.
----------------------------------------------------------------------
parente - 05-31-05 14:04
----------------------------------------------------------------------
perex: I can now compile and insert the module into the kernel on my
machine.
However, the clipping problem still remains. Considering that Roger Mach's
patch works, I do not believe this is an overflow problem. Rather, the bug
seems to stem from an incorrect calculation involving bytes instead of the
desired frames.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
05-30-05 09:51 perex Note Added: 0004798
05-31-05 14:04 parente Note Added: 0004831
05-31-05 15:54 perex Status new => assigned
05-31-05 15:54 perex Assigned To => perex
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-31 13:55 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-31 13:55 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To: perex
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-31-2005 15:55 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
parente - 05-31-05 14:04
----------------------------------------------------------------------
perex: I can now compile and insert the module into the kernel on my
machine.
However, the clipping problem still remains. Considering that Roger Mach's
patch works, I do not believe this is an overflow problem. Rather, the bug
seems to stem from an incorrect calculation involving bytes instead of the
desired frames.
----------------------------------------------------------------------
perex - 05-31-05 15:55
----------------------------------------------------------------------
Please, show me contents of 'cat /proc/asound/card0/pcm0p/sub0/*' during
playback...
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
05-30-05 09:51 perex Note Added: 0004798
05-31-05 14:04 parente Note Added: 0004831
05-31-05 15:54 perex Status new => assigned
05-31-05 15:54 perex Assigned To => perex
05-31-05 15:55 perex Note Added: 0004833
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-31 14:10 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-31 14:10 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To: perex
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-31-2005 16:10 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
perex - 05-31-05 15:55
----------------------------------------------------------------------
Please, show me contents of 'cat /proc/asound/card0/pcm0p/sub0/*' during
playback...
----------------------------------------------------------------------
parente - 05-31-05 16:10
----------------------------------------------------------------------
This is the result of "cat /proc/asound/card0/pcm0p/sub0/*" for alsa 1.0.9
final during gnome-speech playback with clipped output.
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 11025 (11025/1)
period_size: 512
buffer_size: 16384
tick_time: 1000
OSS format: S16_LE
OSS channels: 1
OSS rate: 11025
OSS period bytes: 1024
OSS periods: 32
OSS period frames: 512
card: 0
device: 0
subdevice: 0
stream: PLAYBACK
id: Intel ICH
name: Intel ICH5
subname: subdevice https://bugtrack.alsa-project.org/alsa-bug/view.php?id=0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 0
64
state: RUNNING
trigger_time: 1117548261.000456634
tstamp : 1117548263.000204585
delay : 16044
avail : 340
avail_max : 15883
-----
hw_ptr : 19284
appl_ptr : 35328
tstamp_mode: NONE
period_step: 1
sleep_min: 0
avail_min: 1
xfer_align: 1
start_threshold: 1
stop_threshold: 16384
silence_threshold: 528
silence_size: 528
boundary: 1073741824
And here is the result of the cat command while running the same
gnome-speech test under alsa 1.0.9rc3 with Roger Mach's patch.
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 11025 (11025/1)
period_size: 512
buffer_size: 16384
tick_time: 1000
OSS format: S16_LE
OSS channels: 1
OSS rate: 11025
OSS period bytes: 1024
OSS periods: 32
OSS period frames: 512
card: 0
device: 0
subdevice: 0
stream: PLAYBACK
id: Intel ICH
name: Intel ICH5
subname: subdevice https://bugtrack.alsa-project.org/alsa-bug/view.php?id=0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 0
64
state: RUNNING
trigger_time: 1117548454.000182497
tstamp : 1117548455.000644206
delay : 11518
avail : 4866
avail_max : 15883
-----
hw_ptr : 16130
appl_ptr : 27648
tstamp_mode: NONE
period_step: 1
sleep_min: 0
avail_min: 1
xfer_align: 1
start_threshold: 1
stop_threshold: 16384
silence_threshold: 528
silence_size: 528
boundary: 1073741824
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
05-30-05 09:51 perex Note Added: 0004798
05-31-05 14:04 parente Note Added: 0004831
05-31-05 15:54 perex Status new => assigned
05-31-05 15:54 perex Assigned To => perex
05-31-05 15:55 perex Note Added: 0004833
05-31-05 16:10 parente Note Added: 0004834
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-31 14:41 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-31 14:41 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To: perex
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-31-2005 16:41 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
parente - 05-31-05 16:10
----------------------------------------------------------------------
This is the result of "cat /proc/asound/card0/pcm0p/sub0/*" for alsa 1.0.9
final during gnome-speech playback with clipped output.
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 11025 (11025/1)
period_size: 512
buffer_size: 16384
tick_time: 1000
OSS format: S16_LE
OSS channels: 1
OSS rate: 11025
OSS period bytes: 1024
OSS periods: 32
OSS period frames: 512
card: 0
device: 0
subdevice: 0
stream: PLAYBACK
id: Intel ICH
name: Intel ICH5
subname: subdevice https://bugtrack.alsa-project.org/alsa-bug/view.php?id=0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 0
64
state: RUNNING
trigger_time: 1117548261.000456634
tstamp : 1117548263.000204585
delay : 16044
avail : 340
avail_max : 15883
-----
hw_ptr : 19284
appl_ptr : 35328
tstamp_mode: NONE
period_step: 1
sleep_min: 0
avail_min: 1
xfer_align: 1
start_threshold: 1
stop_threshold: 16384
silence_threshold: 528
silence_size: 528
boundary: 1073741824
And here is the result of the cat command while running the same
gnome-speech test under alsa 1.0.9rc3 with Roger Mach's patch.
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 11025 (11025/1)
period_size: 512
buffer_size: 16384
tick_time: 1000
OSS format: S16_LE
OSS channels: 1
OSS rate: 11025
OSS period bytes: 1024
OSS periods: 32
OSS period frames: 512
card: 0
device: 0
subdevice: 0
stream: PLAYBACK
id: Intel ICH
name: Intel ICH5
subname: subdevice https://bugtrack.alsa-project.org/alsa-bug/view.php?id=0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 0
64
state: RUNNING
trigger_time: 1117548454.000182497
tstamp : 1117548455.000644206
delay : 11518
avail : 4866
avail_max : 15883
-----
hw_ptr : 16130
appl_ptr : 27648
tstamp_mode: NONE
period_step: 1
sleep_min: 0
avail_min: 1
xfer_align: 1
start_threshold: 1
stop_threshold: 16384
silence_threshold: 528
silence_size: 528
boundary: 1073741824
----------------------------------------------------------------------
perex - 05-31-05 16:41
----------------------------------------------------------------------
Please, try oss-optr-fix3.patch . It should be the final and right fix.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
05-30-05 09:51 perex Note Added: 0004798
05-31-05 14:04 parente Note Added: 0004831
05-31-05 15:54 perex Status new => assigned
05-31-05 15:54 perex Assigned To => perex
05-31-05 15:55 perex Note Added: 0004833
05-31-05 16:10 parente Note Added: 0004834
05-31-05 16:38 perex File Added: oss-optr-fix3.patch
05-31-05 16:41 perex Note Added: 0004837
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-31 14:55 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-31 14:55 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To: perex
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-31-2005 16:55 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
perex - 05-31-05 16:41
----------------------------------------------------------------------
Please, try oss-optr-fix3.patch . It should be the final and right fix.
----------------------------------------------------------------------
tiwai - 05-31-05 16:55
----------------------------------------------------------------------
Hmm, I'm just reading the code again, and afraid that the fix3 patch isn't
right, if I understand correctly.
oss.bytes for playback contains the bytes actually transferred to h/w
buffer, i.e. the OSS-adjusted position of appl_ptr. Then, getoptr.bytes
should return simply
oss.bytes - frames_to_bytes(delay)
without fixup. This means, setting fixup = 0 for playback should
suffice.
The above assumes that getoptr returns the "hwptr" for OSS.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
05-30-05 09:51 perex Note Added: 0004798
05-31-05 14:04 parente Note Added: 0004831
05-31-05 15:54 perex Status new => assigned
05-31-05 15:54 perex Assigned To => perex
05-31-05 15:55 perex Note Added: 0004833
05-31-05 16:10 parente Note Added: 0004834
05-31-05 16:38 perex File Added: oss-optr-fix3.patch
05-31-05 16:41 perex Note Added: 0004837
05-31-05 16:55 tiwai Note Added: 0004838
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-31 14:56 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-31 14:56 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To: perex
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-31-2005 16:56 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
tiwai - 05-31-05 16:55
----------------------------------------------------------------------
Hmm, I'm just reading the code again, and afraid that the fix3 patch isn't
right, if I understand correctly.
oss.bytes for playback contains the bytes actually transferred to h/w
buffer, i.e. the OSS-adjusted position of appl_ptr. Then, getoptr.bytes
should return simply
oss.bytes - frames_to_bytes(delay)
without fixup. This means, setting fixup = 0 for playback should
suffice.
The above assumes that getoptr returns the "hwptr" for OSS.
----------------------------------------------------------------------
parente - 05-31-05 16:56
----------------------------------------------------------------------
Applied oss-optr-fix3.patch. Ran gnome-speech's test-speech utility
callback test. Speech is still clipped as before.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
05-30-05 09:51 perex Note Added: 0004798
05-31-05 14:04 parente Note Added: 0004831
05-31-05 15:54 perex Status new => assigned
05-31-05 15:54 perex Assigned To => perex
05-31-05 15:55 perex Note Added: 0004833
05-31-05 16:10 parente Note Added: 0004834
05-31-05 16:38 perex File Added: oss-optr-fix3.patch
05-31-05 16:41 perex Note Added: 0004837
05-31-05 16:55 tiwai Note Added: 0004838
05-31-05 16:56 parente Note Added: 0004839
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-31 15:14 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-31 15:14 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To: perex
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-31-2005 17:14 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
tiwai - 05-31-05 17:13
----------------------------------------------------------------------
Try fix4 patch.
----------------------------------------------------------------------
perex - 05-31-05 17:14
----------------------------------------------------------------------
Ok, try fix4 patch, please.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
05-30-05 09:51 perex Note Added: 0004798
05-31-05 14:04 parente Note Added: 0004831
05-31-05 15:54 perex Status new => assigned
05-31-05 15:54 perex Assigned To => perex
05-31-05 15:55 perex Note Added: 0004833
05-31-05 16:10 parente Note Added: 0004834
05-31-05 16:38 perex File Added: oss-optr-fix3.patch
05-31-05 16:41 perex Note Added: 0004837
05-31-05 16:55 tiwai Note Added: 0004838
05-31-05 16:56 parente Note Added: 0004839
05-31-05 17:02 parente Note Edited: 0004839
05-31-05 17:13 tiwai Note Added: 0004840
05-31-05 17:13 perex File Added: oss-optr-fix4.patch
05-31-05 17:13 tiwai File Added: pcm-oss-ptr-fix4.diff
05-31-05 17:14 perex Note Added: 0004841
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-31 15:18 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-31 15:18 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To: perex
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-31-2005 17:18 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
perex - 05-31-05 17:14
----------------------------------------------------------------------
Ok, try fix4 patch, please.
----------------------------------------------------------------------
perex - 05-31-05 17:18
----------------------------------------------------------------------
Nice situation :-) Two patches in one moment....
Takashi, I think that your patch pcm-oss-ptr-fix4.diff is not correct,
because info.blocks should count all buffered data from application (I may
be wrong of course).
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
05-30-05 09:51 perex Note Added: 0004798
05-31-05 14:04 parente Note Added: 0004831
05-31-05 15:54 perex Status new => assigned
05-31-05 15:54 perex Assigned To => perex
05-31-05 15:55 perex Note Added: 0004833
05-31-05 16:10 parente Note Added: 0004834
05-31-05 16:38 perex File Added: oss-optr-fix3.patch
05-31-05 16:41 perex Note Added: 0004837
05-31-05 16:55 tiwai Note Added: 0004838
05-31-05 16:56 parente Note Added: 0004839
05-31-05 17:02 parente Note Edited: 0004839
05-31-05 17:13 tiwai Note Added: 0004840
05-31-05 17:13 perex File Added: oss-optr-fix4.patch
05-31-05 17:13 tiwai File Added: pcm-oss-ptr-fix4.diff
05-31-05 17:14 perex Note Added: 0004841
05-31-05 17:18 perex Note Added: 0004842
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-31 15:39 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-31 15:39 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To: perex
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-31-2005 17:39 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
perex - 05-31-05 17:18
----------------------------------------------------------------------
Nice situation :-) Two patches in one moment....
Takashi, I think that your patch pcm-oss-ptr-fix4.diff is not correct,
because info.blocks should count all buffered data from application (I may
be wrong of course).
----------------------------------------------------------------------
tiwai - 05-31-05 17:39
----------------------------------------------------------------------
I'm really puzzled what's the correct implementation of blocks.
And, yes, my patch isn't correct anyway for blocks field, but the current
implementation seems also wrong, too.
Looking at the other OSS/free codes, the blocks field contains basically
(snd_pcm_avail() / fragsize). That is, for playback, the empty space on
the ring buffer / fragsize.
So, it should be like
info.blocks = (runtime->oss.buffer_bytes - frames_to_bytes(delay) -
fixup) / runtime->oss.period_bytes;
for playback.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
05-30-05 09:51 perex Note Added: 0004798
05-31-05 14:04 parente Note Added: 0004831
05-31-05 15:54 perex Status new => assigned
05-31-05 15:54 perex Assigned To => perex
05-31-05 15:55 perex Note Added: 0004833
05-31-05 16:10 parente Note Added: 0004834
05-31-05 16:38 perex File Added: oss-optr-fix3.patch
05-31-05 16:41 perex Note Added: 0004837
05-31-05 16:55 tiwai Note Added: 0004838
05-31-05 16:56 parente Note Added: 0004839
05-31-05 17:02 parente Note Edited: 0004839
05-31-05 17:13 tiwai Note Added: 0004840
05-31-05 17:13 perex File Added: oss-optr-fix4.patch
05-31-05 17:13 tiwai File Added: pcm-oss-ptr-fix4.diff
05-31-05 17:14 perex Note Added: 0004841
05-31-05 17:18 perex Note Added: 0004842
05-31-05 17:39 tiwai Note Added: 0004843
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-31 15:44 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-31 15:44 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To: perex
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-31-2005 17:44 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
tiwai - 05-31-05 17:39
----------------------------------------------------------------------
I'm really puzzled what's the correct implementation of blocks.
And, yes, my patch isn't correct anyway for blocks field, but the current
implementation seems also wrong, too.
Looking at the other OSS/free codes, the blocks field contains basically
(snd_pcm_avail() / fragsize). That is, for playback, the empty space on
the ring buffer / fragsize.
So, it should be like
info.blocks = (runtime->oss.buffer_bytes - frames_to_bytes(delay) -
fixup) / runtime->oss.period_bytes;
for playback.
----------------------------------------------------------------------
parente - 05-31-05 17:44
----------------------------------------------------------------------
pcm-oss-ptr-fix4.diff appears to fix the problem. Speech is no longer
clipped in gnopernicus or test-speech.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
05-30-05 09:51 perex Note Added: 0004798
05-31-05 14:04 parente Note Added: 0004831
05-31-05 15:54 perex Status new => assigned
05-31-05 15:54 perex Assigned To => perex
05-31-05 15:55 perex Note Added: 0004833
05-31-05 16:10 parente Note Added: 0004834
05-31-05 16:38 perex File Added: oss-optr-fix3.patch
05-31-05 16:41 perex Note Added: 0004837
05-31-05 16:55 tiwai Note Added: 0004838
05-31-05 16:56 parente Note Added: 0004839
05-31-05 17:02 parente Note Edited: 0004839
05-31-05 17:13 tiwai Note Added: 0004840
05-31-05 17:13 perex File Added: oss-optr-fix4.patch
05-31-05 17:13 tiwai File Added: pcm-oss-ptr-fix4.diff
05-31-05 17:14 perex Note Added: 0004841
05-31-05 17:18 perex Note Added: 0004842
05-31-05 17:39 tiwai Note Added: 0004843
05-31-05 17:44 parente Note Added: 0004844
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-31 15:53 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-31 15:53 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To: perex
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-31-2005 17:52 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
parente - 05-31-05 17:44
----------------------------------------------------------------------
pcm-oss-ptr-fix4.diff appears to fix the problem. Speech is no longer
clipped in gnopernicus or test-speech.
----------------------------------------------------------------------
perex - 05-31-05 17:52
----------------------------------------------------------------------
Ok, fix5 patch is available for review. I think that info.blocks is not
used in OSS apps, but we should follow the "standard" behaviour...
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
05-30-05 09:51 perex Note Added: 0004798
05-31-05 14:04 parente Note Added: 0004831
05-31-05 15:54 perex Status new => assigned
05-31-05 15:54 perex Assigned To => perex
05-31-05 15:55 perex Note Added: 0004833
05-31-05 16:10 parente Note Added: 0004834
05-31-05 16:38 perex File Added: oss-optr-fix3.patch
05-31-05 16:41 perex Note Added: 0004837
05-31-05 16:55 tiwai Note Added: 0004838
05-31-05 16:56 parente Note Added: 0004839
05-31-05 17:02 parente Note Edited: 0004839
05-31-05 17:13 tiwai Note Added: 0004840
05-31-05 17:13 perex File Added: oss-optr-fix4.patch
05-31-05 17:13 tiwai File Added: pcm-oss-ptr-fix4.diff
05-31-05 17:14 perex Note Added: 0004841
05-31-05 17:18 perex Note Added: 0004842
05-31-05 17:39 tiwai Note Added: 0004843
05-31-05 17:44 parente Note Added: 0004844
05-31-05 17:51 perex File Added: oss-optr-fix5.patch
05-31-05 17:52 perex Note Added: 0004845
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-31 15:55 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-31 15:55 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To: perex
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-31-2005 17:55 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
perex - 05-31-05 17:52
----------------------------------------------------------------------
Ok, fix5 patch is available for review. I think that info.blocks is not
used in OSS apps, but we should follow the "standard" behaviour...
----------------------------------------------------------------------
tiwai - 05-31-05 17:55
----------------------------------------------------------------------
fix5 looks fine to me. Let's commit it and close this issue.
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
05-30-05 09:51 perex Note Added: 0004798
05-31-05 14:04 parente Note Added: 0004831
05-31-05 15:54 perex Status new => assigned
05-31-05 15:54 perex Assigned To => perex
05-31-05 15:55 perex Note Added: 0004833
05-31-05 16:10 parente Note Added: 0004834
05-31-05 16:38 perex File Added: oss-optr-fix3.patch
05-31-05 16:41 perex Note Added: 0004837
05-31-05 16:55 tiwai Note Added: 0004838
05-31-05 16:56 parente Note Added: 0004839
05-31-05 17:02 parente Note Edited: 0004839
05-31-05 17:13 tiwai Note Added: 0004840
05-31-05 17:13 perex File Added: oss-optr-fix4.patch
05-31-05 17:13 tiwai File Added: pcm-oss-ptr-fix4.diff
05-31-05 17:14 perex Note Added: 0004841
05-31-05 17:18 perex Note Added: 0004842
05-31-05 17:39 tiwai Note Added: 0004843
05-31-05 17:44 parente Note Added: 0004844
05-31-05 17:51 perex File Added: oss-optr-fix5.patch
05-31-05 17:52 perex Note Added: 0004845
05-31-05 17:55 tiwai Note Added: 0004846
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-05-31 16:06 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-05-31 16:06 UTC (permalink / raw)
To: alsa-devel
The following issue has been RESOLVED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To: perex
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 05-31-2005 18:06 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
tiwai - 05-31-05 17:55
----------------------------------------------------------------------
fix5 looks fine to me. Let's commit it and close this issue.
----------------------------------------------------------------------
perex - 05-31-05 18:06
----------------------------------------------------------------------
Ok, the problem seems to be resolved. Reopen if not....
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
05-30-05 09:51 perex Note Added: 0004798
05-31-05 14:04 parente Note Added: 0004831
05-31-05 15:54 perex Status new => assigned
05-31-05 15:54 perex Assigned To => perex
05-31-05 15:55 perex Note Added: 0004833
05-31-05 16:10 parente Note Added: 0004834
05-31-05 16:38 perex File Added: oss-optr-fix3.patch
05-31-05 16:41 perex Note Added: 0004837
05-31-05 16:55 tiwai Note Added: 0004838
05-31-05 16:56 parente Note Added: 0004839
05-31-05 17:02 parente Note Edited: 0004839
05-31-05 17:13 tiwai Note Added: 0004840
05-31-05 17:13 perex File Added: oss-optr-fix4.patch
05-31-05 17:13 tiwai File Added: pcm-oss-ptr-fix4.diff
05-31-05 17:14 perex Note Added: 0004841
05-31-05 17:18 perex Note Added: 0004842
05-31-05 17:39 tiwai Note Added: 0004843
05-31-05 17:44 parente Note Added: 0004844
05-31-05 17:51 perex File Added: oss-optr-fix5.patch
05-31-05 17:52 perex Note Added: 0004845
05-31-05 17:55 tiwai Note Added: 0004846
05-31-05 18:06 perex Status assigned => resolved
05-31-05 18:06 perex Resolution open => fixed
05-31-05 18:06 perex Note Added: 0004847
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 33+ messages in thread
* [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation
@ 2005-08-09 11:46 bugtrack
0 siblings, 0 replies; 33+ messages in thread
From: bugtrack @ 2005-08-09 11:46 UTC (permalink / raw)
To: alsa-devel
The following issue has been CLOSED
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=557>
======================================================================
Reported By: minmax
Assigned To: perex
======================================================================
Project: ALSA - driver
Issue ID: 557
Category: CORE OSS - pcm
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Distribution: Debian unstable
Kernel Version: vanilla 2.6.7
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 10-01-2004 16:18 CEST
Last Modified: 08-09-2005 13:46 CEST
======================================================================
Summary: SNDCTL_DSP_GETOPTR not working correctly in specific
situation
Description:
When the first few writes to the oss emulation device are done in specific
way, SNDCTL_DSP_GETOPTR returns wrongly huge results in info.bytes
======================================================================
----------------------------------------------------------------------
tiwai - 05-31-05 17:55
----------------------------------------------------------------------
fix5 looks fine to me. Let's commit it and close this issue.
----------------------------------------------------------------------
perex - 05-31-05 18:06
----------------------------------------------------------------------
Ok, the problem seems to be resolved. Reopen if not....
Issue History
Date Modified Username Field Change
======================================================================
10-01-04 16:18 minmax New Issue
10-01-04 16:18 minmax Distribution => Debian unstable
10-01-04 16:18 minmax Kernel Version => vanilla 2.6.7
10-02-04 10:52 minmax Issue Monitored: minmax
04-09-05 16:09 jdthood Note Added: 0004406
04-09-05 16:22 minmax Note Added: 0004410
05-13-05 15:20 gk4 Note Added: 0004646
05-13-05 15:24 perex Note Added: 0004647
05-13-05 15:26 tiwai Note Added: 0004648
05-13-05 19:35 gk4 Note Added: 0004651
05-13-05 19:38 tiwai Note Added: 0004652
05-13-05 19:48 gk4 Note Added: 0004655
05-15-05 15:50 tiwai Note Added: 0004663
05-16-05 16:08 gk4 Note Added: 0004676
05-19-05 15:28 parente Note Added: 0004693
05-20-05 00:38 minmax Note Added: 0004698
05-26-05 17:27 Roger Mach Note Added: 0004738
05-27-05 10:56 perex Note Added: 0004742
05-27-05 11:03 perex File Added: fix2.patch
05-27-05 11:04 perex Note Added: 0004743
05-27-05 15:41 parente Note Added: 0004752
05-30-05 09:51 perex Note Added: 0004798
05-31-05 14:04 parente Note Added: 0004831
05-31-05 15:54 perex Status new => assigned
05-31-05 15:54 perex Assigned To => perex
05-31-05 15:55 perex Note Added: 0004833
05-31-05 16:10 parente Note Added: 0004834
05-31-05 16:38 perex File Added: oss-optr-fix3.patch
05-31-05 16:41 perex Note Added: 0004837
05-31-05 16:55 tiwai Note Added: 0004838
05-31-05 16:56 parente Note Added: 0004839
05-31-05 17:02 parente Note Edited: 0004839
05-31-05 17:13 tiwai Note Added: 0004840
05-31-05 17:13 perex File Added: oss-optr-fix4.patch
05-31-05 17:13 tiwai File Added: pcm-oss-ptr-fix4.diff
05-31-05 17:14 perex Note Added: 0004841
05-31-05 17:18 perex Note Added: 0004842
05-31-05 17:39 tiwai Note Added: 0004843
05-31-05 17:44 parente Note Added: 0004844
05-31-05 17:51 perex File Added: oss-optr-fix5.patch
05-31-05 17:52 perex Note Added: 0004845
05-31-05 17:55 tiwai Note Added: 0004846
05-31-05 18:06 perex Status assigned => resolved
05-31-05 18:06 perex Resolution open => fixed
05-31-05 18:06 perex Note Added: 0004847
08-09-05 13:46 perex Status resolved => closed
======================================================================
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 33+ messages in thread
end of thread, other threads:[~2005-08-09 11:46 UTC | newest]
Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-31 15:44 [ALSA - driver 0000557]: SNDCTL_DSP_GETOPTR not working correctly in specific situation bugtrack
-- strict thread matches above, loose matches on Subject: below --
2005-08-09 11:46 bugtrack
2005-05-31 16:06 bugtrack
2005-05-31 15:55 bugtrack
2005-05-31 15:53 bugtrack
2005-05-31 15:39 bugtrack
2005-05-31 15:18 bugtrack
2005-05-31 15:14 bugtrack
2005-05-31 14:56 bugtrack
2005-05-31 14:55 bugtrack
2005-05-31 14:41 bugtrack
2005-05-31 14:10 bugtrack
2005-05-31 13:55 bugtrack
2005-05-31 13:54 bugtrack
2005-05-31 12:04 bugtrack
2005-05-30 7:51 bugtrack
2005-05-27 13:41 bugtrack
2005-05-27 9:04 bugtrack
2005-05-27 8:56 bugtrack
2005-05-26 15:27 bugtrack
2005-05-19 22:38 bugtrack
2005-05-19 13:28 bugtrack
2005-05-16 14:08 bugtrack
2005-05-15 13:50 bugtrack
2005-05-13 17:48 bugtrack
2005-05-13 17:38 bugtrack
2005-05-13 17:35 bugtrack
2005-05-13 13:26 bugtrack
2005-05-13 13:24 bugtrack
2005-05-13 13:20 bugtrack
2005-04-09 14:22 bugtrack
2005-04-09 14:09 bugtrack
2004-10-01 14:18 bugtrack
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.