Support for Creative USB soundcard

Raspberry Pi related support

Support for Creative USB soundcard

Postby jotak » 30 Jul 2014, 21:16

Hello,

As discussed with Andrea, I can't get my Creative USB soundcard working with RuneAudio. Here's my system info :
http://pastebin.com/Qx52WfPb

Some more information: I have "USB Device 0x41e:0x30d3" that appears on the MPD config page as audio output, but once selected I can't play anything.

I had the same issue with version 0.2, it didn't produce any sound.
However it was working correctly on Raspyfi. If there's anything of interest I can do to collect information with the working version (raspyfi), please tell me.

When running "mpc play" from terminal it says:
volume: n/a repeat: off random: off single: off consume: off
ERROR: Failed to open audio output

I'm currently running a full system upgrade to see if it's better, there's some ALSA stuff being upgraded.. If it breaks something (I mean, more than it's currently broken) I'll reinstall from a clean version.

PS: I'm talking about this sound card : http://asia.creative.com/p/sound-blaste ... aster-play
jotak
 
Posts: 14
Joined: 20 May 2014, 16:36

Re: Support for Creative USB soundcard

Postby cmh714 » 30 Jul 2014, 21:43

this section of mpd.conf isnt correct...your device seems to be 1 which it sort of got...
audio_output {
name "USB Device 0x41e:0x30d3"
type "alsa"
device "hw:1,"
auto_resample "no"
auto_format "no"
}

change to this:

audio_output {
name "USB Device 0x41e:0x30d3"
type "alsa"
device "hw:1,0"
auto_resample "no"
auto_format "no"
enabled "yes"
}
cmh714
 
Posts: 470
Joined: 04 May 2014, 03:06

Re: Support for Creative USB soundcard

Postby Orion » 30 Jul 2014, 22:27

Hi jotak,
you have found a bug in our auto-configuration routine.
I'll study your debug output looking to catch the error.
Thanks for your debug informations.
For now, manually correct the wrong line of mpd.conf as cmh714 says.
Stay tuned.

Simone.
RuneAudio - Embedded Hi-Fi music player
SoloStereo - Alla riscoperta dell'alta fedeltà
User avatar
Orion
RuneAudio co-founder
 
Posts: 189
Joined: 29 Nov 2013, 02:03
Location: Udine, Italy

Re: Support for Creative USB soundcard

Postby jotak » 30 Jul 2014, 22:33

Thanks for your answer. I changed mpd.conf as you said, but it doesn't make any difference. Actually I may have to restart MPD but I don't know how to do it under ArchLinux (I'm used to having /etc/init.d/mpd restart, but it's different here, how should I do?)

So I just rebooted the whole system, unfortunately the mpd.conf did automatically rewrite with the same incorrect line 'device "hw:1,"'

And the same if I go through the MPD config page on the web UI, the file is then rewritten with that "hw:1,"
jotak
 
Posts: 14
Joined: 20 May 2014, 16:36

Re: Support for Creative USB soundcard

Postby Orion » 30 Jul 2014, 22:48

try this source code mod, for now.

go to line 172 of /var/www/command/rune_SY_wrk
Code: Select all
// refesh audio hardware status (soundcards and MPD config)
wrk_mpdconf($redis,'refresh');


and comment the line
Code: Select all
// refesh audio hardware status (soundcards and MPD config)
// wrk_mpdconf($redis,'refresh');


This mod, disables the auto-refresh of the mpd.config at boot, but if you make some changes through web config interface, the RuneAudio player will rewrite your mpd.conf.
RuneAudio - Embedded Hi-Fi music player
SoloStereo - Alla riscoperta dell'alta fedeltà
User avatar
Orion
RuneAudio co-founder
 
Posts: 189
Joined: 29 Nov 2013, 02:03
Location: Udine, Italy

Re: Support for Creative USB soundcard

Postby Orion » 30 Jul 2014, 22:49

jotak wrote: Actually I may have to restart MPD but I don't know how to do it under ArchLinux (I'm used to having /etc/init.d/mpd restart, but it's different here, how should I do?)


here is the correct command:
Code: Select all
systemctl restart mpd
RuneAudio - Embedded Hi-Fi music player
SoloStereo - Alla riscoperta dell'alta fedeltà
User avatar
Orion
RuneAudio co-founder
 
Posts: 189
Joined: 29 Nov 2013, 02:03
Location: Udine, Italy

Re: Support for Creative USB soundcard

Postby jotak » 30 Jul 2014, 22:54

Nice! Thank you, i've got my sound now :)

I commented out this line, now restarting the PI doesn't overwrite the config, thanks.

BTW I answer to myself, here's how to restart MPD:
systemctl restart mpd
jotak
 
Posts: 14
Joined: 20 May 2014, 16:36

Re: Support for Creative USB soundcard

Postby Orion » 30 Jul 2014, 23:06

Good job.

Probably I will need some other debug information from your machine.
Can I disturb you with some other debug requests, in these days?
RuneAudio - Embedded Hi-Fi music player
SoloStereo - Alla riscoperta dell'alta fedeltà
User avatar
Orion
RuneAudio co-founder
 
Posts: 189
Joined: 29 Nov 2013, 02:03
Location: Udine, Italy

Re: Support for Creative USB soundcard

Postby jotak » 30 Jul 2014, 23:19

Sure

Actually I was reading at the code..
Looks like some greping gives bad results

At this line : https://github.com/RuneAudio/RuneUI/blo ... .php#L1169
On my machine, cat /proc/asound/cards gives :
Code: Select all
 0 [ALSA           ]: bcm2835 - bcm2835 ALSA
                      bcm2835 ALSA
 1 [U0x41e0x30d3   ]: USB-Audio - USB Device 0x41e:0x30d3
                      USB Device 0x41e:0x30d3 at usb-bcm2708_usb-1.3.4, full speed


See how the semi-column in "0x41e:0x30d3" will give bad result on grep :
Now if I run "cat /proc/asound/cards | grep : | cut -b 1-3,21-"
I got :
Code: Select all
 0 : bcm2835 - bcm2835 ALSA
 1 : USB-Audio - USB Device 0x41e:0x30d3
     USB Device 0x41e:0x30d3 at usb-bcm2708_usb-1.3.4, full speed


I don't totally understand the following code but I see some calls of "explode(':')", which, I guess, will give unwanted results in my case.
jotak
 
Posts: 14
Joined: 20 May 2014, 16:36

Re: Support for Creative USB soundcard

Postby cmh714 » 30 Jul 2014, 23:26

if I understand the output, your correct device name is without the :

it is what is between the [ ]

so try taking the colon out of name in mpd.conf, although that just may be a label

but as long as youre working :)
cmh714
 
Posts: 470
Joined: 04 May 2014, 03:06

support RuneAudio Donate with PayPal

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 15 guests