WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: piCore 5.0.alpha1  (Read 24238 times)

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: piCore 5.0.alpha1
« Reply #15 on: September 10, 2013, 02:32:19 PM »
This is really strange.

I started from scratch.
1. Formatted the SD-card.
2. downloaded piCore-5.0.alpha1.img.gz extracted it and burned it to the card
3. It booted fine
4. tce-setdrive   to mmcblk0p1
5. tce    -   installed alsa


aplay -l
aplay: device_list:268: no soundcards found...

So same error

Steen

Could you have some left-overs from your development that might make the alsa package work?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore 5.0.alpha1
« Reply #16 on: September 10, 2013, 03:07:10 PM »
Quote
4. tce-setdrive   to mmcblk0p1

As it was discussed earlier, never use mmcblk0p1 !!!

Proper solution:

4. tce-setdrive   to mmcblk0p2
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: piCore 5.0.alpha1
« Reply #17 on: September 11, 2013, 09:55:54 AM »
Hi bmarkus

I changed my setup as per your instructions - still no soundcard. 
(I made a new linux partition and use this as my TCE directory. Installed alsa and bash and dropbear.)

Code: [Select]
tc@box:~$ aplay -l
aplay: device_list:268: no soundcards found...
tc@box:~$

So there is no change, even after starting all over again.

Steen




Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: piCore 5.0.alpha1
« Reply #18 on: September 11, 2013, 10:01:29 AM »
Using the alsa-info.sh script results in this:
Code: [Select]
tc@box:~$ ./alsa-info.sh
modprobe: invalid option -- 'c'
BusyBox v1.21.1 (2013-08-23 18:13:50 UTC) multi-call binary.

Usage: modprobe [-alrqvsDb] MODULE [symbol=value]...

        -a      Load multiple MODULEs
        -l      List (MODULE is a pattern)
        -r      Remove MODULE (stacks) or do autoclean
        -q      Quiet
        -v      Verbose
        -s      Log to syslog
        -D      Show dependencies
        -b      Apply blacklist to module names too

ALSA Information Script v 0.4.62
--------------------------------

This script visits the following commands/files to collect diagnostic
information about your ALSA installation and sound related hardware.

  dmesg
  lspci
  lsmod
  aplay
  amixer
  alsactl
  /proc/asound/
  /sys/class/sound/
  ~/.asoundrc (etc.)

See './alsa-info.sh --help' for command line options.

/usr/local/sbin/alsactl: save_state:1590: No soundcards found...
cat: can't open '/tmp/alsa-info.XXXXXtkVNI/alsactl.tmp': No such file or directory

Steen

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: piCore 5.0.alpha1
« Reply #19 on: September 11, 2013, 10:12:54 AM »
Hi I just noticed that from your copy of the output from aplay -l  your promt is #  whereas mine is $

Therefore I tried to use sudo aplay -l and now it finds the soundcard
Code: [Select]
tc@box:/$ sudo 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
tc@box:/$

But why is this different from previous piCore versions?
And what do I need to do in order to go back to how it used to be?

Steen

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: piCore 5.0.alpha1
« Reply #20 on: September 11, 2013, 10:19:30 AM »
Sorry for all the new posts.

But this is the result from the "old piCore 4.7.7)
Code: [Select]
tc@box:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 7/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
tc@box:~$

As you can see it finds the USB-DAc attached, but also I don't need a sudo aplay -l.

The new version of piCore version 5 (alpha1) don't find the attached USB-DAC, and I need to use sudo in front.

See the output in the post above, here was the USB-DAC also atteched, but it was not detected.

Steen

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore 5.0.alpha1
« Reply #21 on: September 11, 2013, 10:37:36 AM »
Steen

can you compare the modules installed in 5.0.alpha1 and 4.7.7 as well as to run lsusb and check dmesg for differences?

Bela
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: piCore 5.0.alpha1
« Reply #22 on: September 11, 2013, 10:51:04 AM »
In version 4.7.7
Code: [Select]
tc@box:~$ lsusb
Bus 001 Device 002: ID 0424:9512 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 03f0:0024 Hewlett-Packard KU-0316 Keyboard
Bus 001 Device 005: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
tc@box:~$

dmesg output (about USB)
Code: [Select]
1.726363] usb usb1: Product: DWC OTG Controller
[    1.726374] usb usb1: Manufacturer: Linux 3.8.13-piCore+ dwc_otg_hcd
[    1.726386] usb usb1: SerialNumber: bcm2708_usb
[    1.727034] hub 1-0:1.0: USB hub found
[    1.727073] hub 1-0:1.0: 1 port detected
[    1.727367] dwc_otg: FIQ enabled
[    1.727380] dwc_otg: NAK holdoff enabled
[    1.727388] dwc_otg: FIQ split fix enabled
[    1.727403] Module dwc_common_port init
[    1.727596] Initializing USB Mass Storage driver...
[    1.727771] usbcore: registered new interface driver usb-storage
[    1.727784] USB Mass Storage support registered.
[    1.728136] mousedev: PS/2 mouse device common for all mice
[    1.728364] bcm2835-cpufreq: min=800000 max=800000 cur=800000
[    1.728461] bcm2835-cpufreq: switching to governor performance
[    1.728474] bcm2835-cpufreq: switching to governor performance
[    1.728497] cpuidle: using governor ladder
[    1.728507] cpuidle: using governor menu
[    1.728567] sdhci: Secure Digital Host Controller Interface driver
[    1.728577] sdhci: Copyright(c) Pierre Ossman
[    1.728665] sdhci: Enable low-latency mode
[    1.768136] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platfor                                            m's DMA
[    1.768349] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    1.768423] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.768889] usbcore: registered new interface driver usbhid
[    1.768903] usbhid: USB HID core driver
[    1.769348] TCP: cubic registered
[    1.769364] Initializing XFRM netlink socket
[    1.769392] NET: Registered protocol family 17
[    1.769539] Key type dns_resolver registered
[    1.770022] VFP support v0.3: implementor 41 architecture 1 part 20 variant b                                             rev 5
[    1.770762] registered taskstats version 1
[    1.776408] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.779318] Freeing init memory: 140K
[    1.819206] mmc0: new high speed SDHC card at address 1234
[    1.822006] mmcblk0: mmc0:1234 SA08G 7.28 GiB
[    1.823719]  mmcblk0: p1
[    1.918320] Indeed it is in host mode hprt0 = 00021501
[    2.138261] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.138435] Indeed it is in host mode hprt0 = 00001101
[    2.398787] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.398827] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.399751] hub 1-1:1.0: USB hub found
[    2.400025] hub 1-1:1.0: 3 ports detected
[    2.678463] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.778970] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.778999] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber                                            =0
[    2.781975] smsc95xx v1.0.4
[    2.843014] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1                                            .1, smsc95xx USB 2.0 Ethernet, b8:27:eb:05:e8:e8
[    2.938373] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
[    3.051868] usb 1-1.2: New USB device found, idVendor=03f0, idProduct=0024
[    3.051899] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber                                            =0
[    3.051912] usb 1-1.2: Product: HP Basic USB Keyboard
[    3.051924] usb 1-1.2: Manufacturer: CHICONY
[    3.063355] input: CHICONY HP Basic USB Keyboard as /devices/platform/bcm2708                                            _usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input0
[    3.063498] hid-generic 0003:03F0:0024.0001: input: USB HID v1.10 Keyboard [C                                            HICONY HP Basic USB Keyboard] on usb-bcm2708_usb-1.2/input0
[    3.084097] bcm2708_i2c bcm2708_i2c.0: BSC0 Controller at 0x20205000 (irq 79)                                             (baudrate 100k)
[    3.158393] usb 1-1.3: new full-speed USB device number 5 using dwc_otg
[    3.259495] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79)                                             (baudrate 100k)
[    3.263900] usb 1-1.3: New USB device found, idVendor=0d8c, idProduct=000c
[    3.263929] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber                                            =0
[    3.263943] usb 1-1.3: Product: C-Media USB Headphone Set
[    3.270946] input: C-Media USB Headphone Set   as /devices/platform/bcm2708_u                                            sb/usb1/1-1/1-1.3/1-1.3:1.3/input/input1
[    3.271048] hid-generic 0003:0D8C:000C.0002: input: USB HID v1.00 Device [C-M                                            edia USB Headphone Set  ] on usb-bcm2708_usb-1.3/input3
[    3.291059] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated
[    3.291090] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[    7.178372] loop: module loaded
[    7.495568] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[   24.227378] usbcore: registered new interface driver snd-usb-audio
[   28.021284] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E                                            1

************************************************


In version 5
Code: [Select]
tc@box:~$ lsusb
Bus 001 Device 002: ID 0424:9512 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 03f0:0024 Hewlett-Packard KU-0316 Keyboard
Bus 001 Device 005: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter

So it seems to "see" the C-media audio adaptor

Code: [Select]
1.801407] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.801446] Init: Port Power? op_state=1
[    1.801457] Init: Power Port (0)
[    1.801577] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.801600] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=                                                                              1
[    1.801616] usb usb1: Product: DWC OTG Controller
[    1.801629] usb usb1: Manufacturer: Linux 3.10.10-piCore dwc_otg_hcd
[    1.801643] usb usb1: SerialNumber: bcm2708_usb
[    1.802384] hub 1-0:1.0: USB hub found
[    1.802432] hub 1-0:1.0: 1 port detected
[    1.802775] dwc_otg: FIQ enabled
[    1.802792] dwc_otg: NAK holdoff enabled
[    1.802802] dwc_otg: FIQ split fix enabled
[    1.802822] Module dwc_common_port init
[    1.803282] usbcore: registered new interface driver usb-storage
[    1.803760] mousedev: PS/2 mouse device common for all mice
[    1.804507] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[    1.804622] bcm2835-cpufreq: switching to governor performance
[    1.804638] bcm2835-cpufreq: switching to governor performance
[    1.804666] cpuidle: using governor ladder
[    1.804680] cpuidle: using governor menu
[    1.804751] sdhci: Secure Digital Host Controller Interface driver
[    1.804763] sdhci: Copyright(c) Pierre Ossman
[    1.804858] sdhci: Enable low-latency mode
[    1.848102] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platfor                                                                              m's DMA
[    1.848245] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    1.848327] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.854123] usbcore: registered new interface driver usbhid
[    1.856236] usbhid: USB HID core driver
[    1.856861] TCP: cubic registered
[    1.856881] Initializing XFRM netlink socket
[    1.856918] NET: Registered protocol family 17
[    1.857104] Key type dns_resolver registered
[    1.857685] VFP support v0.3: implementor 41 architecture 1 part 20 variant b                                                                               rev 5
[    1.862782] registered taskstats version 1
[    1.868473] Freeing unused kernel memory: 144K (c051c000 - c0540000)
[    1.919396] mmc0: new high speed SDHC card at address 1234
[    1.928243] mmcblk0: mmc0:1234 SA08G 7.28 GiB
[    1.930684]  mmcblk0: p1 p2
[    1.998325] Indeed it is in host mode hprt0 = 00021501
[    2.228325] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.228521] Indeed it is in host mode hprt0 = 00001101
[    2.478808] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.478841] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.479843] hub 1-1:1.0: USB hub found
[    2.479986] hub 1-1:1.0: 3 ports detected
[    2.758468] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.858862] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.858896] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber                                                                              =0
[    2.861946] smsc95xx v1.0.4
[    2.924357] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1                                                                              .1, smsc95xx USB 2.0 Ethernet, b8:27:eb:05:e8:e8
[    3.018354] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
[    3.131187] usb 1-1.2: New USB device found, idVendor=03f0, idProduct=0024
[    3.131217] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber                                                                              =0
[    3.131237] usb 1-1.2: Product: HP Basic USB Keyboard
[    3.131250] usb 1-1.2: Manufacturer: CHICONY
[    3.141580] input: CHICONY HP Basic USB Keyboard as /devices/platform/bcm2708                                                                              _usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input0
[    3.141745] hid-generic 0003:03F0:0024.0001: input: USB HID v1.10 Keyboard [C                                                                              HICONY HP Basic USB Keyboard] on usb-bcm2708_usb-1.2/input0
[    3.238260] usb 1-1.3: new full-speed USB device number 5 using dwc_otg
[    3.343703] usb 1-1.3: New USB device found, idVendor=0d8c, idProduct=000c
[    3.343732] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber                                                                              =0
[    3.343748] usb 1-1.3: Product: C-Media USB Headphone Set
[    3.351652] input: C-Media USB Headphone Set   as /devices/platform/bcm2708_u                                                                              sb/usb1/1-1/1-1.3/1-1.3:1.3/input/input1
[    3.351773] hid-generic 0003:0D8C:000C.0002: input: USB HID v1.00 Device [C-M                                                                              edia USB Headphone Set  ] on usb-bcm2708_usb-1.3/input3
[    7.570106] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    8.585020] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data                                                                               may be corrupt. Please run fsck.
[    8.668847] EXT4-fs (mmcblk0p2): mounting ext3 file system using the ext4 sub                                                                              system
[   10.043190] EXT4-fs (mmcblk0p2): recovery complete
[   10.316859] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. O                                                                              pts: (null)
[   10.408990] EXT4-fs (mmcblk0p2): mounting ext3 file system using the ext4 sub                                                                              system
[   10.420572] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. O                                                                              pts: (null)
[   20.393353] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   21.872176] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E

So also dmseg can detect the C-media audio adaptor.

but Alsa can't use it?

I will check the modules - but frankly I don't know what I should look for?

Steen

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore 5.0.alpha1
« Reply #23 on: September 11, 2013, 11:20:48 AM »
Let's see lsmod results next.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: piCore 5.0.alpha1
« Reply #24 on: September 11, 2013, 11:23:57 AM »
Hi figure out how to use the alsa-info.sh (needed sudo infront :-) )

This is from version 5:
Code: [Select]
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.62
!!################################

!!Script ran on: Wed Sep 11 15:02:08 UTC 2013


!!Linux Distribution
!!------------------




!!DMI Information
!!---------------

Manufacturer:     
Product Name:     
Product Version:   
Firmware Version: 


!!Kernel Information
!!------------------

Kernel release:    3.10.10-piCore
Operating System:  GNU/Linux
Architecture:      armv6l
Processor:         unknown
SMP Enabled:       No


!!ALSA Version
!!------------

Driver version:     k3.10.10-piCore
Library version:   
Utilities version:  1.0.27.2


!!Loaded ALSA modules
!!-------------------

snd_bcm2835


!!Sound Servers on this system
!!----------------------------

No sound servers found.


!!Soundcards recognised by ALSA
!!-----------------------------

 0 [ALSA           ]: BRCM bcm2835 ALSbcm2835 ALSA - bcm2835 ALSA
                      bcm2835 ALSA


!!Loaded sound module options
!!---------------------------

!!Module: snd_bcm2835
force_bulk : N


!!ALSA Device nodes
!!-----------------

crw-------    1 root     root      116,   0 Jan  1  1970 /dev/snd/controlC0
crw-------    1 root     root      116,  16 Jan  1  1970 /dev/snd/pcmC0D0p
crw-------    1 root     root      116,  33 Jan  1  1970 /dev/snd/timer


!!Aplay/Arecord output
!!--------------------

APLAY

**** 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

ARECORD

**** List of CAPTURE Hardware Devices ****

!!Amixer output
!!-------------

!!-------Mixer controls for card 0 [ALSA]

Card hw:0 'ALSA'/'bcm2835 ALSA'
  Mixer name : 'Broadcom Mixer'
  Components : ''
  Controls      : 3
  Simple ctrls  : 1
Simple mixer control 'PCM',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback -10239 - 400
  Mono: Playback 0 [96%] [0.00dB] [on]


!!Alsactl output
!!--------------

--startcollapse--
state.ALSA {
control.1 {
iface MIXER
name 'PCM Playback Volume'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '-10239 - 400'
dbmin -9999999
dbmax 400
dbvalue.0 0
}
}
control.2 {
iface MIXER
name 'PCM Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.3 {
iface MIXER
name 'PCM Playback Route'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 2'
}
}
}
--endcollapse--


!!All Loaded Modules
!!------------------

Module
snd_bcm2835
snd_pcm
snd_page_alloc
snd_timer
snd
squashfs
lzo_decompress


!!ALSA/HDA dmesg
!!--------------


******************************************************

Here is the output from my version of picoreplayer using 4.7.7

Code: [Select]
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.62
!!################################

!!Script ran on: Wed Sep 11 15:11:56 UTC 2013


!!Linux Distribution
!!------------------




!!DMI Information
!!---------------

Manufacturer:     
Product Name:     
Product Version:   
Firmware Version: 


!!Kernel Information
!!------------------

Kernel release:    3.8.13-piCore+
Operating System:  GNU/Linux
Architecture:      armv6l
Processor:         unknown
SMP Enabled:       No


!!ALSA Version
!!------------

Driver version:     k3.8.13-piCore+
Library version:   
Utilities version:  1.0.26


!!Loaded ALSA modules
!!-------------------

snd_usb_audio
snd_bcm2835


!!Sound Servers on this system
!!----------------------------

No sound servers found.


!!Soundcards recognised by ALSA
!!-----------------------------

 0 [Set            ]: USB-Audio - C-Media USB Headphone Set
                      C-Media USB Headphone Set at usb-bcm2708_usb-1.3, full speed
 1 [ALSA           ]: BRCM bcm2835 ALSbcm2835 ALSA - bcm2835 ALSA
                      bcm2835 ALSA


!!Loaded sound module options
!!---------------------------

!!Module: snd_usb_audio
device_setup : 0,0,0,0,0,0,0,0
enable : Y,Y,Y,Y,Y,Y,Y,Y
id : (null),(null),(null),(null),(null),(null),(null),(null)
ignore_ctl_error : N
index : -1,-1,-1,-1,-1,-1,-1,-1
nrpacks : 8
pid : -1,-1,-1,-1,-1,-1,-1,-1
vid : -1,-1,-1,-1,-1,-1,-1,-1

!!Module: snd_bcm2835
force_bulk : N


!!USB Mixer information
!!---------------------
--startcollapse--

USB Mixer: usb_id=0x0d8c000c, ctrlif=0, ctlerr=0
Card: C-Media USB Headphone Set at usb-bcm2708_usb-1.3, full speed
  Unit: 9
    Control: name="Headphone Playback Volume", index=0
    Info: id=9, control=2, cmask=0x3, channels=2, type="S16"
    Volume: min=-7264, max=-16, dBmin=-2837, dBmax=-6
  Unit: 9
    Control: name="Headphone Playback Switch", index=0
    Info: id=9, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN"
    Volume: min=0, max=1, dBmin=0, dBmax=0
  Unit: 10
    Control: name="Auto Gain Control", index=0
    Info: id=10, control=7, cmask=0x0, channels=1, type="BOOLEAN"
    Volume: min=0, max=1, dBmin=0, dBmax=0
  Unit: 10
    Control: name="Mic Capture Volume", index=0
    Info: id=10, control=2, cmask=0x0, channels=1, type="S16"
    Volume: min=0, max=6096, dBmin=0, dBmax=2381
  Unit: 10
    Control: name="Mic Capture Switch", index=0
    Info: id=10, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN"
    Volume: min=0, max=1, dBmin=0, dBmax=0
  Unit: 13
    Control: name="Mic Playback Volume", index=0
    Info: id=13, control=2, cmask=0x0, channels=1, type="S16"
    Volume: min=0, max=12240, dBmin=0, dBmax=4781
  Unit: 13
    Control: name="Mic Playback Switch", index=0
    Info: id=13, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN"
    Volume: min=0, max=1, dBmin=0, dBmax=0
--endcollapse--


!!ALSA Device nodes
!!-----------------

crw-rw---T    1 root     staff     116,   0 Jan  1  1970 /dev/snd/controlC0
crw-rw---T    1 root     staff     116,  32 Jan  1  1970 /dev/snd/controlC1
crw-rw---T    1 root     staff     116,  24 Jan  1  1970 /dev/snd/pcmC0D0c
crw-rw---T    1 root     staff     116,  16 Jan  1  1970 /dev/snd/pcmC0D0p
crw-rw---T    1 root     staff     116,  48 Jan  1  1970 /dev/snd/pcmC1D0p
crw-rw---T    1 root     staff     116,  33 Jan  1  1970 /dev/snd/timer

/dev/snd/by-id:
total 0
drwxr-xr-x    2 root     root             0 Jan  1  1970 .
drwxr-xr-x    4 root     root             0 Jan  1  1970 ..
lrwxrwxrwx    1 root     root            12 Jan  1  1970 usb-0d8c_C-Media_USB_Headphone_Set-00 -> ../controlC0

/dev/snd/by-path:
total 0
drwxr-xr-x    2 root     root             0 Jan  1  1970 .
drwxr-xr-x    4 root     root             0 Jan  1  1970 ..
lrwxrwxrwx    1 root     root            12 Jan  1  1970 platform-bcm2708_usb-usb-0:1.3:1.0 -> ../controlC0
lrwxrwxrwx    1 root     root            12 Jan  1  1970 platform-bcm2835_AUD0.0 -> ../controlC1


!!ALSA configuration files
!!------------------------

!!System wide config file (/etc/asound.conf)

#Use you own ALSA settings below


!!Aplay/Arecord output
!!--------------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 7/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

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

!!Amixer output
!!-------------

!!-------Mixer controls for card 0 [Set]

Card hw:0 'Set'/'C-Media USB Headphone Set at usb-bcm2708_usb-1.3, full speed'
  Mixer name : 'USB Mixer'
  Components : 'USB0d8c:000c'
  Controls      : 8
  Simple ctrls  : 3
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 151
  Mono:
  Front Left: Playback 150 [99%] [0.25dB] [on]
  Front Right: Playback 150 [99%] [0.25dB] [on]
Simple mixer control 'Mic',0
  Capabilities: pvolume pvolume-joined cvolume cvolume-joined pswitch pswitch-joined cswitch cswitch-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: Playback 0 - 32 Capture 0 - 16
  Mono: Playback 23 [72%] [34.36dB] [off] Capture 0 [0%] [0.00dB] [on]
Simple mixer control 'Auto Gain Control',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

!!-------Mixer controls for card 1 [ALSA]

Card hw:1 'ALSA'/'bcm2835 ALSA'
  Mixer name : 'Broadcom Mixer'
  Components : ''
  Controls      : 3
  Simple ctrls  : 1
Simple mixer control 'PCM',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback -10239 - 400
  Mono: Playback 0 [96%] [0.00dB] [on]


!!Alsactl output
!!--------------

--startcollapse--
state.Set {
control.1 {
iface PCM
name 'Playback Channel Map'
value.0 0
value.1 0
comment {
access read
type INTEGER
count 2
range '0 - 36'
}
}
control.2 {
iface MIXER
name 'Mic Playback Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.3 {
iface MIXER
name 'Mic Playback Volume'
value 23
comment {
access 'read write'
type INTEGER
count 1
range '0 - 32'
dbmin 0
dbmax 4781
dbvalue.0 3436
}
}
control.4 {
iface MIXER
name 'Headphone Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.5 {
iface MIXER
name 'Headphone Playback Volume'
value.0 150
value.1 150
comment {
access 'read write'
type INTEGER
count 2
range '0 - 151'
dbmin -2837
dbmax -6
dbvalue.0 -25
dbvalue.1 -25
}
}
control.6 {
iface MIXER
name 'Mic Capture Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.7 {
iface MIXER
name 'Mic Capture Volume'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 16'
dbmin 0
dbmax 2381
dbvalue.0 0
}
}
control.8 {
iface MIXER
name 'Auto Gain Control'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
}
state.ALSA {
control.1 {
iface MIXER
name 'PCM Playback Volume'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '-10239 - 400'
dbmin -9999999
dbmax 400
dbvalue.0 0
}
}
control.2 {
iface MIXER
name 'PCM Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.3 {
iface MIXER
name 'PCM Playback Route'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 2'
}
}
}
--endcollapse--


!!All Loaded Modules
!!------------------

Module
snd_bcm2835
snd_usb_audio
snd_usbmidi_lib
snd_rawmidi
snd_seq_device
snd_pcm
snd_page_alloc
snd_timer
snd_hwdep
snd
squashfs
loop
evdev
i2c_bcm2708
spi_bcm2708


!!ALSA/HDA dmesg
!!--------------




Steen

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore 5.0.alpha1
« Reply #25 on: September 11, 2013, 11:40:24 AM »
Difference is that in 5.0.alpha 1 the snd_usb_audio module is not loaded which is required. Try

Quote
sudo modprobe snd_usb_audio

than Alsa must work. Check modules loaded with

Quote
sudo lsmod
« Last Edit: September 11, 2013, 11:42:33 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: piCore 5.0.alpha1
« Reply #26 on: September 11, 2013, 01:14:44 PM »
Sorry for the delay, I broke my SD-card with version 5 on. So I had to find a spare one.

lsmod  version 4.7.7

Code: [Select]
tc@box:/$ lsmod
Module                  Size  Used by    Not tainted
snd_bcm2835            16141  1
snd_usb_audio         111379  0
snd_usbmidi_lib        18259  1 snd_usb_audio
snd_rawmidi            21163  1 snd_usbmidi_lib
snd_seq_device          6437  1 snd_rawmidi
snd_pcm                80323  3 snd_bcm2835,snd_usb_audio
snd_page_alloc          5148  1 snd_pcm
snd_timer              20001  1 snd_pcm
snd_hwdep               5932  1 snd_usb_audio
snd                    58522  9 snd_bcm2835,snd_usb_audio,snd_usbmidi_lib,snd_rawmidi,snd_seq_device,snd_pcm,snd_timer,snd_hwdep
squashfs               23590 23
loop                   16029 46
evdev                   9305  0
i2c_bcm2708             3657  0
spi_bcm2708             4734  0


***********************

lsmod Version 5
Code: [Select]
tc@box:~$ lsmod
Module                  Size  Used by    Not tainted
snd_bcm2835            16061  0
snd_pcm                75191  1 snd_bcm2835
snd_page_alloc          4672  1 snd_pcm
snd_timer              19230  1 snd_pcm
snd                    54082  3 snd_bcm2835,snd_pcm,snd_timer
squashfs               28667 17
lzo_decompress          1568  1 squashfs

Steen

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: piCore 5.0.alpha1
« Reply #27 on: September 11, 2013, 01:18:56 PM »
Difference is that in 5.0.alpha 1 the snd_usb_audio module is not loaded which is required. Try

Quote
sudo modprobe snd_usb_audio

than Alsa must work. Check modules loaded with

Quote
sudo lsmod

OK, now it finds the USB-DAC:
Code: [Select]
tc@box:~$ sudo modprobe snd_usb_audio
tc@box:~$ sudo 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 1: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


Thank you for your help.

Steen

NB: Regarding the need for sudo - and the difference in your # and mine $ promt. Is that something that you will change or is it as it should be?


Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore 5.0.alpha1
« Reply #28 on: September 11, 2013, 01:37:32 PM »
Glad to hear it works. The alsa-modules tcz has a startup script which modprobes the kernel module for the built-in sound device. I will add the modprobe for snd_usb_audio so it will be loaded at startup.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore 5.0.alpha1
« Reply #29 on: September 11, 2013, 03:13:02 PM »
Updated alsa modules uploaded to the repo, please update.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."