Zero-conf ALSA
I would like to gather a list of the work remaining to be done to achieve "zero-conf" ALSA. With the increasing maturity of dmix and softvol we are very close to this goal, and should be able to provide basic soundcard functionality that users expect (mixing, volume control, and OSS emulation) without requiring them to delve into cryptic config files.
I propose to open a tracking bug in the ALSA BTS to gather all reports of end users having to modify the config to get a working setup. AFAICT the remaining problems are:
1. Devices which require dmix and/or softvol but are lacking the required entries in the /usr/share/alsa/cards/ file.
2. User-space OSS emulation over dmix requires period and the buffer sizes to be set to powers of two.
#1 can only be solved by gathering user reports.
Can #2 be solved by having dmix prefer power of two period/buffer sizes for the slave hw PCM by default? AFAICT this should work unless an ALSA app has opened the device first and set an incompatible buffer size.
Are there currently any other cases where an end user would have to create a custom ALSA config to enable basic functionality?
Lee
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
At Wed, 23 Nov 2005 23:03:44 -0500,
Quoted 12 lines · Lee Revell
I would like to gather a list of the work remaining to be done to achieve "zero-conf" ALSA. With the increasing maturity of dmix and softvol we are very close to this goal, and should be able to provide basic soundcard functionality that users expect (mixing, volume control, and OSS emulation) without requiring them to delve into cryptic config files.
I propose to open a tracking bug in the ALSA BTS to gather all reports of end users having to modify the config to get a working setup. AFAICT the remaining problems are:
Quoted 6 lines
1. Devices which require dmix and/or softvol but are lacking the required entries in the
/usr/share/alsa/cards/file.
2. User-space OSS emulation over dmix requires period and the buffer sizes to be set to powers of two.#1 can only be solved by gathering user reports.
Yes.
Quoted 3 lines
Can #2 be solved by having dmix prefer power of two period/buffer sizes for the slave hw PCM by default? AFAICT this should work unless an ALSA app has opened the device first and set an incompatible buffer size.
It's not so easy, unfortunately. We'll need to fix to allow dmix the arbitrary period/buffer sizes. As long as the constraints of slave PCM perido size exists, power-of-2 cannot be applied.
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
Quoted 9 lines · Takashi Iwai
Quoted 1 line
Can #2 be solved by having dmix prefer power of two period/buffer
sizes
Quoted 1 line
for the slave hw PCM by default? AFAICT this should work unless an
ALSA
Quoted 1 line
app has opened the device first and set an incompatible buffer size.
It's not so easy, unfortunately. We'll need to fix to allow dmix the arbitrary period/buffer sizes. As long as the constraints of slave PCM perido size exists, power-of-2 cannot be applied.
Is the power of 2 period size restriction imposed by OSS, or dmix?
Lee
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
Quoted 7 lines · Lee Revell
I would like to gather a list of the work remaining to be done to achieve "zero-conf" ALSA. With the increasing maturity of dmix and softvol we are very close to this goal, and should be able to provide basic soundcard functionality that users expect (mixing, volume control, and OSS emulation) without requiring them to delve into cryptic config files.
Quoted 8 lines
I propose to open a tracking bug in the ALSA BTS to gather all reports of end users having to modify the config to get a working setup. AFAICT the remaining problems are:
1. Devices which require dmix and/or softvol but are lacking the required entries in the
/usr/share/alsa/cards/file.
2. User-space OSS emulation over dmix requires period and the buffer sizes to be set to powers of two.
Another thing that's been pointed out is 5.1 upmixing of stereo sources. How much work would it be to have this work OOTB for devices that can't do it in hardware?
Lee
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
At Wed, 14 Dec 2005 17:27:01 -0500,
Quoted 5 lines · Lee Revell
Quoted 3 lines · Takashi Iwai
Quoted 1 line
Can #2 be solved by having dmix prefer power of two period/buffer
sizes
Quoted 1 line
for the slave hw PCM by default? AFAICT this should work unless an
Quoted 8 lines
Quoted 6 lines
ALSA
Quoted 1 line
app has opened the device first and set an incompatible buffer size.
It's not so easy, unfortunately. We'll need to fix to allow dmix the arbitrary period/buffer sizes. As long as the constraints of slave PCM perido size exists, power-of-2 cannot be applied.
Is the power of 2 period size restriction imposed by OSS, or dmix?
It's OSS.
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
Quoted 6 lines · Lee Revell
I would like to gather a list of the work remaining to be done to achieve "zero-conf" ALSA. With the increasing maturity of dmix and softvol we are very close to this goal, and should be able to provide basic soundcard functionality that users expect (mixing, volume control, and OSS emulation) without requiring them to delve into cryptic config files.
Hi there,
this "zero-conf" ALSA sounds very nice, but I think you forgot one aspect. What about adding dsnoop to that list, and theirby allowing users to also use their capture device multiple times?
Peter
Signature · 2 lines
To do two things at once is to do neither. -- Publilius Syrus
Quoted 10 lines · Takashi Iwai
At Wed, 14 Dec 2005 17:27:01 -0500,
Quoted 8 lines · Lee Revell
Quoted 6 lines · Takashi Iwai
Quoted 1 line
Can #2 be solved by having dmix prefer power of two period/buffer
sizes
Quoted 1 line
for the slave hw PCM by default? AFAICT this should work unless an
ALSA
Quoted 1 line
app has opened the device first and set an incompatible buffer size.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
It's not so easy, unfortunately. We'll need to fix to allow dmix the arbitrary period/buffer sizes. As long as the constraints of slave PCM perido size exists, power-of-2 cannot be applied.
Is the power of 2 period size restriction imposed by OSS, or dmix?
It's OSS.
Then why can't the OSS emulation open the slave PCM with a power of 2 period size by default? AFAICT this would only fail if someone else has already opened the slave PCM with a non power of 2 period/buffer.
Lee
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
At Thu, 15 Dec 2005 13:06:02 -0500,
Quoted 16 lines · Lee Revell
Quoted 14 lines · Takashi Iwai
At Wed, 14 Dec 2005 17:27:01 -0500,
Quoted 12 lines · Lee Revell
Quoted 9 lines · Takashi Iwai
Quoted 1 line
Can #2 be solved by having dmix prefer power of two period/buffer
sizes
Quoted 1 line
for the slave hw PCM by default? AFAICT this should work unless an
ALSA
Quoted 1 line
app has opened the device first and set an incompatible buffer size.
It's not so easy, unfortunately. We'll need to fix to allow dmix the arbitrary period/buffer sizes. As long as the constraints of slave PCM perido size exists, power-of-2 cannot be applied.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Is the power of 2 period size restriction imposed by OSS, or dmix?
It's OSS.
Then why can't the OSS emulation open the slave PCM with a power of 2 period size by default? AFAICT this would only fail if someone else has already opened the slave PCM with a non power of 2 period/buffer.
Hint: different sample rates.
dmix is running on a fixed sample rate, and if you open an OSS device with a different sample rate, you need to convert it. The period size/buffer is based on the original sample rate, so...
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click