maybe permissions problem? sound works from mythtv (spdif) but can't get cdplay...
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
maybe permissions problem? sound works from mythtv (spdif) but can't get cdplay...
[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
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]
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...
That doesn't necessarily mean that you do not have permission; it could be that the necessary rwx permissions are not set on the file.
If some application needs to open cdrom_fd, and the read bit is not set, then you will get "permission denied".
If some application needs to write to cdrom_fd and the write bit is not set, then you will get "permission denied".
If cdrom_fd is a directory, or if cdrom_fd is suposed to be executable, and the execute bit is not set, then you will get "permission denied".
You've posted a long description of the problem and provided a lot of information. For me, it's been a long day, and I'm too tired to read the entire post. I'll do that after I get some rest. I wanted to comment on the first thing I noticed that might be related to the problem.
this is the only additional info I can supply at the moment - I ponder your reply at this very moment.
Code:
end_request: I/O error, dev sr1, sector 64
isofs_fill_super: bread failed, dev=sr1, iso_blknum=16, block=16
end_request: I/O error, dev sr1, sector 64
end_request: I/O error, dev sr1, sector 1017820
end_request: I/O error, dev sr1, sector 1016796
end_request: I/O error, dev sr1, sector 1016572
end_request: I/O error, dev sr1, sector 1017812
end_request: I/O error, dev sr1, sector 1016788
end_request: I/O error, dev sr1, sector 1016564
end_request: I/O error, dev sr1, sector 1017220
end_request: I/O error, dev sr1, sector 1016196
end_request: I/O error, dev sr1, sector 1015972
end_request: I/O error, dev sr1, sector 1017212
end_request: I/O error, dev sr1, sector 1016188
end_request: I/O error, dev sr1, sector 1015964
end_request: I/O error, dev sr1, sector 835148
end_request: I/O error, dev sr1, sector 834124
end_request: I/O error, dev sr1, sector 833900
end_request: I/O error, dev sr1, sector 835140
end_request: I/O error, dev sr1, sector 834116
end_request: I/O error, dev sr1, sector 833892
end_request: I/O error, dev sr1, sector 834548
end_request: I/O error, dev sr1, sector 833524
end_request: I/O error, dev sr1, sector 833300
end_request: I/O error, dev sr1, sector 834540
end_request: I/O error, dev sr1, sector 833516
end_request: I/O error, dev sr1, sector 833292
end_request: I/O error, dev sr1, sector 1248
end_request: I/O error, dev sr1, sector 1024
UDF-fs: No partition found (1)
mayhap this is something to do with the fact that the dvd/bd drives are hooked up to the AHCI GSATA2 ports on the mobo... JMicron controller - maybe causing me problems??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.