linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: New CD/DVD reports 'Can Play Audio    NO'
       [not found] <bjbMi-2A6-1@gated-at.bofh.it>
@ 2008-10-04 11:26 ` Bodo Eggert
  2008-10-04 11:52   ` Nick Warne
  2008-10-04 13:41   ` Borislav Petkov
  0 siblings, 2 replies; 12+ messages in thread
From: Bodo Eggert @ 2008-10-04 11:26 UTC (permalink / raw)
  To: Nick Warne, petkovbb, linux-ide

Nick Warne <nick@ukfsn.org> wrote:

> Very strange issue.  I recently bought a new machine that came with a
> CD/DVD burner.  All functions normally, except I cannot play audio CD.
> 
> Information:
> 
> Slackware 12.1 running latest stable kernel 2.6.26.5
> 
> The drive is:
> 
> Vendor                      : Optiarc
> Model                       : DVD RW AD-7200A
> Revision                    : 1.06
> 
> Now, I have another drive (I purchased last year) that could play audio
> CD, so I installed that as master, and put the new drive as slave
> (old->hda new->hdb).  The old(er) drive can and does play audio OK.
> 
> I see this in /proc/sys/dev/cdrom/info:

> Can play audio:         0       1

Same as
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/186664/comments/9

Please complain to the vendor, so he stops doing this bull*.

Signed-Off-By: Bodo Eggert
X-Tested: Not at all

--- linux-2.6.26/drivers/ide/ide-cd.c.ori       2008-10-04 13:21:17.000000000 +0200
+++ linux-2.6.26/drivers/ide/ide-cd.c   2008-10-04 13:22:15.000000000 +0200
@@ -1842,6 +1842,7 @@ static const struct cd_list_entry ide_cd
        { "MATSHITADVD-ROM SR-8176", NULL,   IDE_CD_FLAG_PLAY_AUDIO_OK      },
        { "MATSHITADVD-ROM SR-8174", NULL,   IDE_CD_FLAG_PLAY_AUDIO_OK      },
        { "Optiarc DVD RW AD-5200A", NULL,   IDE_CD_FLAG_PLAY_AUDIO_OK      },
+       { "Optiarc DVD RW AD-7200A", NULL,   IDE_CD_FLAG_PLAY_AUDIO_OK      },
        { NULL, NULL, 0 }
 };
 



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: New CD/DVD reports 'Can Play Audio    NO'
  2008-10-04 11:26 ` Bodo Eggert
@ 2008-10-04 11:52   ` Nick Warne
  2008-10-04 12:41     ` Nick Warne
  2008-10-04 13:41   ` Borislav Petkov
  1 sibling, 1 reply; 12+ messages in thread
From: Nick Warne @ 2008-10-04 11:52 UTC (permalink / raw)
  To: 7eggert; +Cc: petkovbb, linux-ide, D Bray

On Sat, 04 Oct 2008 13:26:44 +0200
Bodo Eggert <7eggert@gmx.de> wrote:

> Nick Warne <nick@ukfsn.org> wrote:
> 
> > Very strange issue.  I recently bought a new machine that came with
> > a CD/DVD burner.  All functions normally, except I cannot play
> > audio CD.
> > 
> > Information:
> > 
> > Slackware 12.1 running latest stable kernel 2.6.26.5
> > 
> > The drive is:
> > 
> > Vendor                      : Optiarc
> > Model                       : DVD RW AD-7200A
> > Revision                    : 1.06
> > 
> > Now, I have another drive (I purchased last year) that could play
> > audio CD, so I installed that as master, and put the new drive as
> > slave (old->hda new->hdb).  The old(er) drive can and does play
> > audio OK.
> > 
> > I see this in /proc/sys/dev/cdrom/info:
> 
> > Can play audio:         0       1
> 
> Same as
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/186664/comments/9
> 
> Please complain to the vendor, so he stops doing this bull*.
> 
> Signed-Off-By: Bodo Eggert
> X-Tested: Not at all
> 
> --- linux-2.6.26/drivers/ide/ide-cd.c.ori       2008-10-04
> 13:21:17.000000000 +0200 +++ linux-2.6.26/drivers/ide/ide-cd.c
> 2008-10-04 13:22:15.000000000 +0200 @@ -1842,6 +1842,7 @@ static
> const struct cd_list_entry ide_cd { "MATSHITADVD-ROM SR-8176",
> NULL,   IDE_CD_FLAG_PLAY_AUDIO_OK      }, { "MATSHITADVD-ROM
> SR-8174", NULL,   IDE_CD_FLAG_PLAY_AUDIO_OK      }, { "Optiarc DVD RW
> AD-5200A", NULL,   IDE_CD_FLAG_PLAY_AUDIO_OK      },
> +       { "Optiarc DVD RW AD-7200A", NULL,
> IDE_CD_FLAG_PLAY_AUDIO_OK      }, { NULL, NULL, 0 }
>  };
>  

Thank you Bodo.  This works fine now.

I guessed there might be a crapture list for buggy firmware CD drives,
but didn't find it...

The patch is fine.

Acked-by: Nick Warne <nick@ukfsn.org>


Nick
-- 
Free Software Foundation Associate Member 5508

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: New CD/DVD reports 'Can Play Audio    NO'
  2008-10-04 11:52   ` Nick Warne
@ 2008-10-04 12:41     ` Nick Warne
  0 siblings, 0 replies; 12+ messages in thread
From: Nick Warne @ 2008-10-04 12:41 UTC (permalink / raw)
  Cc: 7eggert, petkovbb, linux-ide, D Bray

On Sat, 4 Oct 2008 12:52:23 +0100
Nick Warne <nick@ukfsn.org> wrote:

> On Sat, 04 Oct 2008 13:26:44 +0200
> Bodo Eggert <7eggert@gmx.de> wrote:
> 
> > Nick Warne <nick@ukfsn.org> wrote:
> > 
> > > Very strange issue.  I recently bought a new machine that came
> > > with a CD/DVD burner.  All functions normally, except I cannot
> > > play audio CD.
> > > 
> > > Information:
> > > 
> > > Slackware 12.1 running latest stable kernel 2.6.26.5
> > > 
> > > The drive is:
> > > 
> > > Vendor                      : Optiarc
> > > Model                       : DVD RW AD-7200A
> > > Revision                    : 1.06
> > > 
> > > Now, I have another drive (I purchased last year) that could play
> > > audio CD, so I installed that as master, and put the new drive as
> > > slave (old->hda new->hdb).  The old(er) drive can and does play
> > > audio OK.
> > > 
> > > I see this in /proc/sys/dev/cdrom/info:
> > 
> > > Can play audio:         0       1
> > 
> > Same as
> > https://bugs.launchpad.net/ubuntu/+source/linux/+bug/186664/comments/9
> > 
> > Please complain to the vendor, so he stops doing this bull*.
> > 
> > Signed-Off-By: Bodo Eggert
> > X-Tested: Not at all
> > 
> > --- linux-2.6.26/drivers/ide/ide-cd.c.ori       2008-10-04
> > 13:21:17.000000000 +0200 +++ linux-2.6.26/drivers/ide/ide-cd.c
> > 2008-10-04 13:22:15.000000000 +0200 @@ -1842,6 +1842,7 @@ static
> > const struct cd_list_entry ide_cd { "MATSHITADVD-ROM SR-8176",
> > NULL,   IDE_CD_FLAG_PLAY_AUDIO_OK      }, { "MATSHITADVD-ROM
> > SR-8174", NULL,   IDE_CD_FLAG_PLAY_AUDIO_OK      }, { "Optiarc DVD
> > RW AD-5200A", NULL,   IDE_CD_FLAG_PLAY_AUDIO_OK      },
> > +       { "Optiarc DVD RW AD-7200A", NULL,
> > IDE_CD_FLAG_PLAY_AUDIO_OK      }, { NULL, NULL, 0 }
> >  };
> >  
> 
> Thank you Bodo.  This works fine now.
> 
> I guessed there might be a crapture list for buggy firmware CD drives,
> but didn't find it...
> 
> The patch is fine.
> 
> Acked-by: Nick Warne <nick@ukfsn.org>

Sorry, I used the wrong tag.

Test-by: Nick Warne <nick@ukfsn.org>


-- 
Free Software Foundation Associate Member 5508

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: New CD/DVD reports 'Can Play Audio    NO'
  2008-10-04 11:26 ` Bodo Eggert
  2008-10-04 11:52   ` Nick Warne
@ 2008-10-04 13:41   ` Borislav Petkov
  1 sibling, 0 replies; 12+ messages in thread
From: Borislav Petkov @ 2008-10-04 13:41 UTC (permalink / raw)
  To: Bodo Eggert; +Cc: Nick Warne, linux-ide, bzolnier

On Sat, Oct 04, 2008 at 01:26:44PM +0200, Bodo Eggert wrote:
> Nick Warne <nick@ukfsn.org> wrote:
> 
> > Very strange issue.  I recently bought a new machine that came with a
> > CD/DVD burner.  All functions normally, except I cannot play audio CD.
> > 
> > Information:
> > 
> > Slackware 12.1 running latest stable kernel 2.6.26.5
> > 
> > The drive is:
> > 
> > Vendor                      : Optiarc
> > Model                       : DVD RW AD-7200A
> > Revision                    : 1.06
> > 
> > Now, I have another drive (I purchased last year) that could play audio
> > CD, so I installed that as master, and put the new drive as slave
> > (old->hda new->hdb).  The old(er) drive can and does play audio OK.
> > 
> > I see this in /proc/sys/dev/cdrom/info:
> 
> > Can play audio:         0       1
> 
> Same as
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/186664/comments/9
> 
> Please complain to the vendor, so he stops doing this bull*.
> 
> Signed-Off-By: Bodo Eggert
> X-Tested: Not at all
> 
> --- linux-2.6.26/drivers/ide/ide-cd.c.ori       2008-10-04 13:21:17.000000000 +0200
> +++ linux-2.6.26/drivers/ide/ide-cd.c   2008-10-04 13:22:15.000000000 +0200
> @@ -1842,6 +1842,7 @@ static const struct cd_list_entry ide_cd
>         { "MATSHITADVD-ROM SR-8176", NULL,   IDE_CD_FLAG_PLAY_AUDIO_OK      },
>         { "MATSHITADVD-ROM SR-8174", NULL,   IDE_CD_FLAG_PLAY_AUDIO_OK      },
>         { "Optiarc DVD RW AD-5200A", NULL,   IDE_CD_FLAG_PLAY_AUDIO_OK      },
> +       { "Optiarc DVD RW AD-7200A", NULL,   IDE_CD_FLAG_PLAY_AUDIO_OK      },
>         { NULL, NULL, 0 }
>  };

ACK, although I vehemently object all those driver bloating lists of model
names. I'll think of something better. In the meantime, Bodo do you care to redo
your patch according to Documentation/SubmittingPatches? E.g. it is missing a
comment, the Signed-off-by: misses an email address, etc.

Thanks.

-- 
Regards/Gruss,
    Boris.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: New CD/DVD reports 'Can Play Audio    NO'
       [not found] <20081004103355.407fc303@sauron.linicks.net>
@ 2008-10-05  3:09 ` Tejun Heo
  2008-10-05  9:41   ` D Bray
  2008-10-05 11:08   ` Nick Warne
  0 siblings, 2 replies; 12+ messages in thread
From: Tejun Heo @ 2008-10-05  3:09 UTC (permalink / raw)
  To: Nick Warne; +Cc: linux-kernel, D Bray, IDE/ATA development list

(cc'ing linux-ide)

Nick Warne wrote:
> Hi all,
> 
> Very strange issue.  I recently bought a new machine that came with a
> CD/DVD burner.  All functions normally, except I cannot play audio CD.
> 
> Information:
> 
> Slackware 12.1 running latest stable kernel 2.6.26.5
> 
> The drive is:
> 
> Vendor                      : Optiarc 
> Model                       : DVD RW AD-7200A 
> Revision                    : 1.06
> 
> Now, I have another drive (I purchased last year) that could play audio
> CD, so I installed that as master, and put the new drive as slave
> (old->hda new->hdb).  The old(er) drive can and does play audio OK.
> 
> I see this in /proc/sys/dev/cdrom/info:
> 
> drive name:             hdb     hda
> drive speed:            48      48
> drive # of slots:       1       1
> Can close tray:         1       1
> Can open tray:          1       1
> Can lock tray:          1       1
> Can change speed:       1       1
> Can select disk:        0       0
> Can read multisession:  1       1
> Can read MCN:           1       1
> Reports media changed:  1       1
> Can play audio:         0       1
> Can write CD-R:         1       1
> Can write CD-RW:        1       1
> Can read DVD:           1       1
> Can write DVD-R:        1       1
> Can write DVD-RAM:      1       1
> Can read MRW:           1       1
> Can write MRW:          1       1
> Can write RAM:          1       1
> 
> log/messages:
> Oct  4 09:27:01 sauron kernel: hda: UDMA/66 mode selected
> Oct  4 09:27:01 sauron kernel: hdb: UDMA/66 mode selected
> Oct  4 09:27:01 sauron kernel: hda: ATAPI 48X DVD-ROM DVD-R-RAM CD-R/RW
> drive, 2048kB Cache
> Oct  4 09:27:01 sauron kernel: Uniform CD-ROM
> driver Revision: 3.20
> Oct  4 09:27:01 sauron kernel: hdb: ATAPI 48X
> DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache
> 
> /log/syslog
> Oct  4 09:27:01 sauron kernel: hda: TSSTcorp CDDVDW SH-S202J, ATAPI
> CD/DVD-ROM drive
> Oct  4 09:27:01 sauron kernel: hdb: Optiarc DVD RW
> AD-7200A, ATAPI CD/DVD-ROM drive
> 
> 
> I have investigated this, but can't find any information at all - there
> are very few hits doing a search, but relevant pages I found are:
> 
> D. Bray filled a very verbose bug report of a similar issue:
> http://lists.debian.org/debian-user/2008/09/msg01696.html
> 
> A Gentoo user with the same drive reports another issue, but his CDROM
> info dump also reports this model cannot play audio CDs:
> http://bugs.gentoo.org/show_bug.cgi?id=218413
> 
> A Ubuntu user with the same drive also rpeorts audio CDs cannot be
> played:
> http://ubuntuforums.org/showthread.php?t=675812
> 
> 
> Myself and D. Bray had a discussion on this, and we both feel this
> could be a kernel issue.
> 
> I would be able to debug this issue if required.

Can you try libata driver and see whether anything is different?

-- 
tejun

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: New CD/DVD reports 'Can Play Audio    NO'
  2008-10-05  3:09 ` New CD/DVD reports 'Can Play Audio NO' Tejun Heo
@ 2008-10-05  9:41   ` D Bray
  2009-02-04 15:34     ` D Bray
  2008-10-05 11:08   ` Nick Warne
  1 sibling, 1 reply; 12+ messages in thread
From: D Bray @ 2008-10-05  9:41 UTC (permalink / raw)
  To: Tejun Heo
  Cc: Nick Warne, linux-kernel, Bodo Eggert, Jens Axboe,
	Bartlomiej Zolnierkiewicz, IDE/ATA development list


Tejun,

while my situation resembles that of Nick below, there seem still to
be some unexplained observations remaining. See below.


On Sun, Oct 05, 2008 at 12:09:15PM +0900, Tejun Heo wrote:
> (cc'ing linux-ide)
> 
> Nick Warne wrote:
> > Hi all,
> > 
> > Very strange issue.  I recently bought a new machine that came with a
> > CD/DVD burner.  All functions normally, except I cannot play audio CD.
> > 
> > Information:
> > 
> > Slackware 12.1 running latest stable kernel 2.6.26.5
> > 
> > The drive is:
> > 
> > Vendor                      : Optiarc 
> > Model                       : DVD RW AD-7200A 
> > Revision                    : 1.06
> > 
> > Now, I have another drive (I purchased last year) that could play audio
> > CD, so I installed that as master, and put the new drive as slave
> > (old->hda new->hdb).  The old(er) drive can and does play audio OK.
> > 
> > I see this in /proc/sys/dev/cdrom/info:
> > 
> > drive name:             hdb     hda
> > drive speed:            48      48
> > drive # of slots:       1       1
> > Can close tray:         1       1
> > Can open tray:          1       1
> > Can lock tray:          1       1
> > Can change speed:       1       1
> > Can select disk:        0       0
> > Can read multisession:  1       1
> > Can read MCN:           1       1
> > Reports media changed:  1       1
> > Can play audio:         0       1
> > Can write CD-R:         1       1
> > Can write CD-RW:        1       1
> > Can read DVD:           1       1
> > Can write DVD-R:        1       1
> > Can write DVD-RAM:      1       1
> > Can read MRW:           1       1
> > Can write MRW:          1       1
> > Can write RAM:          1       1
> > 
> > log/messages:
> > Oct  4 09:27:01 sauron kernel: hda: UDMA/66 mode selected
> > Oct  4 09:27:01 sauron kernel: hdb: UDMA/66 mode selected
> > Oct  4 09:27:01 sauron kernel: hda: ATAPI 48X DVD-ROM DVD-R-RAM CD-R/RW
> > drive, 2048kB Cache
> > Oct  4 09:27:01 sauron kernel: Uniform CD-ROM
> > driver Revision: 3.20
> > Oct  4 09:27:01 sauron kernel: hdb: ATAPI 48X
> > DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache
> > 
> > /log/syslog
> > Oct  4 09:27:01 sauron kernel: hda: TSSTcorp CDDVDW SH-S202J, ATAPI
> > CD/DVD-ROM drive
> > Oct  4 09:27:01 sauron kernel: hdb: Optiarc DVD RW
> > AD-7200A, ATAPI CD/DVD-ROM drive
> > 
> > 
> > I have investigated this, but can't find any information at all - there
> > are very few hits doing a search, but relevant pages I found are:
> > 
> > D. Bray filled a very verbose bug report of a similar issue:
> > http://lists.debian.org/debian-user/2008/09/msg01696.html

I'll summarise its pertinent crux here. In short, a year-old CD/DVD
drive used to play audio CDs as well as encrypted DVDs. A small
upgrade was performed on the box (including a kernel change), and then
these functions failed. The rest of the drive's functionality remained
unaffected. Subsequently, another (ie third) kernel was installed, and
the drive's full functionality was restored. 
Furthermore, the drive appears to report different capabilities to
the different kernels:

1. The debian Etch kernel (linux-image-2.6.18-5-686 2.6.18.dfsg.1-13)
played audio CDROMs and encrypted DVDs. (I do not have its
/proc/sys/dev/cdrom/info output.);

2. The debian security update to this kernel
(linux-image-2.6.18-5-686_2.6.18.dfsg.1-13etch6_i386.deb) did not play
audio CDROMs or encrypted DVDs, and reported no-audio in
/proc/sys/dev/cdrom/info;

3. 2.6.26.5, built locally to match the 2.6.18-5 configuration, plays
audio CDs & encrypted DVDs, and reports with-audio in /proc.

As my post to the debian-user list shows, numerous other possibilities
were explored before the kernel was focused on -- and even then, it
was focused on as a work-around, not necessarily as a culprit.





> > A Gentoo user with the same drive reports another issue, but his CDROM
> > info dump also reports this model cannot play audio CDs:
> > http://bugs.gentoo.org/show_bug.cgi?id=218413
> > 
> > A Ubuntu user with the same drive also rpeorts audio CDs cannot be
> > played:
> > http://ubuntuforums.org/showthread.php?t=675812
> > 
> > 
> > Myself and D. Bray had a discussion on this, and we both feel this
> > could be a kernel issue.

Nick believes his situation to have been different -- and it was
resolved by a patch from Bodo Eggert which had the ide-cd driver
ignore Nick's drive's misbehaviour. The latter is reported to have
been due to its firmware's poor implementation. (I & Nick use
different drives.)

But this leaves my situation in which the same drive appears to be
reporting different capabilities to different kernels.

Also, another symptom in my case was that unencrypted DVDs would play
(even with "Can read DVD: 0"), but not encrypted ones.

It seems to me that there is something going awry in the capabilities
query between the driver and the device, whether caused by the
device's f/w or by the driver. However, if someone has a dismissive
explanation of the above, I'll still be happy! :-)

Thanks everyone.

regards,
DB







> > 
> > I would be able to debug this issue if required.
> 
> Can you try libata driver and see whether anything is different?
> 
> -- 
> tejun

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: New CD/DVD reports 'Can Play Audio    NO'
  2008-10-05  3:09 ` New CD/DVD reports 'Can Play Audio NO' Tejun Heo
  2008-10-05  9:41   ` D Bray
@ 2008-10-05 11:08   ` Nick Warne
  2008-10-14  6:53     ` Tejun Heo
  1 sibling, 1 reply; 12+ messages in thread
From: Nick Warne @ 2008-10-05 11:08 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-kernel, D Bray, IDE/ATA development list

On Sun, 05 Oct 2008 12:09:15 +0900
Tejun Heo <tj@kernel.org> wrote:

 
> > The drive is:
> > 
> > Vendor                      : Optiarc 
> > Model                       : DVD RW AD-7200A 
> > Revision                    : 1.06
> > 

> > I see this in /proc/sys/dev/cdrom/info:
> > 
> > drive name:             hdb     hda
> > drive speed:            48      48
> > drive # of slots:       1       1
> > Can close tray:         1       1
> > Can open tray:          1       1
> > Can lock tray:          1       1
> > Can change speed:       1       1
> > Can select disk:        0       0
> > Can read multisession:  1       1
> > Can read MCN:           1       1
> > Reports media changed:  1       1
> > Can play audio:         0       1
> > Can write CD-R:         1       1
> > Can write CD-RW:        1       1
> > Can read DVD:           1       1
> > Can write DVD-R:        1       1
> > Can write DVD-RAM:      1       1
> > Can read MRW:           1       1
> > Can write MRW:          1       1
> > Can write RAM:          1       1

> Can you try libata driver and see whether anything is different?
> 

/messages
Oct  5 11:54:13 sauron kernel: ata5: PATA max UDMA/133 cmd 0x1f0 ctl
0x3f6 bmdma 0xf400 irq 14
Oct  5 11:54:13 sauron kernel: ata6: PATA max
UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xf408 irq 15
Oct  5 11:54:13 sauron kernel: ata5.00: ATAPI: TSSTcorp CDDVDW
SH-S202J, SB00, max UDMA/66
Oct  5 11:54:13 sauron kernel: ata5.01: ATAPI: Optiarc DVD RW AD-7200A,
1.06, max UDMA/66
Oct  5 11:54:13 sauron kernel: ata5.00: configured for UDMA/66
Oct  5 11:54:13 sauron kernel: ata5.01: configured for
UDMA/66

/syslog
Oct  5 11:54:13 sauron kernel: sr0: scsi3-mmc drive: 48x/48x writer
dvd-ram cd/rw xa/form2 cdda tray
Oct  5 11:54:13 sauron kernel: sr1:
scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray

/proc/sys/dev/cdrom/info

drive name:             sr1     sr0
drive speed:            48      48
drive # of slots:       1       1
Can close tray:         1       1
Can open tray:          1       1
Can lock tray:          1       1
Can change speed:       1       1
Can select disk:        0       0
Can read multisession:  1       1
Can read MCN:           1       1
Reports media changed:  1       1
Can play audio:         1       1
Can write CD-R:         1       1
Can write CD-RW:        1       1
Can read DVD:           1       1
Can write DVD-R:        1       1
Can write DVD-RAM:      1       1
Can read MRW:           1       1
Can write MRW:          1       1
Can write RAM:          1       1


Works and plays fine!

Nick
-- 
Free Software Foundation Associate Member 5508

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: New CD/DVD reports 'Can Play Audio    NO'
  2008-10-05 11:08   ` Nick Warne
@ 2008-10-14  6:53     ` Tejun Heo
  2008-10-14  8:26       ` Boris Petkov
  0 siblings, 1 reply; 12+ messages in thread
From: Tejun Heo @ 2008-10-14  6:53 UTC (permalink / raw)
  To: Nick Warne; +Cc: linux-kernel, D Bray, IDE/ATA development list

Nick Warne wrote:
> /messages
> Oct  5 11:54:13 sauron kernel: ata5: PATA max UDMA/133 cmd 0x1f0 ctl
> 0x3f6 bmdma 0xf400 irq 14
> Oct  5 11:54:13 sauron kernel: ata6: PATA max
> UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xf408 irq 15
> Oct  5 11:54:13 sauron kernel: ata5.00: ATAPI: TSSTcorp CDDVDW
> SH-S202J, SB00, max UDMA/66
> Oct  5 11:54:13 sauron kernel: ata5.01: ATAPI: Optiarc DVD RW AD-7200A,
> 1.06, max UDMA/66
> Oct  5 11:54:13 sauron kernel: ata5.00: configured for UDMA/66
> Oct  5 11:54:13 sauron kernel: ata5.01: configured for
> UDMA/66
> 
> /syslog
> Oct  5 11:54:13 sauron kernel: sr0: scsi3-mmc drive: 48x/48x writer
> dvd-ram cd/rw xa/form2 cdda tray
> Oct  5 11:54:13 sauron kernel: sr1:
> scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
> 
> /proc/sys/dev/cdrom/info
> 
> drive name:             sr1     sr0
> drive speed:            48      48
> drive # of slots:       1       1
> Can close tray:         1       1
> Can open tray:          1       1
> Can lock tray:          1       1
> Can change speed:       1       1
> Can select disk:        0       0
> Can read multisession:  1       1
> Can read MCN:           1       1
> Reports media changed:  1       1
> Can play audio:         1       1
> Can write CD-R:         1       1
> Can write CD-RW:        1       1
> Can read DVD:           1       1
> Can write DVD-R:        1       1
> Can write DVD-RAM:      1       1
> Can read MRW:           1       1
> Can write MRW:          1       1
> Can write RAM:          1       1

Thanks.  sr.c just doesn't check whether the drive reports audio play
capability or not.  It just sets it while ide-cd actually checks for
the capability.  The drive is not reporting it while it can so ide-cd
needs blacklist entry for it.  Now that idecd has blacklist entry, all
should be fine.  Eh... I'm not sure whether we need to update sr to
follow what ide-cd is doing or not.

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: New CD/DVD reports 'Can Play Audio NO'
  2008-10-14  6:53     ` Tejun Heo
@ 2008-10-14  8:26       ` Boris Petkov
  2008-10-14  8:50         ` Tejun Heo
  0 siblings, 1 reply; 12+ messages in thread
From: Boris Petkov @ 2008-10-14  8:26 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Nick Warne, linux-kernel, D Bray, IDE/ATA development list

On Tue, Oct 14, 2008 at 8:53 AM, Tejun Heo <tj@kernel.org> wrote:
> Nick Warne wrote:
>> /messages
>> Oct  5 11:54:13 sauron kernel: ata5: PATA max UDMA/133 cmd 0x1f0 ctl
>> 0x3f6 bmdma 0xf400 irq 14
>> Oct  5 11:54:13 sauron kernel: ata6: PATA max
>> UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xf408 irq 15
>> Oct  5 11:54:13 sauron kernel: ata5.00: ATAPI: TSSTcorp CDDVDW
>> SH-S202J, SB00, max UDMA/66
>> Oct  5 11:54:13 sauron kernel: ata5.01: ATAPI: Optiarc DVD RW AD-7200A,
>> 1.06, max UDMA/66
>> Oct  5 11:54:13 sauron kernel: ata5.00: configured for UDMA/66
>> Oct  5 11:54:13 sauron kernel: ata5.01: configured for
>> UDMA/66
>>
>> /syslog
>> Oct  5 11:54:13 sauron kernel: sr0: scsi3-mmc drive: 48x/48x writer
>> dvd-ram cd/rw xa/form2 cdda tray
>> Oct  5 11:54:13 sauron kernel: sr1:
>> scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
>>
>> /proc/sys/dev/cdrom/info
>>
>> drive name:             sr1     sr0
>> drive speed:            48      48
>> drive # of slots:       1       1
>> Can close tray:         1       1
>> Can open tray:          1       1
>> Can lock tray:          1       1
>> Can change speed:       1       1
>> Can select disk:        0       0
>> Can read multisession:  1       1
>> Can read MCN:           1       1
>> Reports media changed:  1       1
>> Can play audio:         1       1
>> Can write CD-R:         1       1
>> Can write CD-RW:        1       1
>> Can read DVD:           1       1
>> Can write DVD-R:        1       1
>> Can write DVD-RAM:      1       1
>> Can read MRW:           1       1
>> Can write MRW:          1       1
>> Can write RAM:          1       1
>
> Thanks.  sr.c just doesn't check whether the drive reports audio play
> capability or not.  It just sets it while ide-cd actually checks for
> the capability.  The drive is not reporting it while it can so ide-cd
> needs blacklist entry for it.  Now that idecd has blacklist entry, all
> should be fine.  Eh... I'm not sure whether we need to update sr to
> follow what ide-cd is doing or not.
>
> Thanks.

Actually, as I already pointed out, I'm not at all happy with blacklisting
stuff. What sounds more sane to me (and this is only me) would be what sr.c
does: assume that per se the drive can play audio and try to play it. But how
many drives are there that cannot play audio, aka, would it be a safe assumption
to say that their number is so diminishingly small that it would be better to
announce that a drive can play audio by default and fail graciously in the
_very_ seldom case it actually cannot ...

-- 
Regards/Gruss,
Boris

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: New CD/DVD reports 'Can Play Audio NO'
  2008-10-14  8:26       ` Boris Petkov
@ 2008-10-14  8:50         ` Tejun Heo
  2008-10-14  9:03           ` Boris Petkov
  0 siblings, 1 reply; 12+ messages in thread
From: Tejun Heo @ 2008-10-14  8:50 UTC (permalink / raw)
  To: petkovbb
  Cc: Nick Warne, linux-kernel, D Bray, IDE/ATA development list,
	Bartlomiej Zolnierkiewicz

(cc'ing Bartlomiej, hi!)

Boris Petkov wrote:
> On Tue, Oct 14, 2008 at 8:53 AM, Tejun Heo <tj@kernel.org> wrote:
>> Nick Warne wrote:
>>> /messages
>>> Oct  5 11:54:13 sauron kernel: ata5: PATA max UDMA/133 cmd 0x1f0 ctl
>>> 0x3f6 bmdma 0xf400 irq 14
>>> Oct  5 11:54:13 sauron kernel: ata6: PATA max
>>> UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xf408 irq 15
>>> Oct  5 11:54:13 sauron kernel: ata5.00: ATAPI: TSSTcorp CDDVDW
>>> SH-S202J, SB00, max UDMA/66
>>> Oct  5 11:54:13 sauron kernel: ata5.01: ATAPI: Optiarc DVD RW AD-7200A,
>>> 1.06, max UDMA/66
>>> Oct  5 11:54:13 sauron kernel: ata5.00: configured for UDMA/66
>>> Oct  5 11:54:13 sauron kernel: ata5.01: configured for
>>> UDMA/66
>>>
>>> /syslog
>>> Oct  5 11:54:13 sauron kernel: sr0: scsi3-mmc drive: 48x/48x writer
>>> dvd-ram cd/rw xa/form2 cdda tray
>>> Oct  5 11:54:13 sauron kernel: sr1:
>>> scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
>>>
>>> /proc/sys/dev/cdrom/info
>>>
>>> drive name:             sr1     sr0
>>> drive speed:            48      48
>>> drive # of slots:       1       1
>>> Can close tray:         1       1
>>> Can open tray:          1       1
>>> Can lock tray:          1       1
>>> Can change speed:       1       1
>>> Can select disk:        0       0
>>> Can read multisession:  1       1
>>> Can read MCN:           1       1
>>> Reports media changed:  1       1
>>> Can play audio:         1       1
>>> Can write CD-R:         1       1
>>> Can write CD-RW:        1       1
>>> Can read DVD:           1       1
>>> Can write DVD-R:        1       1
>>> Can write DVD-RAM:      1       1
>>> Can read MRW:           1       1
>>> Can write MRW:          1       1
>>> Can write RAM:          1       1
>> Thanks.  sr.c just doesn't check whether the drive reports audio play
>> capability or not.  It just sets it while ide-cd actually checks for
>> the capability.  The drive is not reporting it while it can so ide-cd
>> needs blacklist entry for it.  Now that idecd has blacklist entry, all
>> should be fine.  Eh... I'm not sure whether we need to update sr to
>> follow what ide-cd is doing or not.
>>
>> Thanks.
> 
> Actually, as I already pointed out, I'm not at all happy with blacklisting
> stuff. What sounds more sane to me (and this is only me) would be what sr.c
> does: assume that per se the drive can play audio and try to play it. But how
> many drives are there that cannot play audio, aka, would it be a safe assumption
> to say that their number is so diminishingly small that it would be better to
> announce that a drive can play audio by default and fail graciously in the
> _very_ seldom case it actually cannot ...
> 

Hmm... I don't know.  I think the flag indicates whether the drive has
DAC and analog audio output, right?  I have quite some SATA drives which
don't have audio output at all.  I haven't check what they report on the
mode sense page yet.  Eh... well, having the bit set when the drive
doesn't support it doesn't hurt too much (yet).  Bartlomiej, what do you
think?

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: New CD/DVD reports 'Can Play Audio NO'
  2008-10-14  8:50         ` Tejun Heo
@ 2008-10-14  9:03           ` Boris Petkov
  0 siblings, 0 replies; 12+ messages in thread
From: Boris Petkov @ 2008-10-14  9:03 UTC (permalink / raw)
  To: Tejun Heo
  Cc: Nick Warne, linux-kernel, D Bray, IDE/ATA development list,
	Bartlomiej Zolnierkiewicz

[..]

>>> Thanks.  sr.c just doesn't check whether the drive reports audio play
>>> capability or not.  It just sets it while ide-cd actually checks for
>>> the capability.  The drive is not reporting it while it can so ide-cd
>>> needs blacklist entry for it.  Now that idecd has blacklist entry, all
>>> should be fine.  Eh... I'm not sure whether we need to update sr to
>>> follow what ide-cd is doing or not.
>>>
>>> Thanks.
>>
>> Actually, as I already pointed out, I'm not at all happy with blacklisting
>> stuff. What sounds more sane to me (and this is only me) would be what sr.c
>> does: assume that per se the drive can play audio and try to play it. But how
>> many drives are there that cannot play audio, aka, would it be a safe assumption
>> to say that their number is so diminishingly small that it would be better to
>> announce that a drive can play audio by default and fail graciously in the
>> _very_ seldom case it actually cannot ...
>>
>
> Hmm... I don't know.  I think the flag indicates whether the drive has
> DAC and analog audio output, right?

Currently, ide-cd checks the AudioPlay bit advertized in the CD-ROM Capabilities
and Mechanical Status Page.

> I have quite some SATA drives which
> don't have audio output at all.  I haven't check what they report on the
> mode sense page yet.  Eh... well, having the bit set when the drive
> doesn't support it doesn't hurt too much (yet).  Bartlomiej, what do you
> think?

-- 
Regards/Gruss,
Boris

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: New CD/DVD reports 'Can Play Audio    NO'
  2008-10-05  9:41   ` D Bray
@ 2009-02-04 15:34     ` D Bray
  0 siblings, 0 replies; 12+ messages in thread
From: D Bray @ 2009-02-04 15:34 UTC (permalink / raw)
  To: linux-kernel
  Cc: Nick Warne, Tejun Heo, Bodo Eggert, Jens Axboe,
	Bartlomiej Zolnierkiewicz, IDE/ATA development list

On Sun, Oct 05, 2008 at 05:41:09PM +0800, D Bray wrote:
> 
> Tejun,
> 
> while my situation resembles that of Nick below, there seem still to
> be some unexplained observations remaining. See below.

For the record, I have to give an update for this issue which arose
for me back in September.

In brief: The application-level symptom (ie failing to play some
CDs/DVDs) has failed to reproduce! Though the issue outlined below was
at the driver level, and I have no evidence questioning its validity,
one may wish to take the new observation into account.


More details:

A while ago, I happened to boot into the "debian security update"
kernel mentioned below, and all was well! IOW, the audio/video
problems, occuring back in Sep. 2008, no longer occured on the same
box. I did not have time to carefully re-examine this, and cannot
explain the contradiction.

As, to my knowledge, no-one else has corroborated the alleged
misbehaviour on this kernel, then I have had to question my original
post of 29 Sep 2008 on debian-user. However, I see no reason to do the
same for the driver-level issue outlined below (regarding the
capabilities query between the driver and the CD/DVD device.)

Never the less, I thought that I ought to update everyone.

Regards,
DB









 
> 
> On Sun, Oct 05, 2008 at 12:09:15PM +0900, Tejun Heo wrote:
> > (cc'ing linux-ide)
> > 
> > Nick Warne wrote:
> > > Hi all,
> > > 
> > > Very strange issue.  I recently bought a new machine that came with a
> > > CD/DVD burner.  All functions normally, except I cannot play audio CD.
> > > 
> > > Information:
> > > 
> > > Slackware 12.1 running latest stable kernel 2.6.26.5
> > > 
> > > The drive is:
> > > 
> > > Vendor                      : Optiarc 
> > > Model                       : DVD RW AD-7200A 
> > > Revision                    : 1.06
> > > 
> > > Now, I have another drive (I purchased last year) that could play audio
> > > CD, so I installed that as master, and put the new drive as slave
> > > (old->hda new->hdb).  The old(er) drive can and does play audio OK.
> > > 
> > > I see this in /proc/sys/dev/cdrom/info:
> > > 
> > > drive name:             hdb     hda
> > > drive speed:            48      48
> > > drive # of slots:       1       1
> > > Can close tray:         1       1
> > > Can open tray:          1       1
> > > Can lock tray:          1       1
> > > Can change speed:       1       1
> > > Can select disk:        0       0
> > > Can read multisession:  1       1
> > > Can read MCN:           1       1
> > > Reports media changed:  1       1
> > > Can play audio:         0       1
> > > Can write CD-R:         1       1
> > > Can write CD-RW:        1       1
> > > Can read DVD:           1       1
> > > Can write DVD-R:        1       1
> > > Can write DVD-RAM:      1       1
> > > Can read MRW:           1       1
> > > Can write MRW:          1       1
> > > Can write RAM:          1       1
> > > 
> > > log/messages:
> > > Oct  4 09:27:01 sauron kernel: hda: UDMA/66 mode selected
> > > Oct  4 09:27:01 sauron kernel: hdb: UDMA/66 mode selected
> > > Oct  4 09:27:01 sauron kernel: hda: ATAPI 48X DVD-ROM DVD-R-RAM CD-R/RW
> > > drive, 2048kB Cache
> > > Oct  4 09:27:01 sauron kernel: Uniform CD-ROM
> > > driver Revision: 3.20
> > > Oct  4 09:27:01 sauron kernel: hdb: ATAPI 48X
> > > DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache
> > > 
> > > /log/syslog
> > > Oct  4 09:27:01 sauron kernel: hda: TSSTcorp CDDVDW SH-S202J, ATAPI
> > > CD/DVD-ROM drive
> > > Oct  4 09:27:01 sauron kernel: hdb: Optiarc DVD RW
> > > AD-7200A, ATAPI CD/DVD-ROM drive
> > > 
> > > 
> > > I have investigated this, but can't find any information at all - there
> > > are very few hits doing a search, but relevant pages I found are:
> > > 
> > > D. Bray filled a very verbose bug report of a similar issue:
> > > http://lists.debian.org/debian-user/2008/09/msg01696.html
> 
> I'll summarise its pertinent crux here. In short, a year-old CD/DVD
> drive used to play audio CDs as well as encrypted DVDs. A small
> upgrade was performed on the box (including a kernel change), and then
> these functions failed. The rest of the drive's functionality remained
> unaffected. Subsequently, another (ie third) kernel was installed, and
> the drive's full functionality was restored. 
> Furthermore, the drive appears to report different capabilities to
> the different kernels:
> 
> 1. The debian Etch kernel (linux-image-2.6.18-5-686 2.6.18.dfsg.1-13)
> played audio CDROMs and encrypted DVDs. (I do not have its
> /proc/sys/dev/cdrom/info output.);
> 
> 2. The debian security update to this kernel
> (linux-image-2.6.18-5-686_2.6.18.dfsg.1-13etch6_i386.deb) did not play
> audio CDROMs or encrypted DVDs, and reported no-audio in
> /proc/sys/dev/cdrom/info;
> 
> 3. 2.6.26.5, built locally to match the 2.6.18-5 configuration, plays
> audio CDs & encrypted DVDs, and reports with-audio in /proc.
> 
> As my post to the debian-user list shows, numerous other possibilities
> were explored before the kernel was focused on -- and even then, it
> was focused on as a work-around, not necessarily as a culprit.
> 
> 
> 
> 
> 
> > > A Gentoo user with the same drive reports another issue, but his CDROM
> > > info dump also reports this model cannot play audio CDs:
> > > http://bugs.gentoo.org/show_bug.cgi?id=218413
> > > 
> > > A Ubuntu user with the same drive also rpeorts audio CDs cannot be
> > > played:
> > > http://ubuntuforums.org/showthread.php?t=675812
> > > 
> > > 
> > > Myself and D. Bray had a discussion on this, and we both feel this
> > > could be a kernel issue.
> 
> Nick believes his situation to have been different -- and it was
> resolved by a patch from Bodo Eggert which had the ide-cd driver
> ignore Nick's drive's misbehaviour. The latter is reported to have
> been due to its firmware's poor implementation. (I & Nick use
> different drives.)
> 
> But this leaves my situation in which the same drive appears to be
> reporting different capabilities to different kernels.
> 
> Also, another symptom in my case was that unencrypted DVDs would play
> (even with "Can read DVD: 0"), but not encrypted ones.
> 
> It seems to me that there is something going awry in the capabilities
> query between the driver and the device, whether caused by the
> device's f/w or by the driver. However, if someone has a dismissive
> explanation of the above, I'll still be happy! :-)
> 
> Thanks everyone.
> 
> regards,
> DB
> 
> 
> 
> 
> 
> 
> 
> > > 
> > > I would be able to debug this issue if required.
> > 
> > Can you try libata driver and see whether anything is different?
> > 
> > -- 
> > tejun

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-02-04 15:34 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20081004103355.407fc303@sauron.linicks.net>
2008-10-05  3:09 ` New CD/DVD reports 'Can Play Audio NO' Tejun Heo
2008-10-05  9:41   ` D Bray
2009-02-04 15:34     ` D Bray
2008-10-05 11:08   ` Nick Warne
2008-10-14  6:53     ` Tejun Heo
2008-10-14  8:26       ` Boris Petkov
2008-10-14  8:50         ` Tejun Heo
2008-10-14  9:03           ` Boris Petkov
     [not found] <bjbMi-2A6-1@gated-at.bofh.it>
2008-10-04 11:26 ` Bodo Eggert
2008-10-04 11:52   ` Nick Warne
2008-10-04 12:41     ` Nick Warne
2008-10-04 13:41   ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).