Opened 12 years ago

Closed 12 years ago

#3379 closed enhancement (fixed)

Moving the function to change the CD speed to the MediaDevice object

Reported by: anonymous Owned by: skamithi
Priority: minor Milestone: 0.21
Component: mythtv Version: head
Severity: medium Keywords: cd/dvd speed setting
Cc: Ticket locked: no

Description

Move the function to set the cdrom speed to the MediaDevice? object. This makes the code also usable from other pieces of myth (like mythmusic). I changed the code in the setSpeed function to take multiples of 177KB/s. This looks to be historically correct. Also the code tries the CDROM_SELECT_SPEED first. When this ioctl errors out, it chooses the SG_IO way of things. This seems to be the only reliable way to get this working on my system (2.6.18 + ide-cd).

Because currently, the dvdplayer and most of the other player functions only 'know' a device from it's pathname, I added:

MythMediaDevice?* MediaMonitor::GetMedia?(const QString& path)

Attachments (4)

cd-speed-patch (11.1 KB) - added by leoweppelman@… 12 years ago.
cd-speed patch
cddec.diff (2.0 KB) - added by leoweppelman@… 12 years ago.
cd-speed patch for mythmusic audio cd's - slow them down
cddec.2.diff (1.0 KB) - added by leoweppelman@… 12 years ago.
cd-speed patch for mythmusic audio cd's - slow them down
set_cd_speed_final.diff (5.6 KB) - added by skamithi 12 years ago.
change debug msg from vb_important to vb_media. create static SetCDSpeed function in mythmediamonitor. hard code mythmusic audio speed to 2x.

Download all attachments as: .zip

Change History (9)

Changed 12 years ago by leoweppelman@…

Attachment: cd-speed-patch added

cd-speed patch

Changed 12 years ago by leoweppelman@…

Attachment: cddec.diff added

cd-speed patch for mythmusic audio cd's - slow them down

Changed 12 years ago by leoweppelman@…

Attachment: cddec.2.diff added

cd-speed patch for mythmusic audio cd's - slow them down

comment:1 Changed 12 years ago by anonymous

Forget about the first cddec.diff, I forgot to clean it up before uploading. I wasn't allowed to overwrite it ;-)

comment:2 Changed 12 years ago by skamithi

Owner: changed from Isaac Richards to skamithi
Status: newassigned

comment:3 Changed 12 years ago by skamithi

(In [13459]) Refs #3379 Move cd speed change function to mediadevice.

comment:4 Changed 12 years ago by skamithi

Milestone: unknown0.21
Version: unknownhead

Changed 12 years ago by skamithi

Attachment: set_cd_speed_final.diff added

change debug msg from vb_important to vb_media. create static SetCDSpeed function in mythmediamonitor. hard code mythmusic audio speed to 2x.

comment:5 Changed 12 years ago by skamithi

Resolution: fixed
Status: assignedclosed

(In [13503]) Closes #3379. change debug msg from vb_important to vb_media in mythmedia related functions. create static SetCDSpeed function in mythmediamonitor. hard code mythmusic CD audio speed to 2x.

Note: See TracTickets for help on using tickets.