* how to handle bt848 audio driver
@ 2007-10-25 16:31 Trent Piepho
2007-10-26 6:46 ` Clemens Ladisch
0 siblings, 1 reply; 4+ messages in thread
From: Trent Piepho @ 2007-10-25 16:31 UTC (permalink / raw)
To: alsa-devel; +Cc: Takashi Iwai, Mauro Carvalho Chehab
I've made some more patches for the ALSA bt87x audio driver to support more
features of the Osprey 440 card.
In order to support certain features, the ALSA driver needs access to the
bt878's GPIO lines and I2C bus. These are controlled by PCI function 0, which
is driven by the V4L driver. The bt878 DVB driver (which drives PCI function
1 just like the ALSA driver) needs to do the same thing and there is already
some code to handle it.
So, the ALSA driver (snd-bt87x) needs to use functions from the V4L driver
(bttv). As it is now, the two drivers are completely separate and don't share
any code and can be loaded individually.
The DVB driver in the same tree as bttv, so this isn't a problem. But the
snd-bt87x is in another tree, so it's somewhat harder, and I'm not sure what
to do about it.
The driver will need some header files from the bttv directory. I guess this
can be handled by adding a -I flag in the Makefile, though that seems a little
ugly.
The bigger problem is that changes to snd-bt87x will depend on changes to
bttv. How can the ALSA build system handle this?
For instance, my patch to add a digital volume control to snd-bt87x requires a
new function to be exported from bttv. How will ALSA build snd-bt87x if the
kernel source doesn't yet have this function?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to handle bt848 audio driver
2007-10-25 16:31 how to handle bt848 audio driver Trent Piepho
@ 2007-10-26 6:46 ` Clemens Ladisch
2007-10-30 19:26 ` Trent Piepho
0 siblings, 1 reply; 4+ messages in thread
From: Clemens Ladisch @ 2007-10-26 6:46 UTC (permalink / raw)
To: Trent Piepho, alsa-devel; +Cc: Takashi Iwai, Mauro Carvalho Chehab
Trent Piepho wrote:
> I've made some more patches for the ALSA bt87x audio driver to support more
> features of the Osprey 440 card.
>
> In order to support certain features, the ALSA driver needs access to the
> bt878's GPIO lines and I2C bus. These are controlled by PCI function 0, which
> is driven by the V4L driver. The bt878 DVB driver (which drives PCI function
> 1 just like the ALSA driver) needs to do the same thing and there is already
> some code to handle it.
>
> So, the ALSA driver (snd-bt87x) needs to use functions from the V4L driver
> (bttv). As it is now, the two drivers are completely separate and don't share
> any code and can be loaded individually.
>
> The DVB driver in the same tree as bttv, so this isn't a problem. But the
> snd-bt87x is in another tree, so it's somewhat harder, and I'm not sure what
> to do about it.
The part of the ALSA API used by snd-bt87x is apparently more stable
than the bttv functions to be used, so this seems to be a good
opportunity to move snd-bt87x into the V4L tree.
Regards,
Clemens
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to handle bt848 audio driver
2007-10-26 6:46 ` Clemens Ladisch
@ 2007-10-30 19:26 ` Trent Piepho
2007-10-30 20:08 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 4+ messages in thread
From: Trent Piepho @ 2007-10-30 19:26 UTC (permalink / raw)
To: Clemens Ladisch
Cc: v4l-dvb maintainer list, alsa-devel, Mauro Carvalho Chehab
On Fri, 26 Oct 2007, Clemens Ladisch wrote:
> Trent Piepho wrote:
> > So, the ALSA driver (snd-bt87x) needs to use functions from the V4L driver
> > (bttv). As it is now, the two drivers are completely separate and don't share
> > any code and can be loaded individually.
> >
> > The DVB driver in the same tree as bttv, so this isn't a problem. But the
> > snd-bt87x is in another tree, so it's somewhat harder, and I'm not sure what
> > to do about it.
>
> The part of the ALSA API used by snd-bt87x is apparently more stable
> than the bttv functions to be used, so this seems to be a good
> opportunity to move snd-bt87x into the V4L tree.
What do you say about this Mauro? From my perspective, it would be much
easier if all the bt848 drivers were in the same tree.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to handle bt848 audio driver
2007-10-30 19:26 ` Trent Piepho
@ 2007-10-30 20:08 ` Mauro Carvalho Chehab
0 siblings, 0 replies; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2007-10-30 20:08 UTC (permalink / raw)
To: Trent Piepho; +Cc: v4l-dvb maintainer list, alsa-devel
On Tue, 30 Oct 2007, Trent Piepho wrote:
> On Fri, 26 Oct 2007, Clemens Ladisch wrote:
>> Trent Piepho wrote:
>>> So, the ALSA driver (snd-bt87x) needs to use functions from the V4L driver
>>> (bttv). As it is now, the two drivers are completely separate and don't share
>>> any code and can be loaded individually.
>>>
>>> The DVB driver in the same tree as bttv, so this isn't a problem. But the
>>> snd-bt87x is in another tree, so it's somewhat harder, and I'm not sure what
>>> to do about it.
>>
>> The part of the ALSA API used by snd-bt87x is apparently more stable
>> than the bttv functions to be used, so this seems to be a good
>> opportunity to move snd-bt87x into the V4L tree.
>
> What do you say about this Mauro? From my perspective, it would be much
> easier if all the bt848 drivers were in the same tree.
>From my side, this makes sense.
--
Cheers,
Mauro Carvalho Chehab
http://linuxtv.org
mchehab@infradead.org
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-30 20:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-25 16:31 how to handle bt848 audio driver Trent Piepho
2007-10-26 6:46 ` Clemens Ladisch
2007-10-30 19:26 ` Trent Piepho
2007-10-30 20:08 ` Mauro Carvalho Chehab
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.