0-3 are playback and 4-6 are capture devices. That seems odd. They don't normally mix I think. You have play devices 0-3 and record devices 0-2.They're separate lists. So device 6 is invalid.
On Mon, Mar 22, 2021, 10:34 AM Alan Corey <alan01...@gmail.com> wrote: > The way I do it is to start with a line that works and change one thing at > a time. Do a quick test and if it still works go on to the next change > otherwise undo. 6 devices means 0-5. > > On Mon, Mar 22, 2021, 9:39 AM Vijay Rakesh Munganda < > vijayrakeshmunga...@gmail.com> wrote: > >> Hi Alan, >> >> Thanks for the reply. I’m working on an embedded board which has 6 >> devices where 0-3 are playback and 4-6 are capture devices. Playback works >> fine but not recording. Whatever format I use I get an error saying as >> `unable to hw params` I tried plughw which also didn’t worked. I’m not sure >> where and how to debug this issue. >> >> I have a mono mic for recording and it took Mono. I also tried with 8bit >> but I get same error. >> >> Thanks & Regards, >> Vijay Rakesh >> >> > On 22-Mar-2021, at 17:43, Alan Corey <alan01...@gmail.com> wrote: >> > >> > This works for me >> > arecord -D hw:0,0 -d 5 -f S16_LE -r 48000 -c 2 test.wav >> > Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, >> Stereo >> > root@pbp:/tmp/snd# ^C >> > >> > Do you really have 6 devices on card 0? And I don't know that I've >> > ever seen a 32 bit wav file, 8 is often enough. Need to specify # of >> > channels I think like -c 2. But I copied your line and started >> > hacking it until it worked. >> > >> > The error message could probably be more informative, like which >> > argument does it have a problem with. >> > >> > >> >> On 3/22/21, Vijay Rakesh Munganda <vijayrakeshmunga...@gmail.com> >> wrote: >> >> Hi All, >> >> >> >> Any suggestions? >> >> >> >> Thanks & Regards, >> >> Vijay Rakesh >> >> >> >>> On 01-Feb-2021, at 14:00, Vijay Rakesh Munganda >> >>> <vijayrakeshmunga...@gmail.com> wrote: >> >>> >> >>> Hi Clemens, >> >>> >> >>> I have tried both pulghw and also given supported sample rate/format, >> but >> >>> I get same error. >> >>> >> >>> root@test:~# arecord -D hw:0,6 -d 5 -f S32_LE -r 48000 test.wav >> >>> Recording WAVE 'test.wav' : Signed 32 bit Little Endian, Rate 48000 >> Hz, >> >>> Mono >> >>> arecord: set_params:1405: Unable to install hw params: >> >>> ACCESS: RW_INTERLEAVED >> >>> FORMAT: S32_LE >> >>> SUBFORMAT: STD >> >>> SAMPLE_BITS: 32 >> >>> FRAME_BITS: 32 >> >>> CHANNELS: 1 >> >>> RATE: 48000 >> >>> PERIOD_TIME: 125000 >> >>> PERIOD_SIZE: 6000 >> >>> PERIOD_BYTES: 24000 >> >>> PERIODS: 4 >> >>> BUFFER_TIME: 500000 >> >>> BUFFER_SIZE: 4000 >> >>> BUFFER_BYTES: 96000 >> >>> TICK_TIME: 0 >> >>> >> >>> Thanks & Regards, >> >>> Vijay Rakesh >> >>> >> >>>>> On 30-Jan-2021, at 22:13, Clemens Ladisch via Alsa-user >> >>>>> <alsa-user@lists.sourceforge.net> wrote: >> >>>>> >> >>>> Vijay Rakesh Munganda wrote: >> >>>>> I had tried to record a sample audio using arecord, “arecord hw:0,6 >> -d >> >>>>> 10 test.wav” but I got an error as unable to install hw params. >> >>>> >> >>>> Use plughw:0,x instead of hw:0,x to get automatic sample format >> >>>> conversion. >> >>>> >> >>>> Or tell arecord to use a sample rate/format that your hardware >> supports. >> >>>> >> >>>> >> >>>> Regards, >> >>>> Clemens >> >>>> >> >>>> >> >>>> _______________________________________________ >> >>>> Alsa-user mailing list >> >>>> Alsa-user@lists.sourceforge.net >> >>>> https://lists.sourceforge.net/lists/listinfo/alsa-user >> >> >> > >> > >> > -- >> > ------------- >> > Education is contagious. >> >
_______________________________________________ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user