Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marvin Scholz
libaacs
Commits
a57a4b1e
Commit
a57a4b1e
authored
Dec 17, 2013
by
npzacs
Browse files
mmc: added logging
parent
f0ba1f9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libaacs/mmc.c
View file @
a57a4b1e
...
@@ -388,6 +388,8 @@ static int _mmc_report_disc_structure(MMC *mmc, uint8_t agid, uint8_t format,
...
@@ -388,6 +388,8 @@ static int _mmc_report_disc_structure(MMC *mmc, uint8_t agid, uint8_t format,
memset
(
cmd
,
0
,
sizeof
(
cmd
));
memset
(
cmd
,
0
,
sizeof
(
cmd
));
memset
(
buf
,
0
,
len
);
memset
(
buf
,
0
,
len
);
DEBUG
(
DBG_MMC
,
"MMC report disc structure [format 0x%x layer %d address %d] ...
\n
"
,
format
,
layer
,
address
);
cmd
[
0
]
=
0xad
;
// operation code
cmd
[
0
]
=
0xad
;
// operation code
cmd
[
1
]
=
0x01
;
// BluRay
cmd
[
1
]
=
0x01
;
// BluRay
cmd
[
2
]
=
(
address
>>
24
)
&
0xff
;
cmd
[
2
]
=
(
address
>>
24
)
&
0xff
;
...
@@ -409,6 +411,8 @@ static int _mmc_get_configuration(MMC *mmc, uint16_t feature, uint8_t *buf, uint
...
@@ -409,6 +411,8 @@ static int _mmc_get_configuration(MMC *mmc, uint16_t feature, uint8_t *buf, uint
memset
(
cmd
,
0
,
sizeof
(
cmd
));
memset
(
cmd
,
0
,
sizeof
(
cmd
));
memset
(
buf
,
0
,
len
);
memset
(
buf
,
0
,
len
);
DEBUG
(
DBG_MMC
,
"MMC get configuration [feature 0x%x] ...
\n
"
,
feature
);
cmd
[
0
]
=
0x46
;
// operation code
cmd
[
0
]
=
0x46
;
// operation code
cmd
[
1
]
=
0x01
;
// BluRay
cmd
[
1
]
=
0x01
;
// BluRay
cmd
[
2
]
=
(
feature
>>
8
)
&
0xff
;
cmd
[
2
]
=
(
feature
>>
8
)
&
0xff
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment