Hallo,
ich habe aktuell ein Problem, den Sound zum laufen zu bringen.
Mein Projekt ist ein wlan-Küchenradio.
Meine bisherigen hardwarkomponenten sind:
Raspberrypi B+, wifiadapter [Anzeige], Ladegerät [Anzeige], usb DAC Sabre [Anzeige], Lautsprecher [Anzeige].Betriebssystem ist raspian.
Was ich erst einmal erreichen will ist die Konstellation Rasperry -> USB DAC -> Lautsprecher -> Sound
Ich habe schon alles mögliche probiert nach vershiedenen Anleitungen und auch im Wiki UUrecherschiert und bin bisher nicht weiter gekommen. Bin kurz davor die Installation von vorne zu beginnen. Bisher habe ich nur headless gearbeitet.
Folgende Ausgaben habe ich (es könnte sein, das ich die Befehle durcheinander bringe in der Überschrift).
etc/asound.conf sieht bei mir folgender massen aus:
Datei existierte nicht, habe ich angelegt.
etc/modules sieht so aus:
[# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
snd-bcm2835]
etc/modprobe.d/alsa-base.config sieht so aus:
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; : ; }
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; }
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modprobe --quiet snd-emu10k1-synth ; : ; }
# Keep snd-pcsp from beeing loaded as first soundcard
options snd-pcsp index=-2
#folgende Zeilen auskomentiert
# am 22.10.14
# um soundkarte als zu initiatliesieren
# Siehe Anleitung:
#thisoldgeek.blogspot.nl/nl/2012/12/getting-cmedia-usb-sound-to-work-with.html
# Keep snd-usb-audio from beeing loaded as first soundcard
#options snd-usb-audio index=-2
#statt dessen eingefügt:
#Keep snd-usb-audio from beeing loades as first soundcard
options snd-usb-audio index=0
#gegen inpedancen
options snd-usb-audio nrpacks=1
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
#weitere Änderungen in
#pulseaudio und pavucontrol??
#weitere änderungen in /asound.conf]
Alles anzeigen
dmeesg brachte folgendes zu Tage:
[[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.12.29+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #715 PREEMPT Sun Oct 12 12:54:22 BST 2014
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: BCM2708
[ 0.000000] cma: CMA: reserved 8 MiB at 1b800000
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 114688
[ 0.000000] free_area_init_node: node 0, pgdat c061ded0, node_mem_map c06cf000
[ 0.000000] Normal zone: 896 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 114688 pages, LIFO batch:31
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 113792
[ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=720 bcm2708_fb.fbheight=480 bcm2708.boardrev=0x10 bcm2708.serial=0xcecbe37f smsc95xx.macaddr=B8:27:EB:CB:E3:7F bcm2708.disk_led_gpio=47 bcm2708.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 439532K/458752K available (4498K kernel code, 242K rwdata, 1344K rodata, 143K init, 701K bss, 19220K reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xdc800000 - 0xff000000 ( 552 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xdc000000 ( 448 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc05bcac0 (5843 kB)
[ 0.000000] .init : 0xc05bd000 - 0xc05e0f0c ( 144 kB)
[ 0.000000] .data : 0xc05e2000 - 0xc061e9e0 ( 243 kB)
[ 0.000000] .bss : 0xc061e9ec - 0xc06ce1e0 ( 702 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:394
[ 0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[ 0.000000] Switching to timer-based delay loop
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty1] enabled
[ 0.001194] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[ 0.001255] pid_max: default: 32768 minimum: 301
[ 0.001774] Mount-cache hash table entries: 512
[ 0.002593] Initializing cgroup subsys memory
[ 0.002705] Initializing cgroup subsys devices
[ 0.002742] Initializing cgroup subsys freezer
[ 0.002775] Initializing cgroup subsys blkio
[ 0.002924] CPU: Testing write buffer coherency: ok
[ 0.003385] Setting up static identity map for 0xc0449238 - 0xc0449294
[ 0.005292] devtmpfs: initialized
[ 0.021107] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 0.022679] NET: Registered protocol family 16
[ 0.028017] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[ 0.028674] cpuidle: using governor ladder
[ 0.028721] cpuidle: using governor menu
[ 0.029129] bcm2708.uart_clock = 0
[ 0.031092] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.031155] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.031191] mailbox: Broadcom VideoCore Mailbox driver
[ 0.031288] bcm2708_vcio: mailbox at f200b880
[ 0.031394] bcm_power: Broadcom power driver
[ 0.031431] bcm_power_open() -> 0
[ 0.031456] bcm_power_request(0, 8)
[ 0.532172] bcm_mailbox_read -> 00000080, 0
[ 0.532213] bcm_power_request -> 0
[ 0.532467] Serial: AMBA PL011 UART driver
[ 0.532633] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[ 0.896048] console [ttyAMA0] enabled
[ 0.922254] bio: create slab <bio-0> at 0
[ 0.927774] SCSI subsystem initialized
[ 0.931761] usbcore: registered new interface driver usbfs
[ 0.937463] usbcore: registered new interface driver hub
[ 0.943024] usbcore: registered new device driver usb
[ 0.949584] Switched to clocksource stc
[ 0.953858] FS-Cache: Loaded
[ 0.957021] CacheFiles: Loaded
[ 0.972605] NET: Registered protocol family 2
[ 0.978408] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.985823] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.992420] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.998868] TCP: reno registered
[ 1.002164] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 1.008035] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 1.014809] NET: Registered protocol family 1
[ 1.019816] RPC: Registered named UNIX socket transport module.
[ 1.025777] RPC: Registered udp transport module.
[ 1.030575] RPC: Registered tcp transport module.
[ 1.035299] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.042636] bcm2708_dma: DMA manager at f2007000
[ 1.047379] bcm2708_gpio: bcm2708_gpio_probe c05efef0
[ 1.052958] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[ 1.062506] audit: initializing netlink socket (disabled)
[ 1.068010] type=2000 audit(0.910:1): initialized
[ 1.237567] VFS: Disk quotas dquot_6.5.2
[ 1.241931] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.250876] FS-Cache: Netfs 'nfs' registered for caching
[ 1.257753] NFS: Registering the id_resolver key type
[ 1.263042] Key type id_resolver registered
[ 1.267251] Key type id_legacy registered
[ 1.272049] msgmni has been set to 874
[ 1.277765] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 1.285631] io scheduler noop registered
[ 1.289714] io scheduler deadline registered (default)
[ 1.295208] io scheduler cfq registered
[ 1.300436] BCM2708FB: allocated DMA memory 5bc00000
[ 1.305486] BCM2708FB: allocated DMA channel 0 @ f2007000
[ 1.316270] Console: switching to colour frame buffer device 90x30
[ 1.328089] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[ 1.337510] uart-pl011 dev:f1: no DMA platform data
[ 1.344853] vc-cma: Videocore CMA driver
[ 1.350545] vc-cma: vc_cma_base = 0x00000000
[ 1.356864] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
[ 1.363938] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 1.380239] brd: module loaded
[ 1.390126] loop: module loaded
[ 1.395167] vchiq: vchiq_init_state: slot_zero = 0xdb800000, is_master = 0
[ 1.404737] Loading iSCSI transport class v2.0-870.
[ 1.412490] usbcore: registered new interface driver smsc95xx
[ 1.420336] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.627841] Core Release: 2.80a
[ 1.632619] Setting default values for core params
[ 1.638938] Finished setting default values for core params
[ 1.846127] Using Buffer DMA mode
[ 1.851040] Periodic Transfer Interrupt Enhancement - disabled
[ 1.858408] Multiprocessor Interrupt Enhancement - disabled
[ 1.865508] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 1.871388] Dedicated Tx FIFOs mode
[ 1.876703] WARN::dwc_otg_hcd_init:1042: FIQ DMA bounce buffers: virt = 0xdbc14000 dma = 0x5bc14000 len=9024
[ 1.889749] FIQ FSM acceleration enabled for :
[ 1.889749] Non-periodic Split Transactions
[ 1.889749] Periodic Split Transactions
[ 1.889749] High-Speed Isochronous Endpoints
[ 1.912668] dwc_otg: Microframe scheduler enabled
[ 1.912763] WARN::hcd_init:473: FIQ at 0xc0321f8c
[ 1.919001] WARN::hcd_init:474: FIQ ASM at 0xc032223c length 36
[ 1.926493] WARN::hcd_init:500: MPHI regs_base at 0xdc806000
[ 1.933753] dwc_otg bcm2708_usb: DWC OTG Controller
[ 1.940293] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[ 1.949184] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[ 1.956342] Init: Port Power? op_state=1
[ 1.961881] Init: Power Port (0)
[ 1.966957] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.975412] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.984255] usb usb1: Product: DWC OTG Controller
[ 1.990551] usb usb1: Manufacturer: Linux 3.12.29+ dwc_otg_hcd
[ 1.997947] usb usb1: SerialNumber: bcm2708_usb
[ 2.004898] hub 1-0:1.0: USB hub found
[ 2.010384] hub 1-0:1.0: 1 port detected
[ 2.016319] dwc_otg: FIQ enabled
[ 2.016339] dwc_otg: NAK holdoff enabled
[ 2.016350] dwc_otg: FIQ split-transaction FSM enabled
[ 2.016369] Module dwc_common_port init
[ 2.016813] usbcore: registered new interface driver usb-storage
[ 2.024878] mousedev: PS/2 mouse device common for all mice
[ 2.032769] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[ 2.040320] bcm2835-cpufreq: switching to governor powersave
[ 2.047490] bcm2835-cpufreq: switching to governor powersave
[ 2.054664] sdhci: Secure Digital Host Controller Interface driver
[ 2.062312] sdhci: Copyright(c) Pierre Ossman
[ 2.068310] DMA channels allocated for the MMC driver
[ 2.109844] Load BCM2835 MMC driver
[ 2.116651] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.124034] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.133842] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.146410] usbcore: registered new interface driver usbhid
[ 2.153682] usbhid: USB HID core driver
[ 2.163777] TCP: cubic registered
[ 2.170761] Initializing XFRM netlink socket
[ 2.178632] NET: Registered protocol family 17
[ 2.184856] Key type dns_resolver registered
[ 2.195366] registered taskstats version 1
[ 2.202230] Waiting for root device /dev/mmcblk0p2...
[ 2.209895] Indeed it is in host mode hprt0 = 00021501
[ 2.227339] mmc0: host does not support reading read-only switch. assuming write-enable.
[ 2.252615] mmc0: new high speed SDHC card at address e624
[ 2.270249] mmcblk0: mmc0:e624 SU08G 7.40 GiB
[ 2.294062] mmcblk0: p1 p2
[ 2.366720] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.378232] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 2.391827] devtmpfs: mounted
[ 2.397081] Freeing unused kernel memory: 140K (c05bd000 - c05e0000)
[ 2.419761] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 2.428464] Indeed it is in host mode hprt0 = 00001101
[ 2.630063] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ 2.638923] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.649141] hub 1-1:1.0: USB hub found
[ 2.654992] hub 1-1:1.0: 5 ports detected
[ 2.939851] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 3.060251] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 3.069034] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.085479] smsc95xx v1.0.4
[ 3.153458] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:cb:e3:7f
[ 3.249804] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
[ 3.455272] usb 1-1.2: New USB device found, idVendor=1852, idProduct=7022
[ 3.464329] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.475909] usb 1-1.2: Product: HiFimeDIY DAC
[ 3.483471] usb 1-1.2: Manufacturer: HiFimeDIY Audio
[ 3.514847] input: HiFimeDIY Audio HiFimeDIY DAC as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input0
[ 3.530781] hid-generic 0003:1852:7022.0001: input,hidraw0: USB HID v1.00 Device [HiFimeDIY Audio HiFimeDIY DAC] on usb-bcm2708_usb-1.2/input0
[ 3.639854] usb 1-1.5: new high-speed USB device number 5 using dwc_otg
[ 3.761642] usb 1-1.5: New USB device found, idVendor=0bda, idProduct=8178
[ 3.771860] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.786374] usb 1-1.5: Product: 802.11n WLAN Adapter
[ 3.797928] usb 1-1.5: Manufacturer: Realtek
[ 3.804609] usb 1-1.5: SerialNumber: 00e04c000001
[ 5.114267] udevd[156]: starting version 175
[ 6.076829] bcm2708_i2c_init_pinmode(1,2)
[ 6.212888] bcm2708_i2c_init_pinmode(1,3)
[ 6.284469] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
[ 7.384431] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
[ 8.132975] usbcore: registered new interface driver snd-usb-audio
[ 8.956683] usbcore: registered new interface driver rtl8192cu
[ 12.125420] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 12.899884] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 19.409504] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 22.332720] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 25.352578] bcm2835-cpufreq: switching to governor ondemand
[ 25.352611] bcm2835-cpufreq: switching to governor ondemand
[ 29.815330] Adding 102396k swap on /var/swap. Priority:-1 extents:1 across:102396k SSFS]
Alles anzeigen
aplay -l dies:
[**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: DAC [HiFimeDIY DAC], Gerät 0: USB Audio [USB Audio]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
Karte 0: DAC [HiFimeDIY DAC], Gerät 1: USB Audio [USB Audio #1]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
Karte 1: ALSA [bcm2835 ALSA], Gerät 0: bcm2835 ALSA [bcm2835 ALSA]
Sub-Geräte: 8/8
Sub-Gerät #0: subdevice #0
Sub-Gerät #1: subdevice #1
Sub-Gerät #2: subdevice #2
Sub-Gerät #3: subdevice #3
Sub-Gerät #4: subdevice #4
Sub-Gerät #5: subdevice #5
Sub-Gerät #6: subdevice #6
Sub-Gerät #7: subdevice #7
Karte 1: ALSA [bcm2835 ALSA], Gerät 1: bcm2835 ALSA [bcm2835 IEC958/HDMI
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0]
Alles anzeigen
lsusb dies:
[Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1852:7022 GYROCOM C&C Co., LTD
Bus 001 Device 005: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
und das müsste aplay -L gewesen sein:
[Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1852:7022 GYROCOM C&C Co., LTD
Bus 001 Device 005: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
Alsamixer erkennt die Soundkarte als Chip ist Alsamixer angezeigt und Element pcm...
Ich bekomme als Regler nur PCM.
[/code]Nun bin ich mit meinem Latein am Ende. Es wäre nett, wenn mir jemand helfen könnte.
Mit freundlichen Grüßen,
Aviluag