Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
YAAP:) alsa/spdif from MythTV OK - but cdplay nothing ...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Fri Apr 11, 2008 9:57 am    Post subject: YAAP:) alsa/spdif from MythTV OK - but cdplay nothing ... Reply with quote

[Yet Another ALSA Sound Problem]
Hi media folk!

I have managed to get my Intel HDA onboard card working beautifully with ALSA outputting via SPDIF in MythTV.

I am now trying to configure MythMusic and MythVideo and running into lots more trouble.

Problem is tied in with some permission issues that I can't get to the bottom of yet either.

Here is the situation.

I have two Pioneer Optical Discs on my Box:

/dev/sr0 is a Bluray Disc (BD)
/dev/sr1 is a DVD/CD/RW drive

Basically I want to run the DB disc for DVDs and ultimately BDs and use the DVD for music (if it is easy enough then I'll settle to start with getting all playing immediately from the BD)

MythTV is setup to output sound to the ALSA:spdif plug and it works fine. All I had to do was unmute it in alsamixer.

At some point a week or so ago I had sound from my DVD/BD drive via xine but it refuses to see the drive at all now.

MythTV does not provide any sound from either of the optical drives and infact when I switch back to the console I see that it is whinging about some permission problems;

Code:

MythMusic hasn't found any tracks! That's ok with me if it's ok with you.
...
Could not open cdrom_fd: Permission denied


So I began looking at how I mount my sr0 and sr1
and ended up with this
Code:
/dev/sr1      /mnt/cdrom    iso9660,udf   user,noauto,ro,nosuid,uid=0,gid=19,umask=007    0 0
/dev/sr0      /mnt/bdrom   iso9660,udf   user,noauto,ro,nosuid,uid=0,gid=19,umask=007    0 0

I ensured groups were correctly populated:
Code:
audio::18:mythtv,stardotstar
cdrom::19:haldaemon,mythtv,stardotstar
dialout::20:root
tape::26:root
video:!:27:root,mythtv,stardotstar
cdrw::80:haldaemon,mythtv,stardotstar

I checked that the symbolic links around the traps were ok...
Code:

mythology dev # ls -l cd*
lrwxrwxrwx 1 root root 3 Apr 11 15:00 cdrom -> sr0
lrwxrwxrwx 1 root root 3 Apr 11 15:00 cdrom2 -> sr1
lrwxrwxrwx 1 root root 3 Apr 11 15:00 cdrw -> sr0
lrwxrwxrwx 1 root root 3 Apr 11 15:00 cdrw2 -> sr1
mythology dev # ls -l dv*
lrwxrwxrwx 1 root root  3 Apr 11 15:00 dvd -> sr0
lrwxrwxrwx 1 root root  3 Apr 11 15:00 dvd2 -> sr1
lrwxrwxrwx 1 root root  3 Apr 11 15:00 dvdrw -> sr0
lrwxrwxrwx 1 root root  3 Apr 11 15:00 dvdrw2 -> sr1

dvb:
total 0
drwxr-xr-x 2 root root 120 Apr 11 15:00 adapter0
mythology dev # ls -l sr*
brw-rw---- 1 root cdrom 11, 0 Apr 11 15:00 sr0
brw-rw---- 1 root cdrom 11, 1 Apr 11 15:00 sr1


and I played around in alsamixer whilst emerging cdplay and using speaker-test

Code:

mythology dev # speaker-test -D spdif -c2

speaker-test 1.0.15

Playback device is spdif
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 32 to 8192
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
 0 - Front Left
 1 - Front Right
^C

this worked fine

but cdplay would only report that it was playing the discs the tracks would progress one after another to the sound of resounding silence :)

Code:

mythology dev # cdplay -c -d /dev/sr0 -v
Playing from CD-Track: 1
Playing cd-track: 1 [06:27]


Now I am not sure what else I need to post but I tried an asound.state and asound.conf that reported errors from the alsa daemon -

Code:

mythology ~ # cat /etc/asound.conf
pcm.!default {
type plug
slave {
pcm "spdif"
rate 4800
format S16_LE
}
}

mythology ~ # /etc/init.d/alsasound restart
 * WARNING:  you are stopping a boot service.
 * Storing ALSA Mixer Levels ...                                                                                                                          [ ok ]
 * Killing processes using ALSA ...                                                                                                                       [ ok ]
 * Unloading ALSA modules ...                                                                                                                             [ ok ]
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...                                                                                                                              [ ok ]
 *   Loading: snd-seq-oss ...                                                                                                                             [ ok ]
 * Restoring Mixer Levels ...                                                                                                                             [ ok ]
mythology ~ # cdplay -c -d /dev/sr0 -v
Playing from CD-Track: 1
Playing cd-track: 1 [06:27]


and

Code:

mythology ~ # cat /etc/asound.state
state.Intel {
   control.1 {
      comment.access 'read write'
      comment.type INTEGER
      comment.count 2
      comment.range '0 - 64'
      iface MIXER
      name 'Front Playback Volume'
      value.0 52
      value.1 52
   }
   control.2 {
      comment.access 'read write'
      comment.type BOOLEAN
      comment.count 2
      iface MIXER
      name 'Front Playback Switch'
      value.0 true
      value.1 true
   }
   control.3 {
      comment.access 'read write'
      comment.type INTEGER
      comment.count 2
      comment.range '0 - 64'
      iface MIXER
      name 'Surround Playback Volume'
      value.0 0
      value.1 0
   }
   control.4 {
      comment.access 'read write'
      comment.type BOOLEAN
      comment.count 2
      iface MIXER
      name 'Surround Playback Switch'
      value.0 true
      value.1 true
   }
   control.5 {
      comment.access 'read write'
      comment.type INTEGER
      comment.count 1
      comment.range '0 - 64'
      iface MIXER
      name 'Center Playback Volume'
      value 0
   }
   control.6 {
      comment.access 'read write'
      comment.type INTEGER
      comment.count 1
      comment.range '0 - 64'
      iface MIXER
      name 'LFE Playback Volume'
      value 0
   }
   control.7 {
      comment.access 'read write'
      comment.type BOOLEAN
      comment.count 1
      iface MIXER
      name 'Center Playback Switch'
      value true
   }
   control.8 {
      comment.access 'read write'
      comment.type BOOLEAN
      comment.count 1
      iface MIXER
      name 'LFE Playback Switch'
      value true
   }
   control.9 {
      comment.access 'read write'
      comment.type INTEGER
      comment.count 2
      comment.range '0 - 64'
      iface MIXER
      name 'Side Playback Volume'
      value.0 0
      value.1 0
   }
   control.10 {
      comment.access 'read write'
      comment.type BOOLEAN
      comment.count 2
      iface MIXER
      name 'Side Playback Switch'
      value.0 true
      value.1 true
   }
   control.11 {
      comment.access 'read write'
      comment.type BOOLEAN
      comment.count 2
      iface MIXER
      name 'Headphone Playback Switch'
      value.0 true
      value.1 true
   }
   control.12 {
      comment.access 'read write'
      comment.type INTEGER
      comment.count 2
      comment.range '0 - 31'
      iface MIXER
      name 'Mic Playback Volume'
      value.0 0
      value.1 0
   }
   control.13 {
      comment.access 'read write'
      comment.type BOOLEAN
      comment.count 2
      iface MIXER
      name 'Mic Playback Switch'
      value.0 false
      value.1 false
   }
   control.14 {
      comment.access 'read write'
      comment.type INTEGER
      comment.count 2
      comment.range '0 - 31'
      iface MIXER
      name 'Front Mic Playback Volume'
      value.0 0
      value.1 0
   }
   control.15 {
      comment.access 'read write'
      comment.type BOOLEAN
      comment.count 2
      iface MIXER
      name 'Front Mic Playback Switch'
      value.0 false
      value.1 false
   }
   control.16 {
      comment.access 'read write'
      comment.type INTEGER
      comment.count 2
      comment.range '0 - 31'
      iface MIXER
      name 'Line Playback Volume'
      value.0 0
      value.1 0
   }
   control.17 {
      comment.access 'read write'
      comment.type BOOLEAN
      comment.count 2
      iface MIXER
      name 'Line Playback Switch'
      value.0 false
      value.1 false
   }
   control.18 {
      comment.access 'read write'
      comment.type INTEGER
      comment.count 2
      comment.range '0 - 3'
      iface MIXER
      name 'Mic Boost'
      value.0 0
      value.1 0
   }
   control.19 {
      comment.access 'read write'
      comment.type INTEGER
      comment.count 2
      comment.range '0 - 3'
      iface MIXER
      name 'Front Mic Boost'
      value.0 0
      value.1 0
   }
   control.20 {
      comment.access 'read write'
      comment.type INTEGER
      comment.count 2
      comment.range '0 - 46'
      iface MIXER
      name 'Capture Volume'
      value.0 0
      value.1 0
   }
   control.21 {
      comment.access 'read write'
      comment.type BOOLEAN
      comment.count 2
      iface MIXER
      name 'Capture Switch'
      value.0 true
      value.1 true
   }
   control.22 {
      comment.access 'read write'
      comment.type INTEGER
      comment.count 2
      comment.range '0 - 46'
      iface MIXER
      name 'Capture Volume'
      index 1
      value.0 0
      value.1 0
   }
   control.23 {
      comment.access 'read write'
      comment.type BOOLEAN
      comment.count 2
      iface MIXER
      name 'Capture Switch'
      index 1
      value.0 true
      value.1 true
   }
   control.24 {
      comment.access 'read write'
      comment.type INTEGER
      comment.count 2
      comment.range '0 - 46'
      iface MIXER
      name 'Capture Volume'
      index 2
      value.0 0
      value.1 0
   }
   control.25 {
      comment.access 'read write'
      comment.type BOOLEAN
      comment.count 2
      iface MIXER
      name 'Capture Switch'
      index 2
      value.0 true
      value.1 true
   }
   control.26 {
      comment.access 'read write'
      comment.type ENUMERATED
      comment.count 1
      comment.item.0 Mic
      comment.item.1 'Front Mic'
      comment.item.2 Line
      iface MIXER
      name 'Input Source'
      value Mic
   }
   control.27 {
      comment.access 'read write'
      comment.type ENUMERATED
      comment.count 1
      comment.item.0 Mic
      comment.item.1 'Front Mic'
      comment.item.2 Line
      iface MIXER
      name 'Input Source'
      index 1
      value Mic
   }
   control.28 {
      comment.access 'read write'
      comment.type ENUMERATED
      comment.count 1
      comment.item.0 Mic
      comment.item.1 'Front Mic'
      comment.item.2 Line
      iface MIXER
      name 'Input Source'
      index 2
      value Mic
   }
   control.29 {
      comment.access read
      comment.type IEC958
      comment.count 1
      iface MIXER
      name 'IEC958 Playback Con Mask'
      value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
   }
   control.30 {
      comment.access read
      comment.type IEC958
      comment.count 1
      iface MIXER
      name 'IEC958 Playback Pro Mask'
      value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
   }
   control.31 {
      comment.access 'read write'
      comment.type IEC958
      comment.count 1
      iface MIXER
      name 'IEC958 Playback Default'
      value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
   }
   control.32 {
      comment.access 'read write'
      comment.type BOOLEAN
      comment.count 1
      iface MIXER
      name 'IEC958 Playback Switch'
      value false
   }
   control.33 {
      comment.access 'read write'
      comment.type BOOLEAN
      comment.count 1
      iface MIXER
      name 'IEC958 Capture Switch'
      value false
   }
   control.34 {
      comment.access read
      comment.type IEC958
      comment.count 1
      iface MIXER
      name 'IEC958 Capture Default'
      value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
   }
}
mythology ~ #


sorry that is long!

What else can I report??

oh, there is no audio out cable from the BD Drive - infact the other CD/DVD doesn't even seem to have a port. Surely I don't require this to get sound output from the drive over SATA2?? I am researching this angle now.

Thank you for reading my long post and thanks in advance for anyone who can help me troubleshoot this...

Will
_________________
]8P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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