All of lore.kernel.org
 help / color / mirror / Atom feed
* hdspm.c - confused about SNDRV_HDSPM_IOCTL_GET_[CONFIG|STATUS]
@ 2011-05-15 16:31 Jörn Nettingsmeier
  2011-05-18 16:17 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Jörn Nettingsmeier @ 2011-05-15 16:31 UTC (permalink / raw)
  To: alsa-devel, Adrian Knoth; +Cc: Jörn Nettingsmeier

hi *!


i'm trying to extend hdspconf to work with the rme hdspm madi card, and 
got confused over the snd_hdspm_hwdep_ioctl:

apparently, the hdspm.c driver differentiates between settable controls 
(CONFIG) and non-settable status indicators (STATUS), unlike the earlier 
hdspm.c.

however, usage seems a bit inconsistent:

struct hdspm_config contains a member madi_sync_check, which is 
apparently never set.
instead, struct hdspm_status card_specific.sync_madi is used, same for 
tco and sync in.

but there is a wordclock_sync_check in struct hdspm_config which is in use.

am i guessing right that the latter is somewhat deprecated and that i 
should be taking all status values from struct hdspm_status instead?

thanks,


jörn


please cc: me, i'm not on alsa.devel.



-- 
Jörn Nettingsmeier
Lortzingstr. 11, 45128 Essen, Tel. +49 177 7937487

Meister für Veranstaltungstechnik (Bühne/Studio)
Tonmeister (VDT)

http://stackingdwarves.net
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: hdspm.c - confused about SNDRV_HDSPM_IOCTL_GET_[CONFIG|STATUS]
  2011-05-15 16:31 hdspm.c - confused about SNDRV_HDSPM_IOCTL_GET_[CONFIG|STATUS] Jörn Nettingsmeier
@ 2011-05-18 16:17 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2011-05-18 16:17 UTC (permalink / raw)
  To: Jörn Nettingsmeier; +Cc: Adrian Knoth, alsa-devel

At Sun, 15 May 2011 18:31:47 +0200,
Jörn Nettingsmeier wrote:
> 
> hi *!
> 
> 
> i'm trying to extend hdspconf to work with the rme hdspm madi card, and 
> got confused over the snd_hdspm_hwdep_ioctl:
> 
> apparently, the hdspm.c driver differentiates between settable controls 
> (CONFIG) and non-settable status indicators (STATUS), unlike the earlier 
> hdspm.c.
> 
> however, usage seems a bit inconsistent:
> 
> struct hdspm_config contains a member madi_sync_check, which is 
> apparently never set.

This was also in the older version, and the structure wasn't changed
for compatibility reason.

> instead, struct hdspm_status card_specific.sync_madi is used, same for 
> tco and sync in.
> 
> but there is a wordclock_sync_check in struct hdspm_config which is in use.
> 
> am i guessing right that the latter is somewhat deprecated and that i 
> should be taking all status values from struct hdspm_status instead?

Well, consider GET_STATUS as a kind of extended attributes.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

end of thread, other threads:[~2011-05-18 16:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-15 16:31 hdspm.c - confused about SNDRV_HDSPM_IOCTL_GET_[CONFIG|STATUS] Jörn Nettingsmeier
2011-05-18 16:17 ` Takashi Iwai

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.