Installation d’un adaptateur audio USB.
* Matériel : Adaptateur audio USB
De Gotronic : https://www.gotronic.fr/art-adaptateur-audio-usb-21834.htm
idVendor=1b3f idProduct=2008
* Distribution : Raspbian Jessie
1/ Brancher la clé USB.
2/ Vérification.
➜ ~ dmesg ... [ 375.088867] usb 1-1.2: new full-speed USB device number 6 using dwc_otg [ 375.226257] usb 1-1.2: New USB device found, idVendor=1b3f, idProduct=2008 [ 375.226271] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 375.226279] usb 1-1.2: Product: USB Audio Device [ 375.226287] usb 1-1.2: Manufacturer: GeneralPlus [ 375.235604] input: GeneralPlus USB Audio Device as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.3/0003:1B3F:2008.0004/input/input3 [ 375.299400] hid-generic 0003:1B3F:2008.0004: input,hidraw3: USB HID v2.01 Device [GeneralPlus USB Audio Device] on usb-3f980000.usb-1.2/input3 [ 375.384308] usbcore: registered new interface driver snd-usb-audio ➜ ~
➜ ~ lsusb ... Bus 001 Device 006: ID 1b3f:2008 Generalplus Technology Inc. ... ➜ ~
➜ ~ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 8/8 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 Subdevice #7: subdevice #7 card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 ➜ ~
3/ Configuration.
Ouvrir :
/etc/asound.conf
Ajouter :
pcm.!default { type hw card 1 } ctl.!default { type hw card 1 }
Ouvrir :
/etc/modprobe.d/raspi-blacklist.conf
Ajouter :
blacklist snd_bcm2835
Ouvrir :
/usr/share/alsa/alsa.conf
Chercher :
defaults.ctl.card 0 defaults.pcm.card 0
Remplacer par :
defaults.ctl.card 1 defaults.pcm.card 1
5/ Redémarrer le Raspberry Pi.
6/ Test audio.
➜ ~ speaker-test -c2 -twav speaker-test 1.0.28 Playback device is default Stream parameters are 48000Hz, S16_LE, 2 channels WAV file(s) Rate set to 48000Hz (requested 48000Hz) Buffer size range from 96 to 262144 Period size range from 48 to 131072 Using max buffer size 262144 Periods = 4 was set period_size = 65536 was set buffer_size = 262144 0 - Front Left 1 - Front Right Time per period = 5.544785 0 - Front Left 1 - Front Right
7/ Liens.
https://superuser.com/questions/989385/how-to-make-raspberry-pi-use-an-external-usb-sound-card-as-a-default
http://www.knight-of-pi.org/raspberry-pi-enable-an-usb-sound-card-for-raspbian-jessie/
https://raspberrypi.stackexchange.com/questions/39928/unable-to-set-default-input-and-output-audio-device-on-raspberry-jessie
Comments are closed, but trackbacks and pingbacks are open.