[alsa-devel] [ASoC] Sample format non available
Dear list,
I'm currently implementing a ASoC solution for a custom chip and I've written a codec, I2S, PCM, and machine driver. However, when using aplay I get the following error (requested format was: 2):
root:~# aplay -M -D hw:0,0 test.wav Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo aplay: set_params:906: Sample format non available
However, I've told each piece involved, that it is capable of playing S16_LE. So I don't know what I am missing here?
Should I provide more debugging output like RULES_DEBUG output from sound/core/pcm_native.c?
,----[ CODEC DAI ] | #define CS4265_RATES (SNDRV_PCM_RATE_8000_192000) | #define CS4265_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE) | | struct snd_soc_codec_dai cs4265_dai = { | .name = "CS4265", | .playback = { | .stream_name = "Playback", | .channels_min = 1, | .channels_max = 2, | .rates = CS4265_RATES, | .formats = CS4265_FORMATS,}, | .capture = { | .stream_name = "Capture", | .channels_min = 1, | .channels_max = 2, | .rates = CS4265_RATES, | .formats = CS4265_FORMATS,}, | [...] | }; `----
,----[ CPU DAI ] | #define CHIP_I2S_RATES (SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \ | SNDRV_PCM_RATE_48000) | #define CHIP_I2S_FORMATS (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE) | | struct snd_soc_cpu_dai chip_i2s_dai = { | /* DAI description */ | [...] | /* DAI callbacks */ | [...] | /* DAI capabilities */ | .playback = { | .channels_min = 2, | .channels_max = 2, | .rates = CHIP_I2S_RATES, | .formats = CHIP_I2S_FORMATS,}, | .capture = { | .channels_min = 2, | .channels_max = 2, | .rates = CHIP_I2S_RATES, | .formats = CHIP_I2S_FORMATS,}, | /* ops */ | [...] `----
,----[ HW DAI ] | static const struct snd_pcm_hardware chip_pcm_hardware = { | .info = SNDRV_PCM_INFO_MMAP | | SNDRV_PCM_INFO_MMAP_VALID | /* For OSS emulation */ | SNDRV_PCM_INFO_BLOCK_TRANSFER | /* For OSS emulation */ | SNDRV_PCM_INFO_NONINTERLEAVED, | .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 | | SNDRV_PCM_FMTBIT_U16_LE | SNDRV_PCM_FMTBIT_S16_LE | | .channels_min = 2, /* Stereo */ | .channels_max = 2, | .period_bytes_min = 32, | .period_bytes_max = 8192, | .periods_min = 2, | .periods_max = 1024, /* PAGE_SIZE/sizeof(chip_dma_desc), */ | .buffer_bytes_max = 32 * 1024, | .fifo_size = 0, /* Still unused in ALSA? */ | }; `----
root:~# uname -a Linux 2.6.21 root:~# cat /proc/asound/version Advanced Linux Sound Architecture Driver Version 1.0.14rc3 (Wed Mar 14 07:25:50 2007 UTC). root:~# aplay --version aplay: version 1.0.14rc2 by Jaroslav Kysela perex@suse.cz
root:~# aplay -M test.wav chip-pcm: Entered chip_pcm_open board_cs4265: Entered board_cs4265_startup Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo ALSA lib pcm_plug.c:840:(snd_pcm_plug_hw_refine_cchange) Unable to find an usable client format chip-pcm: Entered chip_pcm_hw_free chip-cs4265: Entered cs4265_shutdown chip-cs4265: Entered cs4265_write board_cs4265: Entered board_cs4265_shutdown chip-pcm: Entered chip_pcm_close ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S8 ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U8 ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S16_LE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S16_BE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U16_LE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U16_BE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S24_LE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S24_BE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U24_LE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U24_BE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S32_LE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S32_BE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U32_LE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U32_BE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: FLOAT_LE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: FLOAT_BE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: FLOAT64_LE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: FLOAT64_BE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: IEC958_SUBFRAME_LE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: MU_LAW ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: A_LAW ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: IMA_ADPCM ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: GSM ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: SPECIAL ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S24_3LE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S24_3BE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U24_3LE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U24_3BE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S20_3LE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S20_3BE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U20_3LE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U20_3BE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S18_3LE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S18_3BE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U18_3LE ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U18_3BE aplay: set_params:878: Broken configuration for this PCM: no configurations available
Regards, Markus Korber
On Thu, 2007-04-26 at 15:10 +0200, Markus Korber wrote:
Dear list,
I'm currently implementing a ASoC solution for a custom chip and I've written a codec, I2S, PCM, and machine driver. However, when using aplay I get the following error (requested format was: 2):
root:~# aplay -M -D hw:0,0 test.wav Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo aplay: set_params:906: Sample format non available
However, I've told each piece involved, that it is capable of playing S16_LE. So I don't know what I am missing here?
Is your target CPU ARM based ?
If so, there is a gcc optimisation bug that causes a refinement error (like above).
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27363
Fwiw, Openembedded builds a working toolchain for ARM and ALSA.
Should I provide more debugging output like RULES_DEBUG output from sound/core/pcm_native.c?
Yes please. Can you also set SOC_DEBUG to 1 in soc-core.c
,----[ CODEC DAI ] | #define CS4265_RATES (SNDRV_PCM_RATE_8000_192000) | #define CS4265_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE) | | struct snd_soc_codec_dai cs4265_dai = { | .name = "CS4265", | .playback = { | .stream_name = "Playback", | .channels_min = 1, | .channels_max = 2, | .rates = CS4265_RATES, | .formats = CS4265_FORMATS,}, | .capture = { | .stream_name = "Capture", | .channels_min = 1, | .channels_max = 2, | .rates = CS4265_RATES, | .formats = CS4265_FORMATS,}, | [...] | }; `----
,----[ CPU DAI ] | #define CHIP_I2S_RATES (SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \ | SNDRV_PCM_RATE_48000) | #define CHIP_I2S_FORMATS (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE) | | struct snd_soc_cpu_dai chip_i2s_dai = { | /* DAI description */ | [...] | /* DAI callbacks */ | [...] | /* DAI capabilities */ | .playback = { | .channels_min = 2, | .channels_max = 2, | .rates = CHIP_I2S_RATES, | .formats = CHIP_I2S_FORMATS,}, | .capture = { | .channels_min = 2, | .channels_max = 2, | .rates = CHIP_I2S_RATES, | .formats = CHIP_I2S_FORMATS,}, | /* ops */ | [...] `----
,----[ HW DAI ] | static const struct snd_pcm_hardware chip_pcm_hardware = { | .info = SNDRV_PCM_INFO_MMAP | | SNDRV_PCM_INFO_MMAP_VALID | /* For OSS emulation */ | SNDRV_PCM_INFO_BLOCK_TRANSFER | /* For OSS emulation */ | SNDRV_PCM_INFO_NONINTERLEAVED, | .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8 | | SNDRV_PCM_FMTBIT_U16_LE | SNDRV_PCM_FMTBIT_S16_LE | | .channels_min = 2, /* Stereo */ | .channels_max = 2, | .period_bytes_min = 32, | .period_bytes_max = 8192, | .periods_min = 2, | .periods_max = 1024, /* PAGE_SIZE/sizeof(chip_dma_desc), */ | .buffer_bytes_max = 32 * 1024, | .fifo_size = 0, /* Still unused in ALSA? */ | }; `----
This looks fine. All show S16_LE and 44100 rate stereo.
root:~# uname -a Linux 2.6.21 root:~# cat /proc/asound/version Advanced Linux Sound Architecture Driver Version 1.0.14rc3 (Wed Mar 14 07:25:50 2007 UTC). root:~# aplay --version aplay: version 1.0.14rc2 by Jaroslav Kysela perex@suse.cz
root:~# aplay -M test.wav chip-pcm: Entered chip_pcm_open board_cs4265: Entered board_cs4265_startup Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo ALSA lib pcm_plug.c:840:(snd_pcm_plug_hw_refine_cchange) Unable to find an usable client format
Can you send the debug output with the debug turned on (as above) and with aplay writing directly to the hardware i.e.
aplay -Dhw:0,0 test.wav
Thanks
Liam
Thus spake Liam Girdwood:
On Thu, 2007-04-26 at 15:10 +0200, Markus Korber wrote:
I'm currently implementing a ASoC solution for a custom chip and I've written a codec, I2S, PCM, and machine driver. However, when using aplay I get the following error (requested format was: 2):
root:~# aplay -M -D hw:0,0 test.wav Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo aplay: set_params:906: Sample format non available
However, I've told each piece involved, that it is capable of playing S16_LE. So I don't know what I am missing here?
Is your target CPU ARM based ?
Yes, it's an arm926ejs.
If so, there is a gcc optimisation bug that causes a refinement error (like above).
I'm using buildroot:
,----[ arm-linux-gcc -v ] | Using built-in specs. | Target: arm-linux-uclibcgnueabi | gcc version 4.1.1 `----
Fwiw, Openembedded builds a working toolchain for ARM and ALSA.
Unfortunately, so far I have had no luck building this toolchain. I'll give it another try as soon as possible. Meanwhile I've compiled with -O1 with the results shown below.
Should I provide more debugging output like RULES_DEBUG output from sound/core/pcm_native.c?
Yes please. Can you also set SOC_DEBUG to 1 in soc-core.c [...] Can you send the debug output with the debug turned on (as above) and with aplay writing directly to the hardware i.e.
aplay -Dhw:0,0 test.wav
root:~# ./alsa-hg/alsa-utils/aplay/aplay -M -D hw:0,0 test.wav chip-pcm: Entered chip_pcm_open board_cs4265: Entered board_cs4265_startup asoc: CS4265 <-> chip-i2s info: asoc: rate mask 0xe0 asoc: min ch 2 max ch 2 asoc: min rate 32000 max rate 48000 Playing WAVE 'teACCESS = st.wav' : Signed00000000ffffffffffffffff -> 16 bit Lit tle E0000000000000012 ndian, Rate 4410FORMAT = 0 Hz, Stereo 00000000ffffffffffffffff -> 0000000000000004 SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001 SAMPLE_BITS = [0 4294967295] -> [0 4294967295] FRAME_BITS = [0 4294967295] -> [0 4294967295] CHANNELS = [0 4294967295] -> [2 2] RATE = [0 4294967295] -> [32000 48000] PERIOD_TIME = [0 4294967295] -> [0 4294967295] PERIOD_SIZE = [0 4294967295] -> [0 4294967295] PERIOD_BYTES = [0 4294967295] -> [32 8192] PERIODS = [0 4294967295] -> [2 1024] BUFFER_TIME = [0 4294967295] -> [0 4294967295] BUFFER_SIZE = [0 4294967295] -> [0 4294967295] BUFFER_BYTES = [0 4294967295] -> [32 32768] TICK_TIME = [0 4294967295] -> [10000 10000] Rule 0 [c01b0ea8]: FORMAT = 4 -> 0 aplay: set_params:878: Broken configuration for this PCM: no configurations available
Regards, Markus Korber
Thus spake Markus Korber:
Thus spake Liam Girdwood:
Yes please. Can you also set SOC_DEBUG to 1 in soc-core.c [...] Can you send the debug output with the debug turned on (as above) and with aplay writing directly to the hardware i.e.
aplay -Dhw:0,0 test.wav
So now with 4.1.2 from buildroot everything looks fine - apart from my driver :). Thanks.
root:~# aplay -M -D hw:0,0 test.wav chip-pcm: Entered chip_pcm_open board_cs4265: Entered board_cs4265_startup asoc: CS4265 <-> chip-i2s info: asoc: rate mask 0xe0 asoc: min ch 2 max ch 2 asoc: min rate 32000 max rate 48000 Playing WAVE 'teACCESS = st.wav' : Signed00000000ffffffffffffffff -> 16 bit Little E0000000000000012 ndian, Rate 4410FORMAT = 0 Hz, Stereo 00000000ffffffffffffffff -> 0000000000000004 SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001 SAMPLE_BITS = [0 4294967295] -> [0 4294967295] FRAME_BITS = [0 4294967295] -> [0 4294967295] CHANNELS = [0 4294967295] -> [2 2] RATE = [0 4294967295] -> [32000 48000] PERIOD_TIME = [0 4294967295] -> [0 4294967295] PERIOD_SIZE = [0 4294967295] -> [0 4294967295] PERIOD_BYTES = [0 4294967295] -> [32 8192] PERIODS = [0 4294967295] -> [2 1024] BUFFER_TIME = [0 4294967295] -> [0 4294967295] BUFFER_SIZE = [0 4294967295] -> [0 4294967295] BUFFER_BYTES = [0 4294967295] -> [32 32768] TICK_TIME = [0 4294967295] -> [10000 10000] Rule 0 [c01b3a4c]: FORMAT = 4 -> 4 Rule 1 [c01b3774]: SAMPLE_BITS = [0 4294967295] -> [16 16] Rule 2 [c01b38f4]: SAMPLE_BITS = [16 16] -> [16 16] Rule 3 [c01b3884]: FRAME_BITS = [0 4294967295] -> [32 32] Rule 4 [c01b39d8]: FRAME_BITS = [32 32] -> [32 32] Rule 5 [c01b39d8]: FRAME_BITS = [32 32] -> [32 32] Rule 6 [c01b38f4]: CHANNELS = [2 2] -> [2 2] Rule 7 [c01b39d8]: RATE = [32000 48000] -> [32000 48000] Rule 8 [c01b39d8]: RATE = [32000 48000] -> [32000 48000] Rule 9 [c01b38f4]: PERIODS = [2 1024] -> [2 1024] Rule 10 [c01b38f4]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647] Rule 11 [c01b39d8]: PERIOD_SIZE = [0 2147483647] -> [8 2048] Rule 12 [c01b3964]: PERIOD_SIZE = [8 2048] -> [8 2048] Rule 13 [c01b3884]: BUFFER_SIZE = [0 4294967295] -> [16 2097152] Rule 14 [c01b39d8]: BUFFER_SIZE = [16 2097152] -> [16 8192] Rule 15 [c01b3964]: BUFFER_SIZE = [16 8192] -> [16 8192] Rule 16 [c01b3964]: PERIOD_BYTES = [32 8192] -> [32 8192] Rule 17 [c01b3964]: BUFFER_BYTES = [32 32768] -> [64 32768] Rule 18 [c01b39d8]: PERIOD_TIME = [0 4294967295] -> (166 64000] Rule 19 [c01b39d8]: BUFFER_TIME = [0 4294967295] -> (333 256000] Rule 20 [c01b2a88]: BUFFER_BYTES = [64 32768] -> [64 32768] Rule 21 [c01b3848]: RATE = [32000 48000] -> [32000 48000] Rule 0 [c01b3a4c]: FORMAT = 4 -> 4 Rule 2 [c01b38f4]: SAMPLE_BITS = [16 16] -> [16 16] Rule 4 [c01b39d8]: FRAME_BITS = [32 32] -> [32 32] Rule 5 [c01b39d8]: FRAME_BITS = [32 32] -> [32 32] Rule 7 [c01b39d8]: RATE = [32000 48000] -> [32000 48000] Rule 8 [c01b39d8]: RATE = [32000 48000] -> [32000 48000] Rule 9 [c01b38f4]: PERIODS = [2 1024] -> [2 1024] Rule 10 [c01b38f4]: PERIOD_SIZE = [8 2048] -> [8 2048] Rule 12 [c01b3964]: PERIOD_SIZE = [8 2048] -> [8 2048] Rule 14 [c01b39d8]: BUFFER_SIZE = [16 8192] -> [16 8192] Rule 15 [c01b3964]: BUFFER_SIZE = [16 8192] -> [16 8192] ACCESS = 0000000000000002 -> 0000000000000002 RATE = [44100 48000] -> [44100 48000] Rule 12 [c01b3964]: PERIOD_SIZE = [8 2048] -> [8 2048] Rule 15 [c01b3964]: BUFFER_SIZE = [16 8192] -> [16 8192] Rule 18 [c01b39d8]: PERIOD_TIME = (166 64000] -> (166 46440) Rule 19 [c01b39d8]: BUFFER_TIME = (333 256000] -> (333 185760) Rule 21 [c01b3848]: RATE = [44100 48000] -> [44100 48000] Rule 7 [c01b39d8]: RATE = [44100 48000] -> [44100 48000] Rule 8 [c01b39d8]: RATE = [44100 48000] -> [44100 48000] Rule 12 [c01b3964]: PERIOD_SIZE = [8 2048] -> [8 2048] Rule 15 [c01b3964]: BUFFER_SIZE = [16 8192] -> [16 8192] RATE = [44100 44100] -> [44100 44100] Rule 12 [c01b3964]: PERIOD_SIZE = [8 2048] -> [8 2048] Rule 15 [c01b3964]: BUFFER_SIZE = [16 8192] -> [16 8192] Rule 18 [c01b39d8]: PERIOD_TIME = (166 46440) -> (181 46440) Rule 19 [c01b39d8]: BUFFER_TIME = (333 185760) -> (362 185760) Rule 21 [c01b3848]: RATE = [44100 44100] -> [44100 44100] Rule 7 [c01b39d8]: RATE = [44100 44100] -> [44100 44100] Rule 8 [c01b39d8]: RATE = [44100 44100] -> [44100 44100] Rule 12 [c01b3964]: PERIOD_SIZE = [8 2048] -> [8 2048] Rule 15 [c01b3964]: BUFFER_SIZE = [16 8192] -> [16 8192] PERIOD_TIME = (46439 46440) -> (46439 46440) Rule 7 [c01b39d8]: RATE = [44100 44100] -> [44100 44100] Rule 12 [c01b3964]: PERIOD_SIZE = [8 2048] -> [2048 2048] Rule 13 [c01b3884]: BUFFER_SIZE = [16 8192] -> [4096 8192] Rule 16 [c01b3964]: PERIOD_BYTES = [32 8192] -> [8192 8192] Rule 17 [c01b3964]: BUFFER_BYTES = [64 32768] -> [16384 32768] Rule 18 [c01b39d8]: PERIOD_TIME = (46439 46440) -> (46439 46440) Rule 19 [c01b39d8]: BUFFER_TIME = (362 185760) -> (92879 185760) Rule 20 [c01b2a88]: BUFFER_BYTES = [16384 32768] -> [16384 32768] Rule 4 [c01b39d8]: FRAME_BITS = [32 32] -> [32 32] Rule 5 [c01b39d8]: FRAME_BITS = [32 32] -> [32 32] Rule 7 [c01b39d8]: RATE = [44100 44100] -> [44100 44100] Rule 8 [c01b39d8]: RATE = [44100 44100] -> [44100 44100] Rule 9 [c01b38f4]: PERIODS = [2 1024] -> [2 4] Rule 10 [c01b38f4]: PERIOD_SIZE = [2048 2048] -> [2048 2048] Rule 11 [c01b39d8]: PERIOD_SIZE = [2048 2048] -> [2048 2048] Rule 13 [c01b3884]: BUFFER_SIZE = [4096 8192] -> [4096 8192] Rule 14 [c01b39d8]: BUFFER_SIZE = [4096 8192] -> [4096 8192] Rule 15 [c01b3964]: BUFFER_SIZE = [4096 8192] -> [4096 8192] BUFFER_TIME = (185759 185760) -> (185759 185760) Rule 8 [c01b39d8]: RATE = [44100 44100] -> [44100 44100] Rule 15 [c01b3964]: BUFFER_SIZE = [4096 8192] -> [8192 8192] Rule 17 [c01b3964]: BUFFER_BYTES = [16384 32768] -> [32768 32768] Rule 19 [c01b39d8]: BUFFER_TIME = (185759 185760) -> (185759 185760) Rule 20 [c01b2a88]: BUFFER_BYTES = [32768 32768] -> [32768 32768] Rule 5 [c01b39d8]: FRAME_BITS = [32 32] -> [32 32] Rule 8 [c01b39d8]: RATE = [44100 44100] -> [44100 44100] Rule 9 [c01b38f4]: PERIODS = [2 4] -> [4 4] Rule 10 [c01b38f4]: PERIOD_SIZE = [2048 2048] -> [2048 2048] Rule 13 [c01b3884]: BUFFER_SIZE = [8192 8192] -> [8192 8192] Rule 14 [c01b39d8]: BUFFER_SIZE = [8192 8192] -> [8192 8192] ACCESS = 0000000000000002 -> 0000000000000002 FORMAT = 0000000000000004 -> 0000000000000004 SUBFORMAT = 0000000000000001 -> 0000000000000001 SAMPLE_BITS = [16 16] -> [16 16] FRAME_BITS = [32 32] -> [32 32] CHANNELS = [2 2] -> [2 2] RATE = [44100 44100] -> [44100 44100] PERIOD_TIME = (46439 46440) -> (46439 46440) PERIOD_SIZE = [2048 2048] -> [2048 2048] PERIOD_BYTES = [8192 8192] -> [8192 8192] PERIODS = [4 4] -> [4 4] BUFFER_TIME = (185759 185760) -> (185759 185760) BUFFER_SIZE = [8192 8192] -> [8192 8192] BUFFER_BYTES = [32768 32768] -> [32768 32768] TICK_TIME = [10000 10000] -> [10000 10000] Rule 0 [c01b3a4c]: FORMAT = 4 -> 4 Rule 1 [c01b3774]: SAMPLE_BITS = [16 16] -> [16 16] Rule 2 [c01b38f4]: SAMPLE_BITS = [16 16] -> [16 16] Rule 3 [c01b3884]: FRAME_BITS = [32 32] -> [32 32] Rule 4 [c01b39d8]: FRAME_BITS = [32 32] -> [32 32] Rule 5 [c01b39d8]: FRAME_BITS = [32 32] -> [32 32] Rule 6 [c01b38f4]: CHANNELS = [2 2] -> [2 2] Rule 7 [c01b39d8]: RATE = [44100 44100] -> [44100 44100] Rule 8 [c01b39d8]: RATE = [44100 44100] -> [44100 44100] Rule 9 [c01b38f4]: PERIODS = [4 4] -> [4 4] Rule 10 [c01b38f4]: PERIOD_SIZE = [2048 2048] -> [2048 2048] Rule 11 [c01b39d8]: PERIOD_SIZE = [2048 2048] -> [2048 2048] Rule 12 [c01b3964]: PERIOD_SIZE = [2048 2048] -> [2048 2048] Rule 13 [c01b3884]: BUFFER_SIZE = [8192 8192] -> [8192 8192] Rule 14 [c01b39d8]: BUFFER_SIZE = [8192 8192] -> [8192 8192] Rule 15 [c01b3964]: BUFFER_SIZE = [8192 8192] -> [8192 8192] Rule 16 [c01b3964]: PERIOD_BYTES = [8192 8192] -> [8192 8192] Rule 17 [c01b3964]: BUFFER_BYTES = [32768 32768] -> [32768 32768] Rule 18 [c01b39d8]: PERIOD_TIME = (46439 46440) -> (46439 46440) Rule 19 [c01b39d8]: BUFFER_TIME = (185759 185760) -> (185759 185760) Rule 20 [c01b2a88]: BUFFER_BYTES = [32768 32768] -> [32768 32768] Rule 21 [c01b3848]: RATE = [44100 44100] -> [44100 44100] board_cs4265: Entered board_cs4265_hw_params chip-cs4265: Entered cs4265_set_dai_fmt chip-i2s: Entered chip_i2s_set_dai_fmt chip-i2s: txconfig: 00003000 chip-cs4265: Entered cs4265_hw_params cs4265: Invalid MCLK or rate asoc: can't set codec CS4265 hw params chip-pcm: Entered chip_pcm_hw_free ALSA lib pcm_hw.c:366:(snd_pcm_hw_hw_params) SNDRV_PCM_IOCTL_HW_PARAMS failed: Invalid argument chip-pcm: Entered chip_pcm_hw_free aplay: set_params:962: Unable to install hw params: ACCESS: MMAP_NONINTERLEAVED FORMAT: S16_LE SUBFORMAT: STD SAMPLE_BITS: 16 FRAME_BITS: 32 CHANNELS: 2 RATE: 44100 PERIOD_TIME: (46439 46440) PERIOD_SIZE: 2048 PERIOD_BYTES: 8192 PERIODS: 4 BUFFER_TIME: (185759 185760) BUFFER_SIZE: 8192 BUFFER_BYTES: 32768 TICK_TIME: 10000 pop wq checking: Playback status: inactive waiting: yes pop wq D3 CS4265 Playback
lg, Markus Korber
participants (2)
-
Liam Girdwood
-
Markus Korber