I have a codec with 2 Inputs. I have Mic connected to one and line in connected to the other. My arecord list shows only one card i.e. hw:0,0 with one subdevice. I can switch between the inputs by writing to the codec registers in the driver file. I wanted to know how could I switch between these inputs from user space or if anyone knows how to add a subdevice in ALSA in the driver code?
Also is there a way to write to codec registers from alsa user space?