Skip to contentSkip to conversation

Hints for usb audio patch

DISCUSSION LCID Fire 2 participants 2 messages Nov 5, 2008 – Nov 7, 2008

lore
Share & tools
lore

LCID Fire

author
#0 lore raw

Hi.
I have a patch lying around for some month now and would need some hints how to correctly implement it.

1. What's the correct way to save the state of a special feature? There is a switch which turns on a certain feature in the usb mixer. Looking at the struct usb_mixer_interface I implemented it similar to "audigy2nx_leds" - by adding a new u8 (and the necessary functions).

2. Should one rather set ignore_ctl_error to 1 (which I currently do) or sort the errors out by adding a handling for a specific device?

3. For the switch to active I need an interrupt message for which I implemented snd_usb_interrupt_trans since I did not find any other convenience function to do this.

#1 lore raw
Quoted 2 lines · LCID Fire

2. Should one rather set ignore_ctl_error to 1 (which I currently do) or sort the errors out by adding a handling for a specific device?

As long as it works fine with ignore_ctl_error, there's no reason to add more code.

Quoted 3 lines

3. For the switch to active I need an interrupt message for which I implemented snd_usb_interrupt_trans since I did not find any other convenience function to do this.

Well, I'd need to see the code to evaluate your solution ... :-)

Regards,
Clemens