LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-13-2008, 05:43 AM   #1
stardotstar
Member
 
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238

Rep: Reputation: 30
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
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
 
Old 04-13-2008, 10:16 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
Could not open cdrom_fd: Permission denied
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.
 
Old 04-14-2008, 12:09 AM   #3
stardotstar
Member
 
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238

Original Poster
Rep: Reputation: 30
Thank you bigrigger,

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??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No output through SPDIf, but analog works. How do I get output through SPDIF? seanwnz Linux - General 11 11-08-2007 11:24 AM
Help ACER Aspire 9810 Laptop sound only works thru shared spdif/headphone jack califalcon Linux - Laptop and Netbook 3 08-30-2007 12:38 PM
SPDIF no sound... kamkos Ubuntu 2 10-25-2006 10:02 PM
SPDIF for all sound applications. kcorupe Linux - Software 0 02-21-2005 09:13 PM
Problem with MythTV: Video doesn't always show up, sound works but... ghost_zero Linux - Software 1 09-20-2004 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration