[alsa-devel] Audiowerk2 driver doesnt check pci subsystem id.

Cédric Brégardis cedric.bregardis at free.fr
Mon Jun 23 19:43:20 CEST 2008


Hi

At Monday 23 June 2008 10:02:17, Mike Lampard wrote:
> Hi
>
> Is there any chance you could add a pci subsystem id check to your
> Audiowerk2 alsa driver?  As you know, at the moment it claims all saa7146
> devices as AW2's, which is a pain for me because I also have DVB hardware
> that uses the SAA7146..

Indeed, it is a problem. However, I am not sure that the subsystem id is 
working correctly for AW2. In any case the behavior on my system is strange. 
Here is the result of the command 'lspci -x'

[...]
02:0b.0 Multimedia controller: Philips Semiconductors SAA7146 (rev 01)
00: 31 11 46 71 02 00 80 02 01 00 80 04 00 40 00 00
10: 00 bc af fe 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 0b 01 00 00
[...]

SAA7146 datasheet says that subsystem ID is at address 0x2C of configuration 
space regsiters, and:

"this value will be loaded after a PCI reset from external
hardware using the I2C-bus; the default value is 0000H"

So there is no specific subsystem id on my AW2: it is the default value.

I have noted that the card has an eeprom on i2c (reference 8585c) but it seams 
it doesn't help.

The solution could be to suppose that the AW2 subid is 0. But if another card 
has the same behavior, there will be a problem.

Mike, could you give us the result of 'lspci -x' command on your system 
please ?

And I rely upon the list to correct me if I made wrong assumption ;-).

Cedric.


>
> Cheers & Good Work,
>
> Mike




More information about the Alsa-devel mailing list