Hello,
I configured kernel with 2 devices in one card with the following configuration:
line_in + mic --- mcasp 2 - codec 0x18
line_out+headphone
line_in + mic --- mcasp 3 - codec 0x19
line_out+headphone
It seems that both are loaded correctly when I configure each one seperately, but on trying to load both I get the following error in boot:
usbcore: registered new interface driver snd-usb-audio
PM: Adding info for platform:soc-audio.0
PM: Adding info for No Bus:TLV320AIC3X_2
asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok
snd_soc_instantiate_card 7
tlv320aic3x-codec 2-0019: tlv320aic3x-codec.2-0019: Failed to add PCM Playback Volume: -16
asoc: failed to add dapm kcontrol Right HPCOM Mixer Line2L Bypass Switch: -16
asoc: failed to add dapm kcontrol Left HPCOM Mixer Line2L Bypass Switch: -16
asoc: failed to add dapm kcontrol Right HP Mixer Line2L Bypass Switch: -16
asoc: failed to add dapm kcontrol Left HP Mixer Line2L Bypass Switch: -16
asoc: failed to add dapm kcontrol Mono Mixer Line2L Bypass Switch: -16
asoc: failed to add dapm kcontrol Right Line Mixer Line2L Bypass Switch: -16
asoc: failed to add dapm kcontrol Left Line Mixer Line2L Bypass Switch: -16
asoc: failed to add kcontrol Right Line2R Mux
asoc: failed to add kcontrol Right Line1R Mux
asoc: failed to add kcontrol Right Line1L Mux
asoc: failed to add dapm kcontrol Right PGA Mixer Line1R Switch: -16
asoc: failed to add kcontrol Left Line2L Mux
asoc: failed to add kcontrol Left Line1R Mux
asoc: failed to add kcontrol Left Line1L Mux
asoc: failed to add dapm kcontrol Left PGA Mixer Line1L Switch: -16
asoc: failed to add kcontrol Right HPCOM Mux
asoc: failed to add kcontrol Right DAC Mux
asoc: failed to add kcontrol Left HPCOM Mux
asoc: failed to add kcontrol Left DAC Mux
PM: Adding info for No Bus:TLV320AIC3X_3
asoc: tlv320aic3x-hifi <-> davinci-mcasp.3 mapping ok
PM: Adding info for No Bus:card0
PM: Adding info for No Bus:pcmC0D1p
PM: Adding info for No Bus:pcmC0D1c
PM: Adding info for No Bus:pcmC0D0p
PM: Adding info for No Bus:pcmC0D0c
PM: Adding info for No Bus:controlC0
ALSA device list:
#0: TI81XX SOUND0
Is it becuase the driver except that these control will work with single device only ? (In my case there are 2 devices)
If yes - what changes do I need to make in code to support control for 2 devices ?
Another thing is that I see (when both devices are configured) it as following;
root@dm814x:~# cat /proc/asound/devices
0: [ 0] : control
16: [ 0- 0]: digital audio playback
17: [ 0- 1]: digital audio playback
24: [ 0- 0]: digital audio capture
25: [ 0- 1]: digital audio capture
33: : timer
It seems that I have 2 capture device and 2 playback device.
But according to the configuration I expected 4 capture device and 4 playback devices:
line_in (capture)
mic (capture) --- mcasp 2 - codec 0x18
line_out (playback)
headphone (playback)
line_in (capture)
mic (capture) --- mcasp 3 - codec 0x19
line_out (playback)
headphone (playback)
Why do I see only 2 capture and 2 playback devices ?
I also get that speed of the recorded file with the first codec and mcasp2 is faster then the original recorded file.
Thanks,
Ran


