[alsa-devel] Effect of CONFIG_SND_PCM_OSS_PLUGINS
Unless CONFIG_SND_PCM_OSS_PLUGINS is set then with my driver the userspace (and OSS) app mpg123 doesn't work properly - not outputting any sound.
Is this likely to be a problem with my driver or with the app?
Adrian
Adrian McMenamin wrote:
Unless CONFIG_SND_PCM_OSS_PLUGINS is set then with my driver the userspace (and OSS) app mpg123 doesn't work properly - not outputting any sound.
This symbol enables (limited) automatic sample rate/format conversion.
Apparently, your sound device does not support any of mpg123's supported sample formats.
Is this likely to be a problem with my driver or with the app?
I would say that the problem is the missing CONFIG_SND_PCM_OSS_PLUGINS. ;-)
Well, your driver does support S16_LE, doesn't it?
Regards, Clemens
On 25/07/07, Clemens Ladisch cladisch@fastmail.net wrote:
Adrian McMenamin wrote:
Unless CONFIG_SND_PCM_OSS_PLUGINS is set then with my driver the userspace (and OSS) app mpg123 doesn't work properly - not outputting any sound.
This symbol enables (limited) automatic sample rate/format conversion.
Apparently, your sound device does not support any of mpg123's supported sample formats.
Is this likely to be a problem with my driver or with the app?
I would say that the problem is the missing CONFIG_SND_PCM_OSS_PLUGINS. ;-)
Well, your driver does support S16_LE, doesn't it?
I think so
.formats = (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_IMA_ADPCM),
Adrian McMenamin wrote:
On 25/07/07, Clemens Ladisch cladisch@fastmail.net wrote:
Well, your driver does support S16_LE, doesn't it?
I think so
.formats = (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_IMA_ADPCM),
Looks OK.
What are the other snd_pcm_hardware settings?
Regards, Clemens
On 27/07/07, Clemens Ladisch cladisch@fastmail.net wrote:
Adrian McMenamin wrote:
On 25/07/07, Clemens Ladisch cladisch@fastmail.net wrote:
Well, your driver does support S16_LE, doesn't it?
I think so
.formats = (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_IMA_ADPCM),
Looks OK.
What are the other snd_pcm_hardware settings?
static struct snd_pcm_hardware snd_pcm_aica_playback_hw = { .info = (SNDRV_PCM_INFO_NONINTERLEAVED), .formats = (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_IMA_ADPCM), .rates = SNDRV_PCM_RATE_8000_48000, .rate_min = 8000, .rate_max = 48000, .channels_min = 1, .channels_max = 2, .buffer_bytes_max = AICA_BUFFER_SIZE, .period_bytes_min = AICA_PERIOD_SIZE, .period_bytes_max = AICA_PERIOD_SIZE, .periods_min = AICA_PERIOD_NUMBER, .periods_max = AICA_PERIOD_NUMBER, };
#define AICA_BUFFER_SIZE 0x8000 #define AICA_PERIOD_SIZE 0x800 #define AICA_PERIOD_NUMBER 16
At Fri, 27 Jul 2007 08:15:13 +0100, Adrian McMenamin wrote:
On 27/07/07, Clemens Ladisch cladisch@fastmail.net wrote:
Adrian McMenamin wrote:
On 25/07/07, Clemens Ladisch cladisch@fastmail.net wrote:
Well, your driver does support S16_LE, doesn't it?
I think so
.formats = (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_IMA_ADPCM),
Looks OK.
What are the other snd_pcm_hardware settings?
static struct snd_pcm_hardware snd_pcm_aica_playback_hw = { .info = (SNDRV_PCM_INFO_NONINTERLEAVED),
This one.
Takashi
On 27/07/07, Takashi Iwai tiwai@suse.de wrote:
At Fri, 27 Jul 2007 08:15:13 +0100, Adrian McMenamin wrote:
On 27/07/07, Clemens Ladisch cladisch@fastmail.net wrote:
Adrian McMenamin wrote:
On 25/07/07, Clemens Ladisch cladisch@fastmail.net wrote:
Well, your driver does support S16_LE, doesn't it?
I think so
.formats = (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_IMA_ADPCM),
Looks OK.
What are the other snd_pcm_hardware settings?
static struct snd_pcm_hardware snd_pcm_aica_playback_hw = { .info = (SNDRV_PCM_INFO_NONINTERLEAVED),
This one.
Sorry. "This one" what? Is this the reason why mpg123 has difficulties without the plugin? As long as it is not a fault with the driver as opposed to a reflection of the hardware, then I am happy.
At Fri, 27 Jul 2007 10:50:29 +0100, Adrian McMenamin wrote:
On 27/07/07, Takashi Iwai tiwai@suse.de wrote:
At Fri, 27 Jul 2007 08:15:13 +0100, Adrian McMenamin wrote:
On 27/07/07, Clemens Ladisch cladisch@fastmail.net wrote:
Adrian McMenamin wrote:
On 25/07/07, Clemens Ladisch cladisch@fastmail.net wrote:
Well, your driver does support S16_LE, doesn't it?
I think so
.formats = (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_IMA_ADPCM),
Looks OK.
What are the other snd_pcm_hardware settings?
static struct snd_pcm_hardware snd_pcm_aica_playback_hw = { .info = (SNDRV_PCM_INFO_NONINTERLEAVED),
This one.
Sorry. "This one" what? Is this the reason why mpg123 has difficulties without the plugin? As long as it is not a fault with the driver as opposed to a reflection of the hardware, then I am happy.
You need a conversion from INTERLEAVED to NONINTERLEAVED.
Takashi
participants (3)
-
Adrian McMenamin
-
Clemens Ladisch
-
Takashi Iwai