From: Johan Billing <billing@df.lth.se>
To: linux-kernel@vger.kernel.org
Subject: CD-ripping using ioctl() does not work when DMA is disabled (ide-cd)
Date: Mon, 30 Aug 2004 21:48:23 +0200 [thread overview]
Message-ID: <41338487.2050007@df.lth.se> (raw)
In kernel 2.6.8, my old TEAC CD-532E-A CD-ROM is blacklisted and DMA is
automatically disabled. When I try to rip an audio CD using cdparanoia,
all I get is a silent wav file full of zeroes. I know that there was
some discussions about this on the list during the summer in conjunction
with the "dropping to single frame DMA" issue, but I think I have some
new information to add...
I investigated the cdparanoia source a bit and was able to pinpoint the
problem a bit more. cdparanoia uses the ioctl() interface with
CDROMREADAUDIO to read data from the CD and normally tries to read 6 or
8 frames at a time. The problem is that only the first read frame
contains valid data, the others are blank and only contain zeroes. If I
disable error correction and only read one frame at a time ("cdparanoia
-n1 -Z") it seems to work fine. If I defy the blacklist and turn DMA on
using "hdparm -d1", cdparanoia can read multiple frames without any
problems.
So in conclusion, this seems to be a problem that only occurs when
reading multiple frames using ioctl() with DMA off. I hope that this
will help find and fix the problem.
/Johan
next reply other threads:[~2004-08-30 19:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-30 19:48 Johan Billing [this message]
2004-09-01 14:30 ` CD-ripping using ioctl() does not work when DMA is disabled (ide-cd) Peter Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41338487.2050007@df.lth.se \
--to=billing@df.lth.se \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox