| 69 |
|
|
| 70 |
|
|
| 71 |
/* |
/* |
| 72 |
* Process a command that was queueued because an async operation was in progress |
* Process a command that was queued because an async operation was in progress |
| 73 |
* when it was initially requested. |
* when it was initially requested. |
|
* |
|
|
* XXX if queued op fails send -ve completion event |
|
| 74 |
*/ |
*/ |
| 75 |
void MmDevice::processPendingCommand() |
void MmDevice::processPendingCommand() |
| 76 |
{ |
{ |
| 124 |
} |
} |
| 125 |
} |
} |
| 126 |
|
|
| 127 |
|
|
| 128 |
/* |
/* |
| 129 |
* Open the device. |
* Open the device. |
| 130 |
*/ |
*/ |
| 172 |
return true; |
return true; |
| 173 |
} |
} |
| 174 |
|
|
| 175 |
|
/* XXX should be params */ |
| 176 |
|
bool transcode_audio = true; |
| 177 |
|
bool transcode_video = true; |
| 178 |
|
|
| 179 |
if ( !other_audio_ && !other_video_ ) |
if ( !other_audio_ && !other_video_ ) |
| 180 |
{ |
{ |
| 181 |
LOGDEBUG("MmDevice::connect() device: " << getDeviceName() << |
LOGDEBUG("MmDevice::connect() device: " << getDeviceName() << |
| 190 |
if ( other_audio ) |
if ( other_audio ) |
| 191 |
{ |
{ |
| 192 |
INIT_DM_PORT_CONNECT_INFO(&portConnectInfoList.port_connect_info[count]); |
INIT_DM_PORT_CONNECT_INFO(&portConnectInfoList.port_connect_info[count]); |
| 193 |
portConnectInfoList.port_connect_info[count].unFlags = DMFL_TRANSCODE_ON; |
portConnectInfoList.port_connect_info[count].unFlags = transcode_audio ? DMFL_TRANSCODE_ON : DMFL_TRANSCODE_NATIVE; |
| 194 |
portConnectInfoList.port_connect_info[count].port_info_tx = getAudioTxPortInfo(); |
portConnectInfoList.port_connect_info[count].port_info_tx = getAudioTxPortInfo(); |
| 195 |
portConnectInfoList.port_connect_info[count].port_info_rx = other_audio->getAudioRxPortInfo(); |
portConnectInfoList.port_connect_info[count].port_info_rx = other_audio->getAudioRxPortInfo(); |
| 196 |
count++; |
count++; |
| 198 |
if ( other_video ) |
if ( other_video ) |
| 199 |
{ |
{ |
| 200 |
INIT_DM_PORT_CONNECT_INFO(&portConnectInfoList.port_connect_info[count]); |
INIT_DM_PORT_CONNECT_INFO(&portConnectInfoList.port_connect_info[count]); |
| 201 |
portConnectInfoList.port_connect_info[count].unFlags = DMFL_TRANSCODE_ON; |
portConnectInfoList.port_connect_info[count].unFlags = transcode_video ? DMFL_TRANSCODE_ON : DMFL_TRANSCODE_NATIVE; |
| 202 |
portConnectInfoList.port_connect_info[count].port_info_tx = getVideoTxPortInfo(); |
portConnectInfoList.port_connect_info[count].port_info_tx = getVideoTxPortInfo(); |
| 203 |
portConnectInfoList.port_connect_info[count].port_info_rx = other_video->getVideoRxPortInfo(); |
portConnectInfoList.port_connect_info[count].port_info_rx = other_video->getVideoRxPortInfo(); |
| 204 |
count++; |
count++; |