RaspbmcCrystalbuntu

Post Reply 
 
Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Alpha] usb sound cards support for raspbmc
07-15-2012, 08:25 PM (This post was last modified: 07-15-2012 08:27 PM by s7mx1.)
Post: #31
RE: [Alpha] usb sound cards support for raspbmc
There is a udev script that should (software) unmute sound card/speakers for you. It's not possible for me to test it for all the sound cards therefore that's one place to look at.

However your case more looks like the right xbmc was not running. Double check .xbmc-current is linked to the right xbmc.
Code:
ls -lrta ~/.xbmc-current
if its pointing to the right location then make sure xbmc is stopped then start it
Code:
sudo initctl stop xbmc
sudo initctl start xbmc

(07-15-2012 08:03 PM)Sir Gallivant Wrote:  Got some ways with this guide, no sound yet, though.
Cambridge DacMagic works nicely off laptop running ubuntu 12.04.
It also seems to get detected on the Raspi, pactl gets me the output below.

s7mx1, you mentioned to harmenzon that sound card might be muted, since it has no mute function in itself, and it works off another computer, would the muting be in the software somewhere, and if so, how do control it?

Code:
pi@raspbmc:~$ pactl list sinks
Sink #0
    State: SUSPENDED
    Name: null
    Description: Null Output
    Driver: module-null-sink.c
    Sample Specification: s16le 2ch 44100Hz
    Channel Map: front-left,front-right
    Owner Module: 0
    Mute: no
    Volume: 0: 100% 1: 100%
            0: 0.00 dB 1: 0.00 dB
            balance 0.00
    Base Volume: 100%
                 0.00 dB
    Monitor Source: null.monitor
    Latency: 0 usec, configured 0 usec
    Flags: DECIBEL_VOLUME LATENCY
    Properties:
        device.description = "Null Output"
        device.class = "abstract"
        device.icon_name = "audio-card"
    Formats:
        pcm

Sink #1
    State: SUSPENDED
    Name: alsa_output.usb-0d8c_C-Media_USB_Headphone_Set-00-Set.analog-stereo
    Description: C-Media USB Headphone Set   Analog Stereo
    Driver: module-alsa-card.c
    Sample Specification: s16le 2ch 44100Hz
    Channel Map: front-left,front-right
    Owner Module: 1
    Mute: no
    Volume: 0: 100% 1: 100%
            0: 0.00 dB 1: 0.00 dB
            balance 0.00
    Base Volume: 100%
                 0.06 dB
    Monitor Source: alsa_output.usb-0d8c_C-Media_USB_Headphone_Set-00-Set.analog-stereo.monitor
    Latency: 0 usec, configured 0 usec
    Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
    Properties:
        alsa.resolution_bits = "16"
        device.api = "alsa"
        device.class = "sound"
        alsa.class = "generic"
        alsa.subclass = "generic-mix"
        alsa.name = "USB Audio"
        alsa.id = "USB Audio"
        alsa.subdevice = "0"
        alsa.subdevice_name = "subdevice #0"
        alsa.device = "0"
        alsa.card = "0"
        alsa.card_name = "C-Media USB Headphone Set"
        alsa.long_card_name = "C-Media USB Headphone Set at usb-bcm2708_usb-1.3, full speed"
        alsa.driver_name = "snd_usb_audio"
        device.bus_path = "platform-bcm2708_usb-usb-0:1.3:1.0"
        sysfs.path = "/devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/sound/card0"
        udev.id = "usb-0d8c_C-Media_USB_Headphone_Set-00-Set"
        device.bus = "usb"
        device.vendor.id = "0d8c"
        device.vendor.name = "0d8c"
        device.product.id = "000c"
        device.product.name = "C-Media USB Headphone Set  "
        device.serial = "0d8c_C-Media_USB_Headphone_Set"
        device.form_factor = "headphone"
        device.string = "front:0"
        device.buffering.buffer_size = "352800"
        device.buffering.fragment_size = "176400"
        device.access_mode = "mmap+timer"
        device.profile.name = "analog-stereo"
        device.profile.description = "Analog Stereo"
        device.description = "C-Media USB Headphone Set   Analog Stereo"
        alsa.mixer_name = "USB Mixer"
        alsa.components = "USB0d8c:000c"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-headphones-usb"
    Ports:
        analog-output: Analog Output (priority: 9900)
    Active Port: analog-output
    Formats:
        pcm
pi@raspbmc:~$ pactl list short clients
1    protocol-native.c    pactl
pi@raspbmc:~$
Find all posts by this user
Quote this message in a reply
07-15-2012, 08:36 PM
Post: #32
RE: [Alpha] usb sound cards support for raspbmc
(07-15-2012 08:25 PM)s7mx1 Wrote:  There is a udev script that should (software) unmute sound card/speakers for you. It's not possible for me to test it for all the sound cards therefore that's one place to look at.
That is quite understandable ;-)

(07-15-2012 08:25 PM)s7mx1 Wrote:  However your case more looks like the right xbmc was not running. Double check .xbmc-current is linked to the right xbmc.
Code:
ls -lrta ~/.xbmc-current
if its pointing to the right location then make sure xbmc is stopped then start it
Code:
sudo initctl stop xbmc
sudo initctl start xbmc

That gives me the following output, but I cannot determine if that is the right xbmc, though. Stopping and starting xbmc does not make a difference.

Code:
pi@raspbmc:/home$ ls -lrta ~/.xbmc-current
lrwxrwxrwx 1 pi pi 13 Jan  1  1970 /home/pi/.xbmc-current -> /opt/xbmc-bcm
Find all posts by this user
Quote this message in a reply
07-15-2012, 09:11 PM
Post: #33
RE: [Alpha] usb sound cards support for raspbmc
Excellent! Thanks

sebus
Find all posts by this user
Quote this message in a reply
07-15-2012, 09:18 PM
Post: #34
RE: [Alpha] usb sound cards support for raspbmc
I've got the same issues as Sir Gallivant.

Same DAC and same results. I can see the additional settings under Settings --> Music So that makes me think that the link is to the correct version.
Find all posts by this user
Quote this message in a reply
07-15-2012, 09:23 PM (This post was last modified: 07-15-2012 09:47 PM by s7mx1.)
Post: #35
RE: [Alpha] usb sound cards support for raspbmc
It's the wrong one. Did you follow the instructions as user pi ?

You could try the following to see how it goes
Code:
cd ~/
rm .xbmc-current
ln -s /home/pi/.upgrade/xbmc-rbp-pulseaudio-20120706/xbmc-bcm .xbmc-current

restart xbmc afterwards

(07-15-2012 08:36 PM)Sir Gallivant Wrote:  
(07-15-2012 08:25 PM)s7mx1 Wrote:  There is a udev script that should (software) unmute sound card/speakers for you. It's not possible for me to test it for all the sound cards therefore that's one place to look at.
That is quite understandable ;-)

(07-15-2012 08:25 PM)s7mx1 Wrote:  However your case more looks like the right xbmc was not running. Double check .xbmc-current is linked to the right xbmc.
Code:
ls -lrta ~/.xbmc-current
if its pointing to the right location then make sure xbmc is stopped then start it
Code:
sudo initctl stop xbmc
sudo initctl start xbmc

That gives me the following output, but I cannot determine if that is the right xbmc, though. Stopping and starting xbmc does not make a difference.

Code:
pi@raspbmc:/home$ ls -lrta ~/.xbmc-current
lrwxrwxrwx 1 pi pi 13 Jan  1  1970 /home/pi/.xbmc-current -> /opt/xbmc-bcm

The DAC should be fine. I need you to run the following commands as user pi and post back the output
Code:
pactl list sinks
pactl list short clients
ls -lrta ~/.xbmc-current
ps -ef | grep xbmc

(07-15-2012 09:18 PM)bump Wrote:  I've got the same issues as Sir Gallivant.

Same DAC and same results. I can see the additional settings under Settings --> Music So that makes me think that the link is to the correct version.
Find all posts by this user
Quote this message in a reply
07-15-2012, 09:51 PM
Post: #36
RE: [Alpha] usb sound cards support for raspbmc
(07-15-2012 09:23 PM)s7mx1 Wrote:  It's the wrong one. Did you follow the instructions as user pi ?
As far as I can be sure, yes I did. I will stop for tonight, though, and go through all steps again tomorrow, from scratch, and double-check each step. So far thanks a lot for your help, let's see if a bit of rest will make a change.

Your last idea did make a change, however, the xbmc reacts a lot faster and smoother, but now I am unable to get the music add-on working, no music is being played.
Code:
pi@raspbmc:~$ ls -lrta ~/.xbmc-current
lrwxrwxrwx 1 pi pi 55 Jul 15 20:36 /home/pi/.xbmc-current -> /home/pi/.upgrade/xbmc-rbp-pulseaudio-20120706/xbmc-bcm


as for the other outputs you asked for:
Code:
pi@raspbmc:~$ ps -ef | grep xbmc
root       295     1  0 20:39 ?        00:00:00 /bin/bash /scripts/xbmc-watchdog.sh
pi         307   295  0 20:39 ?        00:00:00 su - pi -c export XBMC_HOME=/home/pi/.upgrade/xbmc-rbp-pulseaudio-20120706/xbmc-bcm'/xbmc-bin/share/xbmc' ; /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/xbmc.bin --standalone -fs --lircdev /var/run/lirc/lircd
pi         385   307  0 20:39 ?        00:00:00 -su -c export XBMC_HOME=/home/pi/.upgrade/xbmc-rbp-pulseaudio-20120706/xbmc-bcm'/xbmc-bin/share/xbmc' ; /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/xbmc.bin --standalone -fs --lircdev /var/run/lirc/lircd
pi         392   385 41 20:39 ?        00:04:42 /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/xbmc.bin --standalone -fs --lircdev /var/run/lirc/lircd
pi         672   665  0 20:51 pts/0    00:00:00 grep xbmc
Find all posts by this user
Quote this message in a reply
07-15-2012, 10:07 PM
Post: #37
RE: [Alpha] usb sound cards support for raspbmc
I've just gone back and looked over pulseaudio again

I changed /etc/pulse/default.pa
load-module module-cork-music-on-phone
to
load-module module-role-cork

and
load-module module-detect
to
load-module module-udev-detect

untarred the modded xbmc, removed the .xbmc-current and relinked.

All is now up and running nicely.
Find all posts by this user
Quote this message in a reply
07-15-2012, 10:12 PM (This post was last modified: 07-15-2012 10:13 PM by s7mx1.)
Post: #38
RE: [Alpha] usb sound cards support for raspbmc
my pulseaudio does not use default.pa as it runs in system mode (system.pa). Re-link the .xbmc-current did the trick.

(07-15-2012 10:07 PM)bump Wrote:  I've just gone back and looked over pulseaudio again

I changed /etc/pulse/default.pa
load-module module-cork-music-on-phone
to
load-module module-role-cork

and
load-module module-detect
to
load-module module-udev-detect

untarred the modded xbmc, removed the .xbmc-current and relinked.

All is now up and running nicely.

Please try play audio files over network or locally.

(07-15-2012 09:51 PM)Sir Gallivant Wrote:  
(07-15-2012 09:23 PM)s7mx1 Wrote:  It's the wrong one. Did you follow the instructions as user pi ?
As far as I can be sure, yes I did. I will stop for tonight, though, and go through all steps again tomorrow, from scratch, and double-check each step. So far thanks a lot for your help, let's see if a bit of rest will make a change.

Your last idea did make a change, however, the xbmc reacts a lot faster and smoother, but now I am unable to get the music add-on working, no music is being played.
Code:
pi@raspbmc:~$ ls -lrta ~/.xbmc-current
lrwxrwxrwx 1 pi pi 55 Jul 15 20:36 /home/pi/.xbmc-current -> /home/pi/.upgrade/xbmc-rbp-pulseaudio-20120706/xbmc-bcm


as for the other outputs you asked for:
Code:
pi@raspbmc:~$ ps -ef | grep xbmc
root       295     1  0 20:39 ?        00:00:00 /bin/bash /scripts/xbmc-watchdog.sh
pi         307   295  0 20:39 ?        00:00:00 su - pi -c export XBMC_HOME=/home/pi/.upgrade/xbmc-rbp-pulseaudio-20120706/xbmc-bcm'/xbmc-bin/share/xbmc' ; /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/xbmc.bin --standalone -fs --lircdev /var/run/lirc/lircd
pi         385   307  0 20:39 ?        00:00:00 -su -c export XBMC_HOME=/home/pi/.upgrade/xbmc-rbp-pulseaudio-20120706/xbmc-bcm'/xbmc-bin/share/xbmc' ; /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/xbmc.bin --standalone -fs --lircdev /var/run/lirc/lircd
pi         392   385 41 20:39 ?        00:04:42 /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/xbmc.bin --standalone -fs --lircdev /var/run/lirc/lircd
pi         672   665  0 20:51 pts/0    00:00:00 grep xbmc
Find all posts by this user
Quote this message in a reply
07-16-2012, 12:53 PM
Post: #39
RE: [Alpha] usb sound cards support for raspbmc
(07-15-2012 10:12 PM)s7mx1 Wrote:  Please try play audio files over network or locally.

That works, thanks.

Still need to get the add-ons working, though, and for some reason I am unable to get the xbmc remote app for android to hook up.
Find all posts by this user
Quote this message in a reply
07-18-2012, 09:03 AM
Post: #40
RE: [Alpha] usb sound cards support for raspbmc
(07-16-2012 12:53 PM)Sir Gallivant Wrote:  
(07-15-2012 10:12 PM)s7mx1 Wrote:  Please try play audio files over network or locally.

That works, thanks.

Still need to get the add-ons working, though, and for some reason I am unable to get the xbmc remote app for android to hook up.

any update? I'm really longing for using this! Anything we can help with?
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)

Sponsored Advertisement