Hello!
I have a problem, not first day struggling with her to find a solution.
What I'm trying to do: Create Firmware for Dlink DIR-320, which supports connection and simultaneous operation of multiple USB soundcards. Under the simultaneous operation implied the possibility of capturing sound with a few USB Audio simultaneously.
I managed to do:
Collect custom firmware based on OpenWRT backfire 10.03.1 RC6, kernel 2.6.32.27, which includes core modules:
-Kmod_usb_audio,
-Kmod_sound_core,
-Kmod-usb-core,
-Kmod-usb-ohci,
-Kmod-usb2,
-Alsa-lib,
-Alsa-utils.
This firmware allows you to define the USB Audio device connected to the DIR-320
Command type: cat / proc / asound / cards lists the specific sound system:
0 [default]: USB-Audio - Generic USB Audio Device
Generic USB Audio Device at usb-ssb0 :1-1 .2, full speed
1 [default_1]: USB-Audio - Generic USB Audio Device
Generic USB Audio Device at usb-ssb0 :1-1 .4.3, full speed
2 [default_2]: USB-Audio - C-Media USB Headphone Set
C-Media USB Headphone Set at usb-ssb0 :1-1 .4.4, full speed
Supposed to capture the sound using ALSA API. Command arecord, included in the package alsa-utils, effortless execution of capturing audio from a sound card - the one that is installed by default.
Command arecord -fS16_LE -Dhw:0,0 123.wav
starts capturing of the 0-th sound card. An attempt to perform a similar operation on any sound card, clearly indicating the hw: 1,0 or hw: 2,0 - results in an error: arecord: main: 660: audio open error: No such file or directory.
That I did, I could not get to write the sound from USB Audio hw: 1,0 and hw: 2,0.
But when accessing via \ dev \ audio, \ dev \ audio2 - access to various USB Audio is carried out without problems, but this is unacceptable to me - must be through ALSA.
What should I do to be able to access (record / playback audio) with all USB sound cards?
The command cat / proc / asound / version gives the following:
Advanced Linux Sound Architecture Driver Version 1.0.21.
You may need to update the ALSA-driver? But how can this be done in OpenWRT?
Alsa-Lib version of my build: 1.0.24.1-1
Tell me, what to do? Must be able to capture audio through ALSA along with several USB Audio devices.
--------------------------------------------------------------------------------------------------
By Russian:
????????????!
???????? ????????, ??????? ???? ????? ? ??? ? ??????? ???????.
??? ? ??????? ???????: ??????? ???????? ??? Dlink DIR-320, ??????? ???????????? ??????????? ? ????????????? ?????? ?????????? USB ???????? ????. ??? ????????????? ??????? ??????????????? ??????????? ????????? (captute) ????? ? ?????????? USB Audio ????????????.
??? ??? ??????? ???????:
??????? ????????? ???????? OpenWRT ?? ???? backfire 10.03.1 RC6, ???? 2.6.32.27, ? ??????? ???????? ?????? ????:
-kmod_usb_audio,
-kmod_sound_core,
-kmod-usb-core,
-kmod-usb-ohci,
-kmod-usb2,
-alsa-lib,
-alsa-utils.
??? ???????? ????????? ?????????? USB Audio ?????????? ???????????? ? DIR-320
??????? ????: cat /proc/asound/cards ?????? ?????? ???????? ???????????? ????????:
0 [default ]: USB-Audio - Generic USB Audio Device
Generic USB Audio Device at usb-ssb0:1-1.2, full speed
1 [default_1 ]: USB-Audio - Generic USB Audio Device
Generic USB Audio Device at usb-ssb0:1-1.4.3, full speed
2 [default_2 ]: USB-Audio - C-Media USB Headphone Set
C-Media USB Headphone Set at usb-ssb0:1-1.4.4, full speed
???????????? ?????? ????? ?????????????? ? ?????????????? ALSA API. ??????? arecord, ???????? ? ????? alsa-utils, ??? ??????? ????????? ????????? ????? ? ????? ???????? ????? - ??? ??????? ??????????? ?? ?????????. ???????
arecord -fS16_LE -Dhw:0,0 123.wav
????????? ????????? ? 0-? ???????? ?????.????????? ???????????? ??? ???????. ??????? ????????? ??????????? ???????? ?? ????? ?????? ???????? ?????, ???? ?????? hw:1,0 ??? hw:2,0 - ???????? ? ??????: arecord: main:660: audio open error: No such file or directory.
???????? ?????? ? ?????? ?? ????????? ?????? ? ???????? hw:1,0 ? hw:2,0. ?????? ??? ????????? ????? \dev\audio, \dev\audio2 - ?????? ? ?????? ?????????? ?????????????? ??? ???????, ?? ????? ??????? ??? ???? ???? ???????? - ???? ????? ALSA.
??? ???? ???????, ????? ????? ??????????? ?????????? (??????????/?????????????? ????) ?? ???? USB ???????? ???? ?
??????? cat /proc/asound/version ?????? ?????????:
Advanced Linux Sound Architecture Driver Version 1.0.21.
????????, ?????????? ???????? ALSA-??????? ? ?? ??? ??? ??????? ? ?????? OpenWRT ?
?????? Alsa-Lib ? ???? ??????: 1.0.24.1-1
??????????, ??? ??????? ?????????? ???????? ??????????? ??????????? ????? ALSA ???????????? ? ?????????? USB Audio ?????????.
