[Voyage-linux] problem with Voyage MPD USB 2 Sound

Punky Tse (spam-protected)
Thu Oct 18 23:51:44 HKT 2012


Hi Stoyan,

I have the same problem using XMOS USB Audio 2.0 reference board too.

Can you attach the dmesg when your DAC is detected as UAC 1.0

[    4.119841] usb 1-1: >new high-speed USB device number 2 using ehci_hcd
[    4.237416] usb 1-1: >New USB device found, idVendor=20b1, 
idProduct=00023
[    4.239200] usb 1-1: >Product: XMOS USB Audio 2.0
[    4.240338] usb 1-1: >Manufacturer: XMOS
[    4.241406] usb 1-1: >SerialNumber: 0000

When UAC 2.0 is detected, ehci_hcd is used.  I would suspect that your 
DAC uses ohci_hcd when it runs in UAC 1.0 mode.

I would try:  blacklist ohci_hcd and regenerate initramfs (run 
update-initramfs), and see your DAC still detects as UAC 1.0, occasionally.


On 10/18/2012 11:20 AM, stoyan wrote:
> Hello,
> First: thank you for great job developing Voyage MPD - works awesome!
> I upgrade to last build of Voyage MPD and on every reboot I got
> different configuration for my USB DAC - sometimes is USB 1, sometimes
> is USB 2 mode.
> When is in USB 2 mode everything is OK, works well.
> In USB 1 mode I got error message that can't open sound device and
> can't play music.
> Currently installed build of Voyage MPD is
> voyage-mpd/voyage-mpd-0.9-rc1.tar.bz2 on ALIX3D2 board with USB DAC
> M2Tech HiFace Two and without Wi-Fi card Installed.
> I'm using like music source my home NAS and mount the music directory
> via NFS in fstab.
>
> Is it possible to optimize the boot process and to define which module
> or driver to load?
>
> Here is the result from aplay -l when everything works fine:
> root at voyage:/etc/modprobe.d# aplay -l
> **** List of PLAYBACK Hardware Devices ****
> card 0: M20 [M2Tech USB Audio 2.0], device 0: USB Audio [USB Audio]
>    Subdevices: 1/1
>    Subdevice #0: subdevice #0
>
> Here is the result from aplay -L when everything works fine:
> root at voyage:/etc/modprobe.d# aplay -L
> null
>      Discard all samples (playback) or generate zero samples (capture)
> default:CARD=M20
>      M2Tech USB Audio 2.0, USB Audio
>      Default Audio Device
> sysdefault:CARD=M20
>      M2Tech USB Audio 2.0, USB Audio
>      Default Audio Device
> front:CARD=M20,DEV=0
>      M2Tech USB Audio 2.0, USB Audio
>      Front speakers
> surround40:CARD=M20,DEV=0
>      M2Tech USB Audio 2.0, USB Audio
>      4.0 Surround output to Front and Rear speakers
> surround41:CARD=M20,DEV=0
>      M2Tech USB Audio 2.0, USB Audio
>      4.1 Surround output to Front, Rear and Subwoofer speakers
> surround50:CARD=M20,DEV=0
>      M2Tech USB Audio 2.0, USB Audio
>      5.0 Surround output to Front, Center and Rear speakers
> surround51:CARD=M20,DEV=0
>      M2Tech USB Audio 2.0, USB Audio
>      5.1 Surround output to Front, Center, Rear and Subwoofer speakers
> surround71:CARD=M20,DEV=0
>      M2Tech USB Audio 2.0, USB Audio
>      7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
> iec958:CARD=M20,DEV=0
>      M2Tech USB Audio 2.0, USB Audio
>      IEC958 (S/PDIF) Digital Audio Output
>
> Here is the result from lsmod when everything works fine:
> root at voyage:/etc/modprobe.d# lsmod
> Module                  Size  Used by
> nfsd                  159791  2
> exportfs                2442  1 nfsd
> ipv6                  190776  36
> ledtrig_netdev          2654  0
> ledtrig_timer           1178  0
> ledtrig_heartbeat        925  0
> geodewdt                2035  2
> hwmon_vid               1608  0
> lm90                    8829  0
> evdev                   6400  0
> snd_usb_audio          63506  1
> snd_usbmidi_lib        12562  1 snd_usb_audio
> snd_hwdep               3794  1 snd_usb_audio
> snd_seq_midi            3208  0
> snd_seq_midi_event      3636  1 snd_seq_midi
> snd_rawmidi            11818  2 snd_usbmidi_lib,snd_seq_midi
> snd_pcm                47801  1 snd_usb_audio
> snd_page_alloc          4833  1 snd_pcm
> snd_seq                32807  2 snd_seq_midi_event,snd_seq_midi
> snd_seq_device          3561  3 snd_seq,snd_rawmidi,snd_seq_midi
> snd_timer              11810  2 snd_pcm,snd_seq
> snd                    34735  10
> snd_usb_audio,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_usbmidi_lib,snd_seq_device
> pcspkr                  1255  0
> soundcore               3251  1 snd
> scx200_acb              3151  0
> cs5535_mfgpt            2145  1 geodewdt
> geode_aes               3786  0
> geode_rng                800  0
> rng_core                2274  1 geode_rng
> ata_generic             2239  0
> pata_cs5536             2150  0
> pata_amd                6684  0
> libata                117623  3 pata_amd,ata_generic,pata_cs5536
> ide_pci_generic         1964  0
> ohci_hcd               16707  0
> ehci_hcd               28673  0
> usbcore                93451  5 snd_usb_audio,ohci_hcd,snd_usbmidi_lib,ehci_hcd
> ssb                    32142  1 ohci_hcd
> usb_common               529  1 usbcore
> pcmcia                 24612  1 ssb
> pcmcia_core             8381  1 pcmcia
> amd74xx                 3612  1
> via_rhine              15706  0
> mii                     2759  1 via_rhine
>
>
> info from
> root at voyage:/etc/modprobe.d# cat /proc/asound/cards
>   0 [M20            ]: USB-Audio - M2Tech USB Audio 2.0
>                        M2Tech M2Tech USB Audio 2.0 at
> usb-0000:00:0f.5-2, high speed
>
> In "bad" configuration after reboot the info is "M2Tech USB Audio 1".
> I did not found any relation between how and how often I restart the
> system - just sometimes it detects USB DAC in usb 1, other time like
> usb 2 device.
>
> I did not found also such issue in internet.
>
> Please, do you have any ideas how to fix this issue?
> Is it possible to define manually what and how to load to avoid
> detecting new sound card after reboot?
>
> Best regards,
>
> Stoyan
>
>
>
>
> --
> View this message in context: http://voyage-linux.34677.n3.nabble.com/problem-with-Voyage-MPD-USB-2-Sound-tp4025273.html
> Sent from the Voyage Linux mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux at list.voyage.hk
> http://list.voyage.hk/mailman/listinfo/voyage-linux


-- 

Regards,
Kim-man "Punky" Tse

* Open Source Embedded Solutions and Systems
   - Voyage Linux (http://linux.voyage.hk)
   - Voyage ONE   (http://linux.voyage.hk/voyage-one)
   - Voyage MPD   (http://linux.voyage.hk/voyage-mpd)
* Voyage Store   (http://store.voyage.hk)





More information about the Voyage-linux mailing list