This is the only "implementation" of setfd() throughout the tree.

With this gone and the audio_hw_if C99 struct init for most drivers,
we can safely remove setfd() code from audio(9).

OK?

diff --git a/sys/arch/luna88k/cbus/nec86.c b/sys/arch/luna88k/cbus/nec86.c
index 2d2d965d1bc..ea1e8b8f6df 100644
--- a/sys/arch/luna88k/cbus/nec86.c
+++ b/sys/arch/luna88k/cbus/nec86.c
@@ -80,7 +80,6 @@ const struct audio_hw_if nec86_hw_if = {
        .halt_output    = nec86hw_halt_pdma,
        .halt_input     = nec86hw_halt_pdma,
        .speaker_ctl    = nec86hw_speaker_ctl,
-       .setfd          = nec86hw_setfd,
        .set_port       = nec86hw_mixer_set_port,
        .get_port       = nec86hw_mixer_get_port,
        .query_devinfo  = nec86hw_mixer_query_devinfo,
diff --git a/sys/arch/luna88k/cbus/nec86hw.c b/sys/arch/luna88k/cbus/nec86hw.c
index 56c0c6130e3..3e420db117d 100644
--- a/sys/arch/luna88k/cbus/nec86hw.c
+++ b/sys/arch/luna88k/cbus/nec86hw.c
@@ -328,15 +328,6 @@ nec86hw_commit_settings(void *addr)
        return 0;
 }
 
-int
-nec86hw_setfd(void *addr, int flag)
-{
-       DPRINTF(("nec86hw_setfd:\n"));
-
-       /* Can't do full-duplex */
-       return ENOTTY;
-}
-
 int
 nec86hw_mixer_set_port(void *addr, mixer_ctrl_t *cp)
 {
diff --git a/sys/arch/luna88k/cbus/nec86hwvar.h 
b/sys/arch/luna88k/cbus/nec86hwvar.h
index d0c4f4c1a11..75635d35a40 100644
--- a/sys/arch/luna88k/cbus/nec86hwvar.h
+++ b/sys/arch/luna88k/cbus/nec86hwvar.h
@@ -153,8 +153,6 @@ int nec86hw_get_in_port(void *);
 
 int    nec86hw_commit_settings(void *);
 
-int    nec86hw_setfd(void *, int);
-
 int    nec86hw_mixer_set_port(void *, mixer_ctrl_t *);
 int    nec86hw_mixer_get_port(void *, mixer_ctrl_t *);
 int    nec86hw_mixer_query_devinfo(void *, mixer_devinfo_t *);

Reply via email to