Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xbox Audio - No Master / PCM in Alsa
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
koan
Apprentice
Apprentice


Joined: 01 May 2006
Posts: 160

PostPosted: Mon Aug 27, 2007 10:05 am    Post subject: xbox Audio - No Master / PCM in Alsa Reply with quote

Hello, I have Gentoo installed on xbox and I am having problems with the intel8x0 module. The details are below.

Basically, alsa does not generate a master or PCM control most times it gets loaded. Occasionally I have managed to get a PCM control to appear, but I can't see what the sequence is to get it to appear. I am not sure what the right behaviour is with xbox gentoo and this driver, so it would be great if someone could post what they have for the following for comparison. I am loading the module with the xbox=1 parameter.

Even when I get the PCM to appear, I am using myth, and tell it to use "ALSA:default" for audio output, and "default" for mixer, and PCM for mixer control, and it reports that it cannot find a master control - with no sound.

Interestingly, speaker-test does produce sound from "default".

Thanks for any help,

Paul




uname -a
Code:
Linux zenbox 2.6.16.26-xbox #3 Thu Aug 23 11:19:31 EST 2007 i686 Celeron (Coppermine) GenuineIntel GNU/Linux


equery list alsa
Code:
[ Searching for package 'alsa' in all categories among: ]
 * installed packages
[I--] [ ~] media-libs/alsa-lib-1.0.14a-r1 (0)
[I--] [ ~] media-sound/alsa-headers-1.0.14 (0)
[I--] [ ~] media-sound/alsa-utils-1.0.14 (0.9)


dmesg:

Code:
PCI: Setting latency timer of device 0000:00:06.0 to 64
AC'97 0 analog subsections not ready
intel8x0_measure_ac97_clock: measured 52939 usecs
intel8x0: clocking to 47497


amixer
Code:

Simple mixer control 'Line',0
  Capabilities: cswitch cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [off]
  Front Right: Capture [off]
Simple mixer control 'CD',0
  Capabilities: cswitch cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [off]
  Front Right: Capture [off]
Simple mixer control 'Mic',0
  Capabilities: cswitch cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [on]
  Front Right: Capture [on]
Simple mixer control 'Video',0
  Capabilities: cswitch cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [off]
  Front Right: Capture [off]
Simple mixer control 'Phone',0
  Capabilities: cswitch cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [off]
  Front Right: Capture [off]
Simple mixer control 'Aux',0
  Capabilities: cswitch cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [off]
  Front Right: Capture [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 15
  Front Left: Capture 0 [0%]
  Front Right: Capture 0 [0%]
Simple mixer control 'Mix',0
  Capabilities: cswitch cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [off]
  Front Right: Capture [off]
Simple mixer control 'Mix Mono',0
  Capabilities: cswitch cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [off]
  Front Right: Capture [off]


lsmod:
Code:


snd_intel8x0           18588  0
snd_pcm_oss            37664  0
snd_mixer_oss          12416  1 snd_pcm_oss
snd_seq_dummy           1156  0
snd_seq_oss            22784  0
snd_seq_midi_event      3584  1 snd_seq_oss
snd_seq                33104  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          4108  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_ac97_codec         72492  1 snd_intel8x0
snd_ac97_bus            1024  1 snd_ac97_codec
snd_pcm                53384  3 snd_intel8x0,snd_pcm_oss,snd_ac97_codec
snd_timer              13444  2 snd_seq,snd_pcm
snd                    29668  9 snd_intel8x0,snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer
soundcore               3808  1 snd
snd_page_alloc          5512  2 snd_intel8x0,snd_pcm


aplay -L
Code:
default:CARD=nForce
    NVidia nForce, NVidia nForce
    Default Audio Device
front:CARD=nForce,DEV=0
    NVidia nForce, NVidia nForce
    Front speakers
surround40:CARD=nForce,DEV=0
    NVidia nForce, NVidia nForce
    4.0 Surround output to Front and Rear speakers
surround41:CARD=nForce,DEV=0
    NVidia nForce, NVidia nForce
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=nForce,DEV=0
    NVidia nForce, NVidia nForce
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=nForce,DEV=0
    NVidia nForce, NVidia nForce
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
null
    Discard all samples (playback) or generate zero samples (capture)




aplay -l
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: nForce [NVidia nForce], device 0: Intel ICH [NVidia nForce]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: nForce [NVidia nForce], device 2: Intel ICH - IEC958 [NVidia nForce - IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Back to top
View user's profile Send private message
mw007
Apprentice
Apprentice


Joined: 08 Nov 2004
Posts: 260

PostPosted: Mon Aug 27, 2007 1:22 pm    Post subject: Reply with quote

I've never personally installed linux on an xbox (though I might be soon). Not sure if you've seen this site or not. http://gentoo-wiki.com/Gentoo_for_Xbox

I do however, have the intel8x0 module loaded on my laptop and had to setup the ~/.asoundrc file before anything would work. The modules loaded look almost identical to mine from what I can recall. I'm at work right now, but I'll check my laptop when I get home.
Back to top
View user's profile Send private message
koan
Apprentice
Apprentice


Joined: 01 May 2006
Posts: 160

PostPosted: Mon Aug 27, 2007 1:33 pm    Post subject: Reply with quote

It would be great to see your .asoundrc. I may have gotten things working by using the softvol plugin as described at the mythtv wiki:

http://mythtv.org/wiki/index.php/Xbox_Sound

I had tried this before, but without realising the gentoo xbox profile doesn't include anything for alsa, and so the softvol plugin didn't emerge.

I have seen that site, it is the one I used to get gentoo up and running.

Cheers,

Paul
Back to top
View user's profile Send private message
mw007
Apprentice
Apprentice


Joined: 08 Nov 2004
Posts: 260

PostPosted: Tue Aug 28, 2007 11:19 am    Post subject: Reply with quote

I will get you the .asoundrc file when I get home from work today. Sorry it wasn't yesterday, I had to run errands all night :oops:
Back to top
View user's profile Send private message
mw007
Apprentice
Apprentice


Joined: 08 Nov 2004
Posts: 260

PostPosted: Wed Aug 29, 2007 2:05 am    Post subject: Reply with quote

Here is my .asoundrc file. Sorry it wasn't sooner, I've been trying to get a new job, and things have been hectic to say the least!

Code:

pcm.dsp0 {
    type plug
    slave.pcm "dmix"
}

ctl.mixer0 {
    type hw
    card 0
}

pcm.!default {
    type plug
    slave.pcm "dmix"
}


This is the code that enables sound mixing, but my sound would not work at all until this was present.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum