Can't we let alsa tell us trough sysfs what kind of audio device we are dealing with.
Interresting would be if it could tell us if it had input and/or output audio.
if it has output audio udevd may put it as /dev/dsp otherwise as another name.
or could alsa tell us what type of device the hardware is a webcam audio controller, tv audio controller or main audio controller.
if udev sees it is a main audio controller it will put it as /dev/dsp otherwise as another name.
this looks like the easiest way for udev to know how to make a selection.
This would solve the webcam etc getting /dev/dsp as device name if first detected
Can't we let alsa tell us trough sysfs what kind of audio device we are dealing
with.
Interresting would be if it could tell us if it had input and/or output audio.
if it has output audio udevd may put it as /dev/dsp otherwise as another name.
or could alsa tell us what type of device the hardware is a webcam audio
controller, tv audio controller or main audio controller.
if udev sees it is a main audio controller it will put it as /dev/dsp otherwise
as another name.
this looks like the easiest way for udev to know how to make a selection.
This would solve the webcam etc getting /dev/dsp as device name if first detected