[alsa-devel] [PATCH 2/2] hdspm: modified include file

Florian Faber faber at faberman.de
Tue Apr 14 17:48:53 CEST 2009


Ckeaned up meter structure and modified the PEAK_RMS ioctl to reflect
the modifications.

diff a/sound/include/sound/hdspm.h b/sound/include/sound/hdspm.h

28,36d27
< /* peam rms level structure like we get from hardware 
<   
<    maybe in future we can memory map it so I just copy it
<    to user on ioctl call now an dont change anything
<    rms are made out of low and high values
<    where (long) ????_rms = (????_rms_l >> 8) + ((????_rms_h &
0xFFFFFF00)<<24)
<    (i asume so from the code)
< */
< 
37a29,35
>         uint32_t input_peaks[64];
>         uint32_t playback_peaks[64];
>         uint32_t output_peaks[64];
>   
>         uint64_t input_rms[64];
>         uint64_t playback_rms[64];
>         uint64_t output_rms[64];
39,56c37,38
< 	unsigned int level_offset[1024];
< 
< 	unsigned int input_peak[64];
< 	unsigned int playback_peak[64];
< 	unsigned int output_peak[64];
< 	unsigned int xxx_peak[64];	/* not used */
< 
< 	unsigned int reserved[256];	/* not used */
< 
< 	unsigned int input_rms_l[64];
< 	unsigned int playback_rms_l[64];
< 	unsigned int output_rms_l[64];
< 	unsigned int xxx_rms_l[64];	/* not used */
< 
< 	unsigned int input_rms_h[64];
< 	unsigned int playback_rms_h[64];
< 	unsigned int output_rms_h[64];
< 	unsigned int xxx_rms_h[64];	/* not used */
---
>         enum {ss, ds, qs} speed;
>         int status2;
59,61d40
< struct hdspm_peak_rms_ioctl {
< 	struct hdspm_peak_rms *peak;
< };
63d41
< /* use indirect access due to the limit of ioctl bit size */
65c43
< 	_IOR('H', 0x40, struct hdspm_peak_rms_ioctl)
---
> 	_IOR('H', 0x40, struct hdspm_peak_rms)

Flo
-- 
Machines can do the work, so people have time to think.
public key 6C002249          x-hkp://wwwkeys.eu.pgp.net



More information about the Alsa-devel mailing list