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
Quoted 3 lines · Adrian McMenamin
Unless
CONFIG_SND_PCM_OSS_PLUGINSis 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.
Quoted 1 line
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
Quoted 10 lines · Clemens Ladisch
Quoted 3 lines · Adrian McMenamin
Unless
CONFIG_SND_PCM_OSS_PLUGINSis 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.
Quoted 8 lines
Quoted 1 line
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),
Quoted 8 lines · Adrian McMenamin
Quoted 1 line · Clemens Ladisch
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
Quoted 6 lines · Clemens Ladisch
Quoted 5 lines · Adrian McMenamin
Quoted 1 line · Clemens Ladisch
Well, your driver does support
S16_LE, doesn't it?I think so
Quoted 8 lines
Quoted 3 lines
.formats =
(SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_IMA_ADPCM),Looks OK.
What are the other
snd_pcm_hardwaresettings?
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,
Quoted 12 lines · Adrian McMenamin
Quoted 10 lines · Clemens Ladisch
Quoted 8 lines · Adrian McMenamin
Quoted 1 line · Clemens Ladisch
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),
Quoted 7 lines
Quoted 4 lines
Looks OK.
What are the other
snd_pcm_hardwaresettings?static struct
snd_pcm_hardwaresnd_pcm_aica_playback_hw= {
.info = (SNDRV_PCM_INFO_NONINTERLEAVED),
This one.
Takashi
Quoted 16 lines · Takashi Iwai
At Fri, 27 Jul 2007 08:15:13 +0100,
Quoted 14 lines · Adrian McMenamin
Quoted 12 lines · Clemens Ladisch
Quoted 8 lines · Adrian McMenamin
Quoted 1 line · Clemens Ladisch
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.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
What are the other
snd_pcm_hardwaresettings?static struct
snd_pcm_hardwaresnd_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,
Quoted 21 lines · Adrian McMenamin
Quoted 19 lines · Takashi Iwai
At Fri, 27 Jul 2007 08:15:13 +0100,
Quoted 17 lines · Adrian McMenamin
Quoted 14 lines · Clemens Ladisch
Quoted 8 lines · Adrian McMenamin
Quoted 1 line · Clemens Ladisch
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_hardwaresettings?
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
static struct
snd_pcm_hardwaresnd_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